#include <CudaPointModel.h>


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 |
Definition at line 62 of file CudaPointModel.h.
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.
| sofa::gpu::cuda::CudaPointModel::CudaPointModel | ( | ) |
Definition at line 49 of file CudaPointModel.cpp.
| void sofa::gpu::cuda::CudaPointModel::computeBoundingTree | ( | int | maxDepth = 0 |
) | [virtual] |
Create or update the bounding volume hierarchy.
Implements sofa::core::CollisionModel.
Definition at line 120 of file CudaPointModel.cpp.
References sofa::component::collision::CubeModel::computeBoundingTree(), sofa::core::CollisionModel::empty(), groupSize, sofa::core::CollisionModel::isMoving(), mstate, sofa::component::collision::CubeModel::resize(), resize(), sofa::component::collision::CubeModel::setParentOf(), and sofa::core::CollisionModel::size.
| void sofa::gpu::cuda::CudaPointModel::draw | ( | ) | [virtual] |
Render the whole collision model.
Reimplemented from sofa::core::CollisionModel.
Definition at line 92 of file CudaPointModel.cpp.
References sofa::core::CollisionModel::draw(), sofa::core::CollisionModel::getColor4f(), sofa::core::objectmodel::BaseObject::getContext(), sofa::core::CollisionModel::getPrevious(), sofa::core::CollisionModel::isActive(), and sofa::core::CollisionModel::size.
| 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] |
Definition at line 92 of file CudaPointModel.h.
References mstate.
Referenced by sofa::gpu::cuda::CudaCollisionDetection::PointRigidTest::fillInfo().
| 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().
friend class CudaPoint [friend] |
Definition at line 72 of file CudaPointModel.h.
Definition at line 74 of file CudaPointModel.h.
Referenced by computeBoundingTree(), draw(), and init().
core::componentmodel::behavior::MechanicalState<InDataTypes>* sofa::gpu::cuda::CudaPointModel::mstate [protected] |
Definition at line 96 of file CudaPointModel.h.
Referenced by computeBoundingTree(), draw(), getMechanicalState(), and init().
1.5.7.1