sofa::component::collision::MinProximityIntersection Class Reference

#include <MinProximityIntersection.h>

Inheritance diagram for sofa::component::collision::MinProximityIntersection:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::collision::MinProximityIntersection:

Collaboration graph
[legend]

Public Member Functions

 MinProximityIntersection ()
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
virtual bool useProximity () const
 returns true if algorithm uses proximity
double getAlarmDistance () const
 Return the alarm distance (must return 0 if useMinProximity() is false).
double getContactDistance () const
 Return the contact distance (must return 0 if useMinProximity() is false).
void setAlarmDistance (double v)
void setContactDistance (double v)
bool testIntersection (Cube &, Cube &)
bool testIntersection (Point &, Point &)
bool testIntersection (Sphere &, Point &)
bool testIntersection (Sphere &, Sphere &)
bool testIntersection (Line &, Point &)
bool testIntersection (Line &, Sphere &)
bool testIntersection (Line &, Line &)
bool testIntersection (Triangle &, Point &)
bool testIntersection (Triangle &, Sphere &)
int computeIntersection (Cube &, Cube &, OutputVector *)
int computeIntersection (Point &, Point &, OutputVector *)
int computeIntersection (Sphere &, Point &, OutputVector *)
int computeIntersection (Sphere &, Sphere &, OutputVector *)
int computeIntersection (Line &, Point &, OutputVector *)
int computeIntersection (Line &, Sphere &, OutputVector *)
int computeIntersection (Line &, Line &, OutputVector *)
int computeIntersection (Triangle &, Point &, OutputVector *)
int computeIntersection (Triangle &, Sphere &, OutputVector *)
void draw ()
 Render internal data of this object, for debugging purposes.

Data Fields

Data< bool > useSphereTriangle
Data< bool > usePointPoint
Data< double > alarmDistance
Data< double > contactDistance

Private Attributes

double mainAlarmDistance
double mainContactDistance

Detailed Description

Definition at line 46 of file MinProximityIntersection.h.


Constructor & Destructor Documentation

sofa::component::collision::MinProximityIntersection::MinProximityIntersection (  ) 

Definition at line 58 of file MinProximityIntersection.cpp.


Member Function Documentation

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Triangle &  e2,
Sphere &  e1,
OutputVector *  contacts 
)

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Triangle &  e2,
Point &  e1,
OutputVector *  contacts 
)

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Line &  e1,
Line &  e2,
OutputVector *  contacts 
)

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Line &  e2,
Sphere &  e1,
OutputVector *  contacts 
)

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Line &  e2,
Point &  e1,
OutputVector *  contacts 
)

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Sphere &  ,
Sphere &  ,
OutputVector *   
)

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Sphere &  e1,
Point &  e2,
OutputVector *  contacts 
)

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Point &  e1,
Point &  e2,
OutputVector *  contacts 
)

int sofa::component::collision::MinProximityIntersection::computeIntersection ( Cube &  ,
Cube &  ,
OutputVector *   
)

void sofa::component::collision::MinProximityIntersection::draw (  )  [virtual]

Render internal data of this object, for debugging purposes.

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

Definition at line 764 of file MinProximityIntersection.cpp.

References sofa::core::objectmodel::BaseObject::getContext().

double sofa::component::collision::MinProximityIntersection::getAlarmDistance (  )  const [inline, virtual]

Return the alarm distance (must return 0 if useMinProximity() is false).

Reimplemented from sofa::core::componentmodel::collision::Intersection.

Definition at line 62 of file MinProximityIntersection.h.

References alarmDistance, and sofa::core::objectmodel::Data< T >::getValue().

Referenced by computeIntersection(), and testIntersection().

double sofa::component::collision::MinProximityIntersection::getContactDistance (  )  const [inline, virtual]

Return the contact distance (must return 0 if useMinProximity() is false).

Reimplemented from sofa::core::componentmodel::collision::Intersection.

Definition at line 65 of file MinProximityIntersection.h.

References contactDistance, and sofa::core::objectmodel::Data< T >::getValue().

Referenced by computeIntersection().

void sofa::component::collision::MinProximityIntersection::init ( void   )  [virtual]

void sofa::component::collision::MinProximityIntersection::setAlarmDistance ( double  v  )  [inline]

void sofa::component::collision::MinProximityIntersection::setContactDistance ( double  v  )  [inline]

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Triangle &  e2,
Sphere &  e1 
)

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Triangle &  e2,
Point &  e1 
)

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Line &  e1,
Line &  e2 
)

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Line &  e2,
Sphere &  e1 
)

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Line &  e2,
Point &  e1 
)

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Sphere &  ,
Sphere &   
)

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Sphere &  e1,
Point &  e2 
)

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Point &  e1,
Point &  e2 
)

bool sofa::component::collision::MinProximityIntersection::testIntersection ( Cube &  cube1,
Cube &  cube2 
)

virtual bool sofa::component::collision::MinProximityIntersection::useProximity (  )  const [inline, virtual]

returns true if algorithm uses proximity

Reimplemented from sofa::core::componentmodel::collision::Intersection.

Definition at line 59 of file MinProximityIntersection.h.


Field Documentation

Definition at line 51 of file MinProximityIntersection.h.

Referenced by getAlarmDistance(), and setAlarmDistance().

Definition at line 52 of file MinProximityIntersection.h.

Referenced by getContactDistance(), and setContactDistance().

Definition at line 97 of file MinProximityIntersection.h.

Definition at line 98 of file MinProximityIntersection.h.

Definition at line 50 of file MinProximityIntersection.h.

Referenced by init().

Definition at line 49 of file MinProximityIntersection.h.

Referenced by init().


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

Generated on Sun Nov 23 04:17:30 2008 for Sofa by  doxygen 1.5.7.1