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::prime::ModelObj Class Reference

Detailed Description

Encapsulates an OptiX Prime model. The purpose of a model is to represent a set of triangles and an acceleration structure.

Inheritance diagram for optix::prime::ModelObj:

Public Member Functions

Query createQuery (RTPquerytype queryType)
 
Context getContext ()
 
void finish ()
 
int isFinished ()
 
void update (unsigned hints)
 
void copy (const Model &srcModel)
 
void setTriangles (RTPsize triCount, RTPbuffertype type, const void *vertPtr, unsigned stride=0)
 
void setTriangles (RTPsize triCount, RTPbuffertype type, const void *indexPtr, RTPsize vertCount, RTPbuffertype vertType, const void *vertPtr, unsigned stride=0)
 
void setTriangles (const BufferDesc &vertices)
 
void setTriangles (const BufferDesc &indices, const BufferDesc &vertices)
 
void setInstances (RTPsize count, RTPbuffertype instanceType, const RTPmodel *instanceList, RTPbufferformat transformFormat, RTPbuffertype transformType, const void *transformList)
 
void setInstances (const BufferDesc &instances, const BufferDesc &transforms)
 
void setBuilderParameter (RTPbuilderparam param, RTPsize size, const void *p)
 
template<typename T >
void setBuilderParameter (RTPbuilderparam param, const T &val)
 
RTPmodel getRTPmodel ()
 

Friends

class ContextObj
 
class QueryObj
 

Member Function Documentation

void optix::prime::ModelObj::setBuilderParameter ( RTPbuilderparam  param,
RTPsize  size,
const void *  p 
)
inline

Sets a model build parameter See rtpModelSetBuilderParameter for additional information

template<typename T >
void optix::prime::ModelObj::setBuilderParameter ( RTPbuilderparam  param,
const T &  val 
)

Sets a model build parameter See rtpModelSetBuilderParameter for additional information

void optix::prime::ModelObj::setInstances ( RTPsize  count,
RTPbuffertype  instanceType,
const RTPmodel instanceList,
RTPbufferformat  transformFormat,
RTPbuffertype  transformType,
const void *  transformList 
)
inline

Sets the instance data for a model. This function creates buffer descriptors of the specified types and formats, populates them with the supplied data and assigns them to the model. See rtpModelSetInstances for additional information

void optix::prime::ModelObj::setInstances ( const BufferDesc instances,
const BufferDesc transforms 
)
inline

Sets the instance data for a model using the supplied buffer descriptors. See rtpModelSetInstances for additional information

void optix::prime::ModelObj::setTriangles ( RTPsize  triCount,
RTPbuffertype  type,
const void *  vertPtr,
unsigned  stride = 0 
)
inline

Sets the triangle data for a model. This function creates a buffer descriptor of the specified type, populates it with the supplied data and assigns it to the model. The list of vertices is assumed to be a flat list of triangles and each three vertices form a single triangle. See rtpModelSetTriangles for additional information

void optix::prime::ModelObj::setTriangles ( RTPsize  triCount,
RTPbuffertype  type,
const void *  indexPtr,
RTPsize  vertCount,
RTPbuffertype  vertType,
const void *  vertPtr,
unsigned  stride = 0 
)
inline

Sets the triangle data for a model. This function creates buffer descriptors of the specified types, populates them with the supplied data and assigns them to the model. The list of vertices uses the indices list to determine the triangles. See rtpModelSetTriangles for additional information

void optix::prime::ModelObj::setTriangles ( const BufferDesc vertices)
inline

Sets the triangle data for a model using the supplied buffer descriptor of vertices. The list of vertices is assumed to be a flat list of triangles and each three vertices shape a single triangle. See rtpModelSetTriangles for additional information

void optix::prime::ModelObj::setTriangles ( const BufferDesc indices,
const BufferDesc vertices 
)
inline

Sets the triangle data for a model using the supplied buffer descriptor of vertices. The list of vertices uses the indices list to determine the triangles. See rtpModelSetTriangles for additional information