#include <vtkPolyDataMapper.h>
vtkPolyDataMapper is a class that maps polygonal data (i.e., vtkPolyData) to graphics primitives. vtkPolyDataMapper serves as a superclass for device-specific poly data mappers, that actually do the mapping to the rendering/graphics hardware/software.
Definition at line 40 of file vtkPolyDataMapper.h.
Public Types | |
typedef vtkMapper | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | RenderPiece (vtkRenderer *ren, vtkActor *act)=0 |
virtual void | Render (vtkRenderer *ren, vtkActor *act) |
void | Update () |
void | ShallowCopy (vtkAbstractMapper *m) |
virtual void | MapDataArrayToMultiTextureAttribute (int unit, const char *dataArrayName, int fieldAssociation, int componentno=-1) |
virtual void | RemoveVertexAttributeMapping (const char *vertexAttributeName) |
virtual void | RemoveAllVertexAttributeMappings () |
void | SetInput (vtkPolyData *in) |
vtkPolyData * | GetInput () |
virtual void | SetPiece (int) |
virtual int | GetPiece () |
virtual void | SetNumberOfPieces (int) |
virtual int | GetNumberOfPieces () |
virtual void | SetNumberOfSubPieces (int) |
virtual int | GetNumberOfSubPieces () |
virtual void | SetGhostLevel (int) |
virtual int | GetGhostLevel () |
virtual double * | GetBounds () |
virtual void | GetBounds (double bounds[6]) |
virtual void | MapDataArrayToVertexAttribute (const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1) |
Static Public Member Functions | |
static vtkPolyDataMapper * | New () |
static int | IsTypeOf (const char *type) |
static vtkPolyDataMapper * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPolyDataMapper () | |
~vtkPolyDataMapper () | |
virtual void | ComputeBounds () |
virtual int | FillInputPortInformation (int, vtkInformation *) |
Protected Attributes | |
int | Piece |
int | NumberOfPieces |
int | NumberOfSubPieces |
int | GhostLevel |
Reimplemented from vtkMapper.
Reimplemented in vtkCompositePolyDataMapper2, vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.
Definition at line 44 of file vtkPolyDataMapper.h.
vtkPolyDataMapper::vtkPolyDataMapper | ( | ) | [protected] |
vtkPolyDataMapper::~vtkPolyDataMapper | ( | ) | [inline, protected] |
Definition at line 115 of file vtkPolyDataMapper.h.
static vtkPolyDataMapper* vtkPolyDataMapper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkCompositePolyDataMapper2, vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.
virtual const char* vtkPolyDataMapper::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkMapper.
Reimplemented in vtkCompositePolyDataMapper2, vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.
static int vtkPolyDataMapper::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkMapper.
Reimplemented in vtkCompositePolyDataMapper2, vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.
virtual int vtkPolyDataMapper::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkMapper.
Reimplemented in vtkCompositePolyDataMapper2, vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.
static vtkPolyDataMapper* vtkPolyDataMapper::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkMapper.
Reimplemented in vtkCompositePolyDataMapper2, vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.
void vtkPolyDataMapper::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkMapper.
Reimplemented in vtkCompositePolyDataMapper2, vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.
virtual void vtkPolyDataMapper::RenderPiece | ( | vtkRenderer * | ren, | |
vtkActor * | act | |||
) | [pure virtual] |
Implemented by sub classes. Actual rendering is done here.
Implemented in vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.
virtual void vtkPolyDataMapper::Render | ( | vtkRenderer * | ren, | |
vtkActor * | act | |||
) | [virtual] |
This calls RenderPiece (in a for loop is streaming is necessary).
Implements vtkMapper.
void vtkPolyDataMapper::SetInput | ( | vtkPolyData * | in | ) |
Specify the input data to map.
vtkPolyData* vtkPolyDataMapper::GetInput | ( | ) |
Specify the input data to map.
Reimplemented from vtkMapper.
void vtkPolyDataMapper::Update | ( | ) | [virtual] |
Update that sets the update piece first.
Reimplemented from vtkAlgorithm.
virtual void vtkPolyDataMapper::SetPiece | ( | int | ) | [virtual] |
If you want only a part of the data, specify by setting the piece.
virtual int vtkPolyDataMapper::GetPiece | ( | ) | [virtual] |
If you want only a part of the data, specify by setting the piece.
virtual void vtkPolyDataMapper::SetNumberOfPieces | ( | int | ) | [virtual] |
If you want only a part of the data, specify by setting the piece.
virtual int vtkPolyDataMapper::GetNumberOfPieces | ( | ) | [virtual] |
If you want only a part of the data, specify by setting the piece.
virtual void vtkPolyDataMapper::SetNumberOfSubPieces | ( | int | ) | [virtual] |
If you want only a part of the data, specify by setting the piece.
virtual int vtkPolyDataMapper::GetNumberOfSubPieces | ( | ) | [virtual] |
If you want only a part of the data, specify by setting the piece.
virtual void vtkPolyDataMapper::SetGhostLevel | ( | int | ) | [virtual] |
Set the number of ghost cells to return.
virtual int vtkPolyDataMapper::GetGhostLevel | ( | ) | [virtual] |
Set the number of ghost cells to return.
virtual double* vtkPolyDataMapper::GetBounds | ( | ) | [virtual] |
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
Reimplemented from vtkMapper.
virtual void vtkPolyDataMapper::GetBounds | ( | double | bounds[6] | ) | [inline, virtual] |
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
Reimplemented from vtkMapper.
Definition at line 82 of file vtkPolyDataMapper.h.
void vtkPolyDataMapper::ShallowCopy | ( | vtkAbstractMapper * | m | ) |
Make a shallow copy of this mapper.
Reimplemented from vtkMapper.
virtual void vtkPolyDataMapper::MapDataArrayToVertexAttribute | ( | const char * | vertexAttributeName, | |
const char * | dataArrayName, | |||
int | fieldAssociation, | |||
int | componentno = -1 | |||
) | [virtual] |
Select a data array from the point/cell data and map it to a generic vertex attribute. vertexAttributeName is the name of the vertex attribute. dataArrayName is the name of the data array. fieldAssociation indicates when the data array is a point data array or cell data array (vtkDataObject::FIELD_ASSOCIATION_POINTS or (vtkDataObject::FIELD_ASSOCIATION_CELLS). componentno indicates which component from the data array must be passed as the attribute. If -1, then all components are passed.
Reimplemented in vtkPainterPolyDataMapper.
virtual void vtkPolyDataMapper::MapDataArrayToMultiTextureAttribute | ( | int | unit, | |
const char * | dataArrayName, | |||
int | fieldAssociation, | |||
int | componentno = -1 | |||
) | [virtual] |
Reimplemented in vtkPainterPolyDataMapper.
virtual void vtkPolyDataMapper::RemoveVertexAttributeMapping | ( | const char * | vertexAttributeName | ) | [virtual] |
Remove a vertex attribute mapping.
Reimplemented in vtkPainterPolyDataMapper.
virtual void vtkPolyDataMapper::RemoveAllVertexAttributeMappings | ( | ) | [virtual] |
Remove all vertex attributes.
Reimplemented in vtkPainterPolyDataMapper.
virtual void vtkPolyDataMapper::ComputeBounds | ( | ) | [protected, virtual] |
Called in GetBounds(). When this method is called, the consider the input to be updated depending on whether this->Static is set or not. This method simply obtains the bounds from the data-object and returns it.
Reimplemented in vtkCompositePolyDataMapper2, and vtkPainterPolyDataMapper.
virtual int vtkPolyDataMapper::FillInputPortInformation | ( | int | port, | |
vtkInformation * | info | |||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkCompositePolyDataMapper2.
int vtkPolyDataMapper::Piece [protected] |
Definition at line 123 of file vtkPolyDataMapper.h.
int vtkPolyDataMapper::NumberOfPieces [protected] |
Definition at line 124 of file vtkPolyDataMapper.h.
int vtkPolyDataMapper::NumberOfSubPieces [protected] |
Definition at line 125 of file vtkPolyDataMapper.h.
int vtkPolyDataMapper::GhostLevel [protected] |
Definition at line 126 of file vtkPolyDataMapper.h.