19 #ifndef vtkPolyDataMapper_h
20 #define vtkPolyDataMapper_h
23 #include "vtkRenderingCoreModule.h"
29 VTK_ABI_NAMESPACE_BEGIN
96 vtkSetMacro(
Piece,
int);
97 vtkGetMacro(
Piece,
int);
98 vtkSetMacro(NumberOfPieces,
int);
99 vtkGetMacro(NumberOfPieces,
int);
100 vtkSetMacro(NumberOfSubPieces,
int);
101 vtkGetMacro(NumberOfSubPieces,
int);
108 vtkSetMacro(GhostLevel,
int);
109 vtkGetMacro(GhostLevel,
int);
121 vtkSetMacro(SeamlessU,
bool);
122 vtkGetMacro(SeamlessU,
bool);
123 vtkBooleanMacro(SeamlessU,
bool);
124 vtkSetMacro(SeamlessV,
bool);
125 vtkGetMacro(SeamlessV,
bool);
126 vtkBooleanMacro(SeamlessV,
bool);
136 vtkSetStringMacro(PointIdArrayName);
137 vtkGetStringMacro(PointIdArrayName);
138 vtkSetStringMacro(CellIdArrayName);
139 vtkGetStringMacro(CellIdArrayName);
153 vtkSetStringMacro(CompositeIdArrayName);
154 vtkGetStringMacro(CompositeIdArrayName);
164 vtkSetStringMacro(ProcessIdArrayName);
165 vtkGetStringMacro(ProcessIdArrayName);
192 virtual void MapDataArrayToVertexAttribute(
const char* vertexAttributeName,
193 const char* dataArrayName,
int fieldAssociation,
int componentno = -1);
198 virtual void MapDataArrayToMultiTextureAttribute(
199 const char* textureName,
const char* dataArrayName,
int fieldAssociation,
int componentno = -1);
204 virtual void RemoveVertexAttributeMapping(
const char* vertexAttributeName);
209 virtual void RemoveAllVertexAttributeMappings();
245 FOCAL_POINT_SHIFT_SCALE
269 vtkGetMacro(PauseShiftScale,
bool);
270 vtkBooleanMacro(PauseShiftScale,
bool);
281 virtual void ComputeBounds();
292 char* PointIdArrayName =
nullptr;
293 char* CellIdArrayName =
nullptr;
294 char* CompositeIdArrayName =
nullptr;
295 char* ProcessIdArrayName =
nullptr;
304 VTK_ABI_NAMESPACE_END
virtual int GetVBOShiftScaleMethod()
void GetBounds(T a, double bds[6])
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
represents an object (geometry & properties) in a rendered scene
virtual MapperHashType GenerateHash(vtkPolyData *)
This hash integer is computed by concrete graphics implementation of this class.
The default, automatic computation.
Do not shift/scale point coordinates. Ever!
abstract specification for renderers
virtual void RenderPiece(vtkRenderer *, vtkActor *)
Implemented by sub classes.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void SetPauseShiftScale(bool pauseShiftScale)
Pause per-render updates to VBO shift+scale parameters.
Always shift scale using auto computed values.
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Shift scale based on camera settings.
std::uintptr_t MapperHashType
a simple class to control print indentation
Manual shift/scale (for use with AppendVBO)
ShiftScaleMethodType
Methods for VBO coordinate shift+scale-computation.
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_SIZEHINT(...)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
abstract class specifies interface to map data to graphics primitives
abstract class specifies interface to map data
map vtkPolyData to graphics primitives
create a window for renderers to draw into
virtual vtkIdType GetMaximumNumberOfTriangles(vtkRenderer *)
Returns an estimate of the number of triangles that can be rendered by the underlying graphics implem...
static vtkAlgorithm * New()
std::map< DataSetType, DataSet > Piece
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
virtual bool Update()
Bring this algorithm's outputs up-to-date.
vtkDataSet * GetInput()
Get the input as a vtkDataSet.
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
virtual void SetVBOShiftScaleMethod(int)
A convenience method for enabling/disabling the VBO's shift+scale transform.