 |
VTK
9.1.0
|
Go to the documentation of this file.
33 #ifndef vtkDataObjectTree_h
34 #define vtkDataObjectTree_h
36 #include "vtkCommonDataModelModule.h"
friend class vtkDataObjectTree
void SetNumberOfChildren(unsigned int num)
Set the number of children.
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
void RecursiveShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
vtkIdType GetNumberOfCells() override
Returns the total number of cells of all blocks.
void SetChildMetaData(unsigned int index, vtkInformation *info)
Sets the meta-data at a given index.
vtkDataObjectTreeInternals * Internals
void SetDataSet(vtkCompositeDataIterator *iter, vtkDataObject *dataObj) override
Sets the data set at the location pointed by the iterator.
void CopyStructure(vtkCompositeDataSet *input) override
Copies the tree structure from the input.
vtkDataObject * GetDataSet(vtkCompositeDataIterator *iter) override
Returns the dataset located at the positiong pointed by the iterator.
void SetChild(unsigned int index, vtkDataObject *)
Set child dataset at a given index.
vtkCompositeDataIterator * NewIterator() override
Return a new iterator (the iterator has to be deleted by user).
void SetDataSetFrom(vtkDataObjectTreeIterator *iter, vtkDataObject *dataObj)
Sets the data at the location provided by a vtkDataObjectTreeIterator.
abstract superclass for composite (multi-block or AMR) datasets
int GetDataObjectType() override
Overridden to return VTK_DATA_OBJECT_TREE.
vtkDataObject * GetChild(unsigned int index)
Returns a child dataset at a given index.
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
void RemoveChild(unsigned int index)
Remove the child at a given index.
superclass for composite data iterators
#define VTK_DATA_OBJECT_TREE
virtual vtkDataObjectTree * CreateForCopyStructure(vtkDataObjectTree *other)
When copying structure from another vtkDataObjectTree, this method gets called for create a new non-l...
a simple class to control print indentation
virtual vtkInformation * GetMetaData(vtkCompositeDataIterator *iter)
Returns the meta-data associated with the position pointed by the iterator.
static vtkDataObjectTree * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
~vtkDataObjectTree() override
unsigned int GetNumberOfChildren()
Get the number of children.
vtkIdType GetNumberOfPoints() override
Returns the total number of points of all blocks.
virtual vtkDataObjectTreeIterator * NewTreeIterator()
Return a new iterator (the iterator has to be deleted by user).
vtkInformation * GetChildMetaData(unsigned int index)
Returns the meta-data at a given index.
superclass for composite data iterators
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataObjectTree * GetData(vtkInformationVector *v, int i=0)
Retrieve an instance of this class from an information object.
general representation of visualization data
int HasChildMetaData(unsigned int index)
Returns if meta-data information is available for the given child index.
virtual int HasMetaData(vtkCompositeDataIterator *iter)
Returns if any meta-data associated with the position pointed by the iterator.
void Initialize() override
Restore data object to initial state,.