Go to the documentation of this file.
56 #include "vtkRenderingCoreModule.h"
62 #define VTK_RESOLVE_OFF 0
63 #define VTK_RESOLVE_POLYGON_OFFSET 1
64 #define VTK_RESOLVE_SHIFT_ZBUFFER 2
66 #define VTK_GET_ARRAY_BY_ID 0
67 #define VTK_GET_ARRAY_BY_NAME 1
69 #define VTK_MATERIALMODE_DEFAULT 0
70 #define VTK_MATERIALMODE_AMBIENT 1
71 #define VTK_MATERIALMODE_DIFFUSE 2
72 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3
164 vtkSetMacro(ColorMode,
int);
165 vtkGetMacro(ColorMode,
int);
211 vtkSetVector2Macro(ScalarRange,
double);
212 vtkGetVectorMacro(ScalarRange,
double, 2);
240 vtkSetMacro(ScalarMode,
int);
241 vtkGetMacro(ScalarMode,
int);
288 vtkGetStringMacro(ArrayName);
289 vtkSetStringMacro(ArrayName);
290 vtkGetMacro(ArrayId,
int);
291 vtkSetMacro(ArrayId,
int);
292 vtkGetMacro(ArrayAccessMode,
int);
293 vtkSetMacro(ArrayAccessMode,
int);
294 vtkGetMacro(ArrayComponent,
int);
295 vtkSetMacro(ArrayComponent,
int);
331 double factor,
double units);
333 double& factor,
double& units);
342 double factor,
double units);
344 double& factor,
double& units);
354 double factor,
double units);
356 double& factor,
double& units);
365 double factor,
double units);
367 double& factor,
double& units);
397 double& factor,
double& units);
399 double& factor,
double& units);
429 void GetBounds(
double bounds[6])
override
438 vtkGetMacro(RenderTime,
double);
453 {
return this->GetInput(); }
497 std::vector<unsigned int> & ,
549 double ScalarRange[2];
577 void operator=(
const vtkMapper&) =
delete;
static void SetResolveCoincidentTopologyToOff()
#define VTK_SCALAR_MODE_DEFAULT
virtual vtkUnsignedCharArray * MapScalars(double alpha, int &cellFlag)
void GetCoincidentTopologyPointOffsetParameter(double &units)
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)
#define VTK_SCALAR_MODE_USE_POINT_DATA
void GetRelativeCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
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()
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)
void SetColorModeToDefault()
#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()
static void GetResolveCoincidentTopologyLineOffsetParameters(double &factor, double &units)
vtkImageData * GetColorTextureMap()
Provide read access to the color texture array.
vtkScalarsToColors * GetLookupTable()
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)
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.
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)
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 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
#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)
Superclass for mapping scalar values to colors.
void SetScalarModeToUseFieldData()
vtkDataSet * GetInput()
Get the input as a vtkDataSet.
void GetRelativeCoincidentTopologyLineOffsetParameters(double &factor, double &units)
virtual vtkUnsignedCharArray * MapScalars(vtkDataSet *input, double alpha, int &cellFlag)
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()
#define VTK_COLOR_MODE_DEFAULT
void MapScalarsToTexture(vtkAbstractArray *scalars, double alpha)
abstract class specifies interface to map 3D data
void SetColorModeToMapScalars()
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.
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
static double GetResolveCoincidentTopologyZShift()
static void SetResolveCoincidentTopologyToPolygonOffset()
abstract specification for renderers
#define VTK_RESOLVE_SHIFT_ZBUFFER
vtkScalarsToColors * LookupTable
vtkTypeBool UseLookupTableScalarRange
#define VTK_COLOR_MODE_DIRECT_SCALARS
double CoincidentLineFactor
static void SetResolveCoincidentTopologyToDefault()
void SelectColorArray(const char *arrayName)
static int GetResolveCoincidentTopologyPolygonOffsetFaces()
void ClearColorArrays()
Call to force a rebuild of color result arrays on next MapScalars.
general representation of visualization data
static void GetResolveCoincidentTopologyPointOffsetParameter(double &units)
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()