45 #include "vtkRenderingCoreModule.h"
51 #define VTK_RESOLVE_OFF 0
52 #define VTK_RESOLVE_POLYGON_OFFSET 1
53 #define VTK_RESOLVE_SHIFT_ZBUFFER 2
55 #define VTK_GET_ARRAY_BY_ID 0
56 #define VTK_GET_ARRAY_BY_NAME 1
58 #define VTK_MATERIALMODE_DEFAULT 0
59 #define VTK_MATERIALMODE_AMBIENT 1
60 #define VTK_MATERIALMODE_DIFFUSE 2
61 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3
63 VTK_ABI_NAMESPACE_BEGIN
119 virtual void CreateDefaultLookupTable();
155 vtkSetMacro(ColorMode,
int);
156 vtkGetMacro(ColorMode,
int);
165 const char* GetColorModeAsString();
174 vtkSetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
175 vtkGetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
176 vtkBooleanMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
188 vtkSetMacro(UseLookupTableScalarRange,
vtkTypeBool);
189 vtkGetMacro(UseLookupTableScalarRange,
vtkTypeBool);
190 vtkBooleanMacro(UseLookupTableScalarRange,
vtkTypeBool);
199 vtkSetVector2Macro(ScalarRange,
double);
200 vtkGetVectorMacro(ScalarRange,
double, 2);
228 vtkSetMacro(ScalarMode,
int);
229 vtkGetMacro(ScalarMode,
int);
249 void SelectColorArray(
int arrayNum);
250 void SelectColorArray(
const char* arrayName);
259 vtkSetMacro(FieldDataTupleId,
vtkIdType);
260 vtkGetMacro(FieldDataTupleId,
vtkIdType);
268 void ColorByArrayComponent(
int arrayNum,
int component);
269 void ColorByArrayComponent(
const char* arrayName,
int component);
275 vtkGetStringMacro(ArrayName);
276 vtkSetStringMacro(ArrayName);
277 vtkGetMacro(ArrayId,
int);
278 vtkSetMacro(ArrayId,
int);
279 vtkGetMacro(ArrayAccessMode,
int);
280 vtkSetMacro(ArrayAccessMode,
int);
281 vtkGetMacro(ArrayComponent,
int);
282 vtkSetMacro(ArrayComponent,
int);
287 const char* GetScalarModeAsString();
300 static void SetResolveCoincidentTopology(
int val);
301 static int GetResolveCoincidentTopology();
302 static void SetResolveCoincidentTopologyToDefault();
320 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
double factor,
double units);
321 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
double& factor,
double& units);
329 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
double factor,
double units);
330 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
double& factor,
double& units);
339 static void SetResolveCoincidentTopologyLineOffsetParameters(
double factor,
double units);
340 static void GetResolveCoincidentTopologyLineOffsetParameters(
double& factor,
double& units);
348 void SetRelativeCoincidentTopologyLineOffsetParameters(
double factor,
double units);
349 void GetRelativeCoincidentTopologyLineOffsetParameters(
double& factor,
double& units);
358 static void SetResolveCoincidentTopologyPointOffsetParameter(
double units);
359 static void GetResolveCoincidentTopologyPointOffsetParameter(
double& units);
367 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
368 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
376 void GetCoincidentTopologyPolygonOffsetParameters(
double& factor,
double& units);
377 void GetCoincidentTopologyLineOffsetParameters(
double& factor,
double& units);
378 void GetCoincidentTopologyPointOffsetParameter(
double& units);
389 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
390 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
398 static void SetResolveCoincidentTopologyZShift(
double val);
399 static double GetResolveCoincidentTopologyZShift();
415 vtkGetMacro(RenderTime,
double);
453 virtual bool HasOpaqueGeometry();
454 virtual bool HasTranslucentPolygonalGeometry();
470 std::vector<unsigned int>& ,
vtkProp* )
482 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
488 void ClearColorArrays();
538 double ScalarRange[2];
568 void operator=(
const vtkMapper&) =
delete;
571 VTK_ABI_NAMESPACE_END
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
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...
vtkDataSet * GetDataSetInput()
Get the input to this mapper as a vtkDataSet, instead of as a more specialized data type that the sub...
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