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
133 virtual void CreateDefaultLookupTable();
140 vtkGetMacro(ScalarVisibility,
int);
152 vtkGetMacro(Static,
int);
170 vtkGetMacro(ColorMode,
int);
182 const char *GetColorModeAsString();
192 vtkGetMacro(InterpolateScalarsBeforeMapping,
int);
206 vtkGetMacro(UseLookupTableScalarRange,
int);
216 vtkSetVector2Macro(ScalarRange,
double);
217 vtkGetVectorMacro(ScalarRange,
double, 2);
230 vtkGetMacro(ImmediateModeRendering,
int);
243 static void SetGlobalImmediateModeRendering(
int val);
248 static int GetGlobalImmediateModeRendering();
261 vtkGetMacro(ForceCompileOnly,
int);
262 void SetForceCompileOnly(
int value);
291 vtkGetMacro(ScalarMode,
int);
311 void SelectColorArray(
int arrayNum);
312 void SelectColorArray(
const char* arrayName);
323 vtkGetMacro(FieldDataTupleId,
vtkIdType);
331 void ColorByArrayComponent(
int arrayNum,
int component);
332 void ColorByArrayComponent(
const char* arrayName,
int component);
346 const char *GetScalarModeAsString();
361 static void SetResolveCoincidentTopology(
int val);
362 static int GetResolveCoincidentTopology();
363 static void SetResolveCoincidentTopologyToDefault();
378 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
379 double factor,
double units);
380 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
381 double& factor,
double& units);
389 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
390 double factor,
double units);
391 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
392 double& factor,
double& units);
401 static void SetResolveCoincidentTopologyLineOffsetParameters(
402 double factor,
double units);
403 static void GetResolveCoincidentTopologyLineOffsetParameters(
404 double& factor,
double& units);
412 void SetRelativeCoincidentTopologyLineOffsetParameters(
413 double factor,
double units);
414 void GetRelativeCoincidentTopologyLineOffsetParameters(
415 double& factor,
double& units);
424 static void SetResolveCoincidentTopologyPointOffsetParameter(
426 static void GetResolveCoincidentTopologyPointOffsetParameter(
435 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
436 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
444 void GetCoincidentTopologyPolygonOffsetParameters(
445 double& factor,
double& units);
446 void GetCoincidentTopologyLineOffsetParameters(
447 double& factor,
double& units);
448 void GetCoincidentTopologyPointOffsetParameter(
double& units);
459 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
460 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
468 static void SetResolveCoincidentTopologyZShift(
double val);
469 static double GetResolveCoincidentTopologyZShift();
486 vtkGetMacro(RenderTime,
double);
501 {
return this->GetInput(); }
526 vtkGetMacro(ScalarMaterialMode,
int);
540 const char *GetScalarMaterialModeAsString();
550 virtual bool GetIsOpaque();
569 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
579 const char *arrayName,
581 double *scalarRange);
582 void UseInvertibleColorFor(
int scalarMode,
585 const char *arrayName,
587 double *scalarRange);
593 void ClearInvertibleColor();
598 static void ValueToColor(
double value,
double min,
double scale,
599 unsigned char *
color);
604 static void ColorToValue(
unsigned char *
color,
double min,
double scale,
611 void ClearColorArrays();
644 void AcquireInvertibleLookupTable();
651 double ScalarRange[2];
684 void operator=(const
vtkMapper&) VTK_DELETE_FUNCTION;
vtkIdType FieldDataTupleId
vtkAbstractArray * InvertibleScalars
#define VTK_COLOR_MODE_DIRECT_SCALARS
void SetScalarModeToUsePointData()
void SetScalarModeToDefault()
static void SetResolveCoincidentTopologyToShiftZBuffer()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
represents an object (geometry & properties) in a rendered scene
#define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA
void SetScalarMaterialModeToAmbientAndDiffuse()
Set/Get the light-model color mode.
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
static vtkScalarsToColors * InvertibleLookupTable
vtkDataSet * GetInputAsDataSet()
Get the input to this mapper as a vtkDataSet, instead of as a more specialized data type that the sub...
abstract class to specify dataset behavior
virtual vtkMTimeType GetMTime()
Override Modifiedtime as we have added Clipping planes.
Abstract superclass for all arrays.
static void SetResolveCoincidentTopologyToOff()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
record modification and/or execution time
void SetScalarModeToUseCellData()
dynamic, self-adjusting array of float
vtkImageData * ColorTextureMap
#define VTK_RESOLVE_SHIFT_ZBUFFER
void SetScalarMaterialModeToDiffuse()
Set/Get the light-model color mode.
static void GlobalImmediateModeRenderingOff()
Turn on/off flag to control whether data is rendered using immediate mode or note.
void SetColorModeToDefault()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
abstract specification for renderers
static void SetResolveCoincidentTopologyToPolygonOffset()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
void SetScalarModeToUseFieldData()
double CoincidentLineFactor
vtkUnsignedCharArray * Colors
vtkTypeUInt64 vtkMTimeType
void SetColorModeToDirectScalars()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
#define VTK_MATERIALMODE_DIFFUSE
Superclass for mapping scalar values to colors.
window superclass for vtkRenderWindow
void SetScalarMaterialModeToAmbient()
Set/Get the light-model color mode.
double CoincidentPointOffset
void SetRenderTime(double time)
This instance variable is used by vtkLODActor to determine which mapper to use.
#define VTK_COLOR_MODE_MAP_SCALARS
#define VTK_SCALAR_MODE_USE_POINT_DATA
a simple class to control print indentation
void SetScalarModeToUsePointFieldData()
double CoincidentLineOffset
topologically and geometrically regular array of data
#define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
#define VTK_MATERIALMODE_AMBIENT
double CoincidentPolygonFactor
static void SetGlobalImmediateModeRendering(int val)
Turn on/off flag to control whether data is rendered using immediate mode or note.
int ImmediateModeRendering
double CoincidentPolygonOffset
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
abstract class specifies interface to map 3D data
int InterpolateScalarsBeforeMapping
#define VTK_COLOR_MODE_DEFAULT
#define VTK_SCALAR_MODE_USE_FIELD_DATA
abstract class specifies interface to map data to graphics primitives
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
dynamic, self-adjusting array of unsigned char
virtual void GetBounds(double bounds[6])
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
abstract class specifies interface to map data
void SetColorModeToMapScalars()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
#define VTK_MATERIALMODE_DEFAULT
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
vtkFloatArray * ColorCoordinates
int UseLookupTableScalarRange
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
void SetScalarMaterialModeToDefault()
Set/Get the light-model color mode.
#define VTK_SCALAR_MODE_USE_CELL_DATA
#define VTK_RESOLVE_POLYGON_OFFSET
general representation of visualization data
void SetScalarModeToUseCellFieldData()
vtkScalarsToColors * LookupTable
static void GlobalImmediateModeRenderingOn()
Turn on/off flag to control whether data is rendered using immediate mode or note.
#define VTK_SCALAR_MODE_DEFAULT
#define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE
char * GetArrayName()
Get the array name or number and component to color by.