25 #ifndef __vtkAMRDataInternals_h
26 #define __vtkAMRDataInternals_h
28 #include "vtkCommonDataModelModule.h"
29 #include "vtkObject.h"
30 #include <vtkSmartPointer.h>
39 vtkSmartPointer<vtkUniformGrid>
Grid;
43 typedef std::vector<vtkAMRDataInternals::Block>
BlockList;
49 void PrintSelf(ostream& os, vtkIndent indent);
54 virtual void ShallowCopy(vtkObject *src);
56 bool Empty()
const{
return this->GetNumberOfBlocks()==0;}
59 unsigned int GetNumberOfBlocks()
const{
return static_cast<unsigned int>(this->Blocks.size());}
68 void GenerateIndex(
bool force=
false);
72 bool GetInternalIndex(
unsigned int compositeIndex,
unsigned int& internalIndex);
const Block & GetBlock(unsigned int i)
unsigned int GetNumberOfBlocks() const
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