Choreonoid  1.8
Public Member Functions | List of all members
cnoid::CollisionPair Class Reference

#include <CollisionDetector.h>

Public Member Functions

 CollisionPair ()
 
 CollisionPair (GeometryHandle geometry1, GeometryHandle geometry2)
 
 CollisionPair (GeometryHandle geometry1, Referenced *object1, GeometryHandle geometry2, Referenced *object2)
 
GeometryHandle & geometry (int i)
 
const GeometryHandle geometry (int i) const
 
const GeometryHandle * geometries () const
 
Referenced *& object (int i)
 
Referencedobject (int i) const
 
CollisionArraycollisions ()
 
const CollisionArraycollisions () const
 
void addCollision (const Collision &c)
 
CollisionnewCollision ()
 
void clearCollisions ()
 
bool empty () const
 
int numCollisions () const
 

Constructor & Destructor Documentation

◆ CollisionPair() [1/3]

cnoid::CollisionPair::CollisionPair ( )
inline

◆ CollisionPair() [2/3]

cnoid::CollisionPair::CollisionPair ( GeometryHandle  geometry1,
GeometryHandle  geometry2 
)
inline

◆ CollisionPair() [3/3]

cnoid::CollisionPair::CollisionPair ( GeometryHandle  geometry1,
Referenced object1,
GeometryHandle  geometry2,
Referenced object2 
)
inline

Member Function Documentation

◆ addCollision()

void cnoid::CollisionPair::addCollision ( const Collision c)
inline

◆ clearCollisions()

void cnoid::CollisionPair::clearCollisions ( )
inline

◆ collisions() [1/2]

CollisionArray& cnoid::CollisionPair::collisions ( )
inline

◆ collisions() [2/2]

const CollisionArray& cnoid::CollisionPair::collisions ( ) const
inline

◆ empty()

bool cnoid::CollisionPair::empty ( ) const
inline

◆ geometries()

const GeometryHandle* cnoid::CollisionPair::geometries ( ) const
inline

◆ geometry() [1/2]

GeometryHandle& cnoid::CollisionPair::geometry ( int  i)
inline

◆ geometry() [2/2]

const GeometryHandle cnoid::CollisionPair::geometry ( int  i) const
inline

◆ newCollision()

Collision& cnoid::CollisionPair::newCollision ( )
inline

◆ numCollisions()

int cnoid::CollisionPair::numCollisions ( ) const
inline

◆ object() [1/2]

Referenced*& cnoid::CollisionPair::object ( int  i)
inline

◆ object() [2/2]

Referenced* cnoid::CollisionPair::object ( int  i) const
inline

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