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

#include <GT_GEOPrimitive.h>

Public Member Functions

 GEOPrimitivePair ()
 
 GEOPrimitivePair (const GEO_Primitive *prim)
 
 GEOPrimitivePair (const GU_ConstDetailHandle &gdh, GA_Index idx)
 
void init (const GEO_Primitive *prim)
 
void init (const GU_ConstDetailHandle &gdh, GA_Index idx)
 
void init (const GU_Detail *gdp, GA_Index idx)
 
const GEO_Primitiveprimitive () const
 
template<typename T >
const TprimitiveAs () const
 
GA_Index mapIndex () const
 
bool update (const GU_ConstDetailHandle &dtl)
 
bool update (const GU_Detail *gdp)
 

Detailed Description

GT holds onto GU_DetailHandle objects. However, it's possible for a user (SOP) to change the GU_Detail stored in the GU_DetailHandle without changing the GU_DetailHandle. This can leave stale primitive pointers. The GEOPrimitivePair object has a method to refresh the pointer to ensure it remains valid.

Definition at line 43 of file GT_GEOPrimitive.h.

Constructor & Destructor Documentation

GT_GEOPrimitive::GEOPrimitivePair::GEOPrimitivePair ( )
inline

Definition at line 46 of file GT_GEOPrimitive.h.

GT_GEOPrimitive::GEOPrimitivePair::GEOPrimitivePair ( const GEO_Primitive prim)
inline

Definition at line 48 of file GT_GEOPrimitive.h.

GT_GEOPrimitive::GEOPrimitivePair::GEOPrimitivePair ( const GU_ConstDetailHandle gdh,
GA_Index  idx 
)
inline

Definition at line 50 of file GT_GEOPrimitive.h.

Member Function Documentation

void GT_GEOPrimitive::GEOPrimitivePair::init ( const GEO_Primitive prim)
void GT_GEOPrimitive::GEOPrimitivePair::init ( const GU_ConstDetailHandle gdh,
GA_Index  idx 
)
void GT_GEOPrimitive::GEOPrimitivePair::init ( const GU_Detail gdp,
GA_Index  idx 
)
GA_Index GT_GEOPrimitive::GEOPrimitivePair::mapIndex ( ) const
inline

Definition at line 66 of file GT_GEOPrimitive.h.

const GEO_Primitive* GT_GEOPrimitive::GEOPrimitivePair::primitive ( ) const
inline

Definition at line 63 of file GT_GEOPrimitive.h.

template<typename T >
const T* GT_GEOPrimitive::GEOPrimitivePair::primitiveAs ( ) const
inline

Definition at line 64 of file GT_GEOPrimitive.h.

bool GT_GEOPrimitive::GEOPrimitivePair::update ( const GU_ConstDetailHandle dtl)

Reports true if the primitive pointer has changed

bool GT_GEOPrimitive::GEOPrimitivePair::update ( const GU_Detail gdp)

Reports true if the primitive pointer has changed


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