50 #include "vtkRenderingCoreModule.h" 55 #define VTK_RESOLVE_OFF 0 56 #define VTK_RESOLVE_POLYGON_OFFSET 1 57 #define VTK_RESOLVE_SHIFT_ZBUFFER 2 59 #define VTK_GET_ARRAY_BY_ID 0 60 #define VTK_GET_ARRAY_BY_NAME 1 62 #define VTK_MATERIALMODE_DEFAULT 0 63 #define VTK_MATERIALMODE_AMBIENT 1 64 #define VTK_MATERIALMODE_DIFFUSE 2 65 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3 119 virtual void CreateDefaultLookupTable();
155 vtkSetMacro(ColorMode,
int);
156 vtkGetMacro(ColorMode,
int);
168 const char *GetColorModeAsString();
177 vtkSetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
178 vtkGetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
179 vtkBooleanMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
191 vtkSetMacro(UseLookupTableScalarRange,
vtkTypeBool);
192 vtkGetMacro(UseLookupTableScalarRange,
vtkTypeBool);
193 vtkBooleanMacro(UseLookupTableScalarRange,
vtkTypeBool);
202 vtkSetVector2Macro(ScalarRange,
double);
203 vtkGetVectorMacro(ScalarRange,
double, 2);
231 vtkSetMacro(ScalarMode,
int);
232 vtkGetMacro(ScalarMode,
int);
252 void SelectColorArray(
int arrayNum);
253 void SelectColorArray(
const char* arrayName);
263 vtkSetMacro(FieldDataTupleId,
vtkIdType);
264 vtkGetMacro(FieldDataTupleId,
vtkIdType);
272 void ColorByArrayComponent(
int arrayNum,
int component);
273 void ColorByArrayComponent(
const char* arrayName,
int component);
279 vtkGetStringMacro(ArrayName);
280 vtkSetStringMacro(ArrayName);
281 vtkGetMacro(ArrayId,
int);
282 vtkSetMacro(ArrayId,
int);
283 vtkGetMacro(ArrayAccessMode,
int);
284 vtkSetMacro(ArrayAccessMode,
int);
285 vtkGetMacro(ArrayComponent,
int);
286 vtkSetMacro(ArrayComponent,
int);
291 const char *GetScalarModeAsString();
304 static void SetResolveCoincidentTopology(
int val);
305 static int GetResolveCoincidentTopology();
306 static void SetResolveCoincidentTopologyToDefault();
321 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
322 double factor,
double units);
323 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
324 double& factor,
double& units);
332 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
333 double factor,
double units);
334 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
335 double& factor,
double& units);
344 static void SetResolveCoincidentTopologyLineOffsetParameters(
345 double factor,
double units);
346 static void GetResolveCoincidentTopologyLineOffsetParameters(
347 double& factor,
double& units);
355 void SetRelativeCoincidentTopologyLineOffsetParameters(
356 double factor,
double units);
357 void GetRelativeCoincidentTopologyLineOffsetParameters(
358 double& factor,
double& units);
367 static void SetResolveCoincidentTopologyPointOffsetParameter(
369 static void GetResolveCoincidentTopologyPointOffsetParameter(
378 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
379 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
387 void GetCoincidentTopologyPolygonOffsetParameters(
388 double& factor,
double& units);
389 void GetCoincidentTopologyLineOffsetParameters(
390 double& factor,
double& units);
391 void GetCoincidentTopologyPointOffsetParameter(
double& units);
402 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
403 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
411 static void SetResolveCoincidentTopologyZShift(
double val);
412 static double GetResolveCoincidentTopologyZShift();
420 void GetBounds(
double bounds[6])
override 429 vtkGetMacro(RenderTime,
double);
444 {
return this->GetInput(); }
472 virtual bool GetIsOpaque();
491 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
497 void ClearColorArrays();
532 double ScalarRange[2];
560 void operator=(
const vtkMapper&) =
delete;
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()
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
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...
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
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