56 #include "vtkRenderingCoreModule.h" 61 #define VTK_RESOLVE_OFF 0 62 #define VTK_RESOLVE_POLYGON_OFFSET 1 63 #define VTK_RESOLVE_SHIFT_ZBUFFER 2 65 #define VTK_GET_ARRAY_BY_ID 0 66 #define VTK_GET_ARRAY_BY_NAME 1 68 #define VTK_MATERIALMODE_DEFAULT 0 69 #define VTK_MATERIALMODE_AMBIENT 1 70 #define VTK_MATERIALMODE_DIFFUSE 2 71 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3 125 virtual void CreateDefaultLookupTable();
161 vtkSetMacro(ColorMode,
int);
162 vtkGetMacro(ColorMode,
int);
174 const char *GetColorModeAsString();
183 vtkSetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
184 vtkGetMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
185 vtkBooleanMacro(InterpolateScalarsBeforeMapping,
vtkTypeBool);
197 vtkSetMacro(UseLookupTableScalarRange,
vtkTypeBool);
198 vtkGetMacro(UseLookupTableScalarRange,
vtkTypeBool);
199 vtkBooleanMacro(UseLookupTableScalarRange,
vtkTypeBool);
208 vtkSetVector2Macro(ScalarRange,
double);
209 vtkGetVectorMacro(ScalarRange,
double, 2);
237 vtkSetMacro(ScalarMode,
int);
238 vtkGetMacro(ScalarMode,
int);
258 void SelectColorArray(
int arrayNum);
259 void SelectColorArray(
const char* arrayName);
269 vtkSetMacro(FieldDataTupleId,
vtkIdType);
270 vtkGetMacro(FieldDataTupleId,
vtkIdType);
278 void ColorByArrayComponent(
int arrayNum,
int component);
279 void ColorByArrayComponent(
const char* arrayName,
int component);
285 vtkGetStringMacro(ArrayName);
286 vtkSetStringMacro(ArrayName);
287 vtkGetMacro(ArrayId,
int);
288 vtkSetMacro(ArrayId,
int);
289 vtkGetMacro(ArrayAccessMode,
int);
290 vtkSetMacro(ArrayAccessMode,
int);
291 vtkGetMacro(ArrayComponent,
int);
292 vtkSetMacro(ArrayComponent,
int);
297 const char *GetScalarModeAsString();
310 static void SetResolveCoincidentTopology(
int val);
311 static int GetResolveCoincidentTopology();
312 static void SetResolveCoincidentTopologyToDefault();
327 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
328 double factor,
double units);
329 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
330 double& factor,
double& units);
338 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
339 double factor,
double units);
340 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
341 double& factor,
double& units);
350 static void SetResolveCoincidentTopologyLineOffsetParameters(
351 double factor,
double units);
352 static void GetResolveCoincidentTopologyLineOffsetParameters(
353 double& factor,
double& units);
361 void SetRelativeCoincidentTopologyLineOffsetParameters(
362 double factor,
double units);
363 void GetRelativeCoincidentTopologyLineOffsetParameters(
364 double& factor,
double& units);
373 static void SetResolveCoincidentTopologyPointOffsetParameter(
375 static void GetResolveCoincidentTopologyPointOffsetParameter(
384 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
385 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
393 void GetCoincidentTopologyPolygonOffsetParameters(
394 double& factor,
double& units);
395 void GetCoincidentTopologyLineOffsetParameters(
396 double& factor,
double& units);
397 void GetCoincidentTopologyPointOffsetParameter(
double& units);
408 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
409 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
417 static void SetResolveCoincidentTopologyZShift(
double val);
418 static double GetResolveCoincidentTopologyZShift();
426 void GetBounds(
double bounds[6])
override 435 vtkGetMacro(RenderTime,
double);
450 {
return this->GetInput(); }
478 virtual bool GetIsOpaque();
497 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
503 void ClearColorArrays();
538 double ScalarRange[2];
566 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