SIM_BVTreeBase Class Reference

A base class for bounding volume trees. More...

#include <SIM_BVTree.h>

Inheritance diagram for SIM_BVTreeBase:

SIM_Data SIM_BVTree SIM_BVTreeStructure

List of all members.

Public Types

enum  simBVTreeType {
  SIM_NOTREE = -1, SIM_OBBTREE, SIM_AABBTREE, SIM_14DOPTREE,
  SIM_18DOPTREE, SIM_26DOPTREE
}

Public Member Functions

simBVTreeType getBVTreeType () const

Protected Member Functions

 SIM_BVTreeBase (const SIM_DataFactory *factory)
virtual ~SIM_BVTreeBase ()
virtual void makeEqualSubclass (const SIM_Data *source)
virtual int64 getMemorySizeSubclass () const
const BV_TreegetTree () const
BV_TreegetTree ()
void createMyTree (simBVTreeType)


Detailed Description

A base class for bounding volume trees.

Definition at line 35 of file SIM_BVTree.h.


Member Enumeration Documentation

Enumerator:
SIM_NOTREE 
SIM_OBBTREE 
SIM_AABBTREE 
SIM_14DOPTREE 
SIM_18DOPTREE 
SIM_26DOPTREE 

Definition at line 38 of file SIM_BVTree.h.


Constructor & Destructor Documentation

SIM_BVTreeBase::SIM_BVTreeBase ( const SIM_DataFactory factory  )  [explicit, protected]

virtual SIM_BVTreeBase::~SIM_BVTreeBase (  )  [protected, virtual]


Member Function Documentation

void SIM_BVTreeBase::createMyTree ( simBVTreeType   )  [protected]

Sets myBVTree to a tree of the given type. Any existing tree of the wrong type will be destroyed.

simBVTreeType SIM_BVTreeBase::getBVTreeType (  )  const [inline]

Definition at line 47 of file SIM_BVTree.h.

virtual int64 SIM_BVTreeBase::getMemorySizeSubclass (  )  const [protected, virtual]

Override this function to return an accurate representation of the amount of memory used by this piece of data. The size of subdata should not be included in this calculation.

Reimplemented from SIM_Data.

BV_Tree* SIM_BVTreeBase::getTree (  )  [inline, protected]

Reimplemented in SIM_BVTree.

Definition at line 59 of file SIM_BVTree.h.

const BV_Tree* SIM_BVTreeBase::getTree (  )  const [inline, protected]

Reimplemented in SIM_BVTree.

Definition at line 57 of file SIM_BVTree.h.

virtual void SIM_BVTreeBase::makeEqualSubclass ( const SIM_Data source  )  [protected, virtual]

Override this method to set subclass data equal to the source data. The source parameter at this level is guaranteed to be non-null. Remember to call the base class implementation.

Reimplemented from SIM_Data.


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

Generated on Fri May 25 00:10:37 2012 for HDK by  doxygen 1.5.9