45 #ifndef vtkAMRDataObject_h
46 #define vtkAMRDataObject_h
48 #include "vtkCommonDataModelModule.h"
54 VTK_ABI_NAMESPACE_BEGIN
89 virtual void Initialize(
const std::vector<unsigned int>& blocksPerLevel);
100 virtual
void Initialize(
int numLevels, const
int* blocksPerLevel);
107 void SetGridDescription(
int gridDescription);
108 int GetGridDescription();
115 [[nodiscard]]
unsigned int GetNumberOfLevels() const;
122 [[nodiscard]]
unsigned int GetNumberOfBlocks() const;
128 virtual
unsigned int GetTotalNumberOfBlocks() {
return this->GetNumberOfBlocks(); }
134 [[nodiscard]]
unsigned int GetNumberOfBlocks(
unsigned int level)
const;
140 unsigned
int GetNumberOfDataSets(
unsigned int level) {
return this->GetNumberOfBlocks(level); }
148 void GetMin(
double min[3]);
149 void GetMax(
double max[3]);
187 [[nodiscard]]
int GetAbsoluteBlockIndex(
unsigned int level,
unsigned int index) const;
194 int GetCompositeIndex(
unsigned int level,
unsigned int index)
196 return this->GetAbsoluteBlockIndex(level, index);
203 void ComputeIndexPair(
unsigned int index,
unsigned int&
level,
unsigned int&
id);
211 void GetLevelAndIndex(
unsigned int compositeIdx,
unsigned int&
level,
unsigned int& idx)
213 this->ComputeIndexPair(compositeIdx, level, idx);
265 virtual void InstantiateMetaData();
283 "This function is deprecated and should not be inherited, use GetAMRMetaData() instead")
286 "SetAMRMetaData() or Initialize(vtkAMRMetaData*) instead")
294 void InitializeInternal();
307 VTK_ABI_NAMESPACE_END
void CompositeShallowCopy(vtkCompositeDataSet *src) override
Overridden to handle vtkDataAssembly.
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
void DeepCopy(vtkDataObject *src) override
Overridden to handle vtkDataAssembly.
static vtkPartitionedDataSetCollection * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
abstract class to specify dataset behavior
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject * GetDataSet(vtkCompositeDataIterator *iter) override
Returns the dataset located at the position pointed by the iterator.
void SetDataSet(vtkCompositeDataIterator *iter, vtkDataObject *dataObj) override
Sets the data set at the location pointed by the iterator.
void ShallowCopy(vtkDataObject *src) override
Overridden to handle vtkDataAssembly.
superclass for composite data iterators
#define VTK_DEPRECATED_IN_9_6_0(reason)
vtkCompositeDataIterator * NewIterator() override
Return a new iterator (the iterator has to be deleted by user).
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
topologically and geometrically regular array of data
virtual vtkDataSet * GetPartition(unsigned int idx, unsigned int partition)
API to get/set partitions using a tuple index.
void GetBounds(double bounds[6])
Return the geometric bounding box in the form (xmin,xmax, ymin,ymax, zmin,zmax).
a multi-resolution dataset based on vtkCartesianGrid
void CopyStructure(vtkCompositeDataSet *input) override
Overridden to handle vtkDataAssembly.
container of vtkUniformGrid for an AMR data set
void Initialize() override
Overridden to handle vtkDataAssembly.
static vtkPartitionedDataSetCollection * New()
Abstract API for vtkImageData and vtkRectilinearGrid.
general representation of visualization data
virtual void SetPartition(unsigned int idx, unsigned int partition, vtkDataObject *object)
API to get/set partitions using a tuple index.
int GetDataObjectType() VTK_FUTURE_CONST override
Return class name of data type (see vtkType.h for definitions).
Composite dataset that groups datasets as a collection.