Go to the documentation of this file.
31 #ifndef vtkPolyDataMapper_h
32 #define vtkPolyDataMapper_h
34 #include "vtkRenderingCoreModule.h"
81 vtkSetMacro(Piece,
int);
82 vtkGetMacro(Piece,
int);
83 vtkSetMacro(NumberOfPieces,
int);
84 vtkGetMacro(NumberOfPieces,
int);
85 vtkSetMacro(NumberOfSubPieces,
int);
86 vtkGetMacro(NumberOfSubPieces,
int);
93 vtkSetMacro(GhostLevel,
int);
94 vtkGetMacro(GhostLevel,
int);
102 void GetBounds(
double bounds[6])
override
123 const char* vertexAttributeName,
124 const char* dataArrayName,
int fieldAssociation,
int componentno = -1);
130 const char *textureName,
131 const char* dataArrayName,
int fieldAssociation,
int componentno = -1);
map vtkPolyData to graphics primitives
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
virtual void MapDataArrayToMultiTextureAttribute(const char *textureName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
void SetInputData(vtkPolyData *in)
Specify the input data to map.
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act)=0
Implemented by sub classes.
virtual void RemoveVertexAttributeMapping(const char *vertexAttributeName)
Remove a vertex attribute mapping.
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
int Update(int port, vtkInformationVector *requests) override
This method enables the passing of data requests to the algorithm to be used during execution (in add...
int Update(vtkInformation *requests) override
Convenience method to update an algorithm after passing requests to its first output port.
#define VTK_SIZEHINT(...)
abstract class specifies interface to map data to graphics primitives
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
~vtkPolyDataMapper() override
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (in a for loop if streaming is necessary).
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void Update(int port) override
Bring this algorithm's outputs up-to-date.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkPolyDataMapper * New()
virtual void MapDataArrayToVertexAttribute(const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
Select a data array from the point/cell data and map it to a generic vertex attribute.
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void ComputeBounds()
Called in GetBounds().
create a window for renderers to draw into
virtual void RemoveAllVertexAttributeMappings()
Remove all vertex attributes.
abstract class specifies interface to map data