41 #ifndef vtkXMLHyperTreeGridReader_h
42 #define vtkXMLHyperTreeGridReader_h
44 #include "vtkIOXMLModule.h"
76 vtkSetMacro(FixedLevel,
unsigned int);
77 vtkGetMacro(FixedLevel,
unsigned int);
91 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
94 unsigned int jmax,
unsigned int kmin,
unsigned int kmax);
97 void AddSelectedHT(
unsigned int idg,
unsigned int fixedLevel = UINT_MAX);
181 unsigned int FixedLevel = UINT_MAX;
183 bool Verbose =
false;
185 bool FixedHTs =
false;
196 double CoordinatesBoundingBox[6];
198 unsigned int IndicesBoundingBox[6];
dynamic, self-adjusting array of bits
Objects for traversal a HyperTreeGrid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
A data object structured as a tree.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Represents an XML element and those nested inside.
Read VTK XML HyperTreeGrid files.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void CopyOutputInformation(vtkInformation *outInfo, int port) override
void SetCoordinatesBoundingBox(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Set/Get the selected HyperTrees (HTs) to read : by default, all Hts, or by set coordinates bounding b...
void ReadXMLData() override
void CalculateHTs(const vtkHyperTreeGrid *grid)
vtkHyperTreeGrid * GetOutput()
Get the reader's output.
void SetupPieces(int numPieces)
void AddSelectedHT(unsigned int idg, unsigned int fixedLevel=UINT_MAX)
vtkIdType GetNumberOfPieces()
vtkXMLHyperTreeGridReader()
vtkHyperTreeGrid * GetOutput(int idx)
std::map< unsigned int, unsigned int > IdsSelected
@ COORDINATES_BOUNDING_BOX
vtkIdType GetNumberOfPoints()
const char * GetDataSetName() override
vtkIdType GetFixedLevelOfThisHT(vtkIdType numberOfLevels, unsigned int treeIndx) const
static vtkXMLHyperTreeGridReader * New()
void ReadTrees_1(vtkXMLDataElement *elem)
void SetupOutputData() override
void SetupOutputInformation(vtkInformation *outInfo) override
void ReadTrees_0(vtkXMLDataElement *elem)
void ReadGrid(vtkXMLDataElement *elem)
void GetOutputUpdateExtent(int &piece, int &numberOfPieces)
void SetIndicesBoundingBox(unsigned int imin, unsigned int imax, unsigned int jmin, unsigned int jmax, unsigned int kmin, unsigned int kmax)
void ClearAndAddSelectedHT(unsigned int idg, unsigned int fixedLevel=UINT_MAX)
void SubdivideFromDescriptor_0(vtkHyperTreeGridNonOrientedCursor *treeCursor, unsigned int level, int numChildren, vtkBitArray *desc, vtkIdTypeArray *posByLevel)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkXMLHyperTreeGridReader() override
bool IsSelectedHT(const vtkHyperTreeGrid *grid, unsigned int treeIndx) const
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
void SetupUpdateExtent(int piece, int numberOfPieces)
void SetupEmptyOutput() override
Superclass for VTK's XML format readers.