59 #ifndef vtkHyperTreeGrid_h 60 #define vtkHyperTreeGrid_h 62 #include "vtkCommonDataModelModule.h" 117 vtkSetStringMacro(ModeSqueeze);
118 vtkGetStringMacro(ModeSqueeze);
123 virtual void Squeeze();
149 void SetDimensions(
const unsigned int dims[3]);
150 void SetDimensions(
const int dims[3]);
151 void SetDimensions(
unsigned int i,
unsigned int j,
unsigned int k);
152 void SetDimensions(
int i,
int j,
int k);
160 const unsigned int* GetDimensions() const
VTK_SIZEHINT(3);
162 void GetDimensions(
int dim[3]) const;
163 void GetDimensions(
unsigned int dim[3]) const;
173 void SetExtent(const
int extent[6]);
174 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
175 vtkGetVector6Macro(Extent,
int);
184 const
unsigned int* GetCellDims() const
VTK_SIZEHINT(3);
185 void GetCellDims(
int cellDims[3]) const;
186 void GetCellDims(
unsigned int cellDims[3]) const;
196 unsigned int GetDimension()
const {
return this->Dimension; }
205 assert(
"pre: valid_dim" && this->GetDimension() == 1);
206 axis = this->Axis[0];
214 void Get2DAxes(
unsigned int& axis1,
unsigned int& axis2)
const 216 assert(
"pre: valid_dim" && this->GetDimension() == 2);
217 axis1 = this->Axis[0];
218 axis2 = this->Axis[1];
226 const unsigned int*
GetAxes()
const {
return this->Axis; }
253 vtkSetMacro(TransposedRootIndexing,
bool);
254 vtkGetMacro(TransposedRootIndexing,
bool);
273 vtkGetMacro(FreezeState,
bool);
280 void SetBranchFactor(
unsigned int);
302 unsigned int GetNumberOfLevels(
vtkIdType);
307 unsigned int GetNumberOfLevels();
338 virtual void SetFixedCoordinates(
unsigned int axis,
double value);
358 vtkSetMacro(HasInterface,
bool);
359 vtkGetMacro(HasInterface,
bool);
360 vtkBooleanMacro(HasInterface,
bool);
367 vtkSetStringMacro(InterfaceNormalsName);
368 vtkGetStringMacro(InterfaceNormalsName);
375 vtkSetStringMacro(InterfaceInterceptsName);
376 vtkGetStringMacro(InterfaceInterceptsName);
383 vtkSetMacro(DepthLimiter,
unsigned int);
384 vtkGetMacro(DepthLimiter,
unsigned int);
390 void InitializeOrientedCursor(
397 void InitializeOrientedGeometryCursor(
405 void InitializeNonOrientedCursor(
412 void InitializeNonOrientedGeometryCursor(
423 unsigned int RecurseDichotomic(
429 virtual unsigned int FindDichotomicX(
double value)
const;
430 virtual unsigned int FindDichotomicY(
double value)
const;
431 virtual unsigned int FindDichotomicZ(
double value)
const;
436 void InitializeNonOrientedVonNeumannSuperCursor(
444 void InitializeNonOrientedVonNeumannSuperCursorLight(
446 bool create =
false);
453 void InitializeNonOrientedMooreSuperCursor(
461 void InitializeNonOrientedMooreSuperCursorLight(
506 virtual unsigned long GetActualMemorySizeBytes();
521 bool RecursivelyInitializePureMask(
579 unsigned int GetChildMask(
unsigned int);
584 void GetIndexFromLevelZeroCoordinates(
vtkIdType&,
unsigned int,
unsigned int,
unsigned int)
const;
591 vtkIdType GetShiftedLevelZeroIndex(
vtkIdType,
unsigned int,
unsigned int,
unsigned int)
const;
596 void GetLevelZeroCoordinatesFromIndex(
597 vtkIdType,
unsigned int&,
unsigned int&,
unsigned int&)
const;
602 virtual void GetLevelZeroOriginAndSizeFromIndex(
vtkIdType,
double*,
double*);
607 virtual void GetLevelZeroOriginFromIndex(
vtkIdType,
double*);
624 void InitializeLocalIndexNode();
630 bool HasAnyGhostCells()
const;
674 std::map<vtkIdType, vtkSmartPointer<vtkHyperTree> >::iterator
Iterator;
704 void GetBounds(
double bounds[6]);
716 void GetCenter(
double center[3]);
746 unsigned int BranchFactor;
747 unsigned int Dimension;
755 bool TreeGhostArrayCached;
758 unsigned int Orientation;
759 unsigned int Axis[2];
762 unsigned int NumberOfChildren;
763 bool TransposedRootIndexing;
769 unsigned int Dimensions[3];
770 unsigned int CellDims[3];
775 bool WithCoordinates;
786 char* InterfaceNormalsName;
787 char* InterfaceInterceptsName;
793 unsigned int DepthLimiter;
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Get2DAxes(unsigned int &axis1, unsigned int &axis2) const
JB Retourne l'indice des deux dimensions valides.
object represents upward pointers from points to list of cells using each point
represent and manipulate point attribute data
static vtkDataObject * New()
void SetIndexingModeToKJI()
Get the number or trees available along the 3 axis.
const unsigned int * GetAxes() const
JB Get the axis information (used for CopyStructure)
vtkHyperTreeGridIterator()
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
#define VTK_HYPER_TREE_GRID
a cell that represents an orthogonal quadrilateral
Objects for traversal a HyperTreeGrid.
Objects for traversal a HyperTreeGrid.
virtual void Initialize()
Restore data object to initial state,.
dynamic, self-adjusting array of vtkIdType
Hold a reference to a vtkObjectBase instance.
void SetIndexingModeToIJK()
Get the number or trees available along the 3 axis.
Objects for traversal a HyperTreeGrid.
Objects for traversal a HyperTreeGrid.
dynamic, self-adjusting array of double
unsigned int GetBranchFactor() const
Set/Get the subdivision factor in the grid refinement scheme.
cell represents a 1D line
a simple class to control print indentation
Objects for traversal a HyperTreeGrid.
abstract superclass for arrays of numeric data
int GetDataObjectType() override
Return what type of dataset this is.
represent and manipulate attribute data in a dataset
unsigned int GetNumberOfChildren() const
The number of children each node can have.
#define VTK_SIZEHINT(...)
virtual unsigned long GetActualMemorySize()
Return the actual size of the data in kibibytes (1024 bytes).
Objects for traversal a HyperTreeGrid.
dynamic, self-adjusting array of unsigned char
std::map< vtkIdType, vtkSmartPointer< vtkHyperTree > >::iterator Iterator
dynamic, self-adjusting array of bits
create and manipulate ordered lists of objects
A data object structured as a tree.
Allocate and hold a VTK object.
void Get1DAxis(unsigned int &axis) const
JB retourne l'indice de la dimension valide.
An iterator object to iteratively access trees in the grid.
Objects for traversal a HyperTreeGrid.
unsigned int GetOrientation() const
Get the orientation of 1D or 2D grids:
general representation of visualization data
int GetExtentType() override
Structured extent.
virtual void DeepCopy(vtkDataObject *src)
Shallow and Deep copy.
represent and manipulate 3D points
Fast, simple class for dealing with 3D bounds.
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.
Objects for traversal a HyperTreeGrid.