128 #ifndef vtkPolyDataMapper_h
129 #define vtkPolyDataMapper_h
132 #include "vtkRenderingCoreModule.h"
136 VTK_ABI_NAMESPACE_BEGIN
193 vtkSetMacro(NumberOfPieces,
int);
194 vtkGetMacro(NumberOfPieces,
int);
195 vtkSetMacro(NumberOfSubPieces,
int);
196 vtkGetMacro(NumberOfSubPieces,
int);
203 vtkSetMacro(GhostLevel,
int);
204 vtkGetMacro(GhostLevel,
int);
216 vtkSetMacro(SeamlessU,
bool);
217 vtkGetMacro(SeamlessU,
bool);
218 vtkBooleanMacro(SeamlessU,
bool);
219 vtkSetMacro(SeamlessV,
bool);
220 vtkGetMacro(SeamlessV,
bool);
221 vtkBooleanMacro(SeamlessV,
bool);
249 const char* dataArrayName,
int fieldAssociation,
int componentno = -1);
255 const char* textureName,
const char* dataArrayName,
int fieldAssociation,
int componentno = -1);
301 FOCAL_POINT_SHIFT_SCALE
325 vtkGetMacro(PauseShiftScale,
bool);
326 vtkBooleanMacro(PauseShiftScale,
bool);
354 VTK_ABI_NAMESPACE_END
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
a simple class to control print indentation
abstract class specifies interface to map data to graphics primitives
map vtkPolyData to graphics primitives
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyData * GetInput()
Specify the input data to map.
virtual void RemoveAllVertexAttributeMappings()
Remove all vertex attributes.
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void Update(int port) override
Bring this algorithm's outputs up-to-date.
virtual void MapDataArrayToMultiTextureAttribute(const char *textureName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
virtual void SetVBOShiftScaleMethod(int)
A convenience method for enabling/disabling the VBO's shift+scale transform.
ShiftScaleMethodType
Methods for VBO coordinate shift+scale-computation.
@ NEAR_PLANE_SHIFT_SCALE
Shift scale based on camera settings.
@ DISABLE_SHIFT_SCALE
Do not shift/scale point coordinates. Ever!
@ AUTO_SHIFT_SCALE
The default, automatic computation.
@ ALWAYS_AUTO_SHIFT_SCALE
Always shift scale using auto computed values.
@ MANUAL_SHIFT_SCALE
Manual shift/scale (for use with AppendVBO)
@ AUTO_SHIFT
Only Apply the shift.
virtual void RemoveVertexAttributeMapping(const char *vertexAttributeName)
Remove a vertex attribute mapping.
virtual MapperHashType GenerateHash(vtkPolyData *)
This hash integer is computed by concrete graphics implementation of this class.
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (in a for loop if streaming is necessary).
std::uintptr_t MapperHashType
vtkTypeBool Update(vtkInformation *requests) override
Bring this algorithm's outputs up-to-date.
vtkTypeBool Update(int port, vtkInformationVector *requests) override
Bring this algorithm's outputs up-to-date.
~vtkPolyDataMapper() override=default
void Update() override
Bring this algorithm's outputs up-to-date.
virtual void RenderPiece(vtkRenderer *, vtkActor *)
Implemented by sub classes.
void SetInputData(vtkPolyData *in)
Specify the input data to map.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
static vtkPolyDataMapper * New()
virtual int GetVBOShiftScaleMethod()
virtual void SetPauseShiftScale(bool pauseShiftScale)
Pause per-render updates to VBO shift+scale parameters.
virtual void ComputeBounds()
Called in GetBounds().
concrete dataset represents vertices, lines, polygons, and triangle strips
create a window for renderers to draw into
abstract specification for renderers
void GetBounds(T a, double bds[6])
std::map< DataSetType, DataSet > Piece
#define VTK_SIZEHINT(...)