HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_PackedPrimitiveReader Class Reference

#include <SIM_ObjectReader.h>

+ Inheritance diagram for SIM_PackedPrimitiveReader:

Public Member Functions

 SIM_PackedPrimitiveReader (const SIM_Object &obj, const GU_Detail &gdp)
 
SYS_FORCE_INLINE GA_Offset getPointOffset () const
 
const GEO_PrimitivegetPrimitive () const
 Returns the primitive associated with the current point offset. More...
 
GU_ConstDetailHandle getObjectGdp () const override
 Returns the unpacked geometry of the packed primitive. More...
 
const GU_DetailgetSimGdp () const override
 Return the SIM_Object's geometry. More...
 
void getPositionTransform (UT_Matrix4D &xform, bool scale=true) const override
 
UT_Vector3 getCentroid () const override
 
const UT_StringHoldergetName () const
 
void setPrimOffset (GA_Offset primoff, GA_Offset ptoff=GA_INVALID_OFFSET)
 
UT_Vector3 getPivot () const
 
UT_Vector3 getPosition () const
 
UT_Quaternion getOrientation () const override
 
UT_Vector3 getScale () const
 
UT_Vector3 getVelocity () const
 
UT_Vector3 getAngularVelocity () const
 
bool isPivotValid () const
 
bool isPositionValid () const
 
bool isOrientationValid () const
 
bool isVelocityValid () const
 
bool isAngularVelocityValid () const
 
bool isNameValid () const
 
- Public Member Functions inherited from SIM_BaseObjectReader
 SIM_BaseObjectReader (const SIM_Object &obj)
 
virtual ~SIM_BaseObjectReader ()
 
const SIM_ObjectgetObject () const
 Return the SIM_Object. More...
 

Static Public Member Functions

static bool isPackedObject (const SIM_Object *obj)
 
static bool isValidPrimitive (const GEO_Primitive &prim)
 

Additional Inherited Members

- Protected Attributes inherited from SIM_BaseObjectReader
const SIM_ObjectmyObject
 

Detailed Description

Definition at line 76 of file SIM_ObjectReader.h.

Constructor & Destructor Documentation

SIM_PackedPrimitiveReader::SIM_PackedPrimitiveReader ( const SIM_Object obj,
const GU_Detail gdp 
)

Member Function Documentation

UT_Vector3 SIM_PackedPrimitiveReader::getAngularVelocity ( ) const
UT_Vector3 SIM_PackedPrimitiveReader::getCentroid ( ) const
overridevirtual

Implements SIM_BaseObjectReader.

const UT_StringHolder& SIM_PackedPrimitiveReader::getName ( ) const
GU_ConstDetailHandle SIM_PackedPrimitiveReader::getObjectGdp ( ) const
overridevirtual

Returns the unpacked geometry of the packed primitive.

Implements SIM_BaseObjectReader.

UT_Quaternion SIM_PackedPrimitiveReader::getOrientation ( ) const
overridevirtual

Implements SIM_BaseObjectReader.

UT_Vector3 SIM_PackedPrimitiveReader::getPivot ( ) const
SYS_FORCE_INLINE GA_Offset SIM_PackedPrimitiveReader::getPointOffset ( ) const
inline

Definition at line 81 of file SIM_ObjectReader.h.

UT_Vector3 SIM_PackedPrimitiveReader::getPosition ( ) const
void SIM_PackedPrimitiveReader::getPositionTransform ( UT_Matrix4D xform,
bool  scale = true 
) const
overridevirtual

Implements SIM_BaseObjectReader.

const GEO_Primitive* SIM_PackedPrimitiveReader::getPrimitive ( ) const
inline

Returns the primitive associated with the current point offset.

Definition at line 83 of file SIM_ObjectReader.h.

UT_Vector3 SIM_PackedPrimitiveReader::getScale ( ) const
const GU_Detail* SIM_PackedPrimitiveReader::getSimGdp ( ) const
overridevirtual

Return the SIM_Object's geometry.

Implements SIM_BaseObjectReader.

UT_Vector3 SIM_PackedPrimitiveReader::getVelocity ( ) const
bool SIM_PackedPrimitiveReader::isAngularVelocityValid ( ) const
bool SIM_PackedPrimitiveReader::isNameValid ( ) const
bool SIM_PackedPrimitiveReader::isOrientationValid ( ) const
static bool SIM_PackedPrimitiveReader::isPackedObject ( const SIM_Object obj)
static
bool SIM_PackedPrimitiveReader::isPivotValid ( ) const
bool SIM_PackedPrimitiveReader::isPositionValid ( ) const
static bool SIM_PackedPrimitiveReader::isValidPrimitive ( const GEO_Primitive prim)
static

Returns true if the primitive can represent an object (e.g. a packed primitive or sphere).

bool SIM_PackedPrimitiveReader::isVelocityValid ( ) const
void SIM_PackedPrimitiveReader::setPrimOffset ( GA_Offset  primoff,
GA_Offset  ptoff = GA_INVALID_OFFSET 
)

Update the current packed primitive. Optionally, its point offset can be provided if it is already known.


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