NLPACS::CCollisionOTInfo Class Reference

#include <collision_ot.h>

Inheritance diagram for NLPACS::CCollisionOTInfo:

NLPACS::CCollisionOT NLPACS::CCollisionOTDynamicInfo NLPACS::CCollisionOTStaticInfo

Detailed Description

Collision descriptor for time odered table

Author:
Cyril 'Hulud' Corvazier

Nevrax France

Date:
2001

Definition at line 127 of file collision_ot.h.

Public Member Functions

 CCollisionOTInfo ()
void clear ()
 Clear the element.

virtual double getCollisionTime () const=0
CCollisionOTgetNext () const
 Get next element in the ot.

virtual CCollisionOTInfogetNext (CMovePrimitive *primitive) const=0
CCollisionOTInfogetNextInfo () const
 Get next element in the ot.

virtual CMovePrimitivegetOtherPrimitive (CMovePrimitive *primitive) const=0
CCollisionOTgetPrevious () const
 Get next element in the ot.

virtual bool isCollisionAgainstStatic () const=0
bool isInfo () const
 Return true if it an info collision else false;.

void link (CCollisionOT *newElement)
 Link in the ot.

virtual void primitiveLink (CMovePrimitive *primitive, CCollisionOTInfo *other)=0
virtual void removeFromPrimitives ()=0
void unlink ()
 Remove from OT.


Protected Attributes

bool _Info


Constructor & Destructor Documentation

NLPACS::CCollisionOTInfo::CCollisionOTInfo  )  [inline]
 

Definition at line 130 of file collision_ot.h.

00131         {
00132                 _Info=true;
00133         }


Member Function Documentation

void NLPACS::CCollisionOT::clear void   )  [inline, inherited]
 

Clear the element.

Definition at line 57 of file collision_ot.h.

References NLPACS::CCollisionOT::_Previous.

Referenced by NLPACS::CCollisionOT::CCollisionOT().

00058         {
00059                 _Next=NULL;
00060                 _Previous=NULL;
00061         }

virtual double NLPACS::CCollisionOTInfo::getCollisionTime  )  const [pure virtual]
 

Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo.

CCollisionOT* NLPACS::CCollisionOT::getNext  )  const [inline, inherited]
 

Get next element in the ot.

Definition at line 100 of file collision_ot.h.

00101         {
00102                 return _Next;
00103         }

virtual CCollisionOTInfo* NLPACS::CCollisionOTInfo::getNext CMovePrimitive primitive  )  const [pure virtual]
 

Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo.

CCollisionOTInfo * NLPACS::CCollisionOT::getNextInfo  )  const [inline, inherited]
 

Get next element in the ot.

Definition at line 456 of file collision_ot.h.

References NLPACS::CCollisionOT::isInfo().

00457 {
00458         // Get next
00459         CCollisionOT *next=_Next;
00460 
00461         // Is an info ?
00462         while ( next && (!next->isInfo ()) )
00463                 next=next->getNextInfo ();
00464 
00465         // Return an info
00466         return (CCollisionOTInfo*)next;
00467 }

virtual CMovePrimitive* NLPACS::CCollisionOTInfo::getOtherPrimitive CMovePrimitive primitive  )  const [pure virtual]
 

Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo.

CCollisionOT* NLPACS::CCollisionOT::getPrevious  )  const [inline, inherited]
 

Get next element in the ot.

Definition at line 94 of file collision_ot.h.

References NLPACS::CCollisionOT::_Previous.

00095         {
00096                 return _Previous;
00097         }

virtual bool NLPACS::CCollisionOTInfo::isCollisionAgainstStatic  )  const [pure virtual]
 

Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo.

bool NLPACS::CCollisionOT::isInfo  )  const [inline, inherited]
 

Return true if it an info collision else false;.

Definition at line 88 of file collision_ot.h.

References NLPACS::CCollisionOT::_Info.

Referenced by NLPACS::CCollisionOT::getNextInfo().

00089         {
00090                 return _Info;
00091         }

void NLPACS::CCollisionOT::link CCollisionOT newElement  )  [inline, inherited]
 

Link in the ot.

Definition at line 64 of file collision_ot.h.

References NLPACS::CCollisionOT::_Next, and NLPACS::CCollisionOT::_Previous.

00065         {
00066                 if (newElement)
00067                 {
00068                         newElement->_Previous=this;
00069                         newElement->_Next=_Next;
00070                 }
00071                 if (_Next)
00072                         _Next->_Previous=newElement;
00073                 _Next=newElement;
00074         }

virtual void NLPACS::CCollisionOTInfo::primitiveLink CMovePrimitive primitive,
CCollisionOTInfo other
[pure virtual]
 

Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo.

Referenced by NLPACS::CMovePrimitive::addCollisionOTInfo().

virtual void NLPACS::CCollisionOTInfo::removeFromPrimitives  )  [pure virtual]
 

Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo.

void NLPACS::CCollisionOT::unlink  )  [inline, inherited]
 

Remove from OT.

Definition at line 77 of file collision_ot.h.

References NLPACS::CCollisionOT::_Next, and NLPACS::CCollisionOT::_Previous.

00078         {
00079                 if (_Previous)
00080                         _Previous->_Next=_Next;
00081                 if (_Next)
00082                         _Next->_Previous=_Previous;
00083                 _Next=NULL;
00084                 _Previous=NULL;
00085         }


Field Documentation

bool NLPACS::CCollisionOT::_Info [protected, inherited]
 

Definition at line 117 of file collision_ot.h.

Referenced by NLPACS::CCollisionOT::CCollisionOT(), and NLPACS::CCollisionOT::isInfo().


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