Go to the documentation of this file.
39 #ifndef vtkPolyDataMapper2D_h
40 #define vtkPolyDataMapper2D_h
43 #include "vtkRenderingCoreModule.h"
103 vtkSetMacro(ColorMode,
int);
104 vtkGetMacro(ColorMode,
int);
135 vtkSetVector2Macro(ScalarRange,
double);
136 vtkGetVectorMacro(ScalarRange,
double, 2);
152 vtkSetMacro(ScalarMode,
int);
153 vtkGetMacro(ScalarMode,
int);
204 vtkGetMacro(TransformCoordinateUseDouble,
bool);
205 vtkSetMacro(TransformCoordinateUseDouble,
bool);
206 vtkBooleanMacro(TransformCoordinateUseDouble,
bool);
234 double ScalarRange[2];
void SetColorModeToDirectScalars()
#define VTK_SCALAR_MODE_DEFAULT
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void SetInputData(vtkPolyData *in)
Set the input to the mapper.
#define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA
#define VTK_SCALAR_MODE_USE_POINT_DATA
draw vtkPolyData onto the image plane
#define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
void ColorByArrayComponent(int arrayNum, int component)
Choose which component of which field data array to color by.
record modification and/or execution time
void SetScalarModeToUsePointFieldData()
void SetLookupTable(vtkScalarsToColors *lut)
Specify a lookup table for the mapper to use.
dynamic, self-adjusting array of unsigned char
vtkMTimeType GetMTime() override
Overload standard modified time function.
static vtkPolyDataMapper2D * New()
void ColorByArrayComponent(const char *arrayName, int component)
void SetScalarModeToUsePointData()
vtkScalarsToColors * LookupTable
~vtkPolyDataMapper2D() override
vtkUnsignedCharArray * MapScalars(double alpha)
Map the scalars (if there are any scalars and ScalarVisibility is on) through the lookup table,...
void SetScalarModeToUseCellFieldData()
#define VTK_SCALAR_MODE_USE_CELL_DATA
const char * GetArrayName()
Get the array name or number and component to color by.
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
bool TransformCoordinateUseDouble
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
vtkTypeBool ScalarVisibility
vtkTypeBool UseLookupTableScalarRange
void SetColorModeToDefault()
Superclass for mapping scalar values to colors.
abstract class specifies interface for objects which render 2D actors
virtual void CreateDefaultLookupTable()
Create default lookup table.
vtkCoordinate * TransformCoordinate
vtkScalarsToColors * GetLookupTable()
void SetColorModeToMapScalars()
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetScalarModeToDefault()
virtual void SetTransformCoordinate(vtkCoordinate *)
Specify a vtkCoordinate object to be used to transform the vtkPolyData point coordinates.
void SetScalarModeToUseCellData()
vtkUnsignedCharArray * Colors
abstract class specifies interface to map data
vtkTypeUInt32 vtkMTimeType
const char * GetColorModeAsString()
Return the method of coloring scalar data.