HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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)
 
virtual ~GT_PrimTetraCollect ()
 Destructor. More...
 
virtual GT_GEOPrimCollectDatabeginCollecting (const GT_GEODetailListHandle &geometry, const GT_RefineParms *parms) const
 Return a structure to capture all the tet primitives. More...
 
virtual GT_PrimitiveHandle collect (const GT_GEODetailListHandle &geometry, const GEO_Primitive *const *prim_list, int nsegments, GT_GEOPrimCollectData *data) const
 When refining a single tet primitive, we add it to the container. More...
 
virtual GT_PrimitiveHandle endCollecting (const GT_GEODetailListHandle &geometry, GT_GEOPrimCollectData *data) const
 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 29 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 36 of file GT_PrimTetra.C.

GT_PrimTetraCollect::~GT_PrimTetraCollect ( )
virtual

Destructor.

Examples:
tetprim/GT_PrimTetra.h.

Definition at line 45 of file GT_PrimTetra.C.

Member Function Documentation

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

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 50 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
virtual

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 58 of file GT_PrimTetra.C.

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

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 70 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 30 of file GT_PrimTetra.C.


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