 |
VTK
9.1.0
|
Go to the documentation of this file.
59 #ifndef vtkHyperTreeGrid_h
60 #define vtkHyperTreeGrid_h
62 #include "vtkCommonDataModelModule.h"
116 vtkSetStringMacro(ModeSqueeze);
117 vtkGetStringMacro(ModeSqueeze);
161 void GetDimensions(
int dim[3]) const;
162 void GetDimensions(
unsigned int dim[3]) const;
173 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
174 vtkGetVector6Macro(Extent,
int);
184 void GetCellDims(
int cellDims[3]) const;
185 void GetCellDims(
unsigned int cellDims[3]) const;
195 unsigned int GetDimension()
const {
return this->Dimension; }
204 assert(
"pre: valid_dim" && this->GetDimension() == 1);
205 axis = this->Axis[0];
213 void Get2DAxes(
unsigned int& axis1,
unsigned int& axis2)
const
215 assert(
"pre: valid_dim" && this->GetDimension() == 2);
216 axis1 = this->Axis[0];
217 axis2 = this->Axis[1];
225 const unsigned int*
GetAxes()
const {
return this->Axis; }
252 vtkSetMacro(TransposedRootIndexing,
bool);
253 vtkGetMacro(TransposedRootIndexing,
bool);
272 vtkGetMacro(FreezeState,
bool);
362 vtkSetMacro(HasInterface,
bool);
363 vtkGetMacro(HasInterface,
bool);
364 vtkBooleanMacro(HasInterface,
bool);
371 vtkSetStringMacro(InterfaceNormalsName);
372 vtkGetStringMacro(InterfaceNormalsName);
379 vtkSetStringMacro(InterfaceInterceptsName);
380 vtkGetStringMacro(InterfaceInterceptsName);
387 vtkSetMacro(DepthLimiter,
unsigned int);
388 vtkGetMacro(DepthLimiter,
unsigned int);
427 unsigned int RecurseDichotomic(
450 bool create =
false);
601 vtkIdType,
unsigned int&,
unsigned int&,
unsigned int&)
const;
678 std::map<vtkIdType, vtkSmartPointer<vtkHyperTree>>::iterator
Iterator;
762 unsigned int BranchFactor;
763 unsigned int Dimension;
771 bool TreeGhostArrayCached;
774 unsigned int Orientation;
775 unsigned int Axis[2];
778 unsigned int NumberOfChildren;
779 bool TransposedRootIndexing;
785 unsigned int Dimensions[3];
786 unsigned int CellDims[3];
791 bool WithCoordinates;
802 char* InterfaceNormalsName;
803 char* InterfaceInterceptsName;
809 unsigned int DepthLimiter;
represent and manipulate 3D points
virtual vtkHyperTree * GetTree(vtkIdType, bool create=false)
Return tree located at given index of hyper tree grid NB: This will construct a new HyperTree if grid...
vtkIdType GetMaxNumberOfTrees()
Return the maximum number of trees in the level 0 grid.
Objects for traversal a HyperTreeGrid.
unsigned int GetBranchFactor() const
Set/Get the subdivision factor in the grid refinement scheme.
bool RecursivelyInitializePureMask(vtkHyperTreeGridNonOrientedCursor *cursor, vtkDataArray *normale)
Recursively initialize pure material mask.
virtual void Squeeze()
Squeeze this representation.
Objects for traversal a HyperTreeGrid.
virtual void CopyCoordinates(const vtkHyperTreeGrid *output)
JB Augented services on Coordinates.
void SetTree(vtkIdType, vtkHyperTree *)
Assign given tree to given index of hyper tree grid NB: This will create a new slot in the grid if ne...
vtkHyperTree * GetNextTree(vtkIdType &index)
Get the next tree and set its index then increment the iterator.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
void InitializeNonOrientedGeometryCursor(vtkHyperTreeGridNonOrientedGeometryCursor *cursor, vtkIdType index, bool create=false)
JB.
void Initialize(vtkHyperTreeGrid *)
Initialize the iterator on the tree set of the given grid.
vtkIdType GetNumberOfVertices()
Get the number of vertices in the primal tree grid.
virtual unsigned int FindDichotomicX(double value) const
vtkUnsignedCharArray * GetTreeGhostArray()
Gets the array that defines the ghost type of each point.
static vtkInformationIntegerKey * LEVELS()
represent and manipulate attribute data in a dataset
unsigned int GetNumberOfLevels()
Return the number of levels in the hyper tree grid.
vtkUnsignedCharArray * GetGhostCells()
Accessor on ghost cells.
void SetDimensions(int i, int j, int k)
Set/Get sizes of this rectilinear grid dataset.
dynamic, self-adjusting array of unsigned char
void DeepCopy(vtkDataObject *) override
Create deep copy of hyper tree grid.
bool HasAnyGhostCells() const
Returns 1 if there are any ghost cells 0 otherwise.
Hold a reference to a vtkObjectBase instance.
vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight * NewNonOrientedVonNeumannSuperCursorLight(vtkIdType index, bool create=false)
virtual void SetYCoordinates(vtkDataArray *)
Set/Get the grid coordinates in the y-direction.
vtkHyperTreeGridNonOrientedGeometryCursor * FindNonOrientedGeometryCursor(double x[3])
JB Retourne un curseur geometrique pointant une des mailles comportant la position spatiale x.
unsigned int GetChildMask(unsigned int)
Return hard-coded bitcode correspondng to child mask Dimension 1: Factor 2: 0: 100,...
virtual void CopyEmptyStructure(vtkDataObject *)
Copy the internal structure with no data associated.
#define VTK_HYPER_TREE_GRID
void SetBranchFactor(unsigned int)
Set/Get the subdivision factor in the grid refinement scheme.
Objects for traversal a HyperTreeGrid.
bool HasMask()
Determine whether blanking mask is empty or not.
void SetIndexingModeToKJI()
Get the number or trees available along the 3 axis.
void SetDimensions(const int dims[3])
Set/Get sizes of this rectilinear grid dataset.
Objects for traversal a HyperTreeGrid.
abstract superclass for arrays of numeric data
void InitializeNonOrientedMooreSuperCursorLight(vtkHyperTreeGridNonOrientedMooreSuperCursorLight *cursor, vtkIdType index, bool create=false)
JB.
static vtkInformationIntegerKey * ORIENTATION()
An iterator object to iteratively access trees in the grid.
int GetExtentType() override
Structured extent.
cell represents a 1D line
unsigned int GetNumberOfChildren() const
The number of children each node can have.
vtkHyperTreeGridNonOrientedGeometryCursor * NewNonOrientedGeometryCursor(vtkIdType index, bool create=false)
represent and manipulate fields of data
void GetIndexFromLevelZeroCoordinates(vtkIdType &, unsigned int, unsigned int, unsigned int) const
Convert the Cartesian coordinates of a root in the grid to its global index.
vtkIdType GetGlobalNodeIndexMax()
JB Retourne la valeur maximale du global index.
void InitializeOrientedGeometryCursor(vtkHyperTreeGridOrientedGeometryCursor *cursor, vtkIdType index, bool create=false)
JB.
vtkHyperTreeGridNonOrientedMooreSuperCursor * NewNonOrientedMooreSuperCursor(vtkIdType index, bool create=false)
Fast, simple class for representing and operating on 3D bounds.
static vtkHyperTreeGrid * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
vtkIdType GetNumberOfLeaves()
Get the number of leaves in the primal tree grid.
create and manipulate ordered lists of objects
void SetDimensions(unsigned int i, unsigned int j, unsigned int k)
Set/Get sizes of this rectilinear grid dataset.
void Get1DAxis(unsigned int &axis) const
JB retourne l'indice de la dimension valide.
virtual void SetXCoordinates(vtkDataArray *)
Set/Get the grid coordinates in the x-direction.
#define VTK_SIZEHINT(...)
virtual unsigned int FindDichotomicZ(double value) const
void GetBounds(T a, double bds[6])
represent and manipulate cell attribute data
Objects for traversal a HyperTreeGrid.
a simple class to control print indentation
object represents upward pointers from points to list of cells using each point
void InitializeNonOrientedMooreSuperCursor(vtkHyperTreeGridNonOrientedMooreSuperCursor *cursor, vtkIdType index, bool create=false)
JB.
std::map< vtkIdType, vtkSmartPointer< vtkHyperTree > >::iterator Iterator
vtkIdType GetShiftedLevelZeroIndex(vtkIdType, unsigned int, unsigned int, unsigned int) const
Return the root index of a root cell with given index displaced.
void Get2DAxes(unsigned int &axis1, unsigned int &axis2) const
JB Retourne l'indice des deux dimensions valides.
A data object structured as a tree.
Allocate and hold a VTK object.
void SetMask(vtkBitArray *)
Set/Get the blanking mask of primal leaf cells.
virtual void GetLevelZeroOriginFromIndex(vtkIdType, double *)
JB Convert the global index of a root to its Spacial coordinates origin and size.
virtual void SetZCoordinates(vtkDataArray *)
Set/Get the grid coordinates in the z-direction.
unsigned int GetOrientation() const
Get the orientation of 1D or 2D grids:
void InitializeNonOrientedVonNeumannSuperCursorLight(vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight *cursor, vtkIdType index, bool create=false)
JB.
const unsigned int * GetAxes() const
JB Get the axis information (used for CopyStructure)
const unsigned int * GetDimensions() const
Get dimensions of this rectilinear grid dataset.
Objects for traversal a HyperTreeGrid.
vtkHyperTreeGridOrientedGeometryCursor * NewOrientedGeometryCursor(vtkIdType index, bool create=false)
Objects for traversal a HyperTreeGrid.
unsigned int GetNumberOfLevels(vtkIdType)
Return the number of levels in an individual (primal) tree.
void InitializeTreeIterator(vtkHyperTreeGridIterator &)
Initialize an iterator to browse level 0 trees.
virtual double * GetBounds()
Return a pointer to the geometry bounding box in the form (xmin,xmax, ymin,ymax, zmin,...
dynamic, self-adjusting array of vtkIdType
virtual void GetLevelZeroOriginAndSizeFromIndex(vtkIdType, double *, double *)
Convert the global index of a root to its Spacial coordinates origin and size.
void SetDimensions(const unsigned int dims[3])
Set/Get sizes of this rectilinear grid dataset.
a cell that represents an orthogonal quadrilateral
virtual unsigned long GetActualMemorySizeBytes()
Return the actual size of the data in kibibytes (1024 bytes).
vtkHyperTreeGridOrientedCursor * NewOrientedCursor(vtkIdType index, bool create=false)
vtkHyperTreeGridNonOrientedVonNeumannSuperCursor * NewNonOrientedVonNeumannSuperCursor(vtkIdType index, bool create=false)
void GetLevelZeroCoordinatesFromIndex(vtkIdType, unsigned int &, unsigned int &, unsigned int &) const
Convert the global index of a root to its Cartesian coordinates in the grid.
static vtkHyperTreeGrid * New()
void InitializeOrientedCursor(vtkHyperTreeGridOrientedCursor *cursor, vtkIdType index, bool create=false)
JB.
static vtkHyperTreeGrid * GetData(vtkInformationVector *v, int i=0)
Retrieve an instance of this class from an information object.
static vtkInformationIntegerKey * DIMENSION()
dynamic, self-adjusting array of bits
virtual void CopyStructure(vtkDataObject *)
Copy the internal geometric and topological structure of a vtkHyperTreeGrid object.
dynamic, self-adjusting array of double
void ShallowCopy(vtkDataObject *) override
Create shallow copy of hyper tree grid.
vtkHyperTreeGridNonOrientedMooreSuperCursorLight * NewNonOrientedMooreSuperCursorLight(vtkIdType index, bool create=false)
void InitializeLocalIndexNode()
JB Permet d'initialiser les index locaux de chacun des HT de cet HTG une fois que TOUS les HTs aient ...
vtkHyperTree * GetNextTree()
Get the next tree and set its index then increment the iterator.
void InitializeNonOrientedCursor(vtkHyperTreeGridNonOrientedCursor *cursor, vtkIdType index, bool create=false)
JB.
general representation of visualization data
static vtkInformationDoubleVectorKey * SIZES()
vtkUnsignedCharArray * AllocateTreeGhostArray()
Allocate ghost array for points.
virtual void SetFixedCoordinates(unsigned int axis, double value)
JB Augented services on Coordinates.
vtkHyperTreeGridNonOrientedCursor * NewNonOrientedCursor(vtkIdType index, bool create=false)
Objects for traversal a HyperTreeGrid.
vtkHyperTreeGridIterator()=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetDataObjectType() override
Return what type of dataset this is.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
void Initialize() override
Restore data object to initial state.
virtual unsigned int FindDichotomicY(double value) const
vtkBitArray * GetPureMask()
Get or create pure material mask.
void SetIndexingModeToIJK()
Get the number or trees available along the 3 axis.
vtkIdType GetNumberOfNonEmptyTrees()
Get the number of non empty trees in this grid.
void InitializeNonOrientedVonNeumannSuperCursor(vtkHyperTreeGridNonOrientedVonNeumannSuperCursor *cursor, vtkIdType index, bool create=false)
JB.