IRdOBBTree Interface Reference

Inherits IRsDataObject.

List of all members.

Public Member Functions

HRESULT GetBBox ([in] IRdMatrixf *pMatrix,[out] RtFloat *box)
HRESULT SetOBBox ([in] RtOBBox *obbox)
HRESULT TransformOBBox ([in] IRdMatrixf *matrix)
HRESULT LockData ([out, retval] RtOBBox **pObbTree)
HRESULT UnLockData (void)
HRESULT SetMesh ([in] IRdMesh *pMesh)
HRESULT GetMesh ([out] IRdMesh **pMesh)
HRESULT GetOBBox ([in] RtMatrixf *matrix,[out] RtFloat *box)


Detailed Description

IRdOBBTree interface provides access to object's collision shape data.

Member Function Documentation

HRESULT IRdOBBTree::GetBBox ( [in] IRdMatrixf pMatrix,
[out] RtFloat *  box 
)

Return axis aligned box

Parameters:
pMateix - transformation matrix from object coordinate to world coordinate
box - bounding box {xmin, xmax,....,zmax}

HRESULT IRdOBBTree::SetOBBox ( [in] RtOBBox *  obbox  ) 

Load oriented bounding box

Parameters:
obbox - oriented bounding box

HRESULT IRdOBBTree::TransformOBBox ( [in] IRdMatrixf matrix  ) 

Transform oriented bounding box

Parameters:
matrix - transformation matrix

HRESULT IRdOBBTree::LockData ( [out, retval] RtOBBox **  pObbTree  ) 

Return pointer to oriented bounding box, lock data object

Parameters:
pObbTree - pointer to oriented bounding box

HRESULT IRdOBBTree::UnLockData ( void   ) 

Unlock data object

HRESULT IRdOBBTree::SetMesh ( [in] IRdMesh pMesh  ) 

Load pointer to source mesh for oriented bounding box

Parameters:
pMesh - mesh object

HRESULT IRdOBBTree::GetMesh ( [out] IRdMesh **  pMesh  ) 

Retrun source mesh of oriented bounding box

Parameters:
pMesh - mesh object

HRESULT IRdOBBTree::GetOBBox ( [in] RtMatrixf matrix,
[out] RtFloat *  box 
)

Return top oriented bounding box in local coordinate

Parameters:
pVal active flag


Generated on Wed May 20 21:32:03 2009 for trueSpace7.6 SDK by  doxygen 1.5.5