CCD Class Reference

Manage continuous collision detection processes. More...

#include <CCD.h>

List of all members.

Public Member Functions

void setOutput (CCD_Output *output)
int addObject (CCD_Object *obj)
int delObject (int objID)
void readyCCD (UINT startFrame, UINT endFrame, UINT interpolation)
void performCCD ()
void nextFrame (void)
void visualizeBVH (int level)
void visualizeObjects (void)


Detailed Description

Manage continuous collision detection processes.

A CCD class. It maintain information for performing CCD.

Author:
Duksu Kim ( bluekds@tclab.kaist.ac.kr )

SGLAB, KAIST ( http://sglab.kaist.ac.kr )

Version:
0.5

Member Function Documentation

int CCD::addObject ( CCD_Object obj  ) 

Add a object to the collision test.

Parameters:
obj The pointer indicating instance of object class which is added to the collision test.
Returns:
The ID allocating to the object

int CCD::delObject ( int  objID  ) 

Delete a object from the collision test.

Parameters:
objID ID of the object that will be removed from the collision test.
Returns:
The number of objects in CCD

void CCD::nextFrame ( void   ) 

Move to next frame if it has next frame.

void CCD::performCCD (  ) 

Perform continuous collision detection

void CCD::readyCCD ( UINT  startFrame,
UINT  endFrame,
UINT  interpolation 
)

Ready to perform CCD

Parameters:
startFrame The frame number of starting frame
endFrame The frame number of final frame
interpolation Set the number of in-between frame among two frames

void CCD::setOutput ( CCD_Output output  )  [inline]

Set the CCD_Ouput instance that is used for collect the result of CCD.

Parameters:
output The pointer of CCD_Output class

void CCD::visualizeBVH ( int  level  ) 

If you want to visualize BVHs, you can call this method at the display part of openGL

Parameters:
level The BV level which you want to see

void CCD::visualizeObjects ( void   ) 

If you want to visualize objects, you can call this method at the display part of openGL


The documentation for this class was generated from the following files:


Maintained by: DukSu Kim, (bluekdct at gmail dot com) , Sung-Eui Yoon (sungeui at gmail dot com)
Copyright 2009 SGlab, KAIST.