57 #include "vtkRenderingCoreModule.h"
62 #define VTK_RESOLVE_OFF 0
63 #define VTK_RESOLVE_POLYGON_OFFSET 1
64 #define VTK_RESOLVE_SHIFT_ZBUFFER 2
66 #define VTK_GET_ARRAY_BY_ID 0
67 #define VTK_GET_ARRAY_BY_NAME 1
69 #define VTK_MATERIALMODE_DEFAULT 0
70 #define VTK_MATERIALMODE_AMBIENT 1
71 #define VTK_MATERIALMODE_DIFFUSE 2
72 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3
129 virtual void CreateDefaultLookupTable();
165 vtkSetMacro(ColorMode,
int);
166 vtkGetMacro(ColorMode,
int);
175 const char* GetColorModeAsString();
184 vtkSetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
185 vtkGetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
186 vtkBooleanMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
198 vtkSetMacro(UseLookupTableScalarRange,
vtkTypeBool);
199 vtkGetMacro(UseLookupTableScalarRange,
vtkTypeBool);
200 vtkBooleanMacro(UseLookupTableScalarRange,
vtkTypeBool);
209 vtkSetVector2Macro(ScalarRange,
double);
210 vtkGetVectorMacro(ScalarRange,
double, 2);
238 vtkSetMacro(ScalarMode,
int);
239 vtkGetMacro(ScalarMode,
int);
259 void SelectColorArray(
int arrayNum);
260 void SelectColorArray(
const char* arrayName);
269 vtkSetMacro(FieldDataTupleId,
vtkIdType);
270 vtkGetMacro(FieldDataTupleId,
vtkIdType);
278 void ColorByArrayComponent(
int arrayNum,
int component);
279 void ColorByArrayComponent(
const char* arrayName,
int component);
285 vtkGetStringMacro(ArrayName);
286 vtkSetStringMacro(ArrayName);
287 vtkGetMacro(ArrayId,
int);
288 vtkSetMacro(ArrayId,
int);
289 vtkGetMacro(ArrayAccessMode,
int);
290 vtkSetMacro(ArrayAccessMode,
int);
291 vtkGetMacro(ArrayComponent,
int);
292 vtkSetMacro(ArrayComponent,
int);
297 const char* GetScalarModeAsString();
310 static void SetResolveCoincidentTopology(
int val);
311 static int GetResolveCoincidentTopology();
312 static void SetResolveCoincidentTopologyToDefault();
330 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
double factor,
double units);
331 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
double& factor,
double& units);
339 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
double factor,
double units);
340 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
double& factor,
double& units);
349 static void SetResolveCoincidentTopologyLineOffsetParameters(
double factor,
double units);
350 static void GetResolveCoincidentTopologyLineOffsetParameters(
double& factor,
double& units);
358 void SetRelativeCoincidentTopologyLineOffsetParameters(
double factor,
double units);
359 void GetRelativeCoincidentTopologyLineOffsetParameters(
double& factor,
double& units);
368 static void SetResolveCoincidentTopologyPointOffsetParameter(
double units);
369 static void GetResolveCoincidentTopologyPointOffsetParameter(
double& units);
377 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
378 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
386 void GetCoincidentTopologyPolygonOffsetParameters(
double& factor,
double& units);
387 void GetCoincidentTopologyLineOffsetParameters(
double& factor,
double& units);
388 void GetCoincidentTopologyPointOffsetParameter(
double& units);
399 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
400 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
408 static void SetResolveCoincidentTopologyZShift(
double val);
409 static double GetResolveCoincidentTopologyZShift();
425 vtkGetMacro(RenderTime,
double);
461 virtual bool HasOpaqueGeometry();
462 virtual bool HasTranslucentPolygonalGeometry();
478 std::vector<unsigned int>& ,
vtkProp* )
490 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
496 void ClearColorArrays();
540 double ScalarRange[2];
570 void operator=(
const vtkMapper&) =
delete;
abstract superclass for all actors, volumes and annotations
vtkIdType FieldDataTupleId
#define VTK_COLOR_MODE_DIRECT_SCALARS
void SetScalarModeToUsePointData()
void SetScalarModeToDefault()
void GetBounds(T a, double bds[6])
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
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 SetColorModeToDefault()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
abstract specification for renderers
data object that represents a "selection" in VTK.
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()
virtual void ProcessSelectorPixelBuffers(vtkHardwareSelector *, std::vector< unsigned int > &, vtkProp *)
allows a mapper to update a selections color buffers Called from a prop which in turn is called from ...
double CoincidentLineFactor
vtkUnsignedCharArray * Colors
vtkTypeBool ScalarVisibility
void SetColorModeToDirectScalars()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
Superclass for mapping scalar values to colors.
window superclass for vtkRenderWindow
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
virtual void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
double CoincidentPolygonFactor
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
#define VTK_COLOR_MODE_DEFAULT
#define VTK_SIZEHINT(...)
#define VTK_SCALAR_MODE_USE_FIELD_DATA
abstract class specifies interface to map data to graphics primitives
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...
vtkTypeBool UseLookupTableScalarRange
vtkFloatArray * ColorCoordinates
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
#define VTK_SCALAR_MODE_USE_CELL_DATA
#define VTK_RESOLVE_POLYGON_OFFSET
general representation of visualization data
void SetScalarModeToUseCellFieldData()
vtkScalarsToColors * LookupTable
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
#define VTK_SCALAR_MODE_DEFAULT
vtkTypeBool InterpolateScalarsBeforeMapping