SIM_PointTree Class Reference

#include <SIM_PointTree.h>

Inheritance diagram for SIM_PointTree:

SIM_Data

List of all members.

Public Member Functions

GEO_PointTreegetTree () const
 Get the tree.

Protected Member Functions

 SIM_PointTree (const SIM_DataFactory *factory)
virtual ~SIM_PointTree ()
virtual void initializeSubclass ()
virtual int64 getMemorySizeSubclass () const
virtual bool getIsAlternateRepresentationSubclass () const
virtual void initAlternateRepresentationSubclass (const SIM_Data &)


Detailed Description

This class holds a GEO_PointTree which people can query. The pointtree refers to the point numbers of the SIM_Geometry this is an alternative represenation of. This caches the point positions in the SIM_Geometry's space, so are independent of SIM_Geometry's transform.

Definition at line 39 of file SIM_PointTree.h.


Constructor & Destructor Documentation

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

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


Member Function Documentation

virtual bool SIM_PointTree::getIsAlternateRepresentationSubclass (  )  const [protected, virtual]

Override this method to return true if your data type is built on demand. This is true for data that is just an alternative representation of some other data. This has several consequences. First, it implies that the data can be rebuilt from other data on the object, therefore it is not saved to disk. Also, it is assumed to be represent its parent data, so any modifications to the parent data cause this data to be deleted. If you override this method, do not call the base class implementation.

Reimplemented from SIM_Data.

virtual int64 SIM_PointTree::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.

GEO_PointTree* SIM_PointTree::getTree (  )  const

Get the tree.

virtual void SIM_PointTree::initAlternateRepresentationSubclass ( const SIM_Data  )  [protected, virtual]

Override this function if getIsAlternateRepresentationSubclass() is overridden to return true. This function is used to initialize the alternate representation based on the data to which it was just attached.

Reimplemented from SIM_Data.

virtual void SIM_PointTree::initializeSubclass (  )  [protected, virtual]

Overrides to properly implement this class as a SIM_Data. This object is meant to be updated from the object's geometry at each frame, so we only implement skeleton save, and load methods.

Reimplemented from SIM_Data.


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

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