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();
132 vtkGetMacro(ScalarVisibility,
int);
144 vtkGetMacro(Static,
int);
162 vtkGetMacro(ColorMode,
int);
174 const char *GetColorModeAsString();
184 vtkGetMacro(InterpolateScalarsBeforeMapping,
int);
198 vtkGetMacro(UseLookupTableScalarRange,
int);
208 vtkSetVector2Macro(ScalarRange,
double);
209 vtkGetVectorMacro(ScalarRange,
double, 2);
221 VTK_LEGACY(
void SetImmediateModeRendering(
int));
222 VTK_LEGACY(
int GetImmediateModeRendering());
223 VTK_LEGACY(
void ImmediateModeRenderingOn());
224 VTK_LEGACY(
void ImmediateModeRenderingOff());
236 VTK_LEGACY(
static void SetGlobalImmediateModeRendering(
int val));
237 VTK_LEGACY(
static void GlobalImmediateModeRenderingOn());
238 VTK_LEGACY(
static void GlobalImmediateModeRenderingOff());
239 VTK_LEGACY(
static int GetGlobalImmediateModeRendering());
252 VTK_LEGACY(
int GetForceCompileOnly());
253 VTK_LEGACY(
void SetForceCompileOnly(
int value));
282 vtkGetMacro(ScalarMode,
int);
302 void SelectColorArray(
int arrayNum);
303 void SelectColorArray(
const char* arrayName);
314 vtkGetMacro(FieldDataTupleId,
vtkIdType);
322 void ColorByArrayComponent(
int arrayNum,
int component);
323 void ColorByArrayComponent(
const char* arrayName,
int component);
330 vtkSetStringMacro(ArrayName);
331 vtkGetMacro(ArrayId,
int);
333 vtkGetMacro(ArrayAccessMode,
int);
335 vtkGetMacro(ArrayComponent,
int);
341 const char *GetScalarModeAsString();
356 static void SetResolveCoincidentTopology(
int val);
357 static int GetResolveCoincidentTopology();
358 static void SetResolveCoincidentTopologyToDefault();
373 static void SetResolveCoincidentTopologyPolygonOffsetParameters(
374 double factor,
double units);
375 static void GetResolveCoincidentTopologyPolygonOffsetParameters(
376 double& factor,
double& units);
384 void SetRelativeCoincidentTopologyPolygonOffsetParameters(
385 double factor,
double units);
386 void GetRelativeCoincidentTopologyPolygonOffsetParameters(
387 double& factor,
double& units);
396 static void SetResolveCoincidentTopologyLineOffsetParameters(
397 double factor,
double units);
398 static void GetResolveCoincidentTopologyLineOffsetParameters(
399 double& factor,
double& units);
407 void SetRelativeCoincidentTopologyLineOffsetParameters(
408 double factor,
double units);
409 void GetRelativeCoincidentTopologyLineOffsetParameters(
410 double& factor,
double& units);
419 static void SetResolveCoincidentTopologyPointOffsetParameter(
421 static void GetResolveCoincidentTopologyPointOffsetParameter(
430 void SetRelativeCoincidentTopologyPointOffsetParameter(
double units);
431 void GetRelativeCoincidentTopologyPointOffsetParameter(
double& units);
439 void GetCoincidentTopologyPolygonOffsetParameters(
440 double& factor,
double& units);
441 void GetCoincidentTopologyLineOffsetParameters(
442 double& factor,
double& units);
443 void GetCoincidentTopologyPointOffsetParameter(
double& units);
454 static void SetResolveCoincidentTopologyPolygonOffsetFaces(
int faces);
455 static int GetResolveCoincidentTopologyPolygonOffsetFaces();
463 static void SetResolveCoincidentTopologyZShift(
double val);
464 static double GetResolveCoincidentTopologyZShift();
481 vtkGetMacro(RenderTime,
double);
496 {
return this->GetInput(); }
520 VTK_LEGACY(
void SetScalarMaterialMode(
int val));
521 VTK_LEGACY(
int GetScalarMaterialMode());
522 VTK_LEGACY(
void SetScalarMaterialModeToDefault());
523 VTK_LEGACY(
void SetScalarMaterialModeToAmbient());
524 VTK_LEGACY(
void SetScalarMaterialModeToDiffuse());
525 VTK_LEGACY(
void SetScalarMaterialModeToAmbientAndDiffuse());
531 VTK_LEGACY(
const char *GetScalarMaterialModeAsString());
541 virtual bool GetIsOpaque();
560 virtual int CanUseTextureMapForColoring(
vtkDataObject* input);
566 void ClearColorArrays();
601 double ScalarRange[2];
604 #ifndef VTK_LEGACY_REMOVE 634 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
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
void GetBounds(double bounds[6]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
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
int ImmediateModeRendering
double CoincidentPolygonOffset
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
int InterpolateScalarsBeforeMapping
#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...
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
vtkFloatArray * ColorCoordinates
int UseLookupTableScalarRange
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...
#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