SUMO - Simulation of Urban MObility
|
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <GL/gl.h>
#include "polyfonts.h"
#include "pfPSansBold16.h"
Go to the source code of this file.
Data Structures | |
struct | nameValue |
struct | vertex |
Defines | |
#define | abs(a) (((a)<0) ? -(a) : (a)) |
#define | DtoR (PI/180.0) |
#define | max(a, b) (((a) > (b)) ? (a) : (b)) |
#define | min(a, b) (((a) < (b)) ? (a) : (b)) |
#define | numWeights (sizeof(weightOffset) / sizeof(vertex)) |
#define | PI (3.1415926535897932384626433) |
#define | RtoD (180.0/PI) |
#define | sign(a) (((a)<0) ? -1 : (a)>0 ? 1 : 0) |
#define | unfix(value) ((SUMOReal)(value)) / ((SUMOReal)pfFixScale) |
Functions | |
static SUMOReal | getCharAdvance (wchar_t c) |
static int | lookupGlOp (char *op) |
static pfglyph * | pfGetGlyph (wchar_t c) |
int | pfSetFont (pffont *f) |
static SUMOReal | pfSkew (SUMOReal x, SUMOReal y) |
void | pfUnloadFont (pffont *font) |
static void | validate (pffont *font) |
Variables | |
static nameValue | glPrims [] |
static int | pfCenter = 0 |
static pffont * | pfCurrentFont = &pfPSansBold16 |
static pffont * | pfDefaultFont = &pfPSansBold16 |
static SUMOReal | pfScaleX = 20.0 |
static SUMOReal | pfScaleY = 20.0 |
static SUMOReal | pfTextCos = 1.0 |
static SUMOReal | pfTextSin = 0.0 |
static SUMOReal | pfTextSkew = 0.0 |
static int | pfTextWeight = 1 |
static SUMOReal | pfTextX = 0.0 |
static SUMOReal | pfTextY = 0.0 |
vertex | weightOffset [] |
#define abs | ( | a | ) | (((a)<0) ? -(a) : (a)) |
Definition at line 63 of file polyfonts.c.
Referenced by MSLCM_DK2004::currentDistAllows(), MSLCM_DK2004::currentDistDisallows(), MSVehicle::getBestLanes(), and NBNode::getDirection().
Definition at line 59 of file polyfonts.c.
#define max | ( | a, | |
b | |||
) | (((a) > (b)) ? (a) : (b)) |
Definition at line 61 of file polyfonts.c.
Referenced by TraCIServerAPI_Vehicle::commandDistanceRequest(), DijkstraRouterEffortBase< E, V, PF >::compute(), DijkstraRouterTTBase< E, V, PF >::compute(), AStarRouterTTBase< E, V, PF >::compute(), computeRoutes(), TraCIServerAPI_Simulation::convertCartesianToRoadMap(), PositionVector::distance(), MSLaneChanger::findCandidate(), ROGawronCalculator::gawronF(), ROGawronCalculator::gawronG(), ROLogitCalculator::getBetaForCLogit(), MSRoute::getDistanceBetween(), MSVehicle::getDistanceToPosition(), RODFDetectorFlows::getMaxDetectorFlow(), NBContHelper::same_connection_edge_sorter::getMinMaxRelAngles(), ROLogitCalculator::getThetaForCLogit(), PositionVector::indexOfClosest(), PositionVector::insertAtClosest(), NBContHelper::maxSpeed(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), GUIParameterTracker::onCmdSave(), DijkstraRouterEffortBase< E, V, PF >::EdgeInfo::reset(), DijkstraRouterTTBase< E, V, PF >::EdgeInfo::reset(), AStarRouterTTBase< E, V, PF >::EdgeInfo::reset(), TraCIDijkstraRouter< E >::EdgeInfoCont::reset(), and MFXAddEditTypedTable::setNumberCellParams().
#define min | ( | a, | |
b | |||
) | (((a) < (b)) ? (a) : (b)) |
Definition at line 62 of file polyfonts.c.
Referenced by ROLogitCalculator::getBetaForCLogit(), NBContHelper::same_connection_edge_sorter::getMinMaxRelAngles(), ROLogitCalculator::getThetaForCLogit(), MSLCM_DK2004::patchSpeed(), and MFXAddEditTypedTable::setNumberCellParams().
#define numWeights (sizeof(weightOffset) / sizeof(vertex)) |
Definition at line 125 of file polyfonts.c.
#define PI (3.1415926535897932384626433) |
Definition at line 57 of file polyfonts.c.
Referenced by NBHelpers::angle(), GeomHelper::Angle2D(), PositionVector::around(), Line::atan2DegreeAngle(), Line::atan2PositiveAngle(), NBEdge::buildInnerEdges(), NIImporter_OpenDrive::calculateCurveCenter(), HelpersHBEFA::compute(), NBNodeShapeComputer::computeContinuationNodeShape(), NBNode::computeInternalLaneShape(), NBNodeShapeComputer::computeNodeShapeByCrosses(), computeSameEnd(), NGRandomNetBuilder::createNewNode(), NGNet::createSpiderWeb(), GLHelper::drawBoxLines(), GLHelper::drawFilledCircle(), GLHelper::drawOutlineCircle(), NGFrame::fillOptions(), MSVehicle::getAngle(), ROLogitCalculator::getThetaForCLogit(), GUIBusStop::GUIBusStop(), GUILaneWrapper::GUILaneWrapper(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), MSLane::by_connections_to_sorter::operator()(), GUILaneWrapper::ROWdrawAction_drawArrows(), GUILaneWrapper::ROWdrawAction_drawLinkNo(), GUILaneWrapper::ROWdrawAction_drawLinkRules(), GUILaneWrapper::ROWdrawAction_drawTLSLinkNo(), GUIVehicle::setFunctionalColor(), and GeoConvHelper::x2cartesian_const().
Definition at line 58 of file polyfonts.c.
#define sign | ( | a | ) | (((a)<0) ? -1 : (a)>0 ? 1 : 0) |
Definition at line 64 of file polyfonts.c.
Referenced by MSCFModel_Wiedemann::following().
#define unfix | ( | value | ) | ((SUMOReal)(value)) / ((SUMOReal)pfFixScale) |
Definition at line 132 of file polyfonts.c.
static SUMOReal getCharAdvance | ( | wchar_t | c | ) | [static] |
static int lookupGlOp | ( | char * | op | ) | [static] |
Definition at line 184 of file polyfonts.c.
References glPrims.
static pfglyph* pfGetGlyph | ( | wchar_t | c | ) | [static] |
Definition at line 148 of file polyfonts.c.
Definition at line 141 of file polyfonts.c.
References pfTextSkew.
void pfUnloadFont | ( | pffont * | font | ) |
Definition at line 252 of file polyfonts.c.
References pffont::glyphs, pffont::loaded, pffont::name, and pffont::numglyphs.
Definition at line 201 of file polyfonts.c.
References pffont::glyphs, pffont::maxx, pffont::maxy, pffont::minx, pffont::miny, pffont::name, and pffont::numglyphs.
{ {"GL_POINTS", GL_POINTS}, {"GL_LINES", GL_LINES}, {"GL_LINE_LOOP", GL_LINE_LOOP}, {"GL_LINE_STRIP", GL_LINE_STRIP}, {"GL_TRIANGLES", GL_TRIANGLES}, {"GL_TRIANGLE_STRIP", GL_TRIANGLE_STRIP}, {"GL_TRIANGLE_FAN", GL_TRIANGLE_FAN}, {"GL_QUADS", GL_QUADS}, {"GL_QUAD_STRIP", GL_QUAD_STRIP}, {"GL_POLYGON", GL_POLYGON}, }
Definition at line 168 of file polyfonts.c.
Referenced by lookupGlOp().
Definition at line 130 of file polyfonts.c.
pffont* pfCurrentFont = &pfPSansBold16 [static] |
Definition at line 79 of file polyfonts.c.
pffont* pfDefaultFont = &pfPSansBold16 [static] |
Definition at line 80 of file polyfonts.c.
Definition at line 98 of file polyfonts.c.
Definition at line 99 of file polyfonts.c.
Definition at line 128 of file polyfonts.c.
Definition at line 127 of file polyfonts.c.
SUMOReal pfTextSkew = 0.0 [static] |
Definition at line 104 of file polyfonts.c.
Referenced by pfSkew().
int pfTextWeight = 1 [static] |
Definition at line 105 of file polyfonts.c.
Definition at line 101 of file polyfonts.c.
Definition at line 102 of file polyfonts.c.
{ {0.0, 0.0}, {0.0, 1.0}, {1.0, 1.0}, {1.0, 0.0}, {0.0, 2.0}, {1.0, 2.0}, {2.0, 2.0}, {1.0, 2.0}, {0.0, 2.0}, }
Definition at line 112 of file polyfonts.c.