SIM_BVTreeStructure Class Reference

#include <SIM_BVTree.h>

Inheritance diagram for SIM_BVTreeStructure:

SIM_BVTreeBase SIM_Data

List of all members.

Public Member Functions

void createTree (simBVTreeType, BV_LeafIterator &leafIt)
 Build the OBB tree from some geometry. Takes ownership of leafIt.

Protected Member Functions

 SIM_BVTreeStructure (const SIM_DataFactory *factory)
virtual ~SIM_BVTreeStructure ()
virtual void saveSubclass (ostream &os) const
virtual bool loadSubclass (UT_IStream &is)


Detailed Description

This class is intended to store the *structure* of a BV tree. For algorithms that rely on building a BV tree once and then just updating its extents over time, the structure of that BV tree is important, and needs to be saved to disk. This class does exactly that: it stores structure (but not extents) to disk.

See the SIM_ColliderBFA class for an example of usage.

Definition at line 82 of file SIM_BVTree.h.


Constructor & Destructor Documentation

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

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


Member Function Documentation

void SIM_BVTreeStructure::createTree ( simBVTreeType  ,
BV_LeafIterator leafIt 
)

Build the OBB tree from some geometry. Takes ownership of leafIt.

virtual bool SIM_BVTreeStructure::loadSubclass ( UT_IStream is  )  [protected, virtual]

Override this method to read in subclass-specific data. Remember to call the base class implementation.

Reimplemented from SIM_Data.

virtual void SIM_BVTreeStructure::saveSubclass ( ostream &  os  )  const [protected, virtual]

Override this method to write out subclass-specific data. 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