RVC::SPATIALTREE::TIERINFO Struct Reference

Spatial Tree tier information structure. More...

#include <rvc/spattree.h>

List of all members.

Public Member Functions

 TIERINFO ()
INT32 CalcNode2D (const DPOINT2D &point) const
INT32 CalcNode3D (const DPOINT3D &point) const
INT32 CalcNodeX (double x) const
INT32 CalcNodeY (double y) const
INT32 CalcNodeZ (double z) const
void Clear ()

Public Attributes

DPOINT3D m_NodeSize
WPOINT3D m_NumNodes
DPOINT3D m_Origin
UINT8 spare [2]

Detailed Description

Spatial Tree tier information structure.

Nodes are stored by row, thus X is incremented fastest and Z is incremented slowest.


Constructor & Destructor Documentation

RVC::SPATIALTREE::TIERINFO::TIERINFO (  )  [inline]

Member Function Documentation

INT32 RVC::SPATIALTREE::TIERINFO::CalcNode2D ( const DPOINT2D point  )  const [inline]

Calculate node index for given 2D point coordinates.

Returns:
Node index or -1 if outside tier extents.
INT32 RVC::SPATIALTREE::TIERINFO::CalcNode3D ( const DPOINT3D point  )  const [inline]

Calculate node index for given 3D point coordinates.

Returns:
Node index or -1 if outside tier extents.
INT32 RVC::SPATIALTREE::TIERINFO::CalcNodeX ( double  x  )  const [inline]

Calculate node X index for given X coordinate.

Returns:
X index, may be outside valid node range.
INT32 RVC::SPATIALTREE::TIERINFO::CalcNodeY ( double  y  )  const [inline]

Calculate node Y index for given Y coordinate.

Returns:
Y index, may be outside valid node range.
INT32 RVC::SPATIALTREE::TIERINFO::CalcNodeZ ( double  z  )  const [inline]

Calculate node Z index for given Z coordinate.

Returns:
Z index, may be outside valid node range.
void RVC::SPATIALTREE::TIERINFO::Clear (  )  [inline]

Clear the structure.


Member Data Documentation


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

Generated on Sun Oct 7 21:38:08 2012 for TNTsdk 2012 by  doxygen 1.6.1