Go to the documentation of this file.
64 #include "vtkRenderingCoreModule.h"
69 #define VTK_RESOLVE_OFF 0
70 #define VTK_RESOLVE_POLYGON_OFFSET 1
71 #define VTK_RESOLVE_SHIFT_ZBUFFER 2
73 #define VTK_GET_ARRAY_BY_ID 0
74 #define VTK_GET_ARRAY_BY_NAME 1
76 #define VTK_MATERIALMODE_DEFAULT 0
77 #define VTK_MATERIALMODE_AMBIENT 1
78 #define VTK_MATERIALMODE_DIFFUSE 2
79 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3
140 vtkGetMacro(ScalarVisibility,
int);
152 vtkGetMacro(Static,
int);
170 vtkGetMacro(ColorMode,
int);
192 vtkGetMacro(InterpolateScalarsBeforeMapping,
int);
206 vtkGetMacro(UseLookupTableScalarRange,
int);
216 vtkSetVector2Macro(ScalarRange,
double);
217 vtkGetVectorMacro(ScalarRange,
double, 2);
230 vtkGetMacro(ImmediateModeRendering,
int);
261 vtkGetMacro(ForceCompileOnly,
int);
291 vtkGetMacro(ScalarMode,
int);
379 double factor,
double units);
381 double& factor,
double& units);
390 double factor,
double units);
392 double& factor,
double& units);
402 double factor,
double units);
404 double& factor,
double& units);
413 double factor,
double units);
415 double& factor,
double& units);
445 double& factor,
double& units);
447 double& factor,
double& units);
486 vtkGetMacro(RenderTime,
double);
501 {
return this->GetInput(); }
526 vtkGetMacro(ScalarMaterialMode,
int);
579 const char *arrayName,
581 double *scalarRange);
585 const char *arrayName,
587 double *scalarRange);
599 unsigned char *
color);
651 double ScalarRange[2];
684 void operator=(
const vtkMapper&) VTK_DELETE_FUNCTION;
static void SetResolveCoincidentTopologyToOff()
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
#define VTK_SCALAR_MODE_DEFAULT
virtual vtkUnsignedCharArray * MapScalars(double alpha, int &cellFlag)
void GetCoincidentTopologyPointOffsetParameter(double &units)
void SetScalarModeToUsePointData()
int UseLookupTableScalarRange
#define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA
void UseInvertibleColorFor(int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int arrayComponent, double *scalarRange)
void ColorByArrayComponent(const char *arrayName, int component)
#define VTK_SCALAR_MODE_USE_POINT_DATA
void GetRelativeCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
#define VTK_COLOR_MODE_MAP_SCALARS
const char * GetScalarMaterialModeAsString()
Return the light-model color mode.
const char * GetColorModeAsString()
Return the method of coloring scalar data.
static void SetResolveCoincidentTopologyToShiftZBuffer()
static void SetResolveCoincidentTopology(int val)
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
virtual vtkUnsignedCharArray * MapScalars(vtkDataSet *input, double alpha)
void SetColorModeToDefault()
#define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
static void SetResolveCoincidentTopologyPointOffsetParameter(double units)
Used to set the point offset value Used when ResolveCoincidentTopology is set to PolygonOffset.
double CoincidentPointOffset
const char * GetScalarModeAsString()
Return the method for obtaining scalar data.
static void SetGlobalImmediateModeRendering(int val)
Turn on/off flag to control whether data is rendered using immediate mode or note.
#define VTK_RESOLVE_POLYGON_OFFSET
void SetLookupTable(vtkScalarsToColors *lut)
Specify a lookup table for the mapper to use.
dynamic, self-adjusting array of float
static int GetResolveCoincidentTopology()
static void GetResolveCoincidentTopologyLineOffsetParameters(double &factor, double &units)
vtkImageData * GetColorTextureMap()
Provide read access to the color texture array.
#define VTK_MATERIALMODE_DIFFUSE
vtkScalarsToColors * GetLookupTable()
record modification and/or execution time
void SetRelativeCoincidentTopologyLineOffsetParameters(double factor, double units)
Used to set the line offset values relative to the global Used when ResolveCoincidentTopology is set ...
dynamic, self-adjusting array of unsigned char
void ColorByArrayComponent(int arrayNum, int component)
Legacy: These methods used to be used to specify the array component.
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
static void GlobalImmediateModeRenderingOn()
static void SetResolveCoincidentTopologyPolygonOffsetFaces(int faces)
Used when ResolveCoincidentTopology is set to PolygonOffset.
vtkImageData * ColorTextureMap
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
double CoincidentPolygonOffset
static void GetResolveCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
virtual vtkUnsignedCharArray * MapScalars(double alpha)
Map the scalars (if there are any scalars and ScalarVisibility is on) through the lookup table,...
virtual int CanUseTextureMapForColoring(vtkDataObject *input)
Returns if we can use texture maps for scalar coloring.
void SetRenderTime(double time)
This instance variable is used by vtkLODActor to determine which mapper to use.
void SetScalarMaterialModeToAmbientAndDiffuse()
void SelectColorArray(int arrayNum)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
vtkUnsignedCharArray * Colors
vtkUnsignedCharArray * GetColorMapColors()
Provide read access to the color array.
window superclass for vtkRenderWindow
void SetScalarMaterialModeToAmbient()
double CoincidentPolygonFactor
void SetScalarModeToDefault()
void SetScalarMaterialModeToDefault()
vtkTypeUInt64 vtkMTimeType
void GetCoincidentTopologyLineOffsetParameters(double &factor, double &units)
void SetScalarModeToUseCellData()
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
static void SetResolveCoincidentTopologyLineOffsetParameters(double factor, double units)
Used to set the line offset scale factor and units.
void UseInvertibleColorFor(vtkDataObject *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int arrayComponent, double *scalarRange)
Used internally by vtkValuePass.
#define VTK_SCALAR_MODE_USE_CELL_DATA
int ImmediateModeRendering
void SetScalarMaterialModeToDiffuse()
void SetRelativeCoincidentTopologyPolygonOffsetParameters(double factor, double units)
Used to set the polygon offset values relative to the global Used when ResolveCoincidentTopology is s...
abstract class specifies interface to map data to graphics primitives
#define VTK_SCALAR_MODE_USE_FIELD_DATA
vtkIdType FieldDataTupleId
vtkFloatArray * ColorCoordinates
vtkMTimeType GetMTime()
Overload standard modified time function.
represents an object (geometry & properties) in a rendered scene
topologically and geometrically regular array of data
a simple class to control print indentation
int InterpolateScalarsBeforeMapping
virtual void CreateDefaultLookupTable()
Create default lookup table.
void GetRelativeCoincidentTopologyPointOffsetParameter(double &units)
static void GlobalImmediateModeRenderingOff()
Superclass for mapping scalar values to colors.
void SetScalarModeToUseFieldData()
vtkDataSet * GetInput()
Get the input as a vtkDataSet.
void GetRelativeCoincidentTopologyLineOffsetParameters(double &factor, double &units)
vtkAbstractArray * InvertibleScalars
virtual vtkUnsignedCharArray * MapScalars(vtkDataSet *input, double alpha, int &cellFlag)
vtkDataSet * GetInputAsDataSet()
Get the input to this mapper as a vtkDataSet, instead of as a more specialized data type that the sub...
void SetRelativeCoincidentTopologyPointOffsetParameter(double units)
Used to set the point offset value relative to the global Used when ResolveCoincidentTopology is set ...
abstract class to specify dataset behavior
Abstract superclass for all arrays.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
void SetColorModeToDirectScalars()
#define VTK_COLOR_MODE_DEFAULT
void MapScalarsToTexture(vtkAbstractArray *scalars, double alpha)
abstract class specifies interface to map 3D data
void SetColorModeToMapScalars()
#define VTK_MATERIALMODE_DEFAULT
double CoincidentLineOffset
static void SetResolveCoincidentTopologyPolygonOffsetParameters(double factor, double units)
Used to set the polygon offset scale factor and units.
void AcquireInvertibleLookupTable()
static void SetResolveCoincidentTopologyZShift(double val)
Used to set the z-shift if ResolveCoincidentTopology is set to ShiftZBuffer.
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
static double GetResolveCoincidentTopologyZShift()
static void SetResolveCoincidentTopologyToPolygonOffset()
abstract specification for renderers
#define VTK_RESOLVE_SHIFT_ZBUFFER
vtkScalarsToColors * LookupTable
#define VTK_COLOR_MODE_DIRECT_SCALARS
#define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE
double CoincidentLineFactor
static void SetResolveCoincidentTopologyToDefault()
void SelectColorArray(const char *arrayName)
virtual void GetBounds(double bounds[6])
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
static int GetResolveCoincidentTopologyPolygonOffsetFaces()
static void ColorToValue(unsigned char *color, double min, double scale, double &value)
Convert an RGB triplet to a floating point value.
void ClearInvertibleColor()
Used internally by vtkValuePass.
void ClearColorArrays()
Call to force a rebuild of color result arrays on next MapScalars.
static vtkScalarsToColors * InvertibleLookupTable
general representation of visualization data
#define VTK_MATERIALMODE_AMBIENT
static void GetResolveCoincidentTopologyPointOffsetParameter(double &units)
virtual double * GetBounds()
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
static int GetGlobalImmediateModeRendering()
static void ValueToColor(double value, double min, double scale, unsigned char *color)
Convert a floating point value to an RGB triplet.
vtkFloatArray * GetColorCoordinates()
Provide read access to the color texture coordinate array.
void SetScalarModeToUsePointFieldData()
void GetCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
Get the net paramters for handlig coincident topology obtained by summing the global values with the ...
abstract class specifies interface to map data
void SetForceCompileOnly(int value)
void SetScalarModeToUseCellFieldData()
char * GetArrayName()
Get the array name or number and component to color by.