24 #ifndef __DEGREESEGMENT_H
25 #define __DEGREESEGMENT_H
70 virtual void setRadius(
const double& rad);
115 virtual void create(dSpaceID space);
Matrix type.
Definition: matrix.h:65
int left
Definition: degreesegment.h:140
Abstract class (interface) for obstacles.
Definition: abstracttracksection.h:37
double radius
Definition: degreesegment.h:122
virtual void create(dSpaceID space)
Definition: degreesegment.cpp:285
double width
Definition: degreesegment.h:125
void setProperties()
Definition: degreesegment.cpp:45
virtual ~DegreeSegment()
Definition: degreesegment.h:47
DegreeSegment(const Position &p, const double &angle)
Constructor.
Definition: degreesegment.cpp:31
virtual void destroy()
Definition: degreesegment.cpp:357
virtual double getLength()
returns the length of the segment, here it is the length of the arc
Definition: degreesegment.cpp:261
double heightWall
Definition: degreesegment.h:134
virtual Matrix getTransformedEndMatrix()
gives the position and rotation(angle) of the segment at the end of the segment so that a new segment...
Definition: degreesegment.cpp:98
Definition: position.h:30
class for degree segments
Definition: degreesegment.h:32
double angle
Definition: degreesegment.h:137
virtual bool isInside(const Position &p)
returns true if the real coordinates lay inside of the segment
Definition: degreesegment.cpp:127
double widthWall
Definition: degreesegment.h:133
bool obstacle_exists
Definition: degreesegment.h:142
Position getGlobalCoordinates(double radius, double alpha)
returns the global coordinates on the track at the given radius and angle that are responsible for th...
Definition: degreesegment.cpp:89
virtual double getSectionIdValue(const Position &p)
returns a value between 0 and 100 that tells at which section you are on the segment.
Definition: degreesegment.cpp:137
virtual void setRadius(const double &rad)
Definition: degreesegment.cpp:64
virtual void setCurveAngle(const double &alpha)
Definition: degreesegment.cpp:56
Position getLocalCoordinates(double radius, double alpha)
returns the local coordinates on the track at the given radius and angle that are responsible for the...
Definition: degreesegment.cpp:68
list< dGeomID > innerWalls
Definition: degreesegment.h:130
virtual double getWidth()
returns the width of the segment,
Definition: degreesegment.cpp:271
Color color
obstacle color
Definition: degreesegment.h:147
virtual void draw()
draws the obstacle (4 boxes for the playground)
Definition: degreesegment.cpp:207
bool show_aabb
Definition: degreesegment.h:127
list< dGeomID > outerWalls
Definition: degreesegment.h:131
virtual double getWidthIdValue(const Position &p)
returns a value between 0 and 100 that tells at which width you are on the segment, more to right or more to the left.
Definition: degreesegment.cpp:163
virtual void setWidth(double w)
sets the width of the segment,
Definition: degreesegment.cpp:278