#include <abstracttracksection.h>
Inherited by DegreeSegment, and StraightLine.
Inheritance diagram for AbstractTrackSection:

Public Member Functions | |
| AbstractTrackSection (const Position &p, const double angle) | |
| Constructor where you can set the position and rotation by:. | |
| AbstractTrackSection (const Matrix &pose) | |
| Constructor where you can set the pos-matrix by this constructor:. | |
| virtual | ~AbstractTrackSection () |
| virtual void | create (dSpaceID space)=0 |
| virtual void | destroy ()=0 |
| virtual void | draw ()=0 |
| virtual Matrix | getTransformedEndMatrix ()=0 |
| gives the position and rotation(angle) of the segment at the end of the segment so that a new segment could be placed there the result is a matrix | |
| virtual bool | isInside (const Position &p)=0 |
| returns true if the real coordinates lay inside of the segment | |
| virtual double | getSectionIdValue (const Position &p)=0 |
| returns a value between 0 and length that tells at which section you are on the segment. | |
| virtual double | getWidthIdValue (const Position &p)=0 |
| returns a value between 0 and width that tells at which width you are on the segment, 0 means right and width means left. | |
| virtual double | getLength ()=0 |
| returns the length of the segment, here it is the length of the arc formula is: radius * angle; | |
| virtual double | getWidth ()=0 |
| returns the width of the segment, | |
| virtual void | setWidth (double w)=0 |
| sets the width of the segment, | |
| Matrix | getPoseMatrix () |
| Position | transformToLocalCoord (const Position &p) |
| Position | transformToGlobalCoord (const Position &p) |
| Matrix | getInversePoseMatrix () |
Protected Member Functions | |
| void | setPoseMatrix (const Matrix &m) |
| Position | getPosition () |
| gives actual position of the obstacle | |
Private Attributes | |
| Matrix | pos |
| Matrix | invpos |
|
||||||||||||
|
Constructor where you can set the position and rotation by:.
|
|
|
Constructor where you can set the pos-matrix by this constructor:.
|
|
|
|
|
|
Implemented in DegreeSegment, and StraightLine.
|
|
|
Implemented in DegreeSegment, and StraightLine.
|
|
|
Implemented in DegreeSegment, and StraightLine.
|
|
|
|
|
|
returns the length of the segment, here it is the length of the arc formula is: radius * angle;
Implemented in DegreeSegment, and StraightLine.
|
|
|
|
|
|
gives actual position of the obstacle
|
|
|
returns a value between 0 and length that tells at which section you are on the segment. returns -1 if no IdValue can be given Implemented in DegreeSegment, and StraightLine.
|
|
|
gives the position and rotation(angle) of the segment at the end of the segment so that a new segment could be placed there the result is a matrix
Implemented in DegreeSegment, and StraightLine.
|
|
|
returns the width of the segment,
Implemented in DegreeSegment, and StraightLine.
|
|
|
returns a value between 0 and width that tells at which width you are on the segment, 0 means right and width means left. returns -1 if no WidthValue can be given Implemented in DegreeSegment, and StraightLine.
|
|
|
returns true if the real coordinates lay inside of the segment
Implemented in DegreeSegment, and StraightLine.
|
|
|
|
|
|
sets the width of the segment,
Implemented in DegreeSegment, and StraightLine.
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8