Go to the documentation of this file.
50 #include "vtkRenderingCoreModule.h"
56 #define VTK_RESOLVE_OFF 0
57 #define VTK_RESOLVE_POLYGON_OFFSET 1
58 #define VTK_RESOLVE_SHIFT_ZBUFFER 2
60 #define VTK_GET_ARRAY_BY_ID 0
61 #define VTK_GET_ARRAY_BY_NAME 1
63 #define VTK_MATERIALMODE_DEFAULT 0
64 #define VTK_MATERIALMODE_AMBIENT 1
65 #define VTK_MATERIALMODE_DIFFUSE 2
66 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3
122 virtual void CreateDefaultLookupTable();
158 vtkSetMacro(ColorMode,
int);
159 vtkGetMacro(ColorMode,
int);
171 const char *GetColorModeAsString();
180 vtkSetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
181 vtkGetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
182 vtkBooleanMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
194 vtkSetMacro(UseLookupTableScalarRange,
vtkTypeBool);
195 vtkGetMacro(UseLookupTableScalarRange,
vtkTypeBool);
196 vtkBooleanMacro(UseLookupTableScalarRange,
vtkTypeBool);
205 vtkSetVector2Macro(ScalarRange,
double);
206 vtkGetVectorMacro(ScalarRange,
double, 2);
234 vtkSetMacro(ScalarMode,
int);
235 vtkGetMacro(ScalarMode,
int);
255 void SelectColorArray(
int arrayNum);
256 void SelectColorArray(
const char* arrayName);
266 vtkSetMacro(FieldDataTupleId,
vtkIdType);
267 vtkGetMacro(FieldDataTupleId,
vtkIdType);
275 void ColorByArrayComponent(
int arrayNum,
int component);
276 void ColorByArrayComponent(
const char* arrayName,
int component);
282 vtkGetStringMacro(ArrayName);
283 vtkSetStringMacro(ArrayName);
284 vtkGetMacro(ArrayId,
int);
285 vtkSetMacro(ArrayId,
int);
286 vtkGetMacro(ArrayAccessMode,
int);
287 vtkSetMacro(ArrayAccessMode,
int);
288 vtkGetMacro(ArrayComponent,
int);
289 vtkSetMacro(ArrayComponent,
int);
294 const char *GetScalarModeAsString();
307 static void SetResolveCoincidentTopology(
int val);
308 static int GetResolveCoincidentTopology();
309 static void SetResolveCoincidentTopologyToDefault();
324 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
325 double factor,
double units);
326 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
327 double& factor,
double& units);
335 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
336 double factor,
double units);
337 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
338 double& factor,
double& units);
347 static void SetResolveCoincidentTopologyLineOffsetParameters(
348 double factor,
double units);
349 static void GetResolveCoincidentTopologyLineOffsetParameters(
350 double& factor,
double& units);
358 void SetRelativeCoincidentTopologyLineOffsetParameters(
359 double factor,
double units);
360 void GetRelativeCoincidentTopologyLineOffsetParameters(
361 double& factor,
double& units);
370 static void SetResolveCoincidentTopologyPointOffsetParameter(
372 static void GetResolveCoincidentTopologyPointOffsetParameter(
381 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
382 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
390 void GetCoincidentTopologyPolygonOffsetParameters(
391 double& factor,
double& units);
392 void GetCoincidentTopologyLineOffsetParameters(
393 double& factor,
double& units);
394 void GetCoincidentTopologyPointOffsetParameter(
double& units);
405 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
406 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
414 static void SetResolveCoincidentTopologyZShift(
double val);
415 static double GetResolveCoincidentTopologyZShift();
423 void GetBounds(
double bounds[6])
override
432 vtkGetMacro(RenderTime,
double);
447 {
return this->GetInput(); }
475 virtual bool GetIsOpaque();
491 std::vector<unsigned int> & ,
502 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
508 void ClearColorArrays();
543 double ScalarRange[2];
571 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
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()
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
abstract class specifies interface to map data
vtkTypeUInt32 vtkMTimeType
void SetScalarModeToUseCellFieldData()