51 #include "vtkRenderingCoreModule.h"
56 #define VTK_RESOLVE_OFF 0
57 #define VTK_RESOLVE_POLYGON_OFFSET 1
58 #define VTK_RESOLVE_SHIFT_ZBUFFER 2
60 #define VTK_GET_ARRAY_BY_ID 0
61 #define VTK_GET_ARRAY_BY_NAME 1
63 #define VTK_MATERIALMODE_DEFAULT 0
64 #define VTK_MATERIALMODE_AMBIENT 1
65 #define VTK_MATERIALMODE_DIFFUSE 2
66 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3
158 vtkSetMacro(ColorMode,
int);
159 vtkGetMacro(ColorMode,
int);
202 vtkSetVector2Macro(ScalarRange,
double);
203 vtkGetVectorMacro(ScalarRange,
double, 2);
231 vtkSetMacro(ScalarMode,
int);
232 vtkGetMacro(ScalarMode,
int);
278 vtkGetStringMacro(ArrayName);
279 vtkSetStringMacro(ArrayName);
280 vtkGetMacro(ArrayId,
int);
281 vtkSetMacro(ArrayId,
int);
282 vtkGetMacro(ArrayAccessMode,
int);
283 vtkSetMacro(ArrayAccessMode,
int);
284 vtkGetMacro(ArrayComponent,
int);
285 vtkSetMacro(ArrayComponent,
int);
418 vtkGetMacro(RenderTime,
double);
471 std::vector<unsigned int>& ,
vtkProp* )
524 double ScalarRange[2];
552 void operator=(
const vtkMapper&) =
delete;
Abstract superclass for all arrays.
abstract class specifies interface to map 3D data
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
abstract class specifies interface to map data
represents an object (geometry & properties) in a rendered scene
general representation of visualization data
abstract class to specify dataset behavior
dynamic, self-adjusting array of float
topologically and geometrically regular array of data
a simple class to control print indentation
abstract class specifies interface to map data to graphics primitives
virtual bool HasOpaqueGeometry()
Some introspection on the type of data the mapper will render used by props to determine if they shou...
virtual int CanUseTextureMapForColoring(vtkDataObject *input)
Returns if we can use texture maps for scalar coloring.
void GetCoincidentTopologyLineOffsetParameters(double &factor, double &units)
static int GetResolveCoincidentTopology()
void SelectColorArray(const char *arrayName)
void SetScalarModeToUsePointFieldData()
vtkScalarsToColors * LookupTable
double CoincidentPolygonFactor
void SetColorModeToMapScalars()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetScalarModeToUseCellData()
vtkUnsignedCharArray * GetColorMapColors()
Provide read access to the color array.
void SetLookupTable(vtkScalarsToColors *lut)
Specify a lookup table for the mapper to use.
vtkTypeBool InterpolateScalarsBeforeMapping
void SetColorModeToDefault()
void SelectColorArray(int arrayNum)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
vtkTypeBool UseLookupTableScalarRange
void SetScalarModeToDefault()
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
static void GetResolveCoincidentTopologyLineOffsetParameters(double &factor, double &units)
void GetCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
Get the net parameters for handling coincident topology obtained by summing the global values with th...
virtual void CreateDefaultLookupTable()
Create default lookup table.
void SetScalarModeToUseCellFieldData()
void MapScalarsToTexture(vtkAbstractArray *scalars, double alpha)
virtual vtkUnsignedCharArray * MapScalars(vtkDataSet *input, double alpha, int &cellFlag)
static void GetResolveCoincidentTopologyPointOffsetParameter(double &units)
static void SetResolveCoincidentTopologyToDefault()
virtual bool HasTranslucentPolygonalGeometry()
vtkImageData * ColorTextureMap
void ColorByArrayComponent(int arrayNum, int component)
Legacy: These methods used to be used to specify the array component.
void GetRelativeCoincidentTopologyPointOffsetParameter(double &units)
void SetColorModeToDirectScalars()
virtual vtkUnsignedCharArray * MapScalars(vtkDataSet *input, double alpha)
virtual vtkUnsignedCharArray * MapScalars(double alpha)
Map the scalars (if there are any scalars and ScalarVisibility is on) through the lookup table,...
void SetScalarModeToUseFieldData()
static double GetResolveCoincidentTopologyZShift()
static void SetResolveCoincidentTopologyPolygonOffsetParameters(double factor, double units)
Used to set the polygon offset scale factor and units.
void SetRelativeCoincidentTopologyLineOffsetParameters(double factor, double units)
Used to set the line offset values relative to the global Used when ResolveCoincidentTopology is set ...
vtkDataSet * GetInput()
Get the input as a vtkDataSet.
void SetRenderTime(double time)
This instance variable is used by vtkLODActor to determine which mapper to use.
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...
void GetRelativeCoincidentTopologyLineOffsetParameters(double &factor, double &units)
vtkUnsignedCharArray * Colors
static void SetResolveCoincidentTopologyToOff()
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
vtkTypeBool ScalarVisibility
vtkMTimeType GetMTime() override
Overload standard modified time function.
vtkIdType FieldDataTupleId
double CoincidentPointOffset
static void SetResolveCoincidentTopologyToPolygonOffset()
static void SetResolveCoincidentTopologyToShiftZBuffer()
void ColorByArrayComponent(const char *arrayName, int component)
void GetRelativeCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
static int GetResolveCoincidentTopologyPolygonOffsetFaces()
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 ...
double CoincidentLineOffset
void SetRelativeCoincidentTopologyPointOffsetParameter(double units)
Used to set the point offset value relative to the global Used when ResolveCoincidentTopology is set ...
virtual vtkUnsignedCharArray * MapScalars(double alpha, int &cellFlag)
static void SetResolveCoincidentTopologyPointOffsetParameter(double units)
Used to set the point offset value Used when ResolveCoincidentTopology is set to PolygonOffset.
vtkImageData * GetColorTextureMap()
Provide read access to the color texture array.
vtkFloatArray * ColorCoordinates
void SetRelativeCoincidentTopologyPolygonOffsetParameters(double factor, double units)
Used to set the polygon offset values relative to the global Used when ResolveCoincidentTopology is s...
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
void SetScalarModeToUsePointData()
vtkDataSet * GetInputAsDataSet()
Get the input to this mapper as a vtkDataSet, instead of as a more specialized data type that the sub...
static void SetResolveCoincidentTopologyLineOffsetParameters(double factor, double units)
Used to set the line offset scale factor and units.
static void SetResolveCoincidentTopologyPolygonOffsetFaces(int faces)
Used when ResolveCoincidentTopology is set to PolygonOffset.
static void GetResolveCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
void GetCoincidentTopologyPointOffsetParameter(double &units)
double CoincidentLineFactor
static void SetResolveCoincidentTopologyZShift(double val)
Used to set the z-shift if ResolveCoincidentTopology is set to ShiftZBuffer.
const char * GetScalarModeAsString()
Return the method for obtaining scalar data.
vtkScalarsToColors * GetLookupTable()
vtkFloatArray * GetColorCoordinates()
Provide read access to the color texture coordinate array.
double CoincidentPolygonOffset
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
void ClearColorArrays()
Call to force a rebuild of color result arrays on next MapScalars.
const char * GetColorModeAsString()
Return the method of coloring scalar data.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
abstract superclass for all actors, volumes and annotations
abstract specification for renderers
Superclass for mapping scalar values to colors.
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
window superclass for vtkRenderWindow
#define VTK_SCALAR_MODE_DEFAULT
#define VTK_SCALAR_MODE_USE_POINT_DATA
#define VTK_SCALAR_MODE_USE_FIELD_DATA
#define VTK_SCALAR_MODE_USE_CELL_DATA
#define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA
#define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
#define VTK_RESOLVE_POLYGON_OFFSET
#define VTK_RESOLVE_SHIFT_ZBUFFER
#define VTK_COLOR_MODE_MAP_SCALARS
#define VTK_COLOR_MODE_DEFAULT
#define VTK_COLOR_MODE_DIRECT_SCALARS
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)