PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::OctreeNode Class Reference

#include <SparseOctree.h>

Public Member Functions

DYN_FUNC OctreeNode ()
 
DYN_FUNC OctreeNode (OcKey key)
 
DYN_FUNC OctreeNode (Level l, OcIndex x, OcIndex y, OcIndex z)
 
DYN_FUNC bool operator== (const OcKey k) const
 
DYN_FUNC bool operator!= (const OcKey k) const
 
DYN_FUNC bool operator>= (const OctreeNode &) const
 Octree will be traversed in the post-ordered fashion.
 
DYN_FUNC bool operator> (const OctreeNode &) const
 
DYN_FUNC bool operator<= (const OctreeNode &) const
 
DYN_FUNC bool operator< (const OctreeNode &) const
 
DYN_FUNC bool operator== (const OctreeNode &) const
 
DYN_FUNC bool isContainedIn (const OctreeNode &) const
 
DYN_FUNC bool isContainedStrictlyIn (const OctreeNode &) const
 
DYN_FUNC void getCoord (Level &l, OcIndex &x, OcIndex &y, OcIndex &z)
 
DYN_FUNC OctreeNode leastCommonAncestor (const OctreeNode &) const
 
DYN_FUNC OcKey key () const
 
DYN_FUNC Level level () const
 
DYN_FUNC void setDataIndex (int id)
 
DYN_FUNC int getDataIndex ()
 
DYN_FUNC void setStartIndex (int id)
 
DYN_FUNC int getStartIndex ()
 
DYN_FUNC void setFirstChildIndex (int id)
 
DYN_FUNC int getFirstChildIndex ()
 
DYN_FUNC void setDataSize (int n)
 
DYN_FUNC int getDataSize ()
 
DYN_FUNC bool isValid ()
 
DYN_FUNC bool isEmpty ()
 

Public Attributes

OcKey m_key
 
Level m_level
 
int m_data_loc = EMPTY
 
int m_start_loc = EMPTY
 
int m_data_size = 0
 
int m_current_loc = EMPTY
 
int m_first_child_loc = EMPTY
 
bool m_bCopy = false
 
int childs [8]
 

Detailed Description

Definition at line 21 of file SparseOctree.h.

Constructor & Destructor Documentation

◆ OctreeNode() [1/3]

DYN_FUNC dyno::OctreeNode::OctreeNode ( )
Here is the caller graph for this function:

◆ OctreeNode() [2/3]

DYN_FUNC dyno::OctreeNode::OctreeNode ( OcKey key)
Here is the call graph for this function:

◆ OctreeNode() [3/3]

DYN_FUNC dyno::OctreeNode::OctreeNode ( Level l,
OcIndex x,
OcIndex y,
OcIndex z )
Parameters
l,gridlevel, 0 indicates the root level
x,shouldbe smaller than 2^l
y,shouldbe smaller than 2^l
z,shouldbe smaller than 2^l
Returns
DYN_FUNC

Member Function Documentation

◆ getCoord()

DYN_FUNC void dyno::OctreeNode::getCoord ( Level & l,
OcIndex & x,
OcIndex & y,
OcIndex & z )

◆ getDataIndex()

DYN_FUNC int dyno::OctreeNode::getDataIndex ( )
inline

Definition at line 68 of file SparseOctree.h.

◆ getDataSize()

DYN_FUNC int dyno::OctreeNode::getDataSize ( )
inline

Definition at line 77 of file SparseOctree.h.

◆ getFirstChildIndex()

DYN_FUNC int dyno::OctreeNode::getFirstChildIndex ( )
inline

Definition at line 74 of file SparseOctree.h.

◆ getStartIndex()

DYN_FUNC int dyno::OctreeNode::getStartIndex ( )
inline

Definition at line 71 of file SparseOctree.h.

◆ isContainedIn()

DYN_FUNC bool dyno::OctreeNode::isContainedIn ( const OctreeNode & ) const
inline
Here is the call graph for this function:

