#include <vtkMultiPieceDataSet.h>
A vtkMultiPieceDataSet dataset groups multiple data pieces together. For example, say that a simulation broke a volume into 16 piece so that each piece can be processed with 1 process in parallel. We want to load this volume in a visualization cluster of 4 nodes. Each node will get 4 pieces, not necessarily forming a whole rectangular piece. In this case, it is not possible to append the 4 pieces together into a vtkImageData. In this case, these 4 pieces can be collected together using a vtkMultiPieceDataSet. Note that vtkMultiPieceDataSet is intended to be included in other composite datasets eg. vtkMultiBlockDataSet, vtkHierarchicalBoxDataSet. Hence the lack of algorithms producting vtkMultiPieceDataSet.
Definition at line 38 of file vtkMultiPieceDataSet.h.
Public Types | |
typedef vtkCompositeDataSet | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | GetDataObjectType () |
void | SetNumberOfPieces (unsigned int numpieces) |
unsigned int | GetNumberOfPieces () |
void | SetPiece (unsigned int pieceno, vtkDataObject *piece) |
vtkDataSet * | GetPiece (unsigned int pieceno) |
vtkDataObject * | GetPieceAsDataObject (unsigned int pieceno) |
int | HasMetaData (unsigned int piece) |
vtkInformation * | GetMetaData (unsigned int pieceno) |
virtual vtkInformation * | GetMetaData (vtkCompositeDataIterator *iter) |
virtual int | HasMetaData (vtkCompositeDataIterator *iter) |
Static Public Member Functions | |
static vtkMultiPieceDataSet * | New () |
static int | IsTypeOf (const char *type) |
static vtkMultiPieceDataSet * | SafeDownCast (vtkObject *o) |
static vtkMultiPieceDataSet * | GetData (vtkInformation *info) |
static vtkMultiPieceDataSet * | GetData (vtkInformationVector *v, int i=0) |
Protected Member Functions | |
vtkMultiPieceDataSet () | |
~vtkMultiPieceDataSet () |
vtkMultiPieceDataSet::vtkMultiPieceDataSet | ( | ) | [protected] |
vtkMultiPieceDataSet::~vtkMultiPieceDataSet | ( | ) | [protected] |
static vtkMultiPieceDataSet* vtkMultiPieceDataSet::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkDataObject.
virtual const char* vtkMultiPieceDataSet::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkCompositeDataSet.
static int vtkMultiPieceDataSet::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkCompositeDataSet.
virtual int vtkMultiPieceDataSet::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkCompositeDataSet.
static vtkMultiPieceDataSet* vtkMultiPieceDataSet::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkCompositeDataSet.
void vtkMultiPieceDataSet::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 vtkCompositeDataSet.
virtual int vtkMultiPieceDataSet::GetDataObjectType | ( | ) | [inline, virtual] |
Return class name of data type (see vtkType.h for definitions).
Reimplemented from vtkCompositeDataSet.
Definition at line 46 of file vtkMultiPieceDataSet.h.
void vtkMultiPieceDataSet::SetNumberOfPieces | ( | unsigned 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.
unsigned int vtkMultiPieceDataSet::GetNumberOfPieces | ( | ) |
Returns the number of pieces.
vtkDataSet* vtkMultiPieceDataSet::GetPiece | ( | unsigned int | pieceno | ) |
Returns the piece at the given index.
vtkDataObject* vtkMultiPieceDataSet::GetPieceAsDataObject | ( | unsigned int | pieceno | ) |
Returns the piece at the given index.
void vtkMultiPieceDataSet::SetPiece | ( | unsigned 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 vtkMultiPieceDataSet::HasMetaData | ( | unsigned int | piece | ) | [inline] |
Returns true if meta-data is available for a given piece.
Definition at line 68 of file vtkMultiPieceDataSet.h.
vtkInformation* vtkMultiPieceDataSet::GetMetaData | ( | unsigned int | pieceno | ) | [inline] |
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.
Definition at line 76 of file vtkMultiPieceDataSet.h.
static vtkMultiPieceDataSet* vtkMultiPieceDataSet::GetData | ( | vtkInformation * | info | ) | [static] |
Retrieve an instance of this class from an information object.
Reimplemented from vtkCompositeDataSet.
static vtkMultiPieceDataSet* vtkMultiPieceDataSet::GetData | ( | vtkInformationVector * | v, | |
int | i = 0 | |||
) | [static] |
Retrieve an instance of this class from an information object.
Reimplemented from vtkCompositeDataSet.
virtual vtkInformation* vtkMultiPieceDataSet::GetMetaData | ( | vtkCompositeDataIterator * | iter | ) | [inline, virtual] |
Unhiding superclass method.
Reimplemented from vtkCompositeDataSet.
Definition at line 90 of file vtkMultiPieceDataSet.h.
virtual int vtkMultiPieceDataSet::HasMetaData | ( | vtkCompositeDataIterator * | iter | ) | [inline, virtual] |
Unhiding superclass method.
Reimplemented from vtkCompositeDataSet.
Definition at line 96 of file vtkMultiPieceDataSet.h.