VTK
|
Composite dataset that organizes datasets into blocks. More...
#include <vtkMultiBlockDataSet.h>
Composite dataset that organizes datasets into blocks.
vtkMultiBlockDataSet is a vtkCompositeDataSet that stores a hierarchy of datasets. The dataset collection consists of multiple blocks. Each block can itself be a vtkMultiBlockDataSet, thus providing for a full tree structure. Sub-blocks are usually used to distribute blocks across processors. For example, a 1 block dataset can be distributed as following:
proc 0: Block 0: * ds 0 * (null) proc 1: Block 0: * (null) * ds 1
Definition at line 50 of file vtkMultiBlockDataSet.h.
Reimplemented from vtkDataObjectTree.
Definition at line 54 of file vtkMultiBlockDataSet.h.
vtkMultiBlockDataSet::vtkMultiBlockDataSet | ( | ) | [protected] |
vtkMultiBlockDataSet::~vtkMultiBlockDataSet | ( | ) | [protected] |
static vtkMultiBlockDataSet* vtkMultiBlockDataSet::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkDataObject.
static int vtkMultiBlockDataSet::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 vtkDataObjectTree.
virtual int vtkMultiBlockDataSet::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 vtkDataObjectTree.
static vtkMultiBlockDataSet* vtkMultiBlockDataSet::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkDataObjectTree.
virtual vtkObjectBase* vtkMultiBlockDataSet::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkDataObjectTree.
Reimplemented from vtkDataObjectTree.
void vtkMultiBlockDataSet::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 vtkDataObjectTree.
virtual int vtkMultiBlockDataSet::GetDataObjectType | ( | ) | [inline, virtual] |
Return class name of data type (see vtkType.h for definitions).
Reimplemented from vtkCompositeDataSet.
Definition at line 58 of file vtkMultiBlockDataSet.h.
void vtkMultiBlockDataSet::SetNumberOfBlocks | ( | unsigned int | numBlocks | ) |
Set the number of blocks. This will cause allocation if the new number of blocks is greater than the current size. All new blocks are initialized to null.
unsigned int vtkMultiBlockDataSet::GetNumberOfBlocks | ( | ) |
Returns the number of blocks.
vtkDataObject* vtkMultiBlockDataSet::GetBlock | ( | unsigned int | blockno | ) |
Returns the block at the given index. It is recommended that one uses the iterators to iterate over composite datasets rather than using this API.
void vtkMultiBlockDataSet::SetBlock | ( | unsigned int | blockno, |
vtkDataObject * | block | ||
) |
Sets the data object as the given block. The total number of blocks will be resized to fit the requested block no.
void vtkMultiBlockDataSet::RemoveBlock | ( | unsigned int | blockno | ) |
Remove the given block from the dataset.
int vtkMultiBlockDataSet::HasMetaData | ( | unsigned int | blockno | ) | [inline] |
Returns true if meta-data is available for a given block.
Definition at line 82 of file vtkMultiBlockDataSet.h.
vtkInformation* vtkMultiBlockDataSet::GetMetaData | ( | unsigned int | blockno | ) | [inline] |
Returns the meta-data for the block. If none is already present, a new vtkInformation object will be allocated. Use HasMetaData to avoid allocating vtkInformation objects.
Definition at line 90 of file vtkMultiBlockDataSet.h.
static vtkMultiBlockDataSet* vtkMultiBlockDataSet::GetData | ( | vtkInformation * | info | ) | [static] |
Retrieve an instance of this class from an information object.
Reimplemented from vtkDataObjectTree.
static vtkMultiBlockDataSet* vtkMultiBlockDataSet::GetData | ( | vtkInformationVector * | v, |
int | i = 0 |
||
) | [static] |
Retrieve an instance of this class from an information object.
Reimplemented from vtkDataObjectTree.
virtual vtkInformation* vtkMultiBlockDataSet::GetMetaData | ( | vtkCompositeDataIterator * | iter | ) | [inline, virtual] |
Unhiding superclass method.
Reimplemented from vtkDataObjectTree.
Definition at line 104 of file vtkMultiBlockDataSet.h.
virtual int vtkMultiBlockDataSet::HasMetaData | ( | vtkCompositeDataIterator * | iter | ) | [inline, virtual] |
Unhiding superclass method.
Reimplemented from vtkDataObjectTree.
Definition at line 110 of file vtkMultiBlockDataSet.h.