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

#include <GT_PackedUSD.h>

+ Inheritance diagram for GusdGT_PrimCollect:

Public Member Functions

 GusdGT_PrimCollect ()
 
 ~GusdGT_PrimCollect () override
 
GT_GEOPrimCollectDatabeginCollecting (const GT_GEODetailListHandle &geometry, const GT_RefineParms *parms) const override
 
GT_PrimitiveHandle collect (const GT_GEODetailListHandle &geo, const GEO_Primitive *const *prim_list, int nsegments, GT_GEOPrimCollectData *data) const override
 
GT_PrimitiveHandle endCollecting (const GT_GEODetailListHandle &geometry, GT_GEOPrimCollectData *data) const override
 
- Public Member Functions inherited from GT_GEOPrimCollect
 GT_GEOPrimCollect ()
 Constructor. More...
 
virtual ~GT_GEOPrimCollect ()
 Destructor. More...
 
void bind (const GA_PrimitiveTypeId &id) const
 

Additional Inherited Members

- Static Public Member Functions inherited from GT_GEOPrimCollect
static GT_GEOPrimCollectPtr getCollector (const GA_PrimitiveTypeId &id)
 Get the current collector bound for a primitive. More...
 

Detailed Description

Definition at line 193 of file GT_PackedUSD.h.

Constructor & Destructor Documentation

GusdGT_PrimCollect::GusdGT_PrimCollect ( )
inline

Definition at line 196 of file GT_PackedUSD.h.

GusdGT_PrimCollect::~GusdGT_PrimCollect ( )
override

Member Function Documentation

GT_GEOPrimCollectData* GusdGT_PrimCollect::beginCollecting ( const GT_GEODetailListHandle geometry,
const GT_RefineParms parms 
) const
overridevirtual

This method is called when the detail begins collecting. The method may or may not be called if there are now collectable primitives in the detail.

The data container is passed to the collect() and endCollect() methods. It is automatically deleted on completion. If no data is needed for collection, this method should return a NULL pointer (which is the default behaviour).

Reimplemented from GT_GEOPrimCollect.

GT_PrimitiveHandle GusdGT_PrimCollect::collect ( const GT_GEODetailListHandle geometry,
const GEO_Primitive *const prim_list,
int  nsegments,
GT_GEOPrimCollectData data 
) const
overridevirtual

For each matching primitive in the detail, this method will be called. If no GT primitive should be created, return an empty handle.

Implements GT_GEOPrimCollect.

GT_PrimitiveHandle GusdGT_PrimCollect::endCollecting ( const GT_GEODetailListHandle geometry,
GT_GEOPrimCollectData data 
) const
overridevirtual

Complete any processing fter all primitives have been collected

This method should not delete the collection data

Reimplemented from GT_GEOPrimCollect.


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