SIM_TriangulatedGeometry Class Reference

#include <SIM_TriangulatedGeometry.h>

Inheritance diagram for SIM_TriangulatedGeometry:

SIM_Data

List of all members.

Public Member Functions

void init () const
 initializes alternate geometry for lite functions
UT_Vector4 getPointPos (int ptId) const
 Gets the position of a point in SIM_Geometry space, given point ID.
UT_Vector4 getPointPos (int primId, int vtNum) const
int getPointCount () const
 Returns the total number of points.
int getPointId (int primId, int vtNum) const
int getPrimitiveCount () const
 Gets the number of primitives.
int getVertexCount (int primNum=0) const
 Gets the number of vertices of a given primitive.
float getPointDensity (int ptId) const
float getPointDensity (int primId, int vtNum) const
 Gets the point density, given primitive ID and vertex number.
UT_Vector3 getBaryCenter (int primNum) const

Protected Member Functions

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


Detailed Description

This class holds a polyized geometry for which people can query. This is an alternative representation. This caches the point positions in the SIM_Geometry's space, so are independent of SIM_Geometry's transform.

Definition at line 30 of file SIM_TriangulatedGeometry.h.


Constructor & Destructor Documentation

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

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


Member Function Documentation

UT_Vector3 SIM_TriangulatedGeometry::getBaryCenter ( int  primNum  )  const

Returns the barycenter of the triangle. It is estimated from point density (if any)

virtual bool SIM_TriangulatedGeometry::getIsAlternateRepresentationSubclass (  )  const [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.

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

int SIM_TriangulatedGeometry::getPointCount (  )  const

Returns the total number of points.

float SIM_TriangulatedGeometry::getPointDensity ( int  primId,
int  vtNum 
) const

Gets the point density, given primitive ID and vertex number.

float SIM_TriangulatedGeometry::getPointDensity ( int  ptId  )  const

Returns the baryCenter of a given primitive Gets the point density, given point ID

int SIM_TriangulatedGeometry::getPointId ( int  primId,
int  vtNum 
) const

Gets the corresponding point id given a vertex number and a primitive id

UT_Vector4 SIM_TriangulatedGeometry::getPointPos ( int  primId,
int  vtNum 
) const

Gets the position of a point in SIM_Geometry space, given primitive ID and vertex number

UT_Vector4 SIM_TriangulatedGeometry::getPointPos ( int  ptId  )  const

Gets the position of a point in SIM_Geometry space, given point ID.

int SIM_TriangulatedGeometry::getPrimitiveCount (  )  const

Gets the number of primitives.

int SIM_TriangulatedGeometry::getVertexCount ( int  primNum = 0  )  const

Gets the number of vertices of a given primitive.

void SIM_TriangulatedGeometry::init (  )  const

initializes alternate geometry for lite functions

virtual void SIM_TriangulatedGeometry::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.


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

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