sofa::gpu::cuda::CudaPointModel Class Reference

#include <CudaPointModel.h>

Inheritance diagram for sofa::gpu::cuda::CudaPointModel:

Inheritance graph
[legend]
Collaboration diagram for sofa::gpu::cuda::CudaPointModel:

Collaboration graph
[legend]

Public Types

typedef CudaVec3fTypes InDataTypes
typedef CudaVec3fTypes DataTypes
typedef DataTypes::VecCoord VecCoord
typedef DataTypes::VecDeriv VecDeriv
typedef DataTypes::Coord Coord
typedef DataTypes::Deriv Deriv
typedef CudaPoint Element

Public Member Functions

 CudaPointModel ()
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
virtual void resize (int size)
 Set the number of elements.
virtual void computeBoundingTree (int maxDepth=0)
 Create or update the bounding volume hierarchy.
void draw (int index)
 Render an collision element.
void draw ()
 Render the whole collision model.
core::componentmodel::behavior::MechanicalState
< InDataTypes > * 
getMechanicalState ()

Data Fields

Data< int > groupSize

Protected Attributes

core::componentmodel::behavior::MechanicalState
< InDataTypes > * 
mstate

Friends

class CudaPoint

Detailed Description

Definition at line 62 of file CudaPointModel.h.


Member Typedef Documentation

Definition at line 69 of file CudaPointModel.h.

Definition at line 66 of file CudaPointModel.h.

Definition at line 70 of file CudaPointModel.h.

Definition at line 71 of file CudaPointModel.h.

Definition at line 65 of file CudaPointModel.h.

Definition at line 67 of file CudaPointModel.h.

Definition at line 68 of file CudaPointModel.h.


Constructor & Destructor Documentation

sofa::gpu::cuda::CudaPointModel::CudaPointModel (  ) 

Definition at line 49 of file CudaPointModel.cpp.


Member Function Documentation

void sofa::gpu::cuda::CudaPointModel::computeBoundingTree ( int  maxDepth = 0  )  [virtual]

void sofa::gpu::cuda::CudaPointModel::draw (  )  [virtual]

void sofa::gpu::cuda::CudaPointModel::draw ( int   )  [virtual]

Render an collision element.

Reimplemented from sofa::core::CollisionModel.

Definition at line 77 of file CudaPointModel.cpp.

References groupSize, mstate, and sofa::core::CollisionModel::size.

core::componentmodel::behavior::MechanicalState<InDataTypes>* sofa::gpu::cuda::CudaPointModel::getMechanicalState ( void   )  [inline]

void sofa::gpu::cuda::CudaPointModel::init ( void   )  [virtual]

Initialization method called at graph modification, during bottom-up traversal.

Reimplemented from sofa::core::objectmodel::BaseObject.

Definition at line 60 of file CudaPointModel.cpp.

References sofa::core::objectmodel::BaseObject::getContext(), sofa::core::objectmodel::BaseContext::getMechanicalState(), groupSize, mstate, and resize().

void sofa::gpu::cuda::CudaPointModel::resize ( int  s  )  [virtual]

Set the number of elements.

Reimplemented from sofa::core::CollisionModel.

Definition at line 55 of file CudaPointModel.cpp.

Referenced by computeBoundingTree(), and init().


Friends And Related Function Documentation

friend class CudaPoint [friend]

Definition at line 72 of file CudaPointModel.h.


Field Documentation

Definition at line 74 of file CudaPointModel.h.

Referenced by computeBoundingTree(), draw(), and init().

Definition at line 96 of file CudaPointModel.h.

Referenced by computeBoundingTree(), draw(), getMechanicalState(), and init().


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

Generated on Sun Nov 23 04:24:05 2008 for Sofa by  doxygen 1.5.7.1