#include <collision_ot.h>
Inheritance diagram for NLPACS::CCollisionOTInfo:
Nevrax France
Definition at line 127 of file collision_ot.h.
Public Member Functions | |
CCollisionOTInfo () | |
void | clear () |
Clear the element. | |
virtual double | getCollisionTime () const=0 |
CCollisionOT * | getNext () const |
Get next element in the ot. | |
virtual CCollisionOTInfo * | getNext (CMovePrimitive *primitive) const=0 |
CCollisionOTInfo * | getNextInfo () const |
Get next element in the ot. | |
virtual CMovePrimitive * | getOtherPrimitive (CMovePrimitive *primitive) const=0 |
CCollisionOT * | getPrevious () 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 |
|
Definition at line 130 of file collision_ot.h.
00131 { 00132 _Info=true; 00133 } |
|
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 } |
|
Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo. |
|
Get next element in the ot.
Definition at line 100 of file collision_ot.h.
00101 {
00102 return _Next;
00103 }
|
|
Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo. |
|
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 } |
|
Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo. |
|
Get next element in the ot.
Definition at line 94 of file collision_ot.h. References NLPACS::CCollisionOT::_Previous.
00095 {
00096 return _Previous;
00097 }
|
|
Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo. |
|
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 } |
|
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 } |
|
Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo. Referenced by NLPACS::CMovePrimitive::addCollisionOTInfo(). |
|
Implemented in NLPACS::CCollisionOTDynamicInfo, and NLPACS::CCollisionOTStaticInfo. |
|
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 } |
|
Definition at line 117 of file collision_ot.h. Referenced by NLPACS::CCollisionOT::CCollisionOT(), and NLPACS::CCollisionOT::isInfo(). |