HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BV_KDOPNode< K > Class Template Reference

A single node of a BV_KDOPTree. More...

#include <BV_KDOPTree.h>

Public Member Functions

 BV_KDOPNode (int leafId=-1)
 
 BV_KDOPNode (const BV_KDOPNode &rhs)
 
 ~BV_KDOPNode ()
 
bool isLeaf () const
 
bool overlaps (const BV_KDOPNode &rhs, fpreal tol) const
 
void save (std::ostream &os, bool onlyStructure) const
 
int64 getMemoryUsage () const
 

Static Public Member Functions

static BV_KDOPNodeload (UT_IStream &is, bool onlyStructure)
 

Public Attributes

fpreal myExtents [K]
 Minimum/maximum extent in each of the K/2 directions. More...
 
int myLeafId
 
BV_KDOPNodemyLeft
 
BV_KDOPNodemyRight
 

Detailed Description

template<int K>
class BV_KDOPNode< K >

A single node of a BV_KDOPTree.

Definition at line 22 of file BV_KDOPTree.h.

Constructor & Destructor Documentation

template<int K>
BV_KDOPNode< K >::BV_KDOPNode ( int  leafId = -1)
template<int K>
BV_KDOPNode< K >::BV_KDOPNode ( const BV_KDOPNode< K > &  rhs)
template<int K>
BV_KDOPNode< K >::~BV_KDOPNode ( )

Member Function Documentation

template<int K>
int64 BV_KDOPNode< K >::getMemoryUsage ( ) const
template<int K>
bool BV_KDOPNode< K >::isLeaf ( ) const
inline

Definition at line 29 of file BV_KDOPTree.h.

template<int K>
static BV_KDOPNode* BV_KDOPNode< K >::load ( UT_IStream is,
bool  onlyStructure 
)
static
template<int K>
bool BV_KDOPNode< K >::overlaps ( const BV_KDOPNode< K > &  rhs,
fpreal  tol 
) const
template<int K>
void BV_KDOPNode< K >::save ( std::ostream &  os,
bool  onlyStructure 
) const

Member Data Documentation

template<int K>
fpreal BV_KDOPNode< K >::myExtents[K]

Minimum/maximum extent in each of the K/2 directions.

Definition at line 47 of file BV_KDOPTree.h.

template<int K>
int BV_KDOPNode< K >::myLeafId

Definition at line 49 of file BV_KDOPTree.h.

template<int K>
BV_KDOPNode* BV_KDOPNode< K >::myLeft

Definition at line 50 of file BV_KDOPTree.h.

template<int K>
BV_KDOPNode * BV_KDOPNode< K >::myRight

Definition at line 50 of file BV_KDOPTree.h.


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