22 #ifndef vtkUniformGridAMR_h 23 #define vtkUniformGridAMR_h 25 #include "vtkCommonDataModelModule.h" 56 virtual void Initialize(
int numLevels,
const int * blocksPerLevel);
61 void SetGridDescription(
int gridDescription);
62 int GetGridDescription();
66 unsigned int GetNumberOfLevels();
70 virtual unsigned int GetTotalNumberOfBlocks();
74 unsigned int GetNumberOfDataSets(
const unsigned int level);
78 void GetBounds(
double bounds[6]);
79 const double* GetBounds();
80 void GetMin(
double min[3]);
81 void GetMax(
double max[3]);
104 int GetCompositeIndex(
const unsigned int level,
const unsigned int index );
109 void GetLevelAndIndex(
110 const unsigned int compositeIdx,
unsigned int &level,
unsigned int &idx );
static vtkDataObject * New()
superclass for composite data iterators
void Initialize() override
Restore data object to initial state,.
virtual void SetDataSet(vtkCompositeDataIterator *iter, vtkDataObject *dataObj)=0
Sets the data set at the location pointed by the iterator.
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
#define VTK_UNIFORM_GRID_AMR
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
container of vtkUniformGrid for an AMR data set
static vtkCompositeDataSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
virtual void CopyStructure(vtkCompositeDataSet *input)=0
Copies the tree structure from the input.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkDataObject * GetDataSet(vtkCompositeDataIterator *iter)=0
Returns the dataset located at the positiong pointed by the iterator.
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
general representation of visualization data
virtual vtkCompositeDataIterator * NewIterator()=0
Return a new iterator (the iterator has to be deleted by user).