58 #include "vtkRenderingCoreModule.h" 63 #define VTK_RESOLVE_OFF 0 64 #define VTK_RESOLVE_POLYGON_OFFSET 1 65 #define VTK_RESOLVE_SHIFT_ZBUFFER 2 67 #define VTK_GET_ARRAY_BY_ID 0 68 #define VTK_GET_ARRAY_BY_NAME 1 70 #define VTK_MATERIALMODE_DEFAULT 0 71 #define VTK_MATERIALMODE_AMBIENT 1 72 #define VTK_MATERIALMODE_DIFFUSE 2 73 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3 113 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE {}
127 virtual void CreateDefaultLookupTable();
134 vtkGetMacro(ScalarVisibility,
int);
146 vtkGetMacro(Static,
int);
164 vtkGetMacro(ColorMode,
int);
176 const char *GetColorModeAsString();
186 vtkGetMacro(InterpolateScalarsBeforeMapping,
int);
200 vtkGetMacro(UseLookupTableScalarRange,
int);
210 vtkSetVector2Macro(ScalarRange,
double);
211 vtkGetVectorMacro(ScalarRange,
double, 2);
224 vtkGetMacro(ImmediateModeRendering,
int);
237 static void SetGlobalImmediateModeRendering(
int val);
242 static int GetGlobalImmediateModeRendering();
255 vtkGetMacro(ForceCompileOnly,
int);
256 void SetForceCompileOnly(
int value);
285 vtkGetMacro(ScalarMode,
int);
305 void SelectColorArray(
int arrayNum);
306 void SelectColorArray(
const char* arrayName);
317 vtkGetMacro(FieldDataTupleId,
vtkIdType);
325 void ColorByArrayComponent(
int arrayNum,
int component);
326 void ColorByArrayComponent(
const char* arrayName,
int component);
333 vtkSetStringMacro(ArrayName);
334 vtkGetMacro(ArrayId,
int);
336 vtkGetMacro(ArrayAccessMode,
int);
338 vtkGetMacro(ArrayComponent,
int);
344 const char *GetScalarModeAsString();
359 static void SetResolveCoincidentTopology(
int val);
360 static int GetResolveCoincidentTopology();
361 static void SetResolveCoincidentTopologyToDefault();
376 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
377 double factor,
double units);
378 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
379 double& factor,
double& units);
387 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
388 double factor,
double units);
389 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
390 double& factor,
double& units);
399 static void SetResolveCoincidentTopologyLineOffsetParameters(
400 double factor,
double units);
401 static void GetResolveCoincidentTopologyLineOffsetParameters(
402 double& factor,
double& units);
410 void SetRelativeCoincidentTopologyLineOffsetParameters(
411 double factor,
double units);
412 void GetRelativeCoincidentTopologyLineOffsetParameters(
413 double& factor,
double& units);
422 static void SetResolveCoincidentTopologyPointOffsetParameter(
424 static void GetResolveCoincidentTopologyPointOffsetParameter(
433 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
434 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
442 void GetCoincidentTopologyPolygonOffsetParameters(
443 double& factor,
double& units);
444 void GetCoincidentTopologyLineOffsetParameters(
445 double& factor,
double& units);
446 void GetCoincidentTopologyPointOffsetParameter(
double& units);
457 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
458 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
466 static void SetResolveCoincidentTopologyZShift(
double val);
467 static double GetResolveCoincidentTopologyZShift();
475 void GetBounds(
double bounds[6]) VTK_OVERRIDE
484 vtkGetMacro(RenderTime,
double);
499 {
return this->GetInput(); }
524 vtkGetMacro(ScalarMaterialMode,
int);
538 const char *GetScalarMaterialModeAsString();
548 virtual bool GetIsOpaque();
567 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
573 void ClearColorArrays();
598 int InterpolateScalarsBeforeMapping;
606 int ScalarVisibility;
608 double ScalarRange[2];
609 int UseLookupTableScalarRange;
610 int ImmediateModeRendering;
613 int ScalarMaterialMode;
629 int ForceCompileOnly;
631 double CoincidentPolygonFactor;
632 double CoincidentPolygonOffset;
633 double CoincidentLineFactor;
634 double CoincidentLineOffset;
635 double CoincidentPointOffset;
639 void operator=(const
vtkMapper&) VTK_DELETE_FUNCTION;
#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
void SetScalarMaterialModeToAmbientAndDiffuse()
Set/Get the light-model color mode.
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
#define VTK_RESOLVE_SHIFT_ZBUFFER
void SetScalarMaterialModeToDiffuse()
Set/Get the light-model color mode.
static void GlobalImmediateModeRenderingOff()
Turn on/off flag to control whether data is rendered using immediate mode or note.
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()
void SetColorModeToDirectScalars()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
#define VTK_MATERIALMODE_DIFFUSE
Superclass for mapping scalar values to colors.
window superclass for vtkRenderWindow
void SetScalarMaterialModeToAmbient()
Set/Get the light-model color mode.
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()
topologically and geometrically regular array of data
#define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
#define VTK_MATERIALMODE_AMBIENT
static void SetGlobalImmediateModeRendering(int val)
Turn on/off flag to control whether data is rendered using immediate mode or note.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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_SCALAR_MODE_USE_FIELD_DATA
abstract class specifies interface to map data to graphics primitives
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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...
#define VTK_MATERIALMODE_DEFAULT
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
void SetScalarMaterialModeToDefault()
Set/Get the light-model color mode.
#define VTK_SCALAR_MODE_USE_CELL_DATA
#define VTK_RESOLVE_POLYGON_OFFSET
general representation of visualization data
void SetScalarModeToUseCellFieldData()
static void GlobalImmediateModeRenderingOn()
Turn on/off flag to control whether data is rendered using immediate mode or note.
#define VTK_SCALAR_MODE_DEFAULT
#define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE