![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Some methods which help to draw certain geometrical objects in openGL. More...
#include <GLHelper.h>
Static Public Member Functions | |
static int | angleLookup (double angleDeg) |
normalize angle for lookup in myCircleCoords More... | |
static void | checkCounterMatrix () |
check counter matrix More... | |
static void | checkCounterName () |
check counter name More... | |
static void | debugVertices (const PositionVector &shape, double size, double layer=256) |
draw vertex numbers for the given shape (in a random color) More... | |
static void | drawBoundary (const Boundary &b) |
Draw a boundary (used for debugging) More... | |
static void | drawBoxLine (const Position &beg, double rot, double visLength, double width, double offset=0) |
Draws a thick line. More... | |
static void | drawBoxLine (const Position &beg1, const Position &beg2, double rot, double visLength, double width) |
Draws a thick line using the mean of both given points as begin position. More... | |
static void | drawBoxLines (const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, const std::vector< RGBColor > &cols, double width, int cornerDetail=0, double offset=0) |
Draws thick lines with varying color. More... | |
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. More... | |
static void | drawBoxLines (const PositionVector &geom, double width) |
Draws thick lines. More... | |
static void | drawBoxLines (const PositionVector &geom1, const PositionVector &geom2, const std::vector< double > &rots, const std::vector< double > &lengths, double width) |
Draws thick lines using the mean of the points given in the point lists as begin positions. More... | |
static void | drawCrossTies (const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, double length, double spacing, double halfWidth, bool drawForSelection) |
draw crossties for railroads or pedestrian crossings More... | |
static void | drawFilledCircle (double width, int steps, double beg, double end) |
Draws a filled circle around (0,0) More... | |
static void | drawFilledCircle (double width, int steps=8) |
Draws a filled circle around (0,0) More... | |
static void | drawFilledPoly (const PositionVector &v, bool close) |
Draws a filled polygon described by the list of points. More... | |
static void | drawFilledPolyTesselated (const PositionVector &v, bool close) |
Draws a filled polygon described by the list of points. More... | |
static void | drawInverseMarkings (const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, double maxLength, double spacing, double halfWidth, bool cl, bool cr, bool lefthand, double scale) |
@bried draw the space between markings (in road color) More... | |
static void | drawLine (const Position &beg, const Position &end) |
Draws a thin line between the two points. More... | |
static void | drawLine (const Position &beg, double rot, double visLength) |
Draws a thin line. More... | |
static void | drawLine (const Position &beg1, const Position &beg2, double rot, double visLength) |
Draws a thin line using the mean of both given points as begin position. More... | |
static void | drawLine (const PositionVector &v) |
Draws a thin line along the given position vector. More... | |
static void | drawLine (const PositionVector &v, const std::vector< RGBColor > &cols) |
Draws a thin line along the given position vector with variable color. More... | |
static void | drawOutlineCircle (double width, double iwidth, int steps, double beg, double end) |
Draws an unfilled circle around (0,0) More... | |
static void | drawOutlineCircle (double width, double iwidth, int steps=8) |
Draws an unfilled circle around (0,0) More... | |
static void | drawSpaceOccupancies (const double exaggeration, const Position &pos, const double rotation, const double width, const double length, const bool vehicle) |
darw More... | |
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, const int align=0, double width=-1) |
static void | drawTextAtEnd (const std::string &text, const PositionVector &shape, double x, const GUIVisualizationTextSettings &settings, const double scale) |
draw text and the end of shape More... | |
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, const int align=0) |
draw Text box with given parameters More... | |
static void | drawTextSettings (const GUIVisualizationTextSettings &settings, const std::string &text, const Position &pos, const double scale, const double angle=0, const double layer=2048, const int align=0) |
static void | drawTriangleAtEnd (const Position &p1, const Position &p2, double tLength, double tWidth, const double extraOffset=0) |
Draws a triangle at the end of the given line. More... | |
static const std::vector< std::pair< double, double > > & | getCircleCoords () |
Storage for precomputed sin/cos-values describing a circle. More... | |
static RGBColor | getColor () |
gets the gl-color More... | |
static double | getTextWidth (const std::string &text, double size) |
get required width of text More... | |
static void | popMatrix () |
pop matrix More... | |
static void | popName () |
pop Name More... | |
static void | pushMatrix () |
push matrix More... | |
static void | pushName (unsigned int name) |
push Name More... | |
static void | resetFont () |
to be called when the font context is invalidated More... | |
static void | setColor (const RGBColor &c) |
Sets the gl-color to this value. More... | |
static void | setGL2PS (bool active=true) |
set GL2PS More... | |
Static Private Member Functions | |
static const std::vector< RGBColor > & | getDottedcontourColors (const int size) |
get dotted contour colors (black and white). Vector will be automatically increased if current size is minor than size More... | |
static bool | initFont () |
init myFont More... | |
static bool | rightTurn (double angle1, double angle2) |
whether the road makes a right turn (or goes straight) More... | |
Static Private Attributes | |
static std::vector< std::pair< double, double > > | myCircleCoords |
Storage for precomputed sin/cos-values describing a circle. More... | |
static std::vector< RGBColor > | myDottedcontourColors |
static vector with a list of alternated black/white colors (used for contourns) More... | |
static struct FONScontext * | myFont = nullptr |
Font context. More... | |
static double | myFontSize = 50.0 |
static bool | myGL2PSActive = false |
whether we are currently rendering for gl2ps More... | |
static int | myMatrixCounter = 0 |
matrix counter More... | |
static int | myNameCounter = 0 |
name counter More... | |
Some methods which help to draw certain geometrical objects in openGL.
This class offers some static methods for drawing primitives in openGL.
Definition at line 47 of file GLHelper.h.
|
static |
normalize angle for lookup in myCircleCoords
Definition at line 102 of file GLHelper.cpp.
References CIRCLE_RESOLUTION, and getCircleCoords().
Referenced by drawFilledCircle(), drawOutlineCircle(), and GNETAZRelData::updateGeometry().
|
static |
check counter matrix
Definition at line 150 of file GLHelper.cpp.
References myMatrixCounter, and WRITE_WARNING.
Referenced by GUISUMOAbstractView::paintGL().
|
static |
check counter name
Definition at line 160 of file GLHelper.cpp.
References myNameCounter, and WRITE_WARNING.
Referenced by GUISUMOAbstractView::paintGL().
|
static |
draw vertex numbers for the given shape (in a random color)
Definition at line 792 of file GLHelper.cpp.
References drawText(), RGBColor::randomHue(), and toString().
Referenced by GUIJunctionWrapper::drawGL(), GUILane::drawGL(), and GUIPolygon::drawInnerPolygon().
|
static |
Draw a boundary (used for debugging)
Definition at line 801 of file GLHelper.cpp.
References drawLine(), RGBColor::MAGENTA, popMatrix(), pushMatrix(), setColor(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GNEPOI::drawGL(), GNEPoly::drawGL(), GNETAZ::drawGL(), GNEConnection::drawGL(), GNEEdge::drawGL(), GNEJunction::drawGL(), GNEAdditional::drawListedAddtional(), and GNEAdditional::drawSquaredAdditional().
|
static |
Draws a thick line.
The line is drawn as a GL_QUADS.
[in] | beg | The begin position of the line |
[in] | rot | The direction the line shall be drawn to (in radiants) |
[in] | visLength | The length of the line |
[in] | width | The width of the line |
[in] | offset | The orthogonal offset |
Definition at line 231 of file GLHelper.cpp.
References popMatrix(), pushMatrix(), Position::x(), and Position::y().
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GUILane::drawArrows(), GNELane::drawArrows(), drawBoxLines(), GUIGeometry::drawChildLine(), GUIDottedGeometry::drawDottedGeometry(), GNEVehicle::drawFlowLabel(), GUIBusStop::drawGL(), GUILane::drawGL(), GNEDetectorEntryExit::drawGL(), GNEPOI::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEVehicle::drawGL(), GNEJunction::drawGL(), GNEVehicle::drawJunctionLine(), GNEAdditional::drawListedAddtional(), GUIGeometry::drawParentLine(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GUIE3Collector::MyWrapper::drawSingleCrossing(), GNEVehicle::drawStackLabel(), GNEFrameModules::PathCreator::drawTemporalRoute(), drawTextBox(), and GNEStop::drawVehicleStop().
|
static |
Draws a thick line using the mean of both given points as begin position.
The line is drawn as a GL_QUADS.
[in] | beg1 | One of the begin positions of the line to use the mean of |
[in] | beg2 | One of the begin positions of the line to use the mean of |
[in] | rot | The direction the line shall be drawn to (in radiants) |
[in] | visLength | The length of the line |
[in] | width | The width of the line |
Definition at line 247 of file GLHelper.cpp.
References popMatrix(), pushMatrix(), Position::x(), and Position::y().
|
static |
Draws thick lines with varying color.
Each line is drawn using drawBoxLine.
[in] | geom | The list of begin positions of the lines |
[in] | rots | The directions the lines shall be drawn to (in radiants) |
[in] | lengths | The lengths of the lines |
[in] | cols | The colors of the lines |
[in] | width | The width of the lines |
[in] | cornerDetail | Detail level for filling the corners between angled segments |
[in] | the | orthogonal offset |
Definition at line 318 of file GLHelper.cpp.
References drawBoxLine(), drawFilledCircle(), popMatrix(), pushMatrix(), and setColor().
|
static |
Draws thick lines.
Each line is drawn using drawBoxLine.
[in] | geom | The list of begin positions of the lines |
[in] | rots | The directions the lines shall be drawn to (in radiants) |
[in] | lengths | The lengths of the lines |
[in] | width | The width of the lines |
[in] | cornerDetail | Detail level for filling the corners between angled segments |
[in] | the | orthogonal offset |
Definition at line 277 of file GLHelper.cpp.
References drawBoxLine(), drawFilledCircle(), popMatrix(), pushMatrix(), and rightTurn().
Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GUIVehicle::drawBestLanes(), GUIGeometry::drawContourGeometry(), GUIGeometry::drawGeometry(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUILane::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GUIPerson::drawGLAdditional(), GNEViewNet::drawLaneCandidates(), GUIGeometry::drawLaneGeometry(), GUILane::drawMarkings(), GNEEdgeRelData::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), drawSpaceOccupancies(), GUIBaseVehicle::drawStopLabels(), GNEAdditionalFrame::E2MultilaneLaneSelector::drawTemporalE2Multilane(), GNEFrameModules::PathCreator::drawTemporalRoute(), GNEStop::drawVehicleStop(), and GUIPolygon::performTesselation().
|
static |
Draws thick lines.
Widths and length are computed internally by this method, each line is then drawn using drawBoxLine.
[in] | geom | The list of begin positions of the lines |
[in] | width | The width of the lines |
Definition at line 355 of file GLHelper.cpp.
References Position::distanceTo(), drawBoxLine(), RAD2DEG, Position::x(), and Position::y().
|
static |
Draws thick lines using the mean of the points given in the point lists as begin positions.
Each line is drawn using drawBoxLine.
[in] | geom1 | One of the lists to obtain the lines' begin positions to use the mean of |
[in] | geom2 | One of the lists to obtain the lines' begin positions to use the mean of |
[in] | rots | The directions the lines shall be drawn to (in radiants) |
[in] | lengths | The lengths of the lines |
[in] | width | The width of the lines |
Definition at line 342 of file GLHelper.cpp.
References drawBoxLine(), and MIN4().
|
static |
draw crossties for railroads or pedestrian crossings
Definition at line 709 of file GLHelper.cpp.
References popMatrix(), and pushMatrix().
Referenced by GUILane::drawGL(), and GNELane::drawLaneAsRailway().
|
static |
Draws a filled circle around (0,0)
The circle is drawn use GL_TRIANGLES.
[in] | width | The width of the circle |
[in] | steps | The number of steps to divide the circle into |
[in] | beg | The begin angle in degress |
[in] | end | The end angle in degress |
Definition at line 437 of file GLHelper.cpp.
References angleLookup(), and getCircleCoords().
|
static |
Draws a filled circle around (0,0)
The circle is drawn by calling drawFilledCircle(width, steps, 0, 360).
[in] | width | The width of the circle |
[in] | steps | The number of steps to divide the circle into |
Definition at line 431 of file GLHelper.cpp.
Referenced by GUIBasePersonHelper::drawAction_drawAsCircle(), GUIBasePersonHelper::drawAction_drawAsPoly(), drawAction_drawBlinker(), GUIBaseVehicleHelper::drawAction_drawVehicleAsCircle(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GUIVehicle::drawAction_drawVehicleBlueLight(), GUIVehicle::drawAction_drawVehicleBrakeLight(), drawBoxLines(), GNEEdge::drawEdgeGeometryPoints(), GUIGeometry::drawGeometry(), GUIGeometry::drawGeometryPoints(), GNEStop::drawGeometryPoints(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIParkingArea::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEPoly::drawGL(), GNETAZ::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNEJunction::drawGL(), GUIPointOfInterest::drawInnerPOI(), GNEViewNet::drawLaneCandidates(), GUIGeometry::drawLaneGeometry(), GUIBaseVehicle::drawLinkItem(), GUIGeometry::drawMovingHint(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEAdditional::drawSemiCircleGeometryPoint(), GNEStoppingPlace::drawSign(), GNELane::drawStartEndShapePoints(), GNEStop::drawStopPersonOverBusStop(), GNEStop::drawStopPersonOverEdge(), and GUIParameterTracker::GUIParameterTrackerPanel::drawValue().
|
static |
Draws a filled polygon described by the list of points.
[in] | v | The polygon to draw |
[in] | close | Whether the first point shall be appended |
Definition at line 170 of file GLHelper.cpp.
References Position::x(), and Position::y().
Referenced by GUIJunctionWrapper::drawGL(), GUILane::drawGL(), and GNEJunction::drawGL().
|
static |
Draws a filled polygon described by the list of points.
[in] | v | The polygon to draw |
[in] | close | Whether the first point shall be appended |
Definition at line 189 of file GLHelper.cpp.
References CALLBACK, and combCallback().
Referenced by GUIJunctionWrapper::drawGL(), GUILane::drawGL(), and GNEJunction::drawGL().
|
static |
@bried draw the space between markings (in road color)
Definition at line 748 of file GLHelper.cpp.
References MIN2(), popMatrix(), pushMatrix(), and SUMO_const_laneMarkWidth.
Referenced by GNELane::drawMarkings(), and GUILane::drawMarkings().
Draws a thin line between the two points.
The line is drawn as a GL_LINES.
[in] | beg | Begin of the line |
[in] | end | End of the line |
Definition at line 422 of file GLHelper.cpp.
References Position::x(), and Position::y().
|
static |
Draws a thin line.
The line is drawn as a GL_LINES.
[in] | beg | The begin position of the line |
[in] | rot | The direction the line shall be drawn to (in radiants) |
[in] | visLength | The length of the line |
Definition at line 369 of file GLHelper.cpp.
References popMatrix(), pushMatrix(), Position::x(), and Position::y().
Referenced by GUILane::debugDrawFoeIntersections(), GUIVehicle::drawBestLanes(), drawBoundary(), GNEEdge::drawEdgeGeometryPoints(), GUIGeometry::drawGeometry(), GUIE2Collector::MyWrapper::drawGL(), GUILane::drawGL(), GNEConnection::drawGL(), GNEInternalLane::drawGL(), GNELane::drawGL(), GNELane::drawStartEndShapePoints(), GNEViewNet::drawTemporalDrawShape(), and GUIPolygon::performTesselation().
|
static |
Draws a thin line using the mean of both given points as begin position.
The line is drawn as a GL_LINES.
[in] | beg1 | One of the begin positions of the line to use the mean of |
[in] | beg2 | One of the begin positions of the line to use the mean of |
[in] | rot | The direction the line shall be drawn to (in radiants) |
[in] | visLength | The length of the line |
Definition at line 382 of file GLHelper.cpp.
References popMatrix(), pushMatrix(), Position::x(), and Position::y().
|
static |
Draws a thin line along the given position vector.
The line is drawn as a GL_LINES.
[in] | v | The positions vector to use |
Definition at line 397 of file GLHelper.cpp.
|
static |
Draws a thin line along the given position vector with variable color.
The line is drawn as a GL_LINES.
[in] | v | The positions vector to use |
[in] | cols | vector with the color of every line |
Definition at line 409 of file GLHelper.cpp.
References setColor().
|
static |
Draws an unfilled circle around (0,0)
The circle is drawn use GL_TRIANGLES.
[in] | width | The (outer) width of the circle |
[in] | iwidth | The inner width of the circle |
[in] | steps | The number of steps to divide the circle into |
[in] | beg | The begin angle in degress |
[in] | end | The end angle in degress |
Definition at line 461 of file GLHelper.cpp.
References angleLookup(), and getCircleCoords().
|
static |
Draws an unfilled circle around (0,0)
The circle is drawn by calling drawOutlineCircle(width, iwidth, steps, 0, 360).
[in] | width | The (outer) width of the circle |
[in] | iwidth | The inner width of the circle |
[in] | steps | The number of steps to divide the circle into |
Definition at line 455 of file GLHelper.cpp.
Referenced by GNELane::drawArrows(), GUIBaseVehicle::drawOnPos(), and GNEViewNet::drawTemporalJunction().
|
static |
darw
Definition at line 537 of file GLHelper.cpp.
References drawBoxLines(), popMatrix(), pushMatrix(), setColor(), Position::x(), Position::y(), and Position::z().
Referenced by GUIParkingArea::drawGL(), and GNEParkingArea::drawGL().
|
static |
Definition at line 609 of file GLHelper.cpp.
References RGBColor::alpha(), RGBColor::blue(), FONS_ALIGN_CENTER, FONS_ALIGN_MIDDLE, fonsDrawText(), fonsSetAlign(), fonsSetColor(), glfonsRGBA(), RGBColor::green(), initFont(), myFont, myFontSize, myGL2PSActive, popMatrix(), pushMatrix(), RGBColor::red(), Position::x(), and Position::y().
Referenced by debugVertices(), GUISUMOAbstractView::displayColorLegend(), GUISUMOAbstractView::displayLegend(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GUITLLogicPhasesTrackerWindow::drawAdditionalStates(), GNEGenericData::drawAttribute(), GNECalibrator::drawCalibratorSymbol(), GNEDetector::drawDetectorLogo(), GNEEdge::drawEdgeGeometryPoints(), GNEGenericData::drawFilteredAttribute(), GNEVehicle::drawFlowLabel(), GUISUMOAbstractView::drawFPS(), GUIGeometry::drawGeometryPoints(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEDetectorEntryExit::drawGL(), GNERerouterSymbol::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNEJunction::drawGL(), GNEViewNet::drawLaneCandidates(), GNEStoppingPlace::drawLines(), GUIBaseVehicle::drawLinkItem(), GNEAdditional::drawListedAddtional(), GUITLLogicPhasesTrackerWindow::drawNames(), GNELane::drawOverlappedRoutes(), GNEAdditional::drawPartialGL(), GNEStoppingPlace::drawSign(), GNEVehicle::drawStackLabel(), GNELane::drawStartEndShapePoints(), drawTextBox(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GUITLLogicPhasesTrackerWindow::drawValues(), and GNEStop::drawVehicleStop().
|
static |
draw text and the end of shape
Definition at line 691 of file GLHelper.cpp.
References GUIVisualizationTextSettings::bgColor, GUIVisualizationTextSettings::color, drawTextBox(), RGBColor::INVISIBLE, popMatrix(), pushMatrix(), RAD2DEG, GUIVisualizationTextSettings::scaledSize(), Position::x(), and Position::y().
Referenced by GUILane::drawLinkNo(), GNELane::drawLinkNo(), GNELane::drawTLSLinkNo(), GUILane::drawTLSLinkNo(), and GNECrossing::drawTLSLinkNo().
|
static |
draw Text box with given parameters
Definition at line 657 of file GLHelper.cpp.
References Position::add(), RGBColor::alpha(), drawBoxLine(), drawText(), fonsTextBounds(), initFont(), myFont, myFontSize, popMatrix(), pushMatrix(), setColor(), Position::x(), and Position::y().
Referenced by GNEViewNetHelper::TestingMode::drawTestingElements(), drawTextAtEnd(), drawTextSettings(), and GUISUMOAbstractView::showToolTipFor().
|
static |
Definition at line 640 of file GLHelper.cpp.
References GUIVisualizationTextSettings::bgColor, GUIVisualizationTextSettings::color, drawTextBox(), RGBColor::INVISIBLE, and GUIVisualizationTextSettings::scaledSize().
Referenced by GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUIParkingArea::drawGL(), GNEPoly::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNEJunction::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIGlObject::drawName(), GUIBaseVehicle::drawOnPos(), GUIBaseVehicle::drawParkingInfo(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), and GUIBaseVehicle::drawStopLabels().
|
static |
Draws a triangle at the end of the given line.
[in] | p1 | The start of the line at which end the triangle shall be drawn |
[in] | p2 | The end of the line at which end the triangle shall be drawn |
[in] | tLength | The length of the triangle |
[in] | tWidth | The width of the triangle |
[in] | extraOffset | extra offset at end |
Definition at line 485 of file GLHelper.cpp.
References Position::angleTo2D(), Position::distanceTo(), GeomHelper::naviDegree(), popMatrix(), PositionVector::positionAtOffset(), pushMatrix(), Position::x(), and Position::y().
Referenced by GUILane::drawArrows(), GNELane::drawArrows(), GUIGeometry::drawChildLine(), GNEDetectorEntryExit::drawGL(), GNETAZRelData::drawGL(), GNELane::drawLane2LaneConnections(), GUILane::drawLane2LaneConnections(), GUIGeometry::drawParentLine(), and GUIE3Collector::MyWrapper::drawSingleCrossing().
|
static |
Storage for precomputed sin/cos-values describing a circle.
Definition at line 88 of file GLHelper.cpp.
References CIRCLE_RESOLUTION, DEG2RAD, and myCircleCoords.
Referenced by angleLookup(), drawFilledCircle(), drawOutlineCircle(), and GNETAZRelData::updateGeometry().
|
static |
gets the gl-color
Definition at line 513 of file GLHelper.cpp.
Referenced by GUIBasePersonHelper::drawAction_drawAsPoly(), GUIContainer::drawAction_drawAsPoly(), GUIBasePersonHelper::drawAction_drawAsTriangle(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GNEConnection::drawGL(), GUIPerson::drawGLAdditional(), and GNELane::drawLaneAsRailway().
|
staticprivate |
get dotted contour colors (black and white). Vector will be automatically increased if current size is minor than size
Definition at line 589 of file GLHelper.cpp.
References RGBColor::BLACK, myDottedcontourColors, and RGBColor::WHITE.
|
static |
get required width of text
Definition at line 603 of file GLHelper.cpp.
References fonsTextBounds(), myFont, and myFontSize.
Referenced by GUITLLogicPhasesTrackerWindow::drawValues().
|
staticprivate |
init myFont
Definition at line 575 of file GLHelper.cpp.
References data_font_Roboto_Medium_ttf, data_font_Roboto_Medium_ttf_len, FONS_ZERO_BOTTOMLEFT, fonsAddFontMem(), fonsSetFont(), fonsSetSize(), glfonsCreate(), myFont, and myFontSize.
Referenced by drawText(), and drawTextBox().
|
static |
pop matrix
Definition at line 123 of file GLHelper.cpp.
References myMatrixCounter.
Referenced by GUILane::debugDrawFoeIntersections(), GUISUMOAbstractView::displayColorLegend(), GUISUMOAbstractView::displayLegend(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), drawAction_drawBlinker(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIBaseVehicleHelper::drawAction_drawVehicleAsBoxPlus(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GUIBaseVehicleHelper::drawAction_drawVehicleAsTrianglePlus(), GUIVehicle::drawAction_drawVehicleBlueLight(), GUIVehicle::drawAction_drawVehicleBrakeLight(), GUIPerson::drawAction_drawWalkingareaPath(), GUILane::drawArrows(), GNELane::drawArrows(), GNEGenericData::drawAttribute(), GUILane::drawBikeMarkings(), drawBoundary(), drawBoxLine(), drawBoxLines(), GNECalibrator::drawCalibratorSymbol(), GUIGeometry::drawChildLine(), drawCrossTies(), GUISUMOAbstractView::drawDecals(), GNEDetector::drawDetectorLogo(), GNELane::drawDirectionIndicators(), GUILane::drawDirectionIndicators(), GUIDottedGeometry::drawDottedContourClosedShape(), GNEEdge::drawDottedContourEdge(), GUIDottedGeometry::drawDottedContourShape(), GNEDetector::drawE1Shape(), GNEEdge::drawEdgeGeometryPoints(), GNEGenericData::drawFilteredAttribute(), GNEVehicle::drawFlowLabel(), GUISUMOAbstractView::drawFPS(), GUIGeometry::drawGeometry(), GUIGeometry::drawGeometryPoints(), GNEStop::drawGeometryPoints(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), drawInverseMarkings(), GUILane::drawJunctionChangeProhibitions(), GNEVehicle::drawJunctionLine(), GNELane::drawLane2LaneConnections(), GNEViewNet::drawLaneCandidates(), GUIGeometry::drawLaneGeometry(), GNEEdge::drawLaneStopOffset(), GNELane::drawLaneStopOffset(), drawLine(), GNEStoppingPlace::drawLines(), GNELane::drawLinkNo(), GUILane::drawLinkRule(), GUILane::drawLinkRules(), GNEAdditional::drawListedAddtional(), GNEViewNetHelper::LockIcon::drawLockIcon(), GNELane::drawMarkings(), GUILane::drawMarkings(), GUIEdge::drawMesoVehicles(), GUIGeometry::drawMovingHint(), GUIBaseVehicle::drawOnPos(), GNELane::drawOverlappedRoutes(), GNEAdditional::drawParentChildLines(), GUIGeometry::drawParentLine(), GNEAdditional::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GUIBaseVehicleHelper::drawPoly(), GNEViewNetHelper::SelectingArea::drawRectangleSelection(), GNEAdditional::drawSemiCircleGeometryPoint(), GNEStoppingPlace::drawSign(), GUIE3Collector::MyWrapper::drawSingleCrossing(), drawSpaceOccupancies(), GNEAdditional::drawSquaredAdditional(), GNEVehicle::drawStackLabel(), GNELane::drawStartEndShapePoints(), GNEStop::drawStopPersonOverBusStop(), GNEStop::drawStopPersonOverEdge(), GNEViewNet::drawTemporalDrawShape(), GNEAdditionalFrame::E2MultilaneLaneSelector::drawTemporalE2Multilane(), GNEViewNet::drawTemporalJunction(), GNEFrameModules::PathCreator::drawTemporalRoute(), GNEViewNetHelper::TestingMode::drawTestingElements(), drawText(), drawTextAtEnd(), drawTextBox(), GNELane::drawTextures(), GNEJunction::drawTLSIcon(), GNELane::drawTLSLinkNo(), GNECrossing::drawTLSLinkNo(), drawTriangleAtEnd(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), and GNEStop::drawVehicleStop().
|
static |
pop Name
Definition at line 141 of file GLHelper.cpp.
References myNameCounter.
Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUISUMOAbstractView::drawDecals(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIEdge::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), GNEAdditional::drawListedAddtional(), GUIBaseVehicle::drawOnPos(), GNEAdditional::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEAdditional::drawSquaredAdditional(), GNEStop::drawStopPersonOverBusStop(), GNEStop::drawStopPersonOverEdge(), and GNEStop::drawVehicleStop().
|
static |
push matrix
Definition at line 114 of file GLHelper.cpp.
References myMatrixCounter.
Referenced by GUILane::debugDrawFoeIntersections(), GUISUMOAbstractView::displayColorLegend(), GUISUMOAbstractView::displayLegend(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), drawAction_drawBlinker(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIBaseVehicleHelper::drawAction_drawVehicleAsBoxPlus(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GUIBaseVehicleHelper::drawAction_drawVehicleAsTrianglePlus(), GUIVehicle::drawAction_drawVehicleBlueLight(), GUIVehicle::drawAction_drawVehicleBrakeLight(), GUIPerson::drawAction_drawWalkingareaPath(), GUILane::drawArrows(), GNELane::drawArrows(), GNEGenericData::drawAttribute(), GUILane::drawBikeMarkings(), drawBoundary(), drawBoxLine(), drawBoxLines(), GNECalibrator::drawCalibratorSymbol(), GUIGeometry::drawChildLine(), drawCrossTies(), GUISUMOAbstractView::drawDecals(), GNEDetector::drawDetectorLogo(), GNELane::drawDirectionIndicators(), GUILane::drawDirectionIndicators(), GUIDottedGeometry::drawDottedContourClosedShape(), GNEEdge::drawDottedContourEdge(), GUIDottedGeometry::drawDottedContourShape(), GNEDetector::drawE1Shape(), GNEEdge::drawEdgeGeometryPoints(), GNEGenericData::drawFilteredAttribute(), GNEVehicle::drawFlowLabel(), GUISUMOAbstractView::drawFPS(), GUIGeometry::drawGeometry(), GUIGeometry::drawGeometryPoints(), GNEStop::drawGeometryPoints(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), drawInverseMarkings(), GUILane::drawJunctionChangeProhibitions(), GNEVehicle::drawJunctionLine(), GNELane::drawLane2LaneConnections(), GNEViewNet::drawLaneCandidates(), GUIGeometry::drawLaneGeometry(), GNEEdge::drawLaneStopOffset(), GNELane::drawLaneStopOffset(), drawLine(), GNEStoppingPlace::drawLines(), GNELane::drawLinkNo(), GUILane::drawLinkRule(), GUILane::drawLinkRules(), GNEAdditional::drawListedAddtional(), GNEViewNetHelper::LockIcon::drawLockIcon(), GNELane::drawMarkings(), GUILane::drawMarkings(), GUIGeometry::drawMovingHint(), GUIBaseVehicle::drawOnPos(), GNELane::drawOverlappedRoutes(), GNEAdditional::drawParentChildLines(), GUIGeometry::drawParentLine(), GNEAdditional::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GUIBaseVehicleHelper::drawPoly(), GNEViewNetHelper::SelectingArea::drawRectangleSelection(), GNEAdditional::drawSemiCircleGeometryPoint(), GNEStoppingPlace::drawSign(), GUIE3Collector::MyWrapper::drawSingleCrossing(), drawSpaceOccupancies(), GNEAdditional::drawSquaredAdditional(), GNEVehicle::drawStackLabel(), GNELane::drawStartEndShapePoints(), GNEStop::drawStopPersonOverBusStop(), GNEStop::drawStopPersonOverEdge(), GNEViewNet::drawTemporalDrawShape(), GNEAdditionalFrame::E2MultilaneLaneSelector::drawTemporalE2Multilane(), GNEViewNet::drawTemporalJunction(), GNEFrameModules::PathCreator::drawTemporalRoute(), GNEViewNetHelper::TestingMode::drawTestingElements(), drawText(), drawTextAtEnd(), drawTextBox(), GNELane::drawTextures(), GNEJunction::drawTLSIcon(), GNELane::drawTLSLinkNo(), GNECrossing::drawTLSLinkNo(), drawTriangleAtEnd(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GNEStop::drawVehicleStop(), and GUISUMOAbstractView::makeSnapshot().
|
static |
push Name
Definition at line 132 of file GLHelper.cpp.
References myNameCounter.
Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUISUMOAbstractView::drawDecals(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIEdge::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), GNEAdditional::drawListedAddtional(), GUIBaseVehicle::drawOnPos(), GNEAdditional::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEAdditional::drawSquaredAdditional(), GNEStop::drawStopPersonOverBusStop(), GNEStop::drawStopPersonOverEdge(), and GNEStop::drawVehicleStop().
|
static |
to be called when the font context is invalidated
Definition at line 524 of file GLHelper.cpp.
References glfonsDelete(), and myFont.
Referenced by GUIApplicationWindow::closeAllWindows(), and GNEApplicationWindow::closeAllWindows().
|
staticprivate |
whether the road makes a right turn (or goes straight)
Definition at line 264 of file GLHelper.cpp.
Referenced by drawBoxLines().
|
static |
Sets the gl-color to this value.
Definition at line 507 of file GLHelper.cpp.
References RGBColor::alpha(), RGBColor::blue(), RGBColor::green(), and RGBColor::red().
Referenced by GUISUMOAbstractView::displayColorLegend(), GUIBasePersonHelper::drawAction_drawAsPoly(), GUIContainer::drawAction_drawAsPoly(), GUIBasePersonHelper::drawAction_drawAsTriangle(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GNELane::drawArrows(), drawBoundary(), drawBoxLines(), GNECalibrator::drawCalibratorSymbol(), GUIGeometry::drawChildLine(), GUIDottedGeometry::drawDottedGeometry(), GNEDetector::drawE1Shape(), GNEEdge::drawEdgeGeometryPoints(), GNEVehicle::drawFlowLabel(), GUIGeometry::drawGeometryPoints(), GNEStop::drawGeometryPoints(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPerson::drawGLAdditional(), GNEVehicle::drawJunctionLine(), GUILane::drawLane2LaneConnections(), GNELane::drawLaneAsRailway(), GNEViewNet::drawLaneCandidates(), GNELane::drawLaneStopOffset(), drawLine(), GUILane::drawLinkRule(), GUILane::drawLinkRules(), GNEAdditional::drawListedAddtional(), GNELane::drawMarkings(), GUIGeometry::drawMovingHint(), GUIGeometry::drawParentLine(), GNEAdditional::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEViewNetHelper::SelectingArea::drawRectangleSelection(), GUIBaseVehicle::drawRoute(), GUIVehicle::drawRouteHelper(), GNEAdditional::drawSemiCircleGeometryPoint(), GNEStoppingPlace::drawSign(), drawSpaceOccupancies(), GNEVehicle::drawStackLabel(), GNELane::drawStartEndShapePoints(), GUIBaseVehicle::drawStopLabels(), GNEStop::drawStopPersonOverBusStop(), GNEStop::drawStopPersonOverEdge(), GNEViewNet::drawTemporalDrawShape(), GNEAdditionalFrame::E2MultilaneLaneSelector::drawTemporalE2Multilane(), GNEViewNet::drawTemporalJunction(), GNEFrameModules::PathCreator::drawTemporalRoute(), GNEViewNetHelper::TestingMode::drawTestingElements(), drawTextBox(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GUITLLogicPhasesTrackerWindow::drawValues(), GNEStop::drawVehicleStop(), GUIBaseVehicle::setColor(), GUIContainer::setColor(), GUILane::setColor(), GUIPerson::setColor(), GNEContainer::setColor(), GNEPerson::setColor(), GNEVehicle::setColor(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUILane::setFunctionalColor(), GUIContainer::setFunctionalColor(), GUIPerson::setFunctionalColor(), and GNELane::setLaneColor().
|
static |
set GL2PS
Definition at line 531 of file GLHelper.cpp.
References myGL2PSActive.
Referenced by GUISUMOAbstractView::makeSnapshot().
|
staticprivate |
Storage for precomputed sin/cos-values describing a circle.
Definition at line 391 of file GLHelper.h.
Referenced by getCircleCoords().
|
staticprivate |
static vector with a list of alternated black/white colors (used for contourns)
Definition at line 401 of file GLHelper.h.
Referenced by getDottedcontourColors().
|
staticprivate |
Font context.
Definition at line 394 of file GLHelper.h.
Referenced by drawText(), drawTextBox(), getTextWidth(), initFont(), and resetFont().
|
staticprivate |
Definition at line 395 of file GLHelper.h.
Referenced by drawText(), drawTextBox(), getTextWidth(), and initFont().
|
staticprivate |
whether we are currently rendering for gl2ps
Definition at line 398 of file GLHelper.h.
Referenced by drawText(), and setGL2PS().
|
staticprivate |
matrix counter
Definition at line 385 of file GLHelper.h.
Referenced by checkCounterMatrix(), popMatrix(), and pushMatrix().
|
staticprivate |
name counter
Definition at line 388 of file GLHelper.h.
Referenced by checkCounterName(), popName(), and pushName().