◆ isContainedStrictlyIn()

DYN_FUNC bool dyno::OctreeNode::isContainedStrictlyIn ( const OctreeNode & ) const
inline
Here is the call graph for this function:

◆ isEmpty()

DYN_FUNC bool dyno::OctreeNode::isEmpty ( )
inline

Definition at line 81 of file SparseOctree.h.

◆ isValid()

DYN_FUNC bool dyno::OctreeNode::isValid ( )
inline

Definition at line 79 of file SparseOctree.h.

◆ key()

DYN_FUNC OcKey dyno::OctreeNode::key ( ) const
inline

Definition at line 64 of file SparseOctree.h.

Here is the caller graph for this function:

◆ leastCommonAncestor()

DYN_FUNC OctreeNode dyno::OctreeNode::leastCommonAncestor ( const OctreeNode & ) const
Here is the call graph for this function:

◆ level()

DYN_FUNC Level dyno::OctreeNode::level ( ) const
inline

Definition at line 65 of file SparseOctree.h.

◆ operator!=()

DYN_FUNC bool dyno::OctreeNode::operator!= ( const OcKey k) const

◆ operator<()

DYN_FUNC bool dyno::OctreeNode::operator< ( const OctreeNode & ) const
Here is the call graph for this function:

◆ operator<=()

DYN_FUNC bool dyno::OctreeNode::operator<= ( const OctreeNode & ) const
Here is the call graph for this function:

◆ operator==() [1/2]

DYN_FUNC bool dyno::OctreeNode::operator== ( const OcKey k) const

◆ operator==() [2/2]

DYN_FUNC bool dyno::OctreeNode::operator== ( const OctreeNode & ) const
Here is the call graph for this function:

◆ operator>()

DYN_FUNC bool dyno::OctreeNode::operator> ( const OctreeNode & ) const
Here is the call graph for this function:

◆ operator>=()

DYN_FUNC bool dyno::OctreeNode::operator>= ( const OctreeNode & ) const

Octree will be traversed in the post-ordered fashion.

Returns
true if two nodes are in the post-ordered fashion
Here is the call graph for this function:

◆ setDataIndex()

DYN_FUNC void dyno::OctreeNode::setDataIndex ( int id)
inline

Definition at line 67 of file SparseOctree.h.

◆ setDataSize()

DYN_FUNC void dyno::OctreeNode::setDataSize ( int n)
inline

Definition at line 76 of file SparseOctree.h.

◆ setFirstChildIndex()

DYN_FUNC void dyno::OctreeNode::setFirstChildIndex ( int id)
inline

Definition at line 73 of file SparseOctree.h.

◆ setStartIndex()

DYN_FUNC void dyno::OctreeNode::setStartIndex ( int id)
inline

Definition at line 70 of file SparseOctree.h.

Member Data Documentation

◆ childs

int dyno::OctreeNode::childs[8]

Definition at line 98 of file SparseOctree.h.

◆ m_bCopy

bool dyno::OctreeNode::m_bCopy = false

Definition at line 96 of file SparseOctree.h.

◆ m_current_loc

int dyno::OctreeNode::m_current_loc = EMPTY

Definition at line 92 of file SparseOctree.h.

◆ m_data_loc

int dyno::OctreeNode::m_data_loc = EMPTY

Definition at line 87 of file SparseOctree.h.

◆ m_data_size

int dyno::OctreeNode::m_data_size = 0

Definition at line 90 of file SparseOctree.h.

◆ m_first_child_loc

int dyno::OctreeNode::m_first_child_loc = EMPTY

Definition at line 94 of file SparseOctree.h.

◆ m_key

OcKey dyno::OctreeNode::m_key

Definition at line 84 of file SparseOctree.h.

◆ m_level

Level dyno::OctreeNode::m_level

Definition at line 85 of file SparseOctree.h.

◆ m_start_loc

int dyno::OctreeNode::m_start_loc = EMPTY

Definition at line 89 of file SparseOctree.h.


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