octomap 1.5.0
octomap::OcTreeLUT Class Reference

Implements a lookup table that allows to computer keys of neighbor cells directly, see: Samet 1989, "Implementing ray tracing with octrees and neighbor finding". More...

Public Types

enum  NeighborDirection {
  W = 0, E, N, S,
  T, B, SW, NW,
  SE, NE, TW, BW,
  TE, BE, TN, TS,
  BN, BS, TNW, TSW,
  TNE, TSE, BNW, BSW,
  BNE, BSE
}
 (N)orth: positive X (S)outh: negative X (W)est : positive Y (E)ast: negative Y (T)op : positive Z (B)ottom: negative Z More...

Public Member Functions

bool genNeighborKey (const OcTreeKey &node_key, const signed char &dir, OcTreeKey &neighbor_key) const
 OcTreeLUT (unsigned int _max_depth)
 ~OcTreeLUT ()

Protected Member Functions

void changeKey (const int &val, OcTreeKey &key, const unsigned short int &i) const
unsigned int genPos (const OcTreeKey &key, const int &i) const
void initLUT ()

Protected Attributes

unsigned int max_depth
signed char nf_multiple_values [26][4]
signed char nf_rec_values [8][26]
signed char nf_values [8][26]

Detailed Description

Implements a lookup table that allows to computer keys of neighbor cells directly, see: Samet 1989, "Implementing ray tracing with octrees and neighbor finding".


Member Enumeration Documentation

(N)orth: positive X (S)outh: negative X (W)est : positive Y (E)ast: negative Y (T)op : positive Z (B)ottom: negative Z

Enumerator:
W 
E 
N 
S 
T 
B 
SW 
NW 
SE 
NE 
TW 
BW 
TE 
BE 
TN 
TS 
BN 
BS 
TNW 
TSW 
TNE 
TSE 
BNW 
BSW 
BNE 
BSE 

Constructor & Destructor Documentation

octomap::OcTreeLUT::OcTreeLUT ( unsigned int  _max_depth)

References initLUT().

octomap::OcTreeLUT::~OcTreeLUT ( )

Member Function Documentation

void octomap::OcTreeLUT::changeKey ( const int &  val,
OcTreeKey key,
const unsigned short int &  i 
) const [protected]

References octomap::OcTreeKey::k.

Referenced by genNeighborKey().

bool octomap::OcTreeLUT::genNeighborKey ( const OcTreeKey node_key,
const signed char &  dir,
OcTreeKey neighbor_key 
) const
unsigned int octomap::OcTreeLUT::genPos ( const OcTreeKey key,
const int &  i 
) const [protected]

References octomap::OcTreeKey::k.

Referenced by genNeighborKey().


Field Documentation

unsigned int octomap::OcTreeLUT::max_depth [protected]

Referenced by genNeighborKey().

signed char octomap::OcTreeLUT::nf_multiple_values[26][4] [protected]

Referenced by initLUT().

signed char octomap::OcTreeLUT::nf_rec_values[8][26] [protected]

Referenced by genNeighborKey(), and initLUT().

signed char octomap::OcTreeLUT::nf_values[8][26] [protected]

Referenced by genNeighborKey(), and initLUT().


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