Section: Visualization Toolkit Filtering Classes
To create an instance of class vtkMultiPieceDataSet, simply invoke its constructor as follows
obj = vtkMultiPieceDataSet
obj
is an instance of the vtkMultiPieceDataSet class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkMultiPieceDataSet = obj.NewInstance ()
vtkMultiPieceDataSet = obj.SafeDownCast (vtkObject o)
int = obj.GetDataObjectType ()
- Set the number of pieces. This will cause allocation if the new number of
pieces is greater than the current size. All new pieces are initialized to
null.
obj.SetNumberOfPieces (int numpieces)
- Set the number of pieces. This will cause allocation if the new number of
pieces is greater than the current size. All new pieces are initialized to
null.
int = obj.GetNumberOfPieces ()
- Returns the number of pieces.
vtkDataSet = obj.GetPiece (int pieceno)
- Returns the piece at the given index.
vtkDataObject = obj.GetPieceAsDataObject (int pieceno)
- Returns the piece at the given index.
obj.SetPiece (int pieceno, vtkDataObject piece)
- Sets the data object as the given piece. The total number of pieces will
be resized to fit the requested piece no.
int = obj.HasMetaData (int piece)
- Returns the meta-data for the piece. If none is already present, a new
vtkInformation object will be allocated. Use HasMetaData to avoid
allocating vtkInformation objects.
vtkInformation = obj.GetMetaData (int pieceno)
- Unhiding superclass method.
vtkInformation = obj.GetMetaData (vtkCompositeDataIterator iter)
- Unhiding superclass method.
int = obj.HasMetaData (vtkCompositeDataIterator iter)