56 #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 128 virtual void CreateDefaultLookupTable();
164 vtkSetMacro(ColorMode,
int);
165 vtkGetMacro(ColorMode,
int);
177 const char *GetColorModeAsString();
186 vtkSetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
187 vtkGetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
188 vtkBooleanMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
200 vtkSetMacro(UseLookupTableScalarRange,
vtkTypeBool);
201 vtkGetMacro(UseLookupTableScalarRange,
vtkTypeBool);
202 vtkBooleanMacro(UseLookupTableScalarRange,
vtkTypeBool);
211 vtkSetVector2Macro(ScalarRange,
double);
212 vtkGetVectorMacro(ScalarRange,
double, 2);
240 vtkSetMacro(ScalarMode,
int);
241 vtkGetMacro(ScalarMode,
int);
261 void SelectColorArray(
int arrayNum);
262 void SelectColorArray(
const char* arrayName);
272 vtkSetMacro(FieldDataTupleId,
vtkIdType);
273 vtkGetMacro(FieldDataTupleId,
vtkIdType);
281 void ColorByArrayComponent(
int arrayNum,
int component);
282 void ColorByArrayComponent(
const char* arrayName,
int component);
288 vtkGetStringMacro(ArrayName);
289 vtkSetStringMacro(ArrayName);
290 vtkGetMacro(ArrayId,
int);
291 vtkSetMacro(ArrayId,
int);
292 vtkGetMacro(ArrayAccessMode,
int);
293 vtkSetMacro(ArrayAccessMode,
int);
294 vtkGetMacro(ArrayComponent,
int);
295 vtkSetMacro(ArrayComponent,
int);
300 const char *GetScalarModeAsString();
313 static void SetResolveCoincidentTopology(
int val);
314 static int GetResolveCoincidentTopology();
315 static void SetResolveCoincidentTopologyToDefault();
330 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
331 double factor,
double units);
332 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
333 double& factor,
double& units);
341 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
342 double factor,
double units);
343 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
344 double& factor,
double& units);
353 static void SetResolveCoincidentTopologyLineOffsetParameters(
354 double factor,
double units);
355 static void GetResolveCoincidentTopologyLineOffsetParameters(
356 double& factor,
double& units);
364 void SetRelativeCoincidentTopologyLineOffsetParameters(
365 double factor,
double units);
366 void GetRelativeCoincidentTopologyLineOffsetParameters(
367 double& factor,
double& units);
376 static void SetResolveCoincidentTopologyPointOffsetParameter(
378 static void GetResolveCoincidentTopologyPointOffsetParameter(
387 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
388 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
396 void GetCoincidentTopologyPolygonOffsetParameters(
397 double& factor,
double& units);
398 void GetCoincidentTopologyLineOffsetParameters(
399 double& factor,
double& units);
400 void GetCoincidentTopologyPointOffsetParameter(
double& units);
411 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
412 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
420 static void SetResolveCoincidentTopologyZShift(
double val);
421 static double GetResolveCoincidentTopologyZShift();
438 vtkGetMacro(RenderTime,
double);
453 {
return this->GetInput(); }
481 virtual bool GetIsOpaque();
497 std::vector<unsigned int> & ,
508 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
514 void ClearColorArrays();
549 double ScalarRange[2];
577 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()
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
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
void GetBounds(double bounds[6]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
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