64 #include "vtkRenderingCoreModule.h"
69 #define VTK_RESOLVE_OFF 0
70 #define VTK_RESOLVE_POLYGON_OFFSET 1
71 #define VTK_RESOLVE_SHIFT_ZBUFFER 2
73 #define VTK_GET_ARRAY_BY_ID 0
74 #define VTK_GET_ARRAY_BY_NAME 1
76 #define VTK_MATERIALMODE_DEFAULT 0
77 #define VTK_MATERIALMODE_AMBIENT 1
78 #define VTK_MATERIALMODE_DIFFUSE 2
79 #define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE 3
140 vtkGetMacro(ScalarVisibility,
int);
152 vtkGetMacro(Static,
int);
170 vtkGetMacro(ColorMode,
int);
192 vtkGetMacro(InterpolateScalarsBeforeMapping,
int);
206 vtkGetMacro(UseLookupTableScalarRange,
int);
216 vtkSetVector2Macro(ScalarRange,
double);
217 vtkGetVectorMacro(ScalarRange,
double, 2);
230 vtkGetMacro(ImmediateModeRendering,
int);
261 vtkGetMacro(ForceCompileOnly,
int);
291 vtkGetMacro(ScalarMode,
int);
379 double factor,
double units);
381 double& factor,
double& units);
390 double factor,
double units);
392 double& factor,
double& units);
402 double factor,
double units);
404 double& factor,
double& units);
413 double factor,
double units);
415 double& factor,
double& units);
445 double& factor,
double& units);
447 double& factor,
double& units);
486 vtkGetMacro(RenderTime,
double);
501 {
return this->GetInput(); }
526 vtkGetMacro(ScalarMaterialMode,
int);
579 const char *arrayName,
581 double *scalarRange);
585 const char *arrayName,
587 double *scalarRange);
599 unsigned char *
color);
651 double ScalarRange[2];
684 void operator=(
const vtkMapper&) VTK_DELETE_FUNCTION;
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 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)
int ImmediateModeRendering
void SetScalarModeToUsePointFieldData()
vtkScalarsToColors * LookupTable
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
double CoincidentPolygonFactor
void AcquireInvertibleLookupTable()
void SetColorModeToMapScalars()
void PrintSelf(ostream &os, vtkIndent indent)
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.
virtual void GetBounds(double bounds[6])
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void SetColorModeToDefault()
void SelectColorArray(int arrayNum)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
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 SetScalarMaterialModeToAmbientAndDiffuse()
void GetCoincidentTopologyPolygonOffsetParameters(double &factor, double &units)
Get the net paramters for handlig coincident topology obtained by summing the global values with the ...
void SetScalarMaterialModeToDiffuse()
virtual void CreateDefaultLookupTable()
Create default lookup table.
char * GetArrayName()
Get the array name or number and component to color by.
void SetScalarModeToUseCellFieldData()
void MapScalarsToTexture(vtkAbstractArray *scalars, double alpha)
static vtkScalarsToColors * InvertibleLookupTable
virtual vtkUnsignedCharArray * MapScalars(vtkDataSet *input, double alpha, int &cellFlag)
static void GetResolveCoincidentTopologyPointOffsetParameter(double &units)
static void SetResolveCoincidentTopologyToDefault()
static int GetGlobalImmediateModeRendering()
vtkImageData * ColorTextureMap
int InterpolateScalarsBeforeMapping
static void GlobalImmediateModeRenderingOff()
void ColorByArrayComponent(int arrayNum, int component)
Legacy: These methods used to be used to specify the array component.
void GetRelativeCoincidentTopologyPointOffsetParameter(double &units)
void SetColorModeToDirectScalars()
void SetScalarMaterialModeToDefault()
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()
void UseInvertibleColorFor(vtkDataObject *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int arrayComponent, double *scalarRange)
Used internally by vtkValuePass.
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.
static void GlobalImmediateModeRenderingOn()
void SetRenderTime(double time)
This instance variable is used by vtkLODActor to determine which mapper to use.
vtkAbstractArray * InvertibleScalars
void UseInvertibleColorFor(int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int arrayComponent, double *scalarRange)
int UseLookupTableScalarRange
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.
const char * GetScalarMaterialModeAsString()
Return the light-model color mode.
vtkMTimeType GetMTime()
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()
void SetForceCompileOnly(int value)
static void ColorToValue(unsigned char *color, double min, double scale, double &value)
Convert an RGB triplet to a floating point value.
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.
virtual double * GetBounds()
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
vtkFloatArray * ColorCoordinates
void SetRelativeCoincidentTopologyPolygonOffsetParameters(double factor, double units)
Used to set the polygon offset values relative to the global Used when ResolveCoincidentTopology is s...
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by 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.
void ClearInvertibleColor()
Used internally by vtkValuePass.
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
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
static void SetGlobalImmediateModeRendering(int val)
Turn on/off flag to control whether data is rendered using immediate mode or note.
static void ValueToColor(double value, double min, double scale, unsigned char *color)
Convert a floating point value to an RGB triplet.
void ClearColorArrays()
Call to force a rebuild of color result arrays on next MapScalars.
void SetScalarMaterialModeToAmbient()
const char * GetColorModeAsString()
Return the method of coloring scalar data.
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_MATERIALMODE_DIFFUSE
#define VTK_MATERIALMODE_DEFAULT
#define VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE
#define VTK_RESOLVE_SHIFT_ZBUFFER
#define VTK_MATERIALMODE_AMBIENT
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_COLOR_MODE_MAP_SCALARS
#define VTK_COLOR_MODE_DEFAULT
#define VTK_COLOR_MODE_DIRECT_SCALARS
vtkTypeUInt64 vtkMTimeType