VTK
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkHyperTreeGrid Class Reference

A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid. More...

#include <vtkHyperTreeGrid.h>

Inheritance diagram for vtkHyperTreeGrid:
[legend]
Collaboration diagram for vtkHyperTreeGrid:
[legend]

Classes

struct  vtkHyperTreeGridSuperCursor
 
class  vtkHyperTreeIterator
 
class  vtkHyperTreeSimpleCursor
 
struct  vtkSuperCursorEntry
 

Public Types

typedef vtkDataSet Superclass
 
- Public Types inherited from vtkDataSet
enum  FieldDataType { DATA_OBJECT_FIELD =0, POINT_DATA_FIELD =1, CELL_DATA_FIELD =2 }
 
typedef vtkDataObject Superclass
 
- Public Types inherited from vtkDataObject
typedef vtkObject Superclass
 
enum  FieldAssociations {
  FIELD_ASSOCIATION_POINTS, FIELD_ASSOCIATION_CELLS, FIELD_ASSOCIATION_NONE, FIELD_ASSOCIATION_POINTS_THEN_CELLS,
  FIELD_ASSOCIATION_VERTICES, FIELD_ASSOCIATION_EDGES, FIELD_ASSOCIATION_ROWS, NUMBER_OF_ASSOCIATIONS
}
 
enum  AttributeTypes {
  POINT, CELL, FIELD, POINT_THEN_CELL,
  VERTEX, EDGE, ROW, NUMBER_OF_ATTRIBUTE_TYPES
}
 
enum  FieldOperations { FIELD_OPERATION_PRESERVED, FIELD_OPERATION_REINTERPOLATED, FIELD_OPERATION_MODIFIED, FIELD_OPERATION_REMOVED }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkHyperTreeGridNewInstance () const
 
void PrintSelf (ostream &, vtkIndent)
 
int GetDataObjectType ()
 
void CopyStructure (vtkDataSet *)
 
vtkIdType GetNumberOfCells ()
 
vtkIdType GetNumberOfPoints ()
 
vtkIdType GetNumberOfLeaves ()
 
vtkIdType GetNumberOfLevels (vtkIdType)
 
vtkIdType GetNumberOfTrees ()
 
virtual void GenerateTrees ()
 
vtkHyperTreeCursorNewCursor (vtkIdType)
 
void SubdivideLeaf (vtkHyperTreeCursor *, vtkIdType)
 
virtual doubleGetPoint (vtkIdType)
 
virtual void GetPoint (vtkIdType, double[3])
 
virtual vtkCellGetCell (vtkIdType)
 
virtual void GetCell (vtkIdType, vtkGenericCell *)
 
virtual int GetCellType (vtkIdType)
 
virtual void GetCellPoints (vtkIdType, vtkIdList *)
 
virtual void GetCellPoints (vtkIdType, vtkIdType &, vtkIdType *&)
 
virtual void GetPointCells (vtkIdType, vtkIdList *)
 
virtual void GetCellNeighbors (vtkIdType, vtkIdList *, vtkIdList *)
 
virtual vtkIdType FindPoint (double x[3])
 
void Initialize ()
 
void InitializeTreeIterator (vtkHyperTreeIterator &)
 
virtual int GetMaxCellSize ()
 
int GetExtentType ()
 
unsigned long GetActualMemorySize ()
 
void GenerateSuperCursorTraversalTable ()
 
void SetGridSize (unsigned int[3])
 
void SetGridSize (unsigned int i, unsigned int j, unsigned int k)
 
virtual unsigned intGetGridSize ()
 
virtual void GetGridSize (unsigned int &, unsigned int &, unsigned int &)
 
virtual void GetGridSize (unsigned int[3])
 
void SetGridExtent (int extent[6])
 
void SetGridExtent (int iMin, int iMax, int jMin, int jMax, int kMin, int kMax)
 
virtual void SetTransposedRootIndexing (bool)
 
virtual bool GetTransposedRootIndexing ()
 
void SetIndexingModeToKJI ()
 
void SetIndexingModeToIJK ()
 
void SetBranchFactor (unsigned int)
 
virtual unsigned int GetBranchFactor ()
 
void SetDimension (unsigned int)
 
virtual unsigned int GetDimension ()
 
void SetXCoordinates (vtkDataArray *)
 
virtual vtkDataArrayGetXCoordinates ()
 
void SetYCoordinates (vtkDataArray *)
 
