 |
VTK
9.1.0
|
Go to the documentation of this file.
140 #include "vtkRenderingCoreModule.h"
145 #define VTK_RESOLVE_OFF 0
146 #define VTK_RESOLVE_POLYGON_OFFSET 1
147 #define VTK_RESOLVE_SHIFT_ZBUFFER 2
149 #define VTK_GET_ARRAY_BY_ID 0
150 #define VTK_GET_ARRAY_BY_NAME 1
152 #define VTK_MATERIALMODE_DEFAULT 0
153 #define VTK_MATERIALMODE_AMBIENT 1
154 #define VTK_MATERIALMODE_DIFFUSE 2
155 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3
248 vtkSetMacro(ColorMode,
int);
249 vtkGetMacro(ColorMode,
int);
292 vtkSetVector2Macro(ScalarRange,
double);
293 vtkGetVectorMacro(ScalarRange,
double, 2);
321 vtkSetMacro(ScalarMode,
int);
322 vtkGetMacro(ScalarMode,
int);
368 vtkGetStringMacro(ArrayName);
369 vtkSetStringMacro(ArrayName);
370 vtkGetMacro(ArrayId,
int);
371 vtkSetMacro(ArrayId,
int);
372 vtkGetMacro(ArrayAccessMode,
int);
373 vtkSetMacro(ArrayAccessMode,
int);
374 vtkGetMacro(ArrayComponent,
int);
375 vtkSetMacro(ArrayComponent,
int);
508 vtkGetMacro(RenderTime,
double);
561 std::vector<unsigned int>& ,
vtkProp* )
623 double ScalarRange[2];
653 void operator=(
const vtkMapper&) =
delete;
static void SetResolveCoincidentTopologyToOff()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
#define VTK_SCALAR_MODE_DEFAULT
virtual vtkUnsignedCharArray * MapScalars(double alpha, int &cellFlag)
Map the scalars (if there are any scalars and ScalarVisibility is on) through the lookup table,...
void GetCoincidentTopologyPointOffsetParameter(double &units)
Get the net parameters for handling coincident topology obtained by summing the global values with th...
vtkMTimeType GetMTime() override
Overload standard modified time function.
void SetScalarModeToUsePointData()
#define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA
void ColorByArrayComponent(const char *arrayName, int component)
Legacy: These methods used to be used to specify the array component.
#define VTK_SCALAR_MODE_USE_POINT_DATA
void GetRelativeCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
Used to set the polygon offset values relative to the global Used when ResolveCoincidentTopology is s...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_COLOR_MODE_MAP_SCALARS
const char * GetColorModeAsString()
Return the method of coloring scalar data.
static void SetResolveCoincidentTopologyToShiftZBuffer()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
static void SetResolveCoincidentTopology(int val)
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
virtual vtkUnsignedCharArray * MapScalars(vtkDataSet *input, double alpha)
Map the scalars (if there are any scalars and ScalarVisibility is on) through the lookup table,...
void SetColorModeToDefault()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
#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,...
static void SetResolveCoincidentTopologyPointOffsetParameter(double units)
Used to set the point offset value Used when ResolveCoincidentTopology is set to PolygonOffset.
double CoincidentPointOffset
const char * GetScalarModeAsString()
Return the method for obtaining scalar data.
#define VTK_RESOLVE_POLYGON_OFFSET
void SetLookupTable(vtkScalarsToColors *lut)
Specify a lookup table for the mapper to use.
dynamic, self-adjusting array of float
static int GetResolveCoincidentTopology()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
static void GetResolveCoincidentTopologyLineOffsetParameters(double &factor, double &units)
Used to set the line offset scale factor and units.
vtkImageData * GetColorTextureMap()
Provide read access to the color texture array.
vtkScalarsToColors * GetLookupTable()
Specify a lookup table for the mapper to use.
record modification and/or execution time
void SetRelativeCoincidentTopologyLineOffsetParameters(double factor, double units)
Used to set the line offset values relative to the global Used when ResolveCoincidentTopology is set ...
dynamic, self-adjusting array of unsigned char
void ColorByArrayComponent(int arrayNum, int component)
Legacy: These methods used to be used to specify the array component.
static void SetResolveCoincidentTopologyPolygonOffsetFaces(int faces)
Used when ResolveCoincidentTopology is set to PolygonOffset.
vtkImageData * ColorTextureMap
double CoincidentPolygonOffset
static void GetResolveCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
Used to set the polygon offset scale factor and units.
virtual vtkUnsignedCharArray * MapScalars(double alpha)
Map the scalars (if there are any scalars and ScalarVisibility is on) through the lookup table,...
virtual int CanUseTextureMapForColoring(vtkDataObject *input)
Returns if we can use texture maps for scalar coloring.
data object that represents a "selection" in VTK.
void SetRenderTime(double time)
This instance variable is used by vtkLODActor to determine which mapper to use.
void SelectColorArray(int arrayNum)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
vtkUnsignedCharArray * Colors
vtkUnsignedCharArray * GetColorMapColors()
Provide read access to the color array.
window superclass for vtkRenderWindow
double CoincidentPolygonFactor
void SetScalarModeToDefault()
void GetCoincidentTopologyLineOffsetParameters(double &factor, double &units)
Get the net parameters for handling coincident topology obtained by summing the global values with th...
vtkTypeBool ScalarVisibility
void SetScalarModeToUseCellData()
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
static void SetResolveCoincidentTopologyLineOffsetParameters(double factor, double units)
Used to set the line offset scale factor and units.
#define VTK_SCALAR_MODE_USE_CELL_DATA
#define VTK_SIZEHINT(...)
vtkTypeBool InterpolateScalarsBeforeMapping
virtual bool HasTranslucentPolygonalGeometry()
Some introspection on the type of data the mapper will render used by props to determine if they shou...
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 ...
void SetRelativeCoincidentTopologyPolygonOffsetParameters(double factor, double units)
Used to set the polygon offset values relative to the global Used when ResolveCoincidentTopology is s...
abstract class specifies interface to map data to graphics primitives
void GetBounds(T a, double bds[6])
#define VTK_SCALAR_MODE_USE_FIELD_DATA
vtkIdType FieldDataTupleId
vtkFloatArray * ColorCoordinates
represents an object (geometry & properties) in a rendered scene
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
topologically and geometrically regular array of data
a simple class to control print indentation
virtual void CreateDefaultLookupTable()
Create default lookup table.
void GetRelativeCoincidentTopologyPointOffsetParameter(double &units)
Used to set the point offset value relative to the global Used when ResolveCoincidentTopology is set ...
Superclass for mapping scalar values to colors.
void SetScalarModeToUseFieldData()
vtkDataSet * GetInput()
Get the input as a vtkDataSet.
void GetRelativeCoincidentTopologyLineOffsetParameters(double &factor, double &units)
Used to set the line offset values relative to the global Used when ResolveCoincidentTopology is set ...
virtual vtkUnsignedCharArray * MapScalars(vtkDataSet *input, double alpha, int &cellFlag)
Map the scalars (if there are any scalars and ScalarVisibility is on) through the lookup table,...
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.
void SetRelativeCoincidentTopologyPointOffsetParameter(double units)
Used to set the point offset value relative to the global Used when ResolveCoincidentTopology is set ...
abstract class to specify dataset behavior
Abstract superclass for all arrays.
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
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()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
#define VTK_COLOR_MODE_DEFAULT
void MapScalarsToTexture(vtkAbstractArray *scalars, double alpha)
abstract class specifies interface to map 3D data
void SetColorModeToMapScalars()
default (ColorModeToDefault), unsigned char scalars are treated as colors, and NOT mapped through the...
double CoincidentLineOffset
static void SetResolveCoincidentTopologyPolygonOffsetParameters(double factor, double units)
Used to set the polygon offset scale factor and units.
static void SetResolveCoincidentTopologyZShift(double val)
Used to set the z-shift if ResolveCoincidentTopology is set to ShiftZBuffer.
static double GetResolveCoincidentTopologyZShift()
Used to set the z-shift if ResolveCoincidentTopology is set to ShiftZBuffer.
static void SetResolveCoincidentTopologyToPolygonOffset()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
abstract specification for renderers
#define VTK_RESOLVE_SHIFT_ZBUFFER
vtkScalarsToColors * LookupTable
vtkTypeBool UseLookupTableScalarRange
#define VTK_COLOR_MODE_DIRECT_SCALARS
double CoincidentLineFactor
static void SetResolveCoincidentTopologyToDefault()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
void SelectColorArray(const char *arrayName)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
static int GetResolveCoincidentTopologyPolygonOffsetFaces()
Used when ResolveCoincidentTopology is set to PolygonOffset.
virtual bool HasOpaqueGeometry()
Some introspection on the type of data the mapper will render used by props to determine if they shou...
void ClearColorArrays()
Call to force a rebuild of color result arrays on next MapScalars.
general representation of visualization data
static void GetResolveCoincidentTopologyPointOffsetParameter(double &units)
Used to set the point offset value Used when ResolveCoincidentTopology is set to PolygonOffset.
virtual void SetSelection(vtkSelection *)
Set/Get selection used to display particular points or cells in a second pass.
vtkFloatArray * GetColorCoordinates()
Provide read access to the color texture coordinate array.
void SetScalarModeToUsePointFieldData()
void GetCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
Get the net parameters for handling coincident topology obtained by summing the global values with th...
abstract class specifies interface to map data
vtkTypeUInt32 vtkMTimeType
void SetScalarModeToUseCellFieldData()