#include <SphereTreeModel.h>


Public Types | |
| typedef Vec3Types | DataTypes |
| typedef DataTypes::Real | Real |
| typedef DataTypes::Coord | Coord |
| typedef DataTypes::Deriv | Deriv |
Public Member Functions | |
| SingleSphere (SphereTreeModel *model, int index) | |
| Constructor. | |
| SingleSphere (core::CollisionElementIterator &i) | |
| Constructor. | |
| const Vector3 & | center () const |
| Returns center of the sphere. | |
| void | setCenter (double x, double y, double z) |
| Set center of sphere. | |
| const Vector3 & | v () const |
| double | r () const |
| Returns the radius of the sphere "i". | |
It should not contain any data information. We are trying not to store virtual classes for each element. In this way we avoid overheading
Definition at line 67 of file SphereTreeModel.h.
Definition at line 72 of file SphereTreeModel.h.
Definition at line 70 of file SphereTreeModel.h.
Definition at line 73 of file SphereTreeModel.h.
Definition at line 71 of file SphereTreeModel.h.
| sofa::component::collision::SingleSphere::SingleSphere | ( | SphereTreeModel * | model, | |
| int | index | |||
| ) | [inline] |
Constructor.
Inline definitions of class SingleSphere.
Constructor
Definition at line 176 of file SphereTreeModel.h.
| sofa::component::collision::SingleSphere::SingleSphere | ( | core::CollisionElementIterator & | i | ) | [inline, explicit] |
| const Vector3 & sofa::component::collision::SingleSphere::center | ( | ) | const [inline] |
Returns center of the sphere.
It points (according to the index "i") to the DOF's of the collision model i.e. the centers of the spheres
Definition at line 187 of file SphereTreeModel.h.
References sofa::core::BaseCollisionElementIterator::index, and sofa::core::TCollisionElementIterator< TModel >::model.
| double sofa::component::collision::SingleSphere::r | ( | ) | const [inline] |
Returns the radius of the sphere "i".
Definition at line 202 of file SphereTreeModel.h.
References sofa::core::BaseCollisionElementIterator::index, and sofa::core::TCollisionElementIterator< TModel >::model.
Referenced by sofa::component::collision::ContactMapper< SphereTreeModel, DataTypes >::addPoint().
| void sofa::component::collision::SingleSphere::setCenter | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) | [inline] |
Set center of sphere.
It modifies the center of the sphere with index "i" i.e. it modifies one element of the DOF's of the collision model
Definition at line 197 of file SphereTreeModel.h.
References sofa::core::BaseCollisionElementIterator::index, and sofa::core::TCollisionElementIterator< TModel >::model.
Referenced by sofa::component::collision::SphereTreeModel::loadSphereTree().
| const Vector3 & sofa::component::collision::SingleSphere::v | ( | ) | const [inline] |
Definition at line 192 of file SphereTreeModel.h.
References sofa::core::BaseCollisionElementIterator::index, and sofa::core::TCollisionElementIterator< TModel >::model.
1.5.7.1