Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkPolyDataMapper, simply invoke its constructor as follows
obj = vtkPolyDataMapper
obj
is an instance of the vtkPolyDataMapper class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkPolyDataMapper = obj.NewInstance ()
vtkPolyDataMapper = obj.SafeDownCast (vtkObject o)
obj.RenderPiece (vtkRenderer ren, vtkActor act)
- Implemented by sub classes. Actual rendering is done here.
obj.Render (vtkRenderer ren, vtkActor act)
- This calls RenderPiece (in a for loop is streaming is necessary).
obj.SetInput (vtkPolyData in)
- Specify the input data to map.
vtkPolyData = obj.GetInput ()
- Specify the input data to map.
obj.Update ()
- Update that sets the update piece first.
obj.SetPiece (int )
- If you want only a part of the data, specify by setting the piece.
int = obj.GetPiece ()
- If you want only a part of the data, specify by setting the piece.
obj.SetNumberOfPieces (int )
- If you want only a part of the data, specify by setting the piece.
int = obj.GetNumberOfPieces ()
- If you want only a part of the data, specify by setting the piece.
obj.SetNumberOfSubPieces (int )
- If you want only a part of the data, specify by setting the piece.
int = obj.GetNumberOfSubPieces ()
- If you want only a part of the data, specify by setting the piece.
obj.SetGhostLevel (int )
- Set the number of ghost cells to return.
int = obj.GetGhostLevel ()
- Set the number of ghost cells to return.
double = obj.GetBounds ()
- Return bounding box (array of six doubles) of data expressed as
(xmin,xmax, ymin,ymax, zmin,zmax).
obj.GetBounds (double bounds[6])
- Return bounding box (array of six doubles) of data expressed as
(xmin,xmax, ymin,ymax, zmin,zmax).
obj.ShallowCopy (vtkAbstractMapper m)
- Make a shallow copy of this mapper.
obj.MapDataArrayToVertexAttribute (string vertexAttributeName, string dataArrayName, int fieldAssociation, int componentno)
- 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.
obj.MapDataArrayToMultiTextureAttribute (int unit, string dataArrayName, int fieldAssociation, int componentno)
obj.RemoveVertexAttributeMapping (string vertexAttributeName)
- Remove a vertex attribute mapping.
obj.RemoveAllVertexAttributeMappings ()
- Remove all vertex attributes.