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

Trivial collector class for Channel - 1 GT_PrimChannel per Channel primitive. More...

#include <GT_PrimChannel.h>

+ Inheritance diagram for GT_GEOPrimCollectChannel:

Public Member Functions

 GT_GEOPrimCollectChannel ()
 
 ~GT_GEOPrimCollectChannel () override
 
GT_GEOPrimCollectDatabeginCollecting (const GT_GEODetailListHandle &geometry, const GT_RefineParms *parms) const override
 
GT_PrimitiveHandle collect (const GT_GEODetailListHandle &, const GEO_Primitive *const *prim_list, int, GT_GEOPrimCollectData *) 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

Trivial collector class for Channel - 1 GT_PrimChannel per Channel primitive.

Definition at line 62 of file GT_PrimChannel.h.

Constructor & Destructor Documentation

GT_GEOPrimCollectChannel::GT_GEOPrimCollectChannel ( )
inline

Definition at line 65 of file GT_PrimChannel.h.

GT_GEOPrimCollectChannel::~GT_GEOPrimCollectChannel ( )
inlineoverride

Definition at line 66 of file GT_PrimChannel.h.

Member Function Documentation

GT_GEOPrimCollectData* GT_GEOPrimCollectChannel::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 GT_GEOPrimCollectChannel::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 GT_GEOPrimCollectChannel::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: