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 119 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE {}
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);
339 vtkSetStringMacro(ArrayName);
340 vtkGetMacro(ArrayId,
int);
342 vtkGetMacro(ArrayAccessMode,
int);
344 vtkGetMacro(ArrayComponent,
int);
350 const char *GetScalarModeAsString();
365 static void SetResolveCoincidentTopology(
int val);
366 static int GetResolveCoincidentTopology();
367 static void SetResolveCoincidentTopologyToDefault();
382 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
383 double factor,
double units);
384 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
385 double& factor,
double& units);
393 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
394 double factor,
double units);
395 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
396 double& factor,
double& units);
405 static void SetResolveCoincidentTopologyLineOffsetParameters(
406 double factor,
double units);
407 static void GetResolveCoincidentTopologyLineOffsetParameters(
408 double& factor,
double& units);
416 void SetRelativeCoincidentTopologyLineOffsetParameters(
417 double factor,
double units);
418 void GetRelativeCoincidentTopologyLineOffsetParameters(
419 double& factor,
double& units);
428 static void SetResolveCoincidentTopologyPointOffsetParameter(
430 static void GetResolveCoincidentTopologyPointOffsetParameter(
439 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
440 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
448 void GetCoincidentTopologyPolygonOffsetParameters(
449 double& factor,
double& units);
450 void GetCoincidentTopologyLineOffsetParameters(
451 double& factor,
double& units);
452 void GetCoincidentTopologyPointOffsetParameter(
double& units);
463 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
464 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
472 static void SetResolveCoincidentTopologyZShift(
double val);
473 static double GetResolveCoincidentTopologyZShift();
490 vtkGetMacro(RenderTime,
double);
505 {
return this->GetInput(); }
530 vtkGetMacro(ScalarMaterialMode,
int);
544 const char *GetScalarMaterialModeAsString();
554 virtual bool GetIsOpaque();
573 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
579 void ClearColorArrays();
614 double ScalarRange[2];
645 void operator=(
const vtkMapper&) VTK_DELETE_FUNCTION;
vtkIdType FieldDataTupleId
#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.
vtkDataSet * GetInputAsDataSet()
Get the input to this mapper as a vtkDataSet, instead of as a more specialized data type that the sub...
vtkTypeUInt32 vtkMTimeType
vtkMTimeType GetMTime() override
Override Modifiedtime as we have added Clipping planes.
abstract class to specify dataset behavior
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
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 GetBounds(double bounds[6]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
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
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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
abstract class specifies interface to map data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetColorModeToMapScalars()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
#define VTK_MATERIALMODE_DEFAULT
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