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

The primitive render hook which creates GR_PrimTetra objects. More...

#include <GR_PrimTetra.h>

+ Inheritance diagram for HDK_Sample::GR_PrimTetraHook:

Public Member Functions

 GR_PrimTetraHook ()
 
 ~GR_PrimTetraHook () override
 
GR_PrimitivecreatePrimitive (const GT_PrimitiveHandle &gt_prim, const GEO_Primitive *geo_prim, const GR_RenderInfo *info, const char *cache_name, GR_PrimAcceptResult &processed) override
 
- Public Member Functions inherited from GUI_PrimitiveHook
 GUI_PrimitiveHook (const char *hook_name, GUI_RenderMask mask=GUI_RENDER_MASK_ALL)
 
const char * getName () const
 Name of this hook. More...
 
GUI_RenderMask getRenderMask () const
 Bitmask of renderers supported by this hook. More...
 
virtual GT_PrimitiveHandle filterPrimitive (const GT_PrimitiveHandle &gt_prm, const GEO_Primitive *geo_prm, const GR_RenderInfo *info, GR_PrimAcceptResult &processed)
 

Additional Inherited Members

- Protected Member Functions inherited from GUI_PrimitiveHook
virtual ~GUI_PrimitiveHook ()
 

Detailed Description

The primitive render hook which creates GR_PrimTetra objects.

Examples:
tetprim/GEO_PrimTetra.C.

Definition at line 37 of file GR_PrimTetra.h.

Constructor & Destructor Documentation

GR_PrimTetraHook::GR_PrimTetraHook ( )
Examples:
tetprim/GR_PrimTetra.C, and tetprim/GR_PrimTetra.h.

Definition at line 44 of file GR_PrimTetra.C.

GR_PrimTetraHook::~GR_PrimTetraHook ( )
override
Examples:
tetprim/GR_PrimTetra.h.

Definition at line 49 of file GR_PrimTetra.C.

Member Function Documentation

GR_Primitive * GR_PrimTetraHook::createPrimitive ( const GT_PrimitiveHandle gt_prim,
const GEO_Primitive geo_prim,
const GR_RenderInfo info,
const char *  cache_name,
GR_PrimAcceptResult processed 
)
overridevirtual

This is called when a new GR_Primitive is required for a tetra. gt_prim or geo_prim contains the GT or GEO primitive this object is being created for, depending on whether this hook is registered to capture GT or GEO primitives. info and cache_name should be passed down to the GR_Primitive constructor. processed should return GR_PROCESSED or GR_PROCESSED_NON_EXCLUSIVE if a primitive is created. Non-exclusive allows other render hooks or the native Houdini primitives to be created for the same primitive, which is useful for support hooks (drawing decorations, bounding boxes, etc).

Reimplemented from GUI_PrimitiveHook.

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

Definition at line 54 of file GR_PrimTetra.C.


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