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::SelectorObj Class Reference

Detailed Description

Selector wraps the OptiX C API RTselector opaque type and its associated function set.

Inheritance diagram for optix::SelectorObj:
optix::DestroyableObj optix::APIObj

Public Member Functions

void destroy ()
 
void validate ()
 
Context getContext () const
 
RTselector get ()
 
void setVisitProgram (Program program)
 
Program getVisitProgram () const
 
void setChildCount (unsigned int count)
 
unsigned int getChildCount () const
 
template<typename T >
void setChild (unsigned int index, T child)
 
template<typename T >
getChild (unsigned int index) const
 
RTobjecttype getChildType (unsigned int index) const
 
template<typename T >
unsigned int addChild (T child)
 
template<typename T >
unsigned int removeChild (T child)
 
void removeChild (int index)
 
void removeChild (unsigned int index)
 
template<typename T >
unsigned int getChildIndex (T child) const
 
Variable declareVariable (const std::string &name)
 
Variable queryVariable (const std::string &name) const
 
void removeVariable (Variable v)
 
unsigned int getVariableCount () const
 
Variable getVariable (unsigned int index) 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< SelectorObj >
 

Additional Inherited Members

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

Member Function Documentation

template<typename T >
unsigned int optix::SelectorObj::removeChild ( child)
inline

Remove a child in this group and returns the index to the deleted element in case of success. Throws RT_ERROR_INVALID_VALUE if the parameter is invalid. Note: this function shifts down all the elements next to the removed one.

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

Remove a child in this group by its index. Throws RT_ERROR_INVALID_VALUE if the parameter is invalid. Note: this function shifts down all the elements next to the removed one.

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

Remove a child in this group by its index. Throws RT_ERROR_INVALID_VALUE if the parameter is invalid. Note: this function shifts down all the elements next to the removed one.

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

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

void optix::SelectorObj::setVisitProgram ( Program  program)
inline

Set the visitor program for this selector. See rtSelectorSetVisitProgram