NLPACS::CRotSurfaceDesc Class Reference

#include <collision_surface_temp.h>


Detailed Description

Description of the contact of a rot collision against a chain.

Author:
Lionel Berenguier

Nevrax France

Date:
2001

Definition at line 213 of file collision_surface_temp.h.

Public Member Functions

 CRotSurfaceDesc (CSurfaceIdent left, CSurfaceIdent right)
 CRotSurfaceDesc ()
const CSurfaceIdentgetOtherSurface (const CSurfaceIdent &surf)
 Return Left if surf==Right, else return Right.

bool hasSurface (const CSurfaceIdent &surf)
 test if Left or Right == surf.


Data Fields

CSurfaceIdent LeftSurface
 To which chain we have collided.

CSurfaceIdent RightSurface
 To which chain we have collided.

bool Tested
 This tells if this chain (arc of the graph) has been inserted.


Constructor & Destructor Documentation

NLPACS::CRotSurfaceDesc::CRotSurfaceDesc  )  [inline]
 

Definition at line 223 of file collision_surface_temp.h.

00223 : Tested(false) {}

NLPACS::CRotSurfaceDesc::CRotSurfaceDesc CSurfaceIdent  left,
CSurfaceIdent  right
[inline]
 

Definition at line 224 of file collision_surface_temp.h.

00224 : Tested(false), LeftSurface(left), RightSurface(right) {}


Member Function Documentation

const CSurfaceIdent& NLPACS::CRotSurfaceDesc::getOtherSurface const CSurfaceIdent surf  )  [inline]
 

Return Left if surf==Right, else return Right.

Definition at line 233 of file collision_surface_temp.h.

00234         {
00235                 if(RightSurface==surf)
00236                         return LeftSurface;
00237                 else
00238                         return RightSurface;
00239         }

bool NLPACS::CRotSurfaceDesc::hasSurface const CSurfaceIdent surf  )  [inline]
 

test if Left or Right == surf.

Definition at line 227 of file collision_surface_temp.h.

00228         {
00229                 return LeftSurface==surf || RightSurface==surf;
00230         }


Field Documentation

CSurfaceIdent NLPACS::CRotSurfaceDesc::LeftSurface
 

To which chain we have collided.

Definition at line 220 of file collision_surface_temp.h.

CSurfaceIdent NLPACS::CRotSurfaceDesc::RightSurface
 

To which chain we have collided.

Definition at line 220 of file collision_surface_temp.h.

bool NLPACS::CRotSurfaceDesc::Tested
 

This tells if this chain (arc of the graph) has been inserted.

Definition at line 217 of file collision_surface_temp.h.


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 14:24:14 2004 for NeL by doxygen 1.3.6