14 #ifndef vtkAMRDataInternals_h
15 #define vtkAMRDataInternals_h
17 #include "vtkCommonDataModelModule.h"
22 VTK_ABI_NAMESPACE_BEGIN
33 typedef std::vector<vtkAMRDataInternals::Block>
BlockList;
44 void CompositeShallowCopy(
vtkObject* src);
47 bool Empty()
const {
return this->GetNumberOfBlocks() == 0; }
50 unsigned int GetNumberOfBlocks()
const {
return static_cast<unsigned int>(this->Blocks.size()); }
58 void GenerateIndex(
bool force =
false);
62 bool GetInternalIndex(
unsigned int compositeIndex,
unsigned int& internalIndex);
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const Block & GetBlock(unsigned int i)
unsigned int GetNumberOfBlocks() const
a simple class to control print indentation
container of vtkUniformGrid for an AMR data set
std::vector< int > * InternalIndex
vtkSmartPointer< vtkUniformGrid > Grid
const BlockList & GetAllBlocks() const
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
std::vector< vtkAMRDataInternals::Block > BlockList
std::vector< Block > Blocks