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

#include <GT_PrimTetra.h>

+ Inheritance diagram for HDK_Sample::GT_PrimTetraCollect:

Public Member Functions

 GT_PrimTetraCollect (const GA_PrimitiveTypeId &id)
 
 ~GT_PrimTetraCollect () override
 Destructor. More...
 
GT_GEOPrimCollectDatabeginCollecting (const GT_GEODetailListHandle &geometry, const GT_RefineParms *parms) const override
 Return a structure to capture all the tet primitives. More...
 
GT_PrimitiveHandle collect (const GT_GEODetailListHandle &geometry, const GEO_Primitive *const *prim_list, int nsegments, GT_GEOPrimCollectData *data) const override
 When refining a single tet primitive, we add it to the container. More...
 
GT_PrimitiveHandle endCollecting (const GT_GEODetailListHandle &geometry, GT_GEOPrimCollectData *data) const override
 At the end of collecting, the single outside skin is generated. More...
 
- Public Member Functions inherited from GT_GEOPrimCollect
 GT_GEOPrimCollect ()
 Constructor. More...
 
virtual ~GT_GEOPrimCollect ()
 Destructor. More...
 
void bind (const GA_PrimitiveTypeId &id) const
 

Static Public Member Functions

static void registerPrimitive (const GA_PrimitiveTypeId &id)
 Register the GT collector. More...
 
- 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

Hook to handle tesselation of tetra primitives

When rendering tet primitives, collect all the tet primitives together, then a single polygonal mesh is generated as a result.

Definition at line 37 of file GT_PrimTetra.h.

Constructor & Destructor Documentation

GT_PrimTetraCollect::GT_PrimTetraCollect ( const GA_PrimitiveTypeId id)

Constructor. The id is used to bind the collector to the proper primitive type.

Examples:
tetprim/GT_PrimTetra.C, and tetprim/GT_PrimTetra.h.

Definition at line 44 of file GT_PrimTetra.C.

GT_PrimTetraCollect::~GT_PrimTetraCollect ( )
override

Destructor.

Examples:
tetprim/GT_PrimTetra.h.

Definition at line 53 of file GT_PrimTetra.C.

Member Function Documentation

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

Return a structure to capture all the tet primitives.

Reimplemented from GT_GEOPrimCollect.

Examples:
tetprim/GT_PrimTetra.C, and tetprim/GT_PrimTetra.h.

Definition at line 58 of file GT_PrimTetra.C.

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

When refining a single tet primitive, we add it to the container.

Implements GT_GEOPrimCollect.

Examples:
tetprim/GT_PrimTetra.C, and tetprim/GT_PrimTetra.h.

Definition at line 66 of file GT_PrimTetra.C.

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

At the end of collecting, the single outside skin is generated.

Reimplemented from GT_GEOPrimCollect.

Examples:
tetprim/GT_PrimTetra.C, and tetprim/GT_PrimTetra.h.

Definition at line 78 of file GT_PrimTetra.C.

void GT_PrimTetraCollect::registerPrimitive ( const GA_PrimitiveTypeId id)
static

Register the GT collector.

Examples:
tetprim/GEO_PrimTetra.C, tetprim/GT_PrimTetra.C, and tetprim/GT_PrimTetra.h.

Definition at line 38 of file GT_PrimTetra.C.


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