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

Detailed Description

GeometryInstance wraps the OptiX C API RTgeometryinstance acceleration opaque type and its associated function set.

Inheritance diagram for optix::GeometryInstanceObj:
optix::ScopedObj optix::DestroyableObj optix::APIObj

Public Member Functions

void destroy ()
 
void validate ()
 
Context getContext () const
 
RTgeometryinstance get ()
 
void setGeometry (Geometry geometry)
 
Geometry getGeometry () const
 
void setMaterialCount (unsigned int count)
 
unsigned int getMaterialCount () const
 
void setMaterial (unsigned int idx, Material material)
 
Material getMaterial (unsigned int idx) const
 
unsigned int addMaterial (Material material)
 
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< GeometryInstanceObj >
 

Additional Inherited Members

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

Member Function Documentation

Variable optix::GeometryInstanceObj::declareVariable ( const std::string &  name)
inlinevirtual

Declare a variable associated with this object. See rt[ObjectType]DeclareVariable. Note that this function is wrapped by the convenience function Handle::operator[].

Implements optix::ScopedObj.

unsigned int optix::GeometryInstanceObj::getVariableCount ( ) const
inlinevirtual

Query the number of variables associated with this object. Used along with ScopedObj::getVariable to iterate over variables in an object. See rt[ObjectType]GetVariableCount

Implements optix::ScopedObj.

Variable optix::GeometryInstanceObj::queryVariable ( const std::string &  name) const
inlinevirtual

Query a variable associated with this object by name. See rt[ObjectType]QueryVariable. Note that this function is wrapped by the convenience function Handle::operator[].

Implements optix::ScopedObj.

void optix::GeometryInstanceObj::setGeometry ( Geometry  geometry)
inline

Set the geometry object associated with this instance. See rtGeometryInstanceSetGeometry.