Go to the documentation of this file.
25 #ifndef vtkAMRDataInternals_h
26 #define vtkAMRDataInternals_h
43 typedef std::vector<vtkAMRDataInternals::Block>
BlockList;
56 bool Empty()
const{
return this->GetNumberOfBlocks()==0;}
59 unsigned int GetNumberOfBlocks()
const{
return static_cast<unsigned int>(this->Blocks.size());}
void Insert(unsigned int index, vtkUniformGrid *grid)
vtkSmartPointer< vtkUniformGrid > Grid
void GenerateIndex(bool force=false)
Block(unsigned int i, vtkUniformGrid *g)
#define vtkTypeMacro(thisClass, superclass)
virtual void ShallowCopy(vtkObject *src)
abstract base class for most VTK objects
static vtkAMRDataInternals * New()
const Block & GetBlock(unsigned int i)
bool GetInternalIndex(unsigned int compositeIndex, unsigned int &internalIndex)
a simple class to control print indentation
unsigned int GetNumberOfBlocks() const
std::vector< int > * InternalIndex
std::vector< vtkAMRDataInternals::Block > BlockList
const BlockList & GetAllBlocks() const
vtkUniformGrid * GetDataSet(unsigned int compositeIndex)
#define VTKCOMMONDATAMODEL_EXPORT
std::vector< Block > Blocks
container of vtkUniformGrid for an AMR data set
void PrintSelf(ostream &os, vtkIndent indent)