82 double visLength,
double width,
double offset = 0);
96 double rot,
double visLength,
double width);
112 const std::vector<double>& rots,
const std::vector<double>& lengths,
113 double width,
int cornerDetail = 0,
double offset = 0);
129 const std::vector<double>& rots,
const std::vector<double>& lengths,
130 const std::vector<RGBColor>& cols,
131 double width,
int cornerDetail = 0,
double offset = 0);
147 const std::vector<double>& rots,
const std::vector<double>& lengths,
185 double rot,
double visLength);
246 double beg,
double end);
272 int steps,
double beg,
double end);
283 double tLength,
double tWidth);
311 const double layer,
const double size,
318 const std::string& text,
const Position& pos,
320 const double angle = 0,
321 const double layer = 2048);
325 const double layer,
const double size,
329 const double angle = 0,
330 const double relBorder = 0.05,
331 const double relMargin = 0.5);
338 const std::vector<double>& rots,
339 const std::vector<double>& lengths,
340 double length,
double spacing,
double halfWidth,
bool drawForSelecting);
360 static bool rightTurn(
double angle1,
double angle2);
static std::vector< std::pair< double, double > > myCircleCoords
Storage for precomputed sin/cos-values describing a circle.
static void resetFont()
to be called when the font context is invalidated
static void drawBoxLines(const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, double width, int cornerDetail=0, double offset=0)
Draws thick lines.
static void drawTextBox(const std::string &text, const Position &pos, const double layer, const double size, const RGBColor &txtColor=RGBColor::BLACK, const RGBColor &bgColor=RGBColor::WHITE, const RGBColor &borderColor=RGBColor::BLACK, const double angle=0, const double relBorder=0.05, const double relMargin=0.5)
draw Text box with given parameters
static void drawTextAtEnd(const std::string &text, const PositionVector &shape, double x, double size, RGBColor color)
draw text and the end of shape
static const RGBColor WHITE
static bool initFont()
init myFont
Stores the information about how to visualize structures.
static void debugVertices(const PositionVector &shape, double size, double layer=256)
draw vertex numbers for the given shape (in a random color)
static void drawTextSettings(const GUIVisualizationTextSettings &settings, const std::string &text, const Position &pos, const double scale, const double angle=0, const double layer=2048)
static void drawText(const std::string &text, const Position &pos, const double layer, const double size, const RGBColor &col=RGBColor::BLACK, const double angle=0, int align=0, double width=-1)
static void drawFilledPoly(const PositionVector &v, bool close)
Draws a filled polygon described by the list of points.
static const RGBColor BLACK
Some methods which help to draw certain geometrical objects in openGL.
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
A class that stores a 2D geometrical boundary.
static bool myGL2PSActive
whether we are currently rendering for gl2ps
static void drawShapeDottedContourBetweenLanes(const GUIVisualizationSettings &s, const int type, const PositionVector &frontLaneShape, const double offsetFrontLaneShape, const PositionVector &backLaneShape, const double offsetBackLaneShape)
draw a dotted contour around the given lane shapes
static void drawFilledPolyTesselated(const PositionVector &v, bool close)
Draws a filled polygon described by the list of points.
static void drawBoundary(const Boundary &b)
Draw a boundary (used for debugging)
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
A point in 2D or 3D with translation and scaling methods.
static std::vector< Position > drawFilledCircleReturnVertices(double width, int steps=8)
Draws a filled circle around (0,0) returning circle vertex.
static int angleLookup(double angleDeg)
normalize angle for lookup in myCircleCoords
static void drawShapeDottedContourAroundClosedShape(const GUIVisualizationSettings &s, const int type, const PositionVector &shape)
draw a dotted contour around the given closed shape with certain width
static void drawOutlineCircle(double width, double iwidth, int steps=8)
Draws an unfilled circle around (0,0)
static void drawLine(const Position &beg, double rot, double visLength)
Draws a thin line.
static void drawShapeDottedContourAroundShape(const GUIVisualizationSettings &s, const int type, const PositionVector &shape, const double width)
draw a dotted contour around the given Non closed shape with certain width
static struct FONScontext * myFont
Font context.
static void drawShapeDottedContourRectangle(const GUIVisualizationSettings &s, const int type, const Position ¢er, const double width, const double height, const double rotation=0, const double offsetX=0, const double offsetY=0)
draw a dotted contour around the given Position with certain width and height
static void drawCrossTies(const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, double length, double spacing, double halfWidth, bool drawForSelecting)
draw crossties for railroads or pedestrian crossings
static bool rightTurn(double angle1, double angle2)
whether the road makes a right turn (or goes straight)
static std::vector< RGBColor > myDottedcontourColors
static vector with a list of alternated black/white colors (used for contourns)
static void drawShapeDottedContourPartialShapes(const GUIVisualizationSettings &s, const int type, const Position &begin, const Position &end, const double width)
draw a dotted contour in a partial shapes
static void drawTriangleAtEnd(const Position &p1, const Position &p2, double tLength, double tWidth)
Draws a triangle at the end of the given line.
struct FONScontext FONScontext
static void drawBoxLine(const Position &beg, double rot, double visLength, double width, double offset=0)
Draws a thick line.
static void setGL2PS(bool active=true)
static const std::vector< RGBColor > & getDottedcontourColors(const int size)
get dotted contour colors (black and white). Vector will be automatically increased if current size i...
static RGBColor getColor()
gets the gl-color