OptiX  3.9
NVIDIA OptiX Acceleration Engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Member Functions | Friends | List of all members
optix::GeometryGroupObj Class Reference

Detailed Description

GeometryGroup wraps the OptiX C API RTgeometrygroup opaque type and its associated function set.

Inheritance diagram for optix::GeometryGroupObj:
optix::DestroyableObj optix::APIObj

Public Member Functions

void destroy ()
 
void validate ()
 
Context getContext () const
 
RTgeometrygroup get ()
 
void setAcceleration (Acceleration acceleration)
 
Acceleration getAcceleration () const
 
void setChildCount (unsigned int count)
 
unsigned int getChildCount () const
 
void setChild (unsigned int index, GeometryInstance geometryinstance)
 
GeometryInstance getChild (unsigned int index) const
 
unsigned int addChild (GeometryInstance child)
 
unsigned int removeChild (GeometryInstance child)
 
void removeChild (int index)
 
void removeChild (unsigned int index)
 
unsigned int getChildIndex (GeometryInstance child) const
 
- Public Member Functions inherited from optix::APIObj
void addReference ()
 
int removeReference ()
 
virtual void checkError (RTresult code) const
 
virtual void checkError (RTresult code, Context context) const
 
void checkErrorNoGetContext (RTresult code) const
 

Friends

class Handle< GeometryGroupObj >
 

Additional Inherited Members

- Static Public Member Functions inherited from optix::APIObj
static Exception makeException (RTresult code, RTcontext context)
 

Member Function Documentation

unsigned int optix::GeometryGroupObj::removeChild ( GeometryInstance  child)
inline

Remove a child in this group. Note: this function is not order-preserving. Returns the position of the removed element if succeeded. Throws RT_ERROR_INVALID_VALUE if the parameter is invalid.

void optix::GeometryGroupObj::removeChild ( int  index)
inline

Remove a child in this group. Note: this function is not order-preserving. Throws RT_ERROR_INVALID_VALUE if the parameter is invalid.

void optix::GeometryGroupObj::removeChild ( unsigned int  index)
inline

Remove a child in this group. Note: this function is not order-preserving. Throws RT_ERROR_INVALID_VALUE if the parameter is invalid.

void optix::GeometryGroupObj::setAcceleration ( Acceleration  acceleration)
inline

Set the Acceleration structure for this group. See rtGeometryGroupSetAcceleration.

void optix::GeometryGroupObj::setChildCount ( unsigned int  count)
inline

Set the number of children for this group. See rtGeometryGroupSetChildCount.