Go to the documentation of this file.
46 #ifndef vtkHyperTreeGrid_h
47 #define vtkHyperTreeGrid_h
49 #include "vtkCommonDataModelModule.h"
74 class vtkHyperTreePositionCursor;
102 void SetGridSize(
unsigned int[3] );
103 void SetGridSize(
unsigned int,
unsigned int,
unsigned int );
104 vtkGetVector3Macro(GridSize,
unsigned int);
112 void SetGridExtent(
int extent[6]);
113 void SetGridExtent(
int,
int,
int,
int,
int,
int );
121 vtkSetMacro(TransposedRootIndexing,
bool);
122 vtkGetMacro(TransposedRootIndexing,
bool);
124 { this->SetTransposedRootIndexing(
false ); }
126 { this->SetTransposedRootIndexing(
true ); }
133 void SetDimension(
unsigned int );
134 vtkGetMacro(Dimension,
unsigned int);
144 virtual void SetOrientation(
unsigned int);
145 vtkGetMacro(Orientation,
unsigned int);
152 void SetBranchFactor(
unsigned int );
153 vtkGetMacro(BranchFactor,
unsigned int);
226 bool HasMaterialMask();
240 vtkSetMacro( HasInterface,
bool );
241 vtkGetMacro( HasInterface,
bool );
242 vtkBooleanMacro( HasInterface,
bool );
249 vtkSetStringMacro(InterfaceNormalsName);
250 vtkGetStringMacro(InterfaceNormalsName);
257 vtkSetStringMacro(InterfaceInterceptsName);
258 vtkGetStringMacro(InterfaceInterceptsName);
264 virtual void GenerateTrees();
355 return this->Superclass::GetCell(i,j,k);
435 double tol2,
int& subId,
double pcoords[3],
436 double *weights )
override;
447 double tol2,
int& subId,
double pcoords[3],
448 double *weights )
override;
471 void InitializeTreeIterator( vtkHyperTreeGridIterator& );
510 vtkGetMacro(NumberOfChildren,
unsigned int);
573 unsigned int GetChildMask(
unsigned int );
578 void GetLevelZeroCoordinatesFromIndex(
vtkIdType,
586 void GetIndexFromLevelZeroCoordinates(
vtkIdType&,
596 unsigned int GetShiftedLevelZeroIndex(
vtkIdType,
633 unsigned short Level;
678 std::map<vtkIdType, vtkHyperTree*>::iterator
Iterator;
701 void ComputeBounds()
override;
709 void ComputeDualGrid();
717 unsigned int GridSize[3];
740 std::map<vtkIdType, double> PointShifts[3];
765 void ResetSuperCursor();
824 vtkIdType RecursivelyFindPoint(
double x[3],
829 #if !defined(__VTK_WRAP__) && !defined(__WRAP_GCCXML__)
represent and manipulate 3D points
Objects for depth-first traversal HyperTreeGrids.
vtkIdType GetLeafIndex()
Only valid for leaves.
virtual vtkIdType GetNumberOfPoints()=0
Determine the number of points composing the dataset.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
vtkCellLinks * Links
Not really needed.
unsigned int BranchFactor
vtkDataArray * ZCoordinates
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
bool TransposedRootIndexing
vtkIdTypeArray * Connectivity
represent and manipulate attribute data in a dataset
int GetDataObjectType() override
Return the type of data object.
std::map< vtkIdType, double > ReductionFactors
std::map< vtkIdType, vtkHyperTree * >::iterator Iterator
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLine * Line
These are needed by the GetCell() method.
char * InterfaceNormalsName
A simplified hyper tree cursor, to be used by the hyper tree.
bool InitPureMaterialMask
void SetIndexingModeToKJI()
abstract superclass for arrays of numeric data
Public structure used by filters to move around the hyper tree grid and easily access neighbors to le...
vtkHyperTree * GetTree()
Methods that belong to the vtkHyperTreeCursor API.
unsigned short GetLevel()
Return level at which cursor is positioned.
virtual vtkIdType FindCell(double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)=0
Locate cell based on global coordinate x and tolerance squared.
An iterator object to iteratively access trees in the grid.
vtkBitArray * MaterialMask
int GetExtentType() override
Structured extent.
cell represents a 1D line
vtkHyperTreeGridIterator()
Fast Simple Class for dealing with 3D bounds.
unsigned int NumberOfChildren
create and manipulate ordered lists of objects
vtkIdType FindPoint(double x, double y, double z)
Locate the closest point to the global coordinate x.
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e....
vtkDataArray * XCoordinates
abstract class to specify cell behavior
Objects for depth-first traversal HyperTrees.
std::map< vtkIdType, vtkHyperTree * > HyperTrees
virtual void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)=0
Topological inquiry to get cells using point.
a simple class to control print indentation
object represents upward pointers from points to list of cells using each point
void Initialize() override
Restore data object to initial state.
list of point or cell ids
An object structured as a tree where each node has exactly either 2^d or 3^d children.
vtkCell * GetCell(int i, int j, int k) override
Overridden so as no not unintentionally hide parent class.
vtkBitArray * PureMaterialMask
abstract class to specify dataset behavior
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
Topological inquiry to get points defining cell.
virtual double * GetPoint(vtkIdType ptId)=0
Get point coordinates with ptId such that: 0 <= ptId < NumberOfPoints.
dynamic, self-adjusting array of vtkIdType
a cell that represents an orthogonal quadrilateral
char * InterfaceInterceptsName
vtkIdTypeArray * MaterialMaskIndex
virtual void CopyStructure(vtkDataSet *ds)=0
Copy the geometric and topological structure of an object.
provides thread-safe access to cells
dynamic, self-adjusting array of bits
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
general representation of visualization data
virtual int GetCellType(vtkIdType cellId)=0
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkDataArray * YCoordinates
virtual int GetMaxCellSize()=0
Convenience method returns largest cell size in dataset.
void DeepCopy(vtkDataObject *src) override
std::map< vtkIdType, bool > PointShifted
static vtkDataObject * New()
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
void SetIndexingModeToIJK()
a cell that represents a 3D orthogonal parallelepiped