13 #ifndef vtkUniformGridAMR_h
14 #define vtkUniformGridAMR_h
16 #include "vtkCommonDataModelModule.h"
20 VTK_ABI_NAMESPACE_BEGIN
51 virtual void Initialize(
int numLevels,
const int* blocksPerLevel);
57 void SetGridDescription(
int gridDescription);
58 int GetGridDescription();
63 unsigned int GetNumberOfLevels();
68 virtual unsigned int GetTotalNumberOfBlocks();
73 unsigned int GetNumberOfDataSets(
unsigned int level);
81 void GetMin(
double min[3]);
82 void GetMax(
double max[3]);
97 using Superclass::GetDataSet;
113 int GetCompositeIndex(
unsigned int level,
unsigned int index);
119 void GetLevelAndIndex(
unsigned int compositeIdx,
unsigned int&
level,
unsigned int& idx);
155 ~vtkUniformGridAMR() override;
164 vtkAMRDataInternals* AMRData;
171 virtual
void SetAMRInfo(vtkAMRInformation*);
174 vtkAMRInformation* AMRInfo;
177 vtkUniformGridAMR(const vtkUniformGridAMR&) = delete;
178 void operator=(const vtkUniformGridAMR&) = delete;
183 VTK_ABI_NAMESPACE_END
virtual void CompositeShallowCopy(vtkCompositeDataSet *src)
The goal of the method is to copy the data up to the dataset pointers only.
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.
#define VTK_DEPRECATED_IN_9_3_0(reason)
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
#define VTK_UNIFORM_GRID_AMR
void GetBounds(double bounds[6])
Return the geometric bounding box in the form (xmin,xmax, ymin,ymax, zmin,zmax).
container of vtkUniformGrid for an AMR data set
vtkSmartPointer< vtkDataArray > GetData(const Ioss::GroupingEntity *entity, const std::string &fieldname, Ioss::Transform *transform=nullptr, Cache *cache=nullptr, const std::string &cachekey=std::string())
Returns a VTK array for a given field (fieldname) on the chosen block (or set) entity.
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 position pointed by the iterator.
general representation of visualization data
virtual vtkCompositeDataIterator * NewIterator()=0
Return a new iterator (the iterator has to be deleted by user).
virtual void ShallowCopy(vtkDataObject *src)
The goal of the method is to copy the data up to the array pointers only.