Go to the documentation of this file.
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();
429 void GetBounds(
double bounds[6])
override
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;
static void SetResolveCoincidentTopologyToOff()
#define VTK_SCALAR_MODE_DEFAULT
void SetScalarModeToUsePointData()
#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
#define VTK_RESOLVE_POLYGON_OFFSET
dynamic, self-adjusting array of float
record modification and/or execution time
vtkMTimeType GetMTime() override
Override Modifiedtime as we have added Clipping planes.
dynamic, self-adjusting array of unsigned char
vtkImageData * ColorTextureMap
double CoincidentPolygonOffset
void SetRenderTime(double time)
This instance variable is used by vtkLODActor to determine which mapper to use.
vtkUnsignedCharArray * Colors
window superclass for vtkRenderWindow
double CoincidentPolygonFactor
void SetScalarModeToDefault()
vtkTypeBool ScalarVisibility
void SetScalarModeToUseCellData()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_SCALAR_MODE_USE_CELL_DATA
#define VTK_SIZEHINT(...)
vtkTypeBool InterpolateScalarsBeforeMapping
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 ...
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
virtual void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
Superclass for mapping scalar values to colors.
void SetScalarModeToUseFieldData()
vtkDataSet * GetInputAsDataSet()
Get the input to this mapper as a vtkDataSet, instead of as a more specialized data type that the sub...
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
abstract class to specify dataset behavior
Abstract superclass for all arrays.
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
abstract superclass for all actors, volumes and annotations
void SetColorModeToDirectScalars()
#define VTK_COLOR_MODE_DEFAULT
abstract class specifies interface to map 3D data
void SetColorModeToMapScalars()
double CoincidentLineOffset
static void SetResolveCoincidentTopologyToPolygonOffset()
abstract specification for renderers
#define VTK_RESOLVE_SHIFT_ZBUFFER
vtkScalarsToColors * LookupTable
vtkTypeBool UseLookupTableScalarRange
#define VTK_COLOR_MODE_DIRECT_SCALARS
double CoincidentLineFactor
general representation of visualization data
void SetScalarModeToUsePointFieldData()
abstract class specifies interface to map data
vtkTypeUInt32 vtkMTimeType
void SetScalarModeToUseCellFieldData()