14#ifndef vtkAMRDataInternals_h
15#define vtkAMRDataInternals_h
17#include "vtkCommonDataModelModule.h"
22VTK_ABI_NAMESPACE_BEGIN
33 typedef std::vector<vtkAMRDataInternals::Block>
BlockList;
48 bool Empty()
const {
return this->GetNumberOfBlocks() == 0; }
51 unsigned int GetNumberOfBlocks()
const {
return static_cast<unsigned int>(this->Blocks.size()); }
container of vtkUniformGrid for an AMR data set
void GenerateIndex(bool force=false)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void DeepCopy(vtkObject *src)
void Insert(unsigned int index, vtkUniformGrid *grid)
static vtkAMRDataInternals * New()
unsigned int GetNumberOfBlocks() const
void CompositeShallowCopy(vtkObject *src)
const BlockList & GetAllBlocks() const
vtkUniformGrid * GetDataSet(unsigned int compositeIndex)
bool GetInternalIndex(unsigned int compositeIndex, unsigned int &internalIndex)
~vtkAMRDataInternals() override
std::vector< vtkAMRDataInternals::Block > BlockList
std::vector< int > * InternalIndex
std::vector< Block > Blocks
void ShallowCopy(vtkObject *src)
const Block & GetBlock(unsigned int i)
a simple class to control print indentation
abstract base class for most VTK objects
Hold a reference to a vtkObjectBase instance.
Block(unsigned int i, vtkUniformGrid *g)
vtkSmartPointer< vtkUniformGrid > Grid