26 #ifndef vtkAMRDataInternals_h 27 #define vtkAMRDataInternals_h 29 #include "vtkCommonDataModelModule.h" 44 typedef std::vector<vtkAMRDataInternals::Block>
BlockList;
50 void PrintSelf(ostream& os,
vtkIndent indent)
override;
57 bool Empty()
const{
return this->GetNumberOfBlocks()==0;}
60 unsigned int GetNumberOfBlocks()
const{
return static_cast<unsigned int>(this->Blocks.size());}
69 void GenerateIndex(
bool force=
false);
73 bool GetInternalIndex(
unsigned int compositeIndex,
unsigned int& internalIndex);
abstract base class for most VTK objects
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
std::vector< vtkAMRDataInternals::Block > BlockList
std::vector< Block > Blocks