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