45#ifndef vtkAMRDataObject_h
46#define vtkAMRDataObject_h
48#include "vtkCommonDataModelModule.h"
54VTK_ABI_NAMESPACE_BEGIN
89 virtual void Initialize(
const std::vector<unsigned int>& blocksPerLevel);
100 virtual
void Initialize(
int numLevels, const
int* blocksPerLevel);
275 "This function is deprecated and should not be inherited, use GetAMRMetaData() instead")
278 "SetAMRMetaData() or Initialize(vtkAMRMetaData*) instead")
286 void InitializeInternal();
296 vtkSmartPointer<vtkAMRMetaData> AMRMetaData;
container of vtkUniformGrid for an AMR data set
a multi-resolution dataset based on vtkCartesianGrid
void CompositeShallowCopy(vtkCompositeDataSet *src) override
ShallowCopy.
vtkImageData * GetDataSetAsImageData(unsigned int level, unsigned int idx)
Get the data set as an image data using the (level, index) pair.
virtual void SetDataSet(unsigned int level, unsigned int idx, vtkDataSet *grid)
At the passed in level, set grid as the idx'th block at that level.
unsigned int GetNumberOfLevels() const
Get number of levels.
virtual void SetAMRData(vtkAMRDataInternals *)
Get/Set the meta AMR data Deprecated, do not use.
virtual vtkAMRDataInternals * GetAMRData()
Get/Set the meta AMR data Deprecated, do not use.
int GetAbsoluteBlockIndex(unsigned int level, unsigned int index) const
Returns the absolute block index for given level plus this AMR current level and a relative block ind...
unsigned int GetNumberOfBlocks(unsigned int level) const
Get the number of block at the given level plus this AMR current level Returns 0 if AMRMetaData is in...
unsigned int GetNumberOfDataSets(unsigned int level)
Deprecated, forward to GetNumberOfBlocks(level)
virtual const double * GetBounds()
Get the (min/max) bounds of the AMR domain.
vtkAMRMetaData * GetAMRMetaData()
Get/Set the AMR meta data.
static vtkAMRDataObject * GetData(vtkInformationVector *v, int i=0)
Retrieve an instance of this class from an information object.
virtual void InstantiateMetaData()
Create and set a new vtkAMRMetaData as AMRMetaData.
virtual unsigned int GetTotalNumberOfBlocks()
Deprecated, forward to GetNumberOfBlocks.
vtkCompositeDataIterator * NewIterator() override
Return a new vtkAMRIterator (the iterator has to be deleted by the user).
virtual void SetAMRInfo(vtkOverlappingAMRMetaData *)
Noop and deprecated, use GetAMRData/SetAMRMetaData instead.
void Initialize() override
Restore data object to initial state.
int GetDataObjectType() VTK_FUTURE_CONST override
Return class name of data type (see vtkType.h for definitions).
virtual void Initialize(vtkAMRMetaData *metadata)
Initialize AMR using the provided metadata by reconstructing the blocksPerLevel.
~vtkAMRDataObject() override
void ComputeIndexPair(unsigned int index, unsigned int &level, unsigned int &id)
Returns the an index pair (level, relative index) given a absolute block index Forward to the interna...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkAMRDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
virtual void Initialize(const std::vector< unsigned int > &blocksPerLevel)
Initialize the AMRMetaData and the AMR with the specified blocksPerLevel.
void GetLevelAndIndex(unsigned int compositeIdx, unsigned int &level, unsigned int &idx)
Returns the an index pair (level, relative index) given a absolute block index Forward to the Compute...
unsigned int GetNumberOfBlocks() const
Get the number of blocks for all levels including nullptr blocks.
vtkRectilinearGrid * GetDataSetAsRectilinearGrid(unsigned int level, unsigned int idx)
Get the data set as a rectilinear grid using the (level, index) pair.
void ShallowCopy(vtkDataObject *src) override
ShallowCopy.
int GetCompositeIndex(unsigned int level, unsigned int index)
Forward to the internal GetAbsoluteBlockIndex Deprecated, use GetAbsoluteBlockIndex instead.
int GetGridDescription()
Set/Get the data description of this uniform grid instance, e.g.
void DeepCopy(vtkDataObject *src) override
DeepCopy.
virtual vtkOverlappingAMRMetaData * GetAMRInfo()
Noop and deprecated, use GetAMRData/SetAMRMetaData instead.
void GetBounds(double bounds[6])
Get the (min/max) bounds of the AMR domain.
static vtkAMRDataObject * New()
void SetGridDescription(int gridDescription)
Set/Get the data description of this uniform grid instance, e.g.
void GetMax(double max[3])
Get the (min/max) bounds of the AMR domain.
void SetAMRMetaData(vtkAMRMetaData *metadata)
Get/Set the AMR meta data.
void GetMin(double min[3])
Get the (min/max) bounds of the AMR domain.
vtkUniformGrid * GetDataSet(unsigned int level, unsigned int idx)
Get the data set as an uniform grid using the (level, index) pair.
void CopyStructure(vtkCompositeDataSet *src) override
CopyStructure.
vtkCartesianGrid * GetDataSetAsCartesianGrid(unsigned int level, unsigned int idx)
Get the data set as a cartesian grid using the (level, index) pair.
Abstract API for vtkImageData and vtkRectilinearGrid.
superclass for composite data iterators
virtual void SetDataSet(vtkCompositeDataIterator *iter, vtkDataObject *dataObj)=0
Sets the data set at the location pointed by the iterator.
virtual vtkDataObject * GetDataSet(vtkCompositeDataIterator *iter)=0
Returns the dataset located at the position pointed by the iterator.
general representation of visualization data
abstract class to specify dataset behavior
topologically and geometrically regular array of data
a simple class to control print indentation
vtkPartitionedDataSetCollection()
a dataset that is topologically regular with variable spacing in the three coordinate directions
#define VTK_DEPRECATED_IN_9_6_0(reason)