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
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;
static void SetResolveCoincidentTopologyToOff()
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
#define VTK_SCALAR_MODE_DEFAULT
void SetScalarModeToUsePointData()
int UseLookupTableScalarRange
#define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA
#define VTK_SCALAR_MODE_USE_POINT_DATA
#define VTK_COLOR_MODE_MAP_SCALARS
static void SetResolveCoincidentTopologyToShiftZBuffer()
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,...
double CoincidentPointOffset
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
dynamic, self-adjusting array of float
#define VTK_MATERIALMODE_DIFFUSE
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
virtual vtkMTimeType GetMTime()
Override Modifiedtime as we have added Clipping planes.
static void GlobalImmediateModeRenderingOn()
vtkImageData * ColorTextureMap
double CoincidentPolygonOffset
void SetRenderTime(double time)
This instance variable is used by vtkLODActor to determine which mapper to use.
void SetScalarMaterialModeToAmbientAndDiffuse()
vtkUnsignedCharArray * Colors
window superclass for vtkRenderWindow
void SetScalarMaterialModeToAmbient()
double CoincidentPolygonFactor
void SetScalarModeToDefault()
void SetScalarMaterialModeToDefault()
vtkTypeUInt64 vtkMTimeType
void SetScalarModeToUseCellData()
#define VTK_SCALAR_MODE_USE_CELL_DATA
int ImmediateModeRendering
void SetScalarMaterialModeToDiffuse()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
abstract class specifies interface to map data to graphics primitives
#define VTK_SCALAR_MODE_USE_FIELD_DATA
vtkIdType FieldDataTupleId
vtkFloatArray * ColorCoordinates
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
static void GlobalImmediateModeRenderingOff()
Superclass for mapping scalar values to colors.
void SetScalarModeToUseFieldData()
vtkAbstractArray * InvertibleScalars
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
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
abstract class specifies interface to map 3D data
void SetColorModeToMapScalars()
#define VTK_MATERIALMODE_DEFAULT
double CoincidentLineOffset
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
virtual void GetBounds(double bounds[6])
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
static vtkScalarsToColors * InvertibleLookupTable
general representation of visualization data
#define VTK_MATERIALMODE_AMBIENT
void SetScalarModeToUsePointFieldData()
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
abstract class specifies interface to map data
void SetScalarModeToUseCellFieldData()
char * GetArrayName()
Get the array name or number and component to color by.