virtual vtkDataArrayGetYCoordinates ()
 
void SetZCoordinates (vtkDataArray *)
 
virtual vtkDataArrayGetZCoordinates ()
 
void SetMaterialMask (vtkBitArray *)
 
virtual vtkBitArrayGetMaterialMask ()
 
virtual void SetMaterialMaskIndex (vtkIdTypeArray *)
 
virtual vtkIdTypeArrayGetMaterialMaskIndex ()
 
virtual vtkIdType FindCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
 
virtual vtkIdType FindCell (double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
 
void ShallowCopy (vtkDataObject *)
 
void DeepCopy (vtkDataObject *)
 
void InitializeSuperCursor (vtkHyperTreeGridSuperCursor *, unsigned int, unsigned int, unsigned int, vtkIdType)
 
void InitializeSuperCursor (vtkHyperTreeGridSuperCursor *, vtkIdType)
 
void InitializeSuperCursorChild (vtkHyperTreeGridSuperCursor *parent, vtkHyperTreeGridSuperCursor *child, unsigned int childIdx)
 
virtual unsigned int GetNumberOfChildren ()
 
void GetLevelZeroCoordsFromIndex (vtkIdType index, unsigned int &i, unsigned int &j, unsigned int &k)
 
- Public Member Functions inherited from vtkDataSet
vtkDataSetNewInstance () const
 
virtual void CopyAttributes (vtkDataSet *ds)
 
virtual vtkCellIteratorNewCellIterator ()
 
virtual void GetCellBounds (vtkIdType cellId, double bounds[6])
 
virtual void GetCellTypes (vtkCellTypes *types)
 
unsigned long int GetMTime ()
 
vtkCellDataGetCellData ()
 
vtkPointDataGetPointData ()
 
virtual void Squeeze ()
 
doubleGetBounds ()
 
void GetBounds (double bounds[6])
 
doubleGetCenter ()
 
void GetCenter (double center[3])
 
double GetLength ()
 
virtual void GetScalarRange (double range[2])
 
doubleGetScalarRange ()
 
int CheckAttributes ()
 
virtual vtkFieldDataGetAttributesAsFieldData (int type)
 
virtual vtkIdType GetNumberOfElements (int type)
 
bool HasAnyGhostCells ()
 
bool HasAnyGhostPoints ()
 
vtkUnsignedCharArrayGetPointGhostArray ()
 
void UpdatePointGhostArrayCache ()
 
vtkUnsignedCharArrayAllocatePointGhostArray ()
 
vtkUnsignedCharArrayGetCellGhostArray ()
 
void UpdateCellGhostArrayCache ()
 
vtkUnsignedCharArrayAllocateCellGhostArray ()
 
vtkIdType FindPoint (double x, double y, double z)
 
virtual vtkCellFindAndGetCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
 
virtual void GenerateGhostArray (int zeroExt[6])
 
virtual void GenerateGhostArray (int zeroExt[6], bool cellOnly)
 
virtual bool HasAnyBlankCells ()
 
virtual bool HasAnyBlankPoints ()
 
- Public Member Functions inherited from vtkDataObject
vtkDataObjectNewInstance () const
 
void ReleaseData ()
 
unsigned long GetUpdateTime ()
 
virtual void CopyInformationToPipeline (vtkInformation *vtkNotUsed(info))
 
void DataHasBeenGenerated ()
 
virtual void PrepareForNewData ()
 
virtual void Crop (const int *updateExtent)
 
virtual vtkDataSetAttributesGetAttributes (int type)
 
virtual int GetAttributeTypeForArray (vtkAbstractArray *arr)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual int GetDataReleased ()
 
virtual void SetFieldData (vtkFieldData *)
 
virtual vtkFieldDataGetFieldData ()
 
virtual void CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info))
 
void GlobalReleaseDataFlagOn ()
 
void GlobalReleaseDataFlagOff ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkInformationIntegerKeyLEVELS ()
 
static vtkInformationIntegerKeyDIMENSION ()
 
static vtkInformationDoubleVectorKeySIZES ()
 
static vtkHyperTreeGridNew ()
 
static int IsTypeOf (const char *type)
 
static vtkHyperTreeGridSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkDataSet
static int IsTypeOf (const char *type)
 
static vtkDataSetSafeDownCast (vtkObjectBase *o)
 
static vtkDataSetGetData (vtkInformation *info)
 
static vtkDataSetGetData (vtkInformationVector *v, int i=0)
 
- Static Public Member Functions inherited from vtkDataObject
static vtkDataObjectNew ()
 
static int IsTypeOf (const char *type)
 
static vtkDataObjectSafeDownCast (vtkObjectBase *o)
 
static const char * GetAssociationTypeAsString (int associationType)
 
static int GetAssociationTypeFromString (const char *associationType)
 
static vtkInformationStringKeyDATA_TYPE_NAME ()
 
static vtkInformationDataObjectKeyDATA_OBJECT ()
 
static vtkInformationIntegerKeyDATA_EXTENT_TYPE ()
 
static vtkInformationIntegerPointerKeyDATA_EXTENT ()
 
static vtkInformationIntegerVectorKeyALL_PIECES_EXTENT ()
 
static vtkInformationIntegerKeyDATA_PIECE_NUMBER ()
 
static vtkInformationIntegerKeyDATA_NUMBER_OF_PIECES ()
 
static vtkInformationIntegerKeyDATA_NUMBER_OF_GHOST_LEVELS ()
 
static vtkInformationDoubleKeyDATA_TIME_STEP ()
 
static vtkInformationInformationVectorKeyPOINT_DATA_VECTOR ()
 
static vtkInformationInformationVectorKeyCELL_DATA_VECTOR ()
 
static vtkInformationInformationVectorKeyVERTEX_DATA_VECTOR ()
 
static vtkInformationInformationVectorKeyEDGE_DATA_VECTOR ()
 
static vtkInformationIntegerKeyFIELD_ARRAY_TYPE ()
 
static vtkInformationIntegerKeyFIELD_ASSOCIATION ()
 
static vtkInformationIntegerKeyFIELD_ATTRIBUTE_TYPE ()
 
static vtkInformationIntegerKeyFIELD_ACTIVE_ATTRIBUTE ()
 
static vtkInformationIntegerKeyFIELD_NUMBER_OF_COMPONENTS ()
 
static vtkInformationIntegerKeyFIELD_NUMBER_OF_TUPLES ()
 
static vtkInformationIntegerKeyFIELD_OPERATION ()
 
static vtkInformationDoubleVectorKeyFIELD_RANGE ()
 
static vtkInformationIntegerVectorKeyPIECE_EXTENT ()
 
static vtkInformationStringKeyFIELD_NAME ()
 
static vtkInformationDoubleVectorKeyORIGIN ()
 
static vtkInformationDoubleVectorKeySPACING ()
 
static vtkInformationDoubleVectorKeyBOUNDING_BOX ()
 
static vtkInformationDataObjectKeySIL ()
 
static vtkInformationGetActiveFieldInformation (vtkInformation *info, int fieldAssociation, int attributeType)
 
static vtkInformationGetNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name)
 
static void RemoveNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name)
 
static vtkInformationSetActiveAttribute (vtkInformation *info, int fieldAssociation, const char *attributeName, int attributeType)
 
static void SetActiveAttributeInfo (vtkInformation *info, int fieldAssociation, int attributeType, const char *name, int arrayType, int numComponents, int numTuples)
 
static void SetPointDataActiveScalarInfo (vtkInformation *info, int arrayType, int numComponents)
 
static vtkDataObjectGetData (vtkInformation *info)
 
static vtkDataObjectGetData (vtkInformationVector *v, int i=0)
 
static void SetGlobalReleaseDataFlag (int val)
 
static int GetGlobalReleaseDataFlag ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkHyperTreeGrid ()
 
 ~vtkHyperTreeGrid ()
 
void ComputeBounds ()
 
void GetCell (vtkIdType, vtkCell *)
 
void ComputeDualGrid ()
 
vtkPointsGetPoints ()
 
vtkIdTypeArrayGetConnectivity ()
 
void DeleteInternalArrays ()
 
void DeleteTrees ()
 
void TraverseDualRecursively (vtkHyperTreeGridSuperCursor *, unsigned int)
 
void TraverseDualMaskedLeaf (vtkHyperTreeGridSuperCursor *)
 
void TraverseDualLeaf (vtkHyperTreeGridSuperCursor *)
 
void EvaluateDualCorner (vtkHyperTreeSimpleCursor *)
 
void BuildLinks ()
 
vtkIdType RecursiveFindPoint (double x[3], vtkHyperTreeSimpleCursor *cursor, double *origin, double *size)
 
- Protected Member Functions inherited from vtkDataSet
 vtkDataSet ()
 
 ~vtkDataSet ()
 
virtual void ComputeScalarRange ()
 
bool IsAnyBitSet (vtkUnsignedCharArray *a, int bitFlag)
 
- Protected Member Functions inherited from vtkDataObject
 vtkDataObject ()
 
 ~vtkDataObject ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

unsigned int Dimension
 
unsigned int GridSize [3]
 
int Extent [6]
 
unsigned int BranchFactor
 
unsigned int NumberOfChildren
 
bool TransposedRootIndexing
 
vtkBitArrayMaterialMask
 
vtkIdTypeArrayMaterialMaskIndex
 
vtkDataArrayXCoordinates
 
vtkDataArrayYCoordinates
 
vtkDataArrayZCoordinates
 
std::map< vtkIdType, vtkHyperTree * > HyperTrees
 
vtkPointsPoints
 
vtkIdTypeArrayConnectivity
 
std::map< vtkIdType, bool > PointShifted
 
std::map< vtkIdType, doublePointShifts [3]
 
std::map< vtkIdType, doubleReductionFactors
 
vtkSuperCursorEntry SuperCursorTraversalTable [27 *27]
 
vtkLineLine
 
vtkPixelPixel
 
vtkVoxelVoxel
 
vtkCellLinksLinks
 
- Protected Attributes inherited from vtkDataSet
vtkCellDataCellData
 
vtkPointDataPointData
 
vtkCallbackCommandDataObserver
 
vtkTimeStamp ComputeTime
 
double Bounds [6]
 
double Center [3]
 
double ScalarRange [2]
 
vtkTimeStamp ScalarRangeComputeTime
 
vtkUnsignedCharArrayPointGhostArray
 
vtkUnsignedCharArrayCellGhostArray
 
- Protected Attributes inherited from vtkDataObject
vtkFieldDataFieldData
 
int DataReleased
 
vtkTimeStamp UpdateTime
 
vtkInformationInformation
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.

An hypertree grid is a dataset containing a rectilinear grid of root nodes, each of which can be refined as a vtkHyperTree grid. This organization of the root nodes allows for the definition of tree-based AMR grids that do not have uniform geometry. Some filters can be applied on this dataset: contour, outline, geometry.

Warning
It is not a spatial search object. If you are looking for this kind of octree see vtkCellLocator instead. Extent support is not finished yet.
See also
vtkHyperTree vtkRectilinearGrid
Thanks:
This class was written by Philippe Pebay, Joachim Pouderoux and Charles Law, Kitware 2013 This work was supported in part by Commissariat a l'Energie Atomique (CEA/DIF)
Examples:
vtkHyperTreeGrid (Examples)
Tests:
vtkHyperTreeGrid (Tests)

Definition at line 67 of file vtkHyperTreeGrid.h.

Member Typedef Documentation

Definition at line 81 of file vtkHyperTreeGrid.h.

Constructor & Destructor Documentation

vtkHyperTreeGrid::vtkHyperTreeGrid ( )
protected
vtkHyperTreeGrid::~vtkHyperTreeGrid ( )
protected

Member Function Documentation

static vtkInformationIntegerKey* vtkHyperTreeGrid::LEVELS ( )
static
static vtkInformationIntegerKey* vtkHyperTreeGrid::DIMENSION ( )
static
static vtkInformationDoubleVectorKey* vtkHyperTreeGrid::SIZES ( )
static
static vtkHyperTreeGrid* vtkHyperTreeGrid::New ( )
static
static int vtkHyperTreeGrid::IsTypeOf ( const char *  type)
static
virtual int vtkHyperTreeGrid::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkDataSet.

static vtkHyperTreeGrid* vtkHyperTreeGrid::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkHyperTreeGrid::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkDataSet.

vtkHyperTreeGrid* vtkHyperTreeGrid::NewInstance ( ) const
void vtkHyperTreeGrid::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkDataSet.

int vtkHyperTreeGrid::GetDataObjectType ( )
virtual

Return what type of dataset this is.

Reimplemented from vtkDataSet.

void vtkHyperTreeGrid::CopyStructure ( vtkDataSet )
virtual

Copy the internal geometric and topological structure of a vtkHyperTreeGrid object.

Implements vtkDataSet.

void vtkHyperTreeGrid::SetGridSize ( unsigned  int[3])

Set/Get sizes of this rectilinear grid dataset

void vtkHyperTreeGrid::SetGridSize ( unsigned int  i,
unsigned int  j,
unsigned int  k 
)

Set/Get sizes of this rectilinear grid dataset

virtual unsigned int* vtkHyperTreeGrid::GetGridSize ( )
virtual

Set/Get sizes of this rectilinear grid dataset

virtual void vtkHyperTreeGrid::GetGridSize ( unsigned int ,
unsigned int ,
unsigned int  
)
virtual

Set/Get sizes of this rectilinear grid dataset

virtual void vtkHyperTreeGrid::GetGridSize ( unsigned  int[3])
virtual

Set/Get sizes of this rectilinear grid dataset

void vtkHyperTreeGrid::SetGridExtent ( int  extent[6])

Set/Get extent of this rectilinear grid dataset

void vtkHyperTreeGrid::SetGridExtent ( int  iMin,
int  iMax,
int  jMin,
int  jMax,
int  kMin,
int  kMax 
)

Set/Get extent of this rectilinear grid dataset

virtual void vtkHyperTreeGrid::SetTransposedRootIndexing ( bool  )
virtual

Specify whether indexing mode of grid root cells must be transposed to x-axis first, z-axis last, instead of the default z-axis first, k-axis last

virtual bool vtkHyperTreeGrid::GetTransposedRootIndexing ( )
virtual

Specify whether indexing mode of grid root cells must be transposed to x-axis first, z-axis last, instead of the default z-axis first, k-axis last

void vtkHyperTreeGrid::SetIndexingModeToKJI ( )
inline

Specify whether indexing mode of grid root cells must be transposed to x-axis first, z-axis last, instead of the default z-axis first, k-axis last

Definition at line 111 of file vtkHyperTreeGrid.h.

void vtkHyperTreeGrid::SetIndexingModeToIJK ( )
inline

Specify whether indexing mode of grid root cells must be transposed to x-axis first, z-axis last, instead of the default z-axis first, k-axis last

Definition at line 113 of file vtkHyperTreeGrid.h.

void vtkHyperTreeGrid::SetBranchFactor ( unsigned  int)

Set/Get the subdivision factor in the grid refinement scheme NB: Can only be 2 or 3

virtual unsigned int vtkHyperTreeGrid::GetBranchFactor ( )
virtual

Set/Get the subdivision factor in the grid refinement scheme NB: Can only be 2 or 3

void vtkHyperTreeGrid::SetDimension ( unsigned  int)

Set/Get the dimensionality of the grid NB: Can only be 1, 2 or 3

virtual unsigned int vtkHyperTreeGrid::GetDimension ( )
virtual

Set/Get the dimensionality of the grid NB: Can only be 1, 2 or 3

vtkIdType vtkHyperTreeGrid::GetNumberOfCells ( )
virtual

Return the number of cells in the dual grid.

Implements vtkDataSet.

vtkIdType vtkHyperTreeGrid::GetNumberOfPoints ( )
virtual

Return the number of points in the dual grid.

Implements vtkDataSet.

vtkIdType vtkHyperTreeGrid::GetNumberOfLeaves ( )

Get the number of leaves in the primal tree grid.

vtkIdType vtkHyperTreeGrid::GetNumberOfLevels ( vtkIdType  )

Return the number of levels in an individual (primal) tree

vtkIdType vtkHyperTreeGrid::GetNumberOfTrees ( )

Return the number of trees in the level 0 grid.

void vtkHyperTreeGrid::SetXCoordinates ( vtkDataArray )

Specify the grid coordinates in the x-direction.

virtual vtkDataArray* vtkHyperTreeGrid::GetXCoordinates ( )
virtual

Specify the grid coordinates in the x-direction.

void vtkHyperTreeGrid::SetYCoordinates ( vtkDataArray )

Specify the grid coordinates in the y-direction.

virtual vtkDataArray* vtkHyperTreeGrid::GetYCoordinates ( )
virtual

Specify the grid coordinates in the y-direction.

void vtkHyperTreeGrid::SetZCoordinates ( vtkDataArray )

Specify the grid coordinates in the z-direction.

virtual vtkDataArray* vtkHyperTreeGrid::GetZCoordinates ( )
virtual

Specify the grid coordinates in the z-direction.

void vtkHyperTreeGrid::SetMaterialMask ( vtkBitArray )

Specify the blanking mask of primal leaf cells

virtual vtkBitArray* vtkHyperTreeGrid::GetMaterialMask ( )
virtual

Specify the blanking mask of primal leaf cells

virtual void vtkHyperTreeGrid::SetMaterialMaskIndex ( vtkIdTypeArray )
virtual

Specify the visibility mask of primal leaf cells

virtual vtkIdTypeArray* vtkHyperTreeGrid::GetMaterialMaskIndex ( )
virtual

Specify the visibility mask of primal leaf cells

virtual void vtkHyperTreeGrid::GenerateTrees ( )
virtual

This method must be called once the tree settings change

vtkHyperTreeCursor* vtkHyperTreeGrid::NewCursor ( vtkIdType  )

Create a new cursor: an object that can traverse the cells of an individual hyper tree.

Postcondition
result_exists: result!=0
void vtkHyperTreeGrid::SubdivideLeaf ( vtkHyperTreeCursor ,
vtkIdType   
)

Subdivide node pointed by cursor, only if its a leaf. At the end, cursor points on the node that used to be leaf.

Precondition
leaf_exists: leaf!=0
is_a_leaf: leaf->CurrentIsLeaf()
virtual double* vtkHyperTreeGrid::GetPoint ( vtkIdType  )
virtual

This method should be avoided in favor of cell/point iterators. Random access to points requires that arrays are created explicitly. Get point coordinates with ptId such that: 0 <= ptId < NumberOfPoints. THIS METHOD IS NOT THREAD SAFE.

Implements vtkDataSet.

virtual void vtkHyperTreeGrid::GetPoint ( vtkIdType  ,
double  [3] 
)
virtual

This method should be avoided in favor of cell/point iterators. Random access to points requires that arrays are created explicitly. Copy point coordinates into user provided array x[3] for specified point id. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkDataSet.

virtual vtkCell* vtkHyperTreeGrid::GetCell ( vtkIdType  )
virtual

This method should be avoided in favor of cell/point iterators. Random access to cells requires that connectivity arrays are created explicitly. Get cell with cellId such that: 0 <= cellId < NumberOfCells. THIS METHOD IS NOT THREAD SAFE.

Implements vtkDataSet.

virtual void vtkHyperTreeGrid::GetCell ( vtkIdType  ,
vtkGenericCell  
)
virtual

This method should be avoided in favor of cell/point iterators. Random access to cells requires that connectivity arrays are created explicitly. Get cell with cellId such that: 0 <= cellId < NumberOfCells. This is a thread-safe alternative to the previous GetCell() method. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

virtual int vtkHyperTreeGrid::GetCellType ( vtkIdType  )
virtual

All cell types are 2: quadrilaters,3d: hexahedrons. They may be degenerate though. Get type of cell with cellId such that: 0 <= cellId < NumberOfCells. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

virtual void vtkHyperTreeGrid::GetCellPoints ( vtkIdType  ,
vtkIdList  
)
virtual

This method should be avoided in favor of cell/point iterators. Random access to cells requires that connectivity arrays are created explicitly. Topological inquiry to get points defining cell. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

virtual void vtkHyperTreeGrid::GetCellPoints ( vtkIdType  ,
vtkIdType ,
vtkIdType *&   
)
virtual

Return a pointer to a list of point ids defining cell. NB: More efficient than alternative method.

virtual void vtkHyperTreeGrid::GetPointCells ( vtkIdType  ,
vtkIdList  
)
virtual

This method should be avoided in favor of cell/point iterators. Random access to cells requires that connectivity arrays are created explicitly. Topological inquiry to get cells using point. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

virtual void vtkHyperTreeGrid::GetCellNeighbors ( vtkIdType  ,
vtkIdList ,
vtkIdList  
)
virtual

This method should be avoided in favor of cell/point iterators. Random access to cells requires that connectivity arrays are created explicitly. Topological inquiry to get all cells using list of points exclusive of cell specified (e.g., cellId). Note that the list consists of only cells that use ALL the points provided. This is exactly the same as GetCellNeighbors in unstructured grid. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkDataSet.

virtual vtkIdType vtkHyperTreeGrid::FindPoint ( double  x[3])
virtual

Find cell to which this point belongs, or at least closest one, even if the point is outside the grid. Since dual points are leaves, use the structure of the Tree instead of a point locator.

Implements vtkDataSet.

virtual vtkIdType vtkHyperTreeGrid::FindCell ( double  x[3],
vtkCell cell,
vtkIdType  cellId,
double  tol2,
int subId,
double  pcoords[3],
double weights 
)
virtual

Locate cell based on global coordinate x and tolerance squared. If cell and cellId is non-NULL, then search starts from this cell and looks at immediate neighbors. Returns cellId >= 0 if inside, < 0 otherwise. The parametric coordinates are provided in pcoords[3]. The interpolation weights are returned in weights[]. (The number of weights is equal to the number of points in the found cell). Tolerance is used to control how close the point is to be considered "in" the cell. NB: There is actually no need for a starting cell, just use the point, as the tree structure is efficient enough. THIS METHOD IS NOT THREAD SAFE.

Implements vtkDataSet.

virtual vtkIdType vtkHyperTreeGrid::FindCell ( double  x[3],
vtkCell cell,
vtkGenericCell gencell,
vtkIdType  cellId,
double  tol2,
int subId,
double  pcoords[3],
double weights 
)
virtual

This is a version of the above method that can be used with multithreaded applications. A vtkGenericCell must be passed in to be used in internal calls that might be made to GetCell() THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

void vtkHyperTreeGrid::Initialize ( )
virtual

Restore data object to initial state, THIS METHOD IS NOT THREAD SAFE.

Reimplemented from vtkDataSet.

void vtkHyperTreeGrid::InitializeTreeIterator ( vtkHyperTreeIterator )

Initialize an iterator to browse level 0 trees.

virtual int vtkHyperTreeGrid::GetMaxCellSize ( )
virtual

Convenience method returns largest cell size in dataset. This is generally used to allocate memory for supporting data structures. This is the number of points of a cell. THIS METHOD IS THREAD SAFE

Implements vtkDataSet.

void vtkHyperTreeGrid::ShallowCopy ( vtkDataObject )
virtual

Shallow and Deep copy.

Reimplemented from vtkDataSet.

void vtkHyperTreeGrid::DeepCopy ( vtkDataObject )
virtual

Shallow and Deep copy.

Reimplemented from vtkDataSet.

int vtkHyperTreeGrid::GetExtentType ( )
inlinevirtual

Structured extent. The extent type is a 3D extent

Reimplemented from vtkDataObject.

Definition at line 299 of file vtkHyperTreeGrid.h.

unsigned long vtkHyperTreeGrid::GetActualMemorySize ( )
virtual

Return the actual size of the data in kibibytes (1024 bytes). This number is valid only after the pipeline has updated. The memory size returned is guaranteed to be greater than or equal to the memory required to represent the data (e.g., extra space in arrays, etc. are not included in the return value). THIS METHOD IS THREAD SAFE.

Reimplemented from vtkDataSet.

void vtkHyperTreeGrid::GenerateSuperCursorTraversalTable ( )

Generate the table before calling InitializeSuperCursorChild.

void vtkHyperTreeGrid::InitializeSuperCursor ( vtkHyperTreeGridSuperCursor ,
unsigned  int,
unsigned  int,
unsigned  int,
vtkIdType   
)

Initialize a super cursor to point to one of the root trees in the grid. The super cursor points to a node in a tree and also keeps pointers to the 26 neighbors of said node.

void vtkHyperTreeGrid::InitializeSuperCursor ( vtkHyperTreeGridSuperCursor ,
vtkIdType   
)

Initialize a super cursor to point to one of the root trees in the grid. The super cursor points to a node in a tree and also keeps pointers to the 26 neighbors of said node.

void vtkHyperTreeGrid::InitializeSuperCursorChild ( vtkHyperTreeGridSuperCursor parent,
vtkHyperTreeGridSuperCursor child,
unsigned int  childIdx 
)

Initialize a cursor to point to a child of an existing super cursor. This will not work in place.

virtual unsigned int vtkHyperTreeGrid::GetNumberOfChildren ( )
virtual

The number of children each node can have.

void vtkHyperTreeGrid::GetLevelZeroCoordsFromIndex ( vtkIdType  index,
unsigned int i,
unsigned int j,
unsigned int k 
)

Convert a level 0 index to its ijk coordinates according the grid size.

void vtkHyperTreeGrid::ComputeBounds ( )
protectedvirtual

Compute the data bounding box from data points. THIS METHOD IS NOT THREAD SAFE.

Reimplemented from vtkDataSet.

void vtkHyperTreeGrid::GetCell ( vtkIdType  ,
vtkCell  
)
protected
void vtkHyperTreeGrid::ComputeDualGrid ( )
protected
vtkPoints* vtkHyperTreeGrid::GetPoints ( )
protected
vtkIdTypeArray* vtkHyperTreeGrid::GetConnectivity ( )
protected
void vtkHyperTreeGrid::DeleteInternalArrays ( )
protected
void vtkHyperTreeGrid::DeleteTrees ( )
protected
void vtkHyperTreeGrid::TraverseDualRecursively ( vtkHyperTreeGridSuperCursor ,
unsigned  int 
)
protected
void vtkHyperTreeGrid::TraverseDualMaskedLeaf ( vtkHyperTreeGridSuperCursor )
protected
void vtkHyperTreeGrid::TraverseDualLeaf ( vtkHyperTreeGridSuperCursor )
protected
void vtkHyperTreeGrid::EvaluateDualCorner ( vtkHyperTreeSimpleCursor )
protected
void vtkHyperTreeGrid::BuildLinks ( )
protected
vtkIdType vtkHyperTreeGrid::RecursiveFindPoint ( double  x[3],
vtkHyperTreeSimpleCursor cursor,
double origin,
double size 
)
protected

Member Data Documentation

unsigned int vtkHyperTreeGrid::Dimension
protected

Definition at line 362 of file vtkHyperTreeGrid.h.

unsigned int vtkHyperTreeGrid::GridSize[3]
protected

Definition at line 363 of file vtkHyperTreeGrid.h.

int vtkHyperTreeGrid::Extent[6]
protected

Definition at line 364 of file vtkHyperTreeGrid.h.

unsigned int vtkHyperTreeGrid::BranchFactor
protected

Definition at line 365 of file vtkHyperTreeGrid.h.

unsigned int vtkHyperTreeGrid::NumberOfChildren
protected

Definition at line 366 of file vtkHyperTreeGrid.h.

bool vtkHyperTreeGrid::TransposedRootIndexing
protected

Definition at line 367 of file vtkHyperTreeGrid.h.

vtkBitArray* vtkHyperTreeGrid::MaterialMask
protected

Definition at line 369 of file vtkHyperTreeGrid.h.

vtkIdTypeArray* vtkHyperTreeGrid::MaterialMaskIndex
protected

Definition at line 370 of file vtkHyperTreeGrid.h.

vtkDataArray* vtkHyperTreeGrid::XCoordinates
protected

Definition at line 372 of file vtkHyperTreeGrid.h.

vtkDataArray* vtkHyperTreeGrid::YCoordinates
protected

Definition at line 373 of file vtkHyperTreeGrid.h.

vtkDataArray* vtkHyperTreeGrid::ZCoordinates
protected

Definition at line 374 of file vtkHyperTreeGrid.h.

std::map<vtkIdType, vtkHyperTree*> vtkHyperTreeGrid::HyperTrees
protected

Definition at line 376 of file vtkHyperTreeGrid.h.

vtkPoints* vtkHyperTreeGrid::Points
protected

Definition at line 378 of file vtkHyperTreeGrid.h.

vtkIdTypeArray* vtkHyperTreeGrid::Connectivity
protected

Definition at line 379 of file vtkHyperTreeGrid.h.

std::map<vtkIdType, bool> vtkHyperTreeGrid::PointShifted
protected

Definition at line 380 of file vtkHyperTreeGrid.h.

std::map<vtkIdType, double> vtkHyperTreeGrid::PointShifts[3]
protected

Definition at line 381 of file vtkHyperTreeGrid.h.

std::map<vtkIdType, double> vtkHyperTreeGrid::ReductionFactors
protected

Definition at line 382 of file vtkHyperTreeGrid.h.

vtkSuperCursorEntry vtkHyperTreeGrid::SuperCursorTraversalTable[27 *27]
protected

Definition at line 413 of file vtkHyperTreeGrid.h.

vtkLine* vtkHyperTreeGrid::Line
protected

Definition at line 416 of file vtkHyperTreeGrid.h.

vtkPixel* vtkHyperTreeGrid::Pixel
protected

Definition at line 417 of file vtkHyperTreeGrid.h.

vtkVoxel* vtkHyperTreeGrid::Voxel
protected

Definition at line 418 of file vtkHyperTreeGrid.h.

vtkCellLinks* vtkHyperTreeGrid::Links
protected

Definition at line 422 of file vtkHyperTreeGrid.h.


The documentation for this class was generated from the following file: