#include <GUIPointOfInterest.h>

Definition at line 50 of file GUIPointOfInterest.h.
Public Member Functions | |
| virtual bool | active () const throw () |
| Returns the information whether this object is still active. | |
| void | add (SUMOReal dx, SUMOReal dy) |
| Adds the given position to this one. | |
| void | add (const Position2D &pos) |
| Adds the given position to this one. | |
| bool | almostSame (const Position2D &p2, SUMOReal maxDiv=POSITION_EPS) const |
| SUMOReal | blue () const throw () |
| Returns the blue-amount of the color. | |
| SUMOReal | distanceSquaredTo (const Position2D &p2) const |
| SUMOReal | distanceTo (const Position2D &p2) const |
| void | drawGLName (const Position2D &p, const std::string &id, SUMOReal nameScale) const |
| const std::string & | getID () const throw () |
| Returns the id. | |
| int | getLayer () const |
| Returns the layer the object is located in. | |
| const std::string & | getType () const throw () |
| Returns the (abstract) type of the poi. | |
| SUMOReal | green () const throw () |
| Returns the green-amount of the color. | |
| GUIPointOfInterest (GUIGlObjectStorage &idStorage, int layer, const std::string &id, const std::string &type, const Position2D &p, const RGBColor &c) throw () | |
| void | mul (SUMOReal mx, SUMOReal my) |
| Multiplies position with the given values. | |
| void | mul (SUMOReal val) |
| Multiplies both positions with the given value. | |
| void | norm () |
| bool | operator!= (const Position2D &p2) const |
| bool | operator!= (const RGBColor &c) const |
| bool | operator== (const Position2D &p2) const |
| bool | operator== (const RGBColor &c) const |
| SUMOReal | red () const throw () |
| Returns the red-amount of the color. | |
| void | reshiftRotate (SUMOReal xoff, SUMOReal yoff, SUMOReal rot) |
| void | set (const Position2D &pos) |
| void | set (SUMOReal x, SUMOReal y) |
| void | set (SUMOReal r, SUMOReal g, SUMOReal b) throw () |
| assigns new values | |
| void | setType (const std::string &type) throw () |
| Sets a new type. | |
| void | sub (const Position2D &pos) |
| Substracts the given position from this one. | |
| void | sub (SUMOReal dx, SUMOReal dy) |
| Substracts the given position from this one. | |
| SUMOReal | x () const |
| Returns the x-position. | |
| SUMOReal | y () const |
| Returns the y-position. | |
| virtual | ~GUIPointOfInterest () throw () |
inherited from GUIGlObject | |
| void | drawGL (const GUIVisualizationSettings &s) const throw () |
| Draws the object. | |
| Boundary | getCenteringBoundary () const throw () |
| Returns the boundary to which the view shall be centered in order to show the object. | |
| const std::string & | getMicrosimID () const throw () |
| Returns the id of the object as known to microsim. | |
| GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) throw () |
| Returns an own parameter window. | |
| GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) throw () |
| Returns an own popup-menu. | |
Atomar getter methods | |
| const std::string & | getFullName () const throw () |
| Returns the full name appearing in the tool tip. | |
| GLuint | getGlID () const throw () |
| Returns the numerical id of the object. | |
inherited from GUIGlObject | |
| GUIGlObjectType | getType () const throw () |
| Returns the type of the object as coded in GUIGlObjectType. | |
Static Public Member Functions | |
| static void | clearDictionary () |
| Clears the dictionary (the objects will not be deleted). | |
| static RGBColor | fromHSV (SUMOReal h, SUMOReal s, SUMOReal v) throw () |
| Converts the given hsv-triplet to rgb. | |
| static GUIGlObject_AbstractAdd * | get (const std::string &name) |
| Returns a named object. | |
| static RGBColor | getDefaultColor () throw () |
| Returns the default color by parsing DEFAULT_COLOR_STRING. | |
| static std::vector< GLuint > | getIDList () |
| Returns the list of gl-ids of all additional objects. | |
| static const std::vector < GUIGlObject_AbstractAdd * > & | getObjectList () |
| Returns the list of all additional objects. | |
| static RGBColor | interpolate (const RGBColor &minColor, const RGBColor &maxColor, SUMOReal weight) throw () |
| Interpolates between two colors. | |
| static RGBColor | parseColor (const std::string &coldef) throw (EmptyData, NumberFormatException) |
| Parses a color information. | |
| static RGBColor | parseColorReporting (const std::string &coldef, const char *objecttype, const char *objectid, bool report, bool &ok) throw () |
| Parses a color information. | |
Static Public Attributes | |
| static const RGBColor | DEFAULT_COLOR = RGBColor::parseColor(RGBColor::DEFAULT_COLOR_STRING) |
| The default color (for vehicle types and vehicles). | |
| static const std::string | DEFAULT_COLOR_STRING = "1,1,0" |
| The string description of the default color. | |
Protected Member Functions | |
helper methods for building popup-menus | |
| void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) throw () |
| Builds an entry which allows to center to the object. | |
| void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) throw () |
| Builds entries which allow to copy the name / typed name into the clipboard. | |
| void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) throw () |
| Builds the header. | |
| void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) throw () |
| Builds an entry which allows to copy the cursor position. | |
| void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) throw () |
| Builds an entry which allows to (de)select the object. | |
| void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) throw () |
| Builds an entry which allows to open the manipulator window. | |
| void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) throw () |
| Builds an entry which allows to open the parameter window. | |
Protected Attributes | |
| GUIGlObjectType | myGlType |
| The object's type. | |
| std::string | myID |
| The name of the object. | |
| int | myLayer |
| The layer this object is located in. | |
| std::string | myType |
| the type of the poi | |
Static Protected Attributes | |
| static std::vector < GUIGlObject_AbstractAdd * > | myObjectList |
| The list of all addtional objects currently loaded. | |
| static std::map< std::string, GUIGlObject_AbstractAdd * > | myObjects |
| Map from names of loaded additional objects to the objects themselves. | |
Friends | |
| class | GUIGlObjectStorage |
| Needed to set the id. | |
| std::ostream & | operator<< (std::ostream &os, const Position2D &p) |
| Prints to the output. | |
| std::ostream & | operator<< (std::ostream &os, const RGBColor &col) |
| Writes the color to the given stream. | |
| GUIPointOfInterest::GUIPointOfInterest | ( | GUIGlObjectStorage & | idStorage, | |
| int | layer, | |||
| const std::string & | id, | |||
| const std::string & | type, | |||
| const Position2D & | p, | |||
| const RGBColor & | c | |||
| ) | throw () |
Definition at line 49 of file GUIPointOfInterest.cpp.
00055 : PointOfInterest(id, type, p, c), 00056 GUIGlObject_AbstractAdd(idStorage, "poi:"+id, GLO_SHAPE), myLayer(layer) {}
| GUIPointOfInterest::~GUIPointOfInterest | ( | ) | throw () [virtual] |
| virtual bool GUIGlObject::active | ( | ) | const throw () [inline, virtual, inherited] |
Returns the information whether this object is still active.
Reimplemented in GUIVehicle.
Definition at line 171 of file GUIGlObject.h.
Referenced by GLObjectValuePassConnector< std::pair< int, MSPhaseDefinition > >::updateEachTimestep().
| void Position2D::add | ( | SUMOReal | dx, | |
| SUMOReal | dy | |||
| ) | [inline, inherited] |
Adds the given position to this one.
Definition at line 96 of file Position2D.h.
References Position2D::myX, and Position2D::myY.
| void Position2D::add | ( | const Position2D & | pos | ) | [inline, inherited] |
Adds the given position to this one.
Definition at line 90 of file Position2D.h.
References Position2D::myX, and Position2D::myY.
Referenced by Line2D::add(), NBNodeShapeComputer::computeContinuationNodeShape(), NIVissimDistrictConnection::dict_BuildDistrictNodes(), Position2DVector::distancesExt(), GUIEdge::drawGL(), NBNode::getEmptyDir(), GUIDanielPerspectiveChanger::move(), Line2D::move2side(), GeoConvHelper::moveConvertedBy(), Line2D::rotateAround(), Line2D::rotateAtP1(), GeomHelper::transfer_to_side(), and GeoConvHelper::x2cartesian().
| bool Position2D::almostSame | ( | const Position2D & | p2, | |
| SUMOReal | maxDiv = POSITION_EPS | |||
| ) | const [inline, inherited] |
Definition at line 142 of file Position2D.h.
References Position2D::myX, and Position2D::myY.
Referenced by NBNode::computeInternalLaneShape(), Position2DVector::push_back_noDoublePos(), and Position2DVector::push_front_noDoublePos().
| SUMOReal RGBColor::blue | ( | ) | const throw () [inline, inherited] |
Returns the blue-amount of the color.
Definition at line 88 of file RGBColor.h.
References RGBColor::myBlue.
Referenced by GUIPolygon2D::drawGL(), drawGL(), GUISUMOAbstractView::getSnapshot(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_POI::processGet(), MSVehicleType::saveState(), GUIVehicle::Colorer::setFunctionalColor(), GUIColorer< GUIVehicle >::setGlColor(), GUIVehicle::setOwnDefinedColor(), GUIVehicle::setOwnRouteColor(), GUIVehicle::setOwnTypeColor(), and TEST().
00088 { 00089 return myBlue; 00090 }
| void GUIGlObject::buildCenterPopupEntry | ( | GUIGLObjectPopupMenu * | ret, | |
| bool | addSeparator = true | |||
| ) | throw () [protected, inherited] |
Builds an entry which allows to center to the object.
| in,filled] | ret The popup menu to add the entry to | |
| [in] | app | The application, needed for callbacks |
| [in] | addSeparator | Whether a separator shall be added, too |
Definition at line 86 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIVehicle::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon2D::getPopUpMenu(), getPopUpMenu(), GUINet::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIEmitter::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), and GUIBusStop::getPopUpMenu().
00087 { 00088 new FXMenuCommand(ret, "Center", GUIIconSubSys::getIcon(ICON_RECENTERVIEW), ret, MID_CENTER); 00089 if (addSeparator) { 00090 new FXMenuSeparator(ret); 00091 } 00092 }
| void GUIGlObject::buildNameCopyPopupEntry | ( | GUIGLObjectPopupMenu * | ret, | |
| bool | addSeparator = true | |||
| ) | throw () [protected, inherited] |
Builds entries which allow to copy the name / typed name into the clipboard.
| in,filled] | ret The popup menu to add the entry to | |
| [in] | app | The application, needed for callbacks |
| [in] | addSeparator | Whether a separator shall be added, too |
Definition at line 96 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIVehicle::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon2D::getPopUpMenu(), getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIEmitter::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), and GUIBusStop::getPopUpMenu().
00097 { 00098 new FXMenuCommand(ret, "Copy name to clipboard", 0, ret, MID_COPY_NAME); 00099 new FXMenuCommand(ret, "Copy typed name to clipboard", 0, ret, MID_COPY_TYPED_NAME); 00100 if (addSeparator) { 00101 new FXMenuSeparator(ret); 00102 } 00103 }
| void GUIGlObject::buildPopupHeader | ( | GUIGLObjectPopupMenu * | ret, | |
| GUIMainWindow & | app, | |||
| bool | addSeparator = true | |||
| ) | throw () [protected, inherited] |
Builds the header.
| in,filled] | ret The popup menu to add the entry to | |
| [in] | app | The application, needed for callbacks |
| [in] | addSeparator | Whether a separator shall be added, too |
Definition at line 75 of file GUIGlObject.cpp.
References GUIGlObject::getFullName().
Referenced by GUIVehicle::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon2D::getPopUpMenu(), getPopUpMenu(), GUINet::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIEmitter::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), and GUIBusStop::getPopUpMenu().
00077 { 00078 new MFXMenuHeader(ret, app.getBoldFont(), getFullName().c_str(), 0, 0, 0); 00079 if (addSeparator) { 00080 new FXMenuSeparator(ret); 00081 } 00082 }
| void GUIGlObject::buildPositionCopyEntry | ( | GUIGLObjectPopupMenu * | ret, | |
| bool | addSeparator = true | |||
| ) | throw () [protected, inherited] |
Builds an entry which allows to copy the cursor position.
| in,filled] | ret The popup menu to add the entry to | |
| [in] | app | The application, needed for callbacks |
| [in] | addSeparator | Whether a separator shall be added, too |
Definition at line 131 of file GUIGlObject.cpp.
References MID_COPY_CURSOR_POSITION.
Referenced by GUIVehicle::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon2D::getPopUpMenu(), getPopUpMenu(), GUINet::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIEmitter::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), and GUIBusStop::getPopUpMenu().
00132 { 00133 new FXMenuCommand(ret, "Copy cursor position to clipboard", 0, ret, MID_COPY_CURSOR_POSITION); 00134 if (addSeparator) { 00135 new FXMenuSeparator(ret); 00136 } 00137 }
| void GUIGlObject::buildSelectionPopupEntry | ( | GUIGLObjectPopupMenu * | ret, | |
| bool | addSeparator = true | |||
| ) | throw () [protected, inherited] |
Builds an entry which allows to (de)select the object.
| in,filled] | ret The popup menu to add the entry to | |
| [in] | app | The application, needed for callbacks |
| [in] | addSeparator | Whether a separator shall be added, too |
Definition at line 107 of file GUIGlObject.cpp.
References GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, ICON_FLAG_MINUS, ICON_FLAG_PLUS, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIVehicle::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon2D::getPopUpMenu(), getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIEmitter::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), and GUIBusStop::getPopUpMenu().
00108 { 00109 if (gSelected.isSelected(getType(), getGlID())) { 00110 new FXMenuCommand(ret, "Remove From Selected", GUIIconSubSys::getIcon(ICON_FLAG_MINUS), ret, MID_REMOVESELECT); 00111 } else { 00112 new FXMenuCommand(ret, "Add To Selected", GUIIconSubSys::getIcon(ICON_FLAG_PLUS), ret, MID_ADDSELECT); 00113 } 00114 if (addSeparator) { 00115 new FXMenuSeparator(ret); 00116 } 00117 }
| void GUIGlObject::buildShowManipulatorPopupEntry | ( | GUIGLObjectPopupMenu * | ret, | |
| bool | addSeparator = true | |||
| ) | throw () [protected, inherited] |
Builds an entry which allows to open the manipulator window.
| in,filled] | ret The popup menu to add the entry to | |
| [in] | app | The application, needed for callbacks |
| [in] | addSeparator | Whether a separator shall be added, too |
Definition at line 141 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.
Referenced by GUITriggeredRerouter::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), and GUIEmitter::getPopUpMenu().
00142 { 00143 new FXMenuCommand(ret, "Open Manipulator...", 00144 GUIIconSubSys::getIcon(ICON_MANIP), ret, MID_MANIP); 00145 if (addSeparator) { 00146 new FXMenuSeparator(ret); 00147 } 00148 }
| void GUIGlObject::buildShowParamsPopupEntry | ( | GUIGLObjectPopupMenu * | ret, | |
| bool | addSeparator = true | |||
| ) | throw () [protected, inherited] |
Builds an entry which allows to open the parameter window.
| in,filled] | ret The popup menu to add the entry to | |
| [in] | app | The application, needed for callbacks |
| [in] | addSeparator | Whether a separator shall be added, too |
Definition at line 121 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIVehicle::getPopUpMenu(), GUINet::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUIDetectorWrapper::getPopUpMenu().
00122 { 00123 new FXMenuCommand(ret, "Show Parameter", GUIIconSubSys::getIcon(ICON_APP_TABLE), ret, MID_SHOWPARS); 00124 if (addSeparator) { 00125 new FXMenuSeparator(ret); 00126 } 00127 }
| void GUIGlObject_AbstractAdd::clearDictionary | ( | ) | [static, inherited] |
Clears the dictionary (the objects will not be deleted).
!! delete (*i).second;
Definition at line 82 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject_AbstractAdd::myObjectList, and GUIGlObject_AbstractAdd::myObjects.
Referenced by GUINet::~GUINet().
00082 { 00083 std::map<std::string, GUIGlObject_AbstractAdd*>::iterator i; 00084 for (i=myObjects.begin(); i!=myObjects.end(); i++) { 00086 } 00087 myObjects.clear(); 00088 myObjectList.clear(); 00089 }
| SUMOReal Position2D::distanceSquaredTo | ( | const Position2D & | p2 | ) | const [inline, inherited] |
Definition at line 152 of file Position2D.h.
References Position2D::myX, and Position2D::myY.
Referenced by GeomHelper::distancePointLine(), Position2D::distanceTo(), and GeomHelper::nearest_position_on_line_to_point().
| SUMOReal Position2D::distanceTo | ( | const Position2D & | p2 | ) | const [inline, inherited] |
Definition at line 147 of file Position2D.h.
References Position2D::distanceSquaredTo().
Referenced by GeomHelper::closestDistancePointLine(), traci::TraCIServer::commandDistanceRequest(), NBNode::computeInternalLaneShape(), traci::TraCIServer::convertCartesianToRoadMap(), NIVissimEdge::dict_checkEdges2Join(), Position2DVector::distance(), NBHelpers::distance(), GeomHelper::distancePointLine(), GLHelper::drawBoxLines(), GeomHelper::extrapolate_first(), GeomHelper::extrapolate_second(), Line2D::extrapolateBy(), NBNodeCont::generateNodeClusters(), Line2D::getPositionAtDistance(), NBNodeCont::guessRamps(), GUIBusStop::GUIBusStop(), GUILaneWrapper::GUILaneWrapper(), traci::TraCIServer::handleVehicleDomain(), NBEdge::init(), GeomHelper::interpolate(), Position2DVector::intersectsAtLengths(), Line2D::intersectsAtLengths(), Position2DVector::move2side(), GUI_E2_ZS_Collector::MyWrapper::myConstruct(), Position2DVector::nearest_position_on_line_to_point(), GeomHelper::nearest_position_on_line_to_point(), GUIViewTraffic::onGamingClick(), Position2DVector::positionAtLengthPosition(), NIVissimEdge::remapOneOfNodes(), GUIVehicle::Colorer::setFunctionalColor(), and Position2DVector::splitAt().
00147 { 00148 return sqrt(distanceSquaredTo(p2)); 00149 }
| void GUIPointOfInterest::drawGL | ( | const GUIVisualizationSettings & | s | ) | const throw () [virtual] |
Draws the object.
| [in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 102 of file GUIPointOfInterest.cpp.
References RGBColor::blue(), GLHelper::drawFilledCircle(), GUIGlObject::getGlID(), Named::getID(), getLayer(), RGBColor::green(), pfDrawString(), pfSetPosition(), pfSetScale(), RGBColor::red(), SUMOReal, Position2D::x(), and Position2D::y().
00102 { 00103 if (s.scale*(1.3/3.0)<s.minPOISize) { 00104 return; 00105 } 00106 glPushMatrix(); 00107 if (getLayer()==0) { 00108 glTranslated(0, 0, -.03); 00109 } else if (getLayer()>0) { 00110 glTranslated(0, 0, -.05-.01*(SUMOReal) getLayer()); 00111 } else { 00112 glTranslated(0, 0, -.01*(SUMOReal) getLayer()+.01); 00113 } 00114 // (optional) set id 00115 if (s.needsGlID) { 00116 glPushName(getGlID()); 00117 } 00118 glColor3d(red(),green(),blue()); 00119 glTranslated(x(), y(), 0); 00120 GLHelper::drawFilledCircle((SUMOReal) 1.3*s.poiExaggeration, 16); 00121 if (s.drawPOIName) { 00122 glColor3d(s.poiNameColor.red(), s.poiNameColor.green(), s.poiNameColor.blue()); 00123 glPushMatrix(); 00124 glTranslated((SUMOReal) 1.32*s.poiExaggeration, (SUMOReal) 1.32*s.poiExaggeration, 0); 00125 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 00126 pfSetPosition(0, 0); 00127 pfSetScale(s.poiNameSize / s.scale); 00128 glRotated(180, 1, 0, 0); 00129 pfDrawString(getID().c_str()); 00130 glPopMatrix(); 00131 } 00132 glTranslated(-x(), -y(), 0); 00133 // (optional) clear id 00134 if (s.needsGlID) { 00135 glPopName(); 00136 } 00137 glPopMatrix(); 00138 }
| void GUIGlObject_AbstractAdd::drawGLName | ( | const Position2D & | p, | |
| const std::string & | id, | |||
| SUMOReal | nameScale | |||
| ) | const [inherited] |
Definition at line 120 of file GUIGlObject_AbstractAdd.cpp.
References pfdkGetStringWidth(), pfDrawString(), pfSetPosition(), pfSetScale(), SUMOReal, Position2D::x(), and Position2D::y().
Referenced by GUILaneSpeedTrigger::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIEmitter::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIBusStop::drawGL(), and GUI_E2_ZS_Collector::MyWrapper::drawGL().
00120 { 00121 glPolygonOffset(0, -6); 00122 glPushMatrix(); 00123 glTranslated(p.x(), p.y(), 0); 00124 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 00125 pfSetPosition(0, 0); 00126 pfSetScale(nameScale); 00127 SUMOReal w = pfdkGetStringWidth(id.c_str()); 00128 glRotated(180, 1, 0, 0); 00129 glTranslated(-w/2., 0.4, 0); 00130 pfDrawString(id.c_str()); 00131 glPopMatrix(); 00132 }
| RGBColor RGBColor::fromHSV | ( | SUMOReal | h, | |
| SUMOReal | s, | |||
| SUMOReal | v | |||
| ) | throw () [static, inherited] |
Converts the given hsv-triplet to rgb.
| [in] | h | Hue (0-360) |
| [in] | s | Saturation (0-1) |
| [in] | v | Value (0-1) |
Definition at line 159 of file RGBColor.cpp.
References RGBColor::RGBColor().
Referenced by GUIVehicle::Colorer::setFunctionalColor().
00159 { 00160 // H is given on [0, 6] or UNDEFINED. S and V are given on [0, 1]. 00161 // RGB are each returned on [0, 1]. 00162 //float h = HSV.H, s = HSV.S, v = HSV.V, 00163 float m, n, f; 00164 h /= 60.; 00165 int i; 00166 //if (h == UNDEFINED) RETURN_RGB(v, v, v); 00167 i = floor(h); 00168 f = h - i; 00169 if (!(i&1)) f = 1 - f; // if i is even 00170 m = v * (1 - s); 00171 n = v * (1 - s * f); 00172 switch (i) { 00173 case 6: 00174 case 0: 00175 return RGBColor(v, n, m); 00176 case 1: 00177 return RGBColor(n, v, m); 00178 case 2: 00179 return RGBColor(m, v, n); 00180 case 3: 00181 return RGBColor(m, n, v); 00182 case 4: 00183 return RGBColor(n, m, v); 00184 case 5: 00185 return RGBColor(v, m, n); 00186 } 00187 return RGBColor(1, 1, 1); 00188 }
| GUIGlObject_AbstractAdd * GUIGlObject_AbstractAdd::get | ( | const std::string & | name | ) | [static, inherited] |
Returns a named object.
Definition at line 93 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject_AbstractAdd::myObjects.
00093 { 00094 std::map<std::string, GUIGlObject_AbstractAdd*>::iterator i = 00095 myObjects.find(name); 00096 if (i==myObjects.end()) { 00097 return 0; 00098 } 00099 return (*i).second; 00100 }
| Boundary GUIPointOfInterest::getCenteringBoundary | ( | ) | const throw () [virtual] |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 93 of file GUIPointOfInterest.cpp.
References Boundary::add(), Boundary::grow(), Position2D::x(), and Position2D::y().
| RGBColor RGBColor::getDefaultColor | ( | ) | throw () [static, inherited] |
Returns the default color by parsing DEFAULT_COLOR_STRING.
Definition at line 142 of file RGBColor.cpp.
References RGBColor::DEFAULT_COLOR_STRING, and RGBColor::parseColor().
Referenced by MSRouteHandler::openRoute().
00142 { 00143 return parseColor(RGBColor::DEFAULT_COLOR_STRING); 00144 }
| const std::string& GUIGlObject::getFullName | ( | ) | const throw () [inline, inherited] |
Returns the full name appearing in the tool tip.
Definition at line 95 of file GUIGlObject.h.
References GUIGlObject::myFullName.
Referenced by GUIGlObject::buildPopupHeader(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUIGLObjectToolTip::onPaint(), GUITriggeredRerouter::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUIEmitter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUISelectedStorage::save(), and GUISelectedStorage::SingleTypeSelections::save().
00095 { 00096 return myFullName; 00097 }
| GLuint GUIGlObject::getGlID | ( | ) | const throw () [inline, inherited] |
Returns the numerical id of the object.
Definition at line 103 of file GUIGlObject.h.
References GUIGlObject::myGlID.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIViewTraffic::drawBestLanes(), GUIVehicle::drawGL(), GUITriggeredRerouter::drawGL(), GUIPolygon2D::drawGL(), drawGL(), GUILaneWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIJunctionWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIEmitter::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIBusStop::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIViewTraffic::drawRoute(), FXIMPLEMENT(), GUILaneWrapper::Colorer::getColorValue(), GUISUMOAbstractView::getObjectUnderCursor(), GUIVehicle::getPopUpMenu(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIVehicle::GUIVehiclePopupMenu::onCmdStartTrack(), and ROWdrawAction_drawLinkRules().
00103 { 00104 return myGlID; 00105 }
| const std::string& Named::getID | ( | ) | const throw () [inline, inherited] |
Returns the id.
Definition at line 59 of file Named.h.
References Named::myID.
Referenced by RORouteDef_Alternatives::addAlternative(), MSRouteProbe::addRoute(), MSEmitter::MSEmitter_FileTriggeredChild::buildAndScheduleFlowVehicle(), MSCalibrator::MSCalibrator_FileTriggeredChild::buildAndScheduleFlowVehicle(), RORouteDef_Complete::buildCurrentRoute(), ODDistrictHandler::closeDistrict(), NBTrafficLightDefinition::collectLinks(), NBTrafficLightDefinition::compute(), drawGL(), MSInductLoop::enterDetectorByMove(), MSVTypeProbe::execute(), MSNet::getBusStopID(), GUITriggeredRerouter::getMicrosimID(), getMicrosimID(), GUILaneSpeedTrigger::getMicrosimID(), GUIInductLoop::MyWrapper::getMicrosimID(), GUIEmitter::getMicrosimID(), GUIBusStop::getMicrosimID(), GUI_E2_ZS_Collector::MyWrapper::getMicrosimID(), traci::TraCIServer::handlePoiDomain(), RORDLoader_SUMOBase::myCharacters(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), MSTriggeredRerouter::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSEmitter::MSEmitter_FileTriggeredChild::myStartElement(), MSCalibrator::MSCalibrator_FileTriggeredChild::myStartElement(), NBLoadedTLDef::SignalGroup::patchTYellow(), TraCIServerAPI_Vehicle::processGet(), MSVehicle::replaceRoute(), MSVehicle::saveState(), NBOwnTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), RORDLoader_SUMOBase::startRoute(), GUIEmitter::GUIEmitterChild_UserTriggeredChild::wrappedExecute(), NBTrafficLightLogic::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and MSVehicle::~MSVehicle().
00059 { 00060 return myID; 00061 }
| std::vector< GLuint > GUIGlObject_AbstractAdd::getIDList | ( | ) | [static, inherited] |
Returns the list of gl-ids of all additional objects.
Definition at line 110 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject_AbstractAdd::myObjectList.
Referenced by FXIMPLEMENT().
00110 { 00111 std::vector<GLuint> ret; 00112 for (std::vector<GUIGlObject_AbstractAdd*>::iterator i=myObjectList.begin(); i!=myObjectList.end(); ++i) { 00113 ret.push_back((*i)->getGlID()); 00114 } 00115 return ret; 00116 }
| int GUIPointOfInterest::getLayer | ( | ) | const |
Returns the layer the object is located in.
Definition at line 142 of file GUIPointOfInterest.cpp.
References myLayer.
Referenced by drawGL().
00142 { 00143 return myLayer; 00144 }
| const std::string & GUIPointOfInterest::getMicrosimID | ( | ) | const throw () [virtual] |
Returns the id of the object as known to microsim.
Implements GUIGlObject.
Definition at line 87 of file GUIPointOfInterest.cpp.
References Named::getID().
00087 { 00088 return getID(); 00089 }
| const std::vector< GUIGlObject_AbstractAdd * > & GUIGlObject_AbstractAdd::getObjectList | ( | ) | [static, inherited] |
Returns the list of all additional objects.
Definition at line 104 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject_AbstractAdd::myObjectList.
Referenced by GUINet::initGUIStructures().
00104 { 00105 return myObjectList; 00106 }
| GUIParameterTableWindow * GUIPointOfInterest::getParameterWindow | ( | GUIMainWindow & | app, | |
| GUISUMOAbstractView & | parent | |||
| ) | throw () [virtual] |
Returns an own parameter window.
| [in] | app | The application needed to build the parameter window |
| [in] | parent | The parent window needed to build the parameter window |
Implements GUIGlObject.
Definition at line 80 of file GUIPointOfInterest.cpp.
| GUIGLObjectPopupMenu * GUIPointOfInterest::getPopUpMenu | ( | GUIMainWindow & | app, | |
| GUISUMOAbstractView & | parent | |||
| ) | throw () [virtual] |
Returns an own popup-menu.
| [in] | app | The application needed to build the popup-menu |
| [in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 63 of file GUIPointOfInterest.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and PointOfInterest::myType.
00064 { 00065 00066 GUIGLObjectPopupMenu *ret = new GUIGLObjectPopupMenu(app, parent, *this); 00067 buildPopupHeader(ret, app, false); 00068 FXString t(myType.c_str()); 00069 new FXMenuCommand(ret, "(" + t + ")", 0, 0, 0); 00070 new FXMenuSeparator(ret); 00071 buildCenterPopupEntry(ret); 00072 buildNameCopyPopupEntry(ret); 00073 buildSelectionPopupEntry(ret); 00074 buildPositionCopyEntry(ret, false); 00075 return ret; 00076 }
| GUIGlObjectType GUIGlObject_AbstractAdd::getType | ( | ) | const throw () [virtual, inherited] |
Returns the type of the object as coded in GUIGlObjectType.
Implements GUIGlObject.
Reimplemented in GUIDetectorWrapper.
Definition at line 76 of file GUIGlObject_AbstractAdd.cpp.
References GUIGlObject_AbstractAdd::myGlType.
00076 { 00077 return myGlType; 00078 }
| const std::string& PointOfInterest::getType | ( | ) | const throw () [inline, inherited] |
Returns the (abstract) type of the poi.
Definition at line 66 of file PointOfInterest.h.
References PointOfInterest::myType.
Referenced by traci::TraCIServer::handlePoiDomain(), and TraCIServerAPI_POI::processGet().
00066 { 00067 return myType; 00068 }
| SUMOReal RGBColor::green | ( | ) | const throw () [inline, inherited] |
Returns the green-amount of the color.
Definition at line 80 of file RGBColor.h.
References RGBColor::myGreen.
Referenced by GUIPolygon2D::drawGL(), drawGL(), GUISUMOAbstractView::getSnapshot(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_POI::processGet(), MSVehicleType::saveState(), GUIVehicle::Colorer::setFunctionalColor(), GUIColorer< GUIVehicle >::setGlColor(), GUIVehicle::setOwnDefinedColor(), GUIVehicle::setOwnRouteColor(), GUIVehicle::setOwnTypeColor(), and TEST().
00080 { 00081 return myGreen; 00082 }
| RGBColor RGBColor::interpolate | ( | const RGBColor & | minColor, | |
| const RGBColor & | maxColor, | |||
| SUMOReal | weight | |||
| ) | throw () [static, inherited] |
Interpolates between two colors.
The interpolated color is calculated as a weighted average of the RGB values of minColor and maxColor, giving weight to maxColor and 1-weight to minColor.
| [in] | minColor | The color to interpolate from |
| [in] | maxColor | The color to interpolate to |
| [in] | weight | The weight of the first color |
Definition at line 148 of file RGBColor.cpp.
References RGBColor::RGBColor(), and SUMOReal.
Referenced by GUIColorScheme::getColor(), and TEST().
00148 { 00149 if (weight < 0) weight = 0; 00150 if (weight > 1) weight = 1; 00151 SUMOReal r = minColor.myRed + (maxColor.myRed - minColor.myRed) * weight; 00152 SUMOReal g = minColor.myGreen + (maxColor.myGreen - minColor.myGreen) * weight; 00153 SUMOReal b = minColor.myBlue + (maxColor.myBlue - minColor.myBlue) * weight; 00154 return RGBColor(r, g, b); 00155 }
| void Position2D::mul | ( | SUMOReal | mx, | |
| SUMOReal | my | |||
| ) | [inline, inherited] |
Multiplies position with the given values.
Definition at line 84 of file Position2D.h.
References Position2D::myX, and Position2D::myY.
| void Position2D::mul | ( | SUMOReal | val | ) | [inline, inherited] |
Multiplies both positions with the given value.
Definition at line 78 of file Position2D.h.
References Position2D::myX, and Position2D::myY.
Referenced by GUIDanielPerspectiveChanger::centerTo(), NBNodeShapeComputer::computeContinuationNodeShape(), Position2DVector::distancesExt(), GUIEdge::drawGL(), NBNode::getEmptyDir(), and NIXMLNodesHandler::myStartElement().
| void Position2D::norm | ( | ) | [inline, inherited] |
Definition at line 113 of file Position2D.h.
References Position2D::myX, Position2D::myY, and SUMOReal.
Referenced by NBNode::getEmptyDir().
00113 { 00114 SUMOReal val = sqrt(myX*myX + myY*myY); 00115 myX = myX / val; 00116 myY = myY / val; 00117 }
| bool Position2D::operator!= | ( | const Position2D & | p2 | ) | const [inline, inherited] |
Definition at line 95 of file RGBColor.cpp.
References RGBColor::myBlue, RGBColor::myGreen, and RGBColor::myRed.
00095 { 00096 return fabs(myRed-c.myRed)>0.1 || fabs(myGreen-c.myGreen)>0.1 || fabs(myBlue-c.myBlue)>0.1; 00097 //return myRed!=c.myRed||myGreen!=c.myGreen||myBlue!=c.myBlue; 00098 }
| bool Position2D::operator== | ( | const Position2D & | p2 | ) | const [inline, inherited] |
Definition at line 88 of file RGBColor.cpp.
References RGBColor::myBlue, RGBColor::myGreen, and RGBColor::myRed.
00088 { 00089 return fabs(myRed-c.myRed)<0.1 && fabs(myGreen-c.myGreen)<0.1 && fabs(myBlue-c.myBlue)<0.1; 00090 //return myRed==c.myRed&&myGreen==c.myGreen&&myBlue==c.myBlue; 00091 }
| RGBColor RGBColor::parseColor | ( | const std::string & | coldef | ) | throw (EmptyData, NumberFormatException) [static, inherited] |
Parses a color information.
It is assumed that the color is stored as "<RED>,<GREEN>,<BLUE>" And each color is represented as a SUMOReal.
| [in] | coldef | The color definition to parse |
| EmptyData | If the definition has less than three entries | |
| NumberFormatException | If one of the components is not numeric |
Definition at line 102 of file RGBColor.cpp.
References TplConvert< E >::_2SUMOReal(), StringTokenizer::next(), RGBColor::RGBColor(), StringTokenizer::size(), and SUMOReal.
Referenced by RGBColor::getDefaultColor(), PCLoaderVisum::load(), PCLoaderArcView::load(), PCLoaderOSM::loadIfSet(), PCLoaderDlrNavteq::loadPOIFile(), PCLoaderDlrNavteq::loadPolyFile(), PCLoaderXML::myStartElement(), RGBColor::parseColorReporting(), SUMOVehicleParserHelper::parseCommonAttributes(), and TEST().
00102 { 00103 StringTokenizer st(coldef, ","); 00104 if (st.size()<3) { 00105 throw EmptyData(); 00106 } 00107 SUMOReal r = TplConvert<char>::_2SUMOReal(st.next().c_str()); 00108 SUMOReal g = TplConvert<char>::_2SUMOReal(st.next().c_str()); 00109 SUMOReal b = TplConvert<char>::_2SUMOReal(st.next().c_str()); 00110 return RGBColor(r, g, b); 00111 }
| RGBColor RGBColor::parseColorReporting | ( | const std::string & | coldef, | |
| const char * | objecttype, | |||
| const char * | objectid, | |||
| bool | report, | |||
| bool & | ok | |||
| ) | throw () [static, inherited] |
Parses a color information.
It is assumed that the color is stored as "<RED>,<GREEN>,<BLUE>" And each color is represented as a SUMOReal.
| [in] | coldef | The color definition to parse |
| [in] | objecttype | The type of the currently parsed object |
| [in] | objectid | The id of the currently parsed object |
| [in] | report | Whether errors shall be reported |
| [in,out] | ok | Whether parsing was successful |
| EmptyData | If the definition has less than three entries | |
| NumberFormatException | If one of the components is not numeric |
Definition at line 115 of file RGBColor.cpp.
References MsgHandler::getErrorInstance(), MsgHandler::inform(), RGBColor::parseColor(), and RGBColor::RGBColor().
Referenced by NLHandler::addPOI(), NLHandler::addPoly(), SUMOVehicleParserHelper::beginVTypeParsing(), GUISettingsHandler::myStartElement(), MSRouteHandler::openRoute(), and RORDLoader_SUMOBase::startRoute().
00115 { 00116 try { 00117 return parseColor(coldef); 00118 } catch (NumberFormatException &) { 00119 } catch (EmptyData &) { 00120 } 00121 ok = false; 00122 std::ostringstream oss; 00123 oss << "Attribute 'color' in definition of "; 00124 if (objectid==0) { 00125 oss << "a "; 00126 } 00127 if (objecttype!=0) { 00128 oss << objecttype; 00129 } else { 00130 oss << "<unknown type>"; 00131 } 00132 if (objectid!=0) { 00133 oss << " '" << objectid << "'"; 00134 } 00135 oss << " is not a valid color."; 00136 MsgHandler::getErrorInstance()->inform(oss.str()); 00137 return RGBColor(); 00138 }
| SUMOReal RGBColor::red | ( | ) | const throw () [inline, inherited] |
Returns the red-amount of the color.
Definition at line 72 of file RGBColor.h.
References RGBColor::myRed.
Referenced by GUIPolygon2D::drawGL(), drawGL(), GUISUMOAbstractView::getSnapshot(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_POI::processGet(), MSVehicleType::saveState(), GUIVehicle::Colorer::setFunctionalColor(), GUIColorer< GUIVehicle >::setGlColor(), GUIVehicle::setOwnDefinedColor(), GUIVehicle::setOwnRouteColor(), GUIVehicle::setOwnTypeColor(), and TEST().
00072 { 00073 return myRed; 00074 }
| void Position2D::reshiftRotate | ( | SUMOReal | xoff, | |
| SUMOReal | yoff, | |||
| SUMOReal | rot | |||
| ) | [inline, inherited] |
Definition at line 119 of file Position2D.h.
References Position2D::myX, Position2D::myY, SUMOReal, Position2D::x(), and Position2D::y().
Referenced by NBNode::reshiftPosition(), and Line2D::rotateAtP1().
00119 { 00120 SUMOReal x = myX * cos(rot) -myY * sin(rot) + xoff; 00121 SUMOReal y = myX * sin(rot) + yoff + myY * cos(rot); 00122 myX = x; 00123 myY = y; 00124 }
| void Position2D::set | ( | const Position2D & | pos | ) | [inline, inherited] |
| void Position2D::set | ( | SUMOReal | x, | |
| SUMOReal | y | |||
| ) | [inline, inherited] |
Definition at line 65 of file Position2D.h.
References Position2D::myX, Position2D::myY, Position2D::x(), and Position2D::y().
Referenced by GeoConvHelper::cartesian2geo(), GUIDanielPerspectiveChanger::centerTo(), GeomHelper::closestDistancePointLine(), traci::TraCIServer::commandDistanceRequest(), NIXMLNodesHandler::myStartElement(), NLJunctionControlBuilder::openJunction(), GUIDanielPerspectiveChanger::recenterView(), GUIDanielPerspectiveChanger::setViewport(), NGNode::setX(), NGNode::setY(), and GeoConvHelper::x2cartesian().
| void RGBColor::set | ( | SUMOReal | r, | |
| SUMOReal | g, | |||
| SUMOReal | b | |||
| ) | throw () [inherited] |
assigns new values
| [in] | r | The red component's value |
| [in] | g | The green component's value |
| [in] | b | The blue component's value |
Definition at line 69 of file RGBColor.cpp.
References RGBColor::myBlue, RGBColor::myGreen, and RGBColor::myRed.
| void PointOfInterest::setType | ( | const std::string & | type | ) | throw () [inline, inherited] |
Sets a new type.
| [in] | type | The new type to use |
Definition at line 74 of file PointOfInterest.h.
References PointOfInterest::myType.
Referenced by TraCIServerAPI_POI::processSet().
00074 { 00075 myType = type; 00076 }
| void Position2D::sub | ( | const Position2D & | pos | ) | [inline, inherited] |
Substracts the given position from this one.
Definition at line 108 of file Position2D.h.
References Position2D::myX, and Position2D::myY.
| void Position2D::sub | ( | SUMOReal | dx, | |
| SUMOReal | dy | |||
| ) | [inline, inherited] |
Substracts the given position from this one.
Definition at line 102 of file Position2D.h.
References Position2D::myX, and Position2D::myY.
Referenced by GeoConvHelper::cartesian2geo(), GUIDanielPerspectiveChanger::centerTo(), NBNode::computeInternalLaneShape(), NBNode::getEmptyDir(), Line2D::rotateAtP1(), and Line2D::sub().
| SUMOReal Position2D::x | ( | ) | const [inline, inherited] |
Returns the x-position.
Definition at line 55 of file Position2D.h.
References Position2D::myX.
Referenced by Line2D::add(), Boundary::add(), GUISUMOAbstractView::applyChanges(), Position2DVector::around(), Boundary::around(), Line2D::atan2Angle(), Line2D::atan2DegreeAngle(), GeoConvHelper::cartesian2geo(), NGRandomNetBuilder::checkAngles(), GeomHelper::closestDistancePointLine(), traci::TraCIServer::commandPositionConversion(), traci::TraCIServer::commandSimulationParameter(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShape(), NBNodeShapeComputer::computeNodeShapeByCrosses(), traci::TraCIServer::convertCartesianToRoadMap(), GeomHelper::distancePointLine(), GLHelper::drawBoxLines(), GLHelper::drawFilledPoly(), GUIVehicle::drawGL(), GUITriggeredRerouter::drawGL(), drawGL(), GUILaneSpeedTrigger::drawGL(), GUIJunctionWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIEmitter::drawGL(), GUIEdge::drawGL(), GUIBusStop::drawGL(), GUIGlObject_AbstractAdd::drawGLName(), GUIE3Collector::MyWrapper::drawSingleCrossing(), MSVehicle::enterLaneAtLaneChange(), MSVTypeProbe::execute(), GeomHelper::extrapolate_first(), GeomHelper::extrapolate_second(), Line2D::extrapolateBy(), getCenteringBoundary(), GUIEmitter::getCenteringBoundary(), NBNode::getEmptyDir(), GeomHelper::getNormal90D_CW(), GeoConvHelper::getOffsetBase(), Line2D::getPositionAtDistance(), GUISUMOAbstractView::getPositionInformation(), GUIDanielPerspectiveChanger::getXPos(), GUIBusStop::GUIBusStop(), GUIJunctionWrapper::GUIJunctionWrapper(), GUILaneWrapper::GUILaneWrapper(), traci::TraCIServer::handlePoiDomain(), traci::TraCIServer::handlePolygonDomain(), traci::TraCIServer::handleTrafficLightDomain(), traci::TraCIServer::handleVehicleDomain(), NBEdge::init(), NIXMLEdgesHandler::insertNodeChecking(), GeomHelper::interpolate(), GeomHelper::intersection_position(), GeomHelper::intersects(), Position2DVector::isLeft(), isLeft(), Line2D::length(), main(), Position2DVector::move2side(), MSVehicle::moveFirstChecked(), MSVehicle::moveRegardingCritical(), GUI_E2_ZS_Collector::MyWrapper::myConstruct(), NIXMLNodesHandler::myStartElement(), GeomHelper::nearest_position_on_line_to_point(), Position2DVector::increasing_x_y_sorter::operator()(), Position2DVector::as_poly_cw_sorter::operator()(), Position2DVector::positionAtLengthPosition(), traci::TraCIServer::postProcessSimulationStep(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Junction::processGet(), Position2D::reshiftRotate(), NBNodeCont::retrieve(), Line2D::rotateAround(), ROWdrawAction_drawArrows(), ROWdrawAction_drawLane2LaneConnections(), ROWdrawAction_drawLinkNo(), ROWdrawAction_drawLinkRules(), ROWdrawAction_drawTLSLinkNo(), NBNodeCont::savePlain(), Position2D::set(), GUIVehicle::Colorer::setFunctionalColor(), NIXMLEdgesHandler::setNodes(), NGNode::setY(), NBNode::sortNodesEdges(), TEST(), TEST_F(), GeomHelper::transfer_to_side(), GUISUMOAbstractView::updatePositionInformation(), NBNode::writeXML(), NBNode::writeXMLInternalNodes(), and GeoConvHelper::x2cartesian().
00055 { 00056 return myX; 00057 }
| SUMOReal Position2D::y | ( | ) | const [inline, inherited] |
Returns the y-position.
Definition at line 60 of file Position2D.h.
References Position2D::myY.
Referenced by Line2D::add(), Boundary::add(), GUISUMOAbstractView::applyChanges(), Position2DVector::around(), Boundary::around(), Line2D::atan2Angle(), Line2D::atan2DegreeAngle(), GeoConvHelper::cartesian2geo(), NGRandomNetBuilder::checkAngles(), GeomHelper::closestDistancePointLine(), traci::TraCIServer::commandPositionConversion(), traci::TraCIServer::commandSimulationParameter(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShape(), NBNodeShapeComputer::computeNodeShapeByCrosses(), traci::TraCIServer::convertCartesianToRoadMap(), GeomHelper::distancePointLine(), GLHelper::drawBoxLines(), GLHelper::drawFilledPoly(), GUIVehicle::drawGL(), GUITriggeredRerouter::drawGL(), drawGL(), GUILaneSpeedTrigger::drawGL(), GUIJunctionWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIEmitter::drawGL(), GUIEdge::drawGL(), GUIBusStop::drawGL(), GUIGlObject_AbstractAdd::drawGLName(), GUIE3Collector::MyWrapper::drawSingleCrossing(), MSVehicle::enterLaneAtLaneChange(), MSVTypeProbe::execute(), GeomHelper::extrapolate_first(), GeomHelper::extrapolate_second(), Line2D::extrapolateBy(), getCenteringBoundary(), GUIEmitter::getCenteringBoundary(), NBNode::getEmptyDir(), GeomHelper::getNormal90D_CW(), GeoConvHelper::getOffsetBase(), Line2D::getPositionAtDistance(), GUISUMOAbstractView::getPositionInformation(), GUIDanielPerspectiveChanger::getYPos(), GUIBusStop::GUIBusStop(), GUIJunctionWrapper::GUIJunctionWrapper(), GUILaneWrapper::GUILaneWrapper(), traci::TraCIServer::handlePoiDomain(), traci::TraCIServer::handlePolygonDomain(), traci::TraCIServer::handleTrafficLightDomain(), traci::TraCIServer::handleVehicleDomain(), NBEdge::init(), NIXMLEdgesHandler::insertNodeChecking(), GeomHelper::interpolate(), GeomHelper::intersection_position(), GeomHelper::intersects(), Position2DVector::isLeft(), isLeft(), Line2D::length(), main(), Position2DVector::move2side(), MSVehicle::moveFirstChecked(), MSVehicle::moveRegardingCritical(), GUI_E2_ZS_Collector::MyWrapper::myConstruct(), NIXMLNodesHandler::myStartElement(), GeomHelper::nearest_position_on_line_to_point(), Position2DVector::increasing_x_y_sorter::operator()(), Position2DVector::as_poly_cw_sorter::operator()(), Position2DVector::positionAtLengthPosition(), traci::TraCIServer::postProcessSimulationStep(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Junction::processGet(), Position2D::reshiftRotate(), NBNodeCont::retrieve(), Line2D::rotateAround(), ROWdrawAction_drawArrows(), ROWdrawAction_drawLane2LaneConnections(), ROWdrawAction_drawLinkNo(), ROWdrawAction_drawLinkRules(), ROWdrawAction_drawTLSLinkNo(), NBNodeCont::savePlain(), Position2D::set(), GUIVehicle::Colorer::setFunctionalColor(), NIXMLEdgesHandler::setNodes(), NGNode::setX(), NBNode::sortNodesEdges(), TEST(), TEST_F(), GeomHelper::transfer_to_side(), GUISUMOAbstractView::updatePositionInformation(), NBNode::writeXML(), NBNode::writeXMLInternalNodes(), and GeoConvHelper::x2cartesian().
00060 { 00061 return myY; 00062 }
friend class GUIGlObjectStorage [friend, inherited] |
Needed to set the id.
Reimplemented in GUI_E2_ZS_CollectorOverLanes::MyWrapper.
Definition at line 111 of file GUIGlObject.h.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Position2D & | p | |||
| ) | [friend, inherited] |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const RGBColor & | col | |||
| ) | [friend, inherited] |
Writes the color to the given stream.
| [out] | os | The stream to write to |
| [in] | col | The color to write |
Definition at line 78 of file RGBColor.cpp.
00078 { 00079 os 00080 << col.myRed << "," 00081 << col.myGreen << "," 00082 << col.myBlue; 00083 return os; 00084 }
const RGBColor RGBColor::DEFAULT_COLOR = RGBColor::parseColor(RGBColor::DEFAULT_COLOR_STRING) [static, inherited] |
The default color (for vehicle types and vehicles).
Definition at line 175 of file RGBColor.h.
Referenced by traci::TraCIServer::commandDistanceRequest(), and SUMOVehicleParserHelper::parseCommonAttributes().
const std::string RGBColor::DEFAULT_COLOR_STRING = "1,1,0" [static, inherited] |
The string description of the default color.
Definition at line 171 of file RGBColor.h.
Referenced by RGBColor::getDefaultColor().
GUIGlObjectType GUIGlObject_AbstractAdd::myGlType [protected, inherited] |
The object's type.
Definition at line 85 of file GUIGlObject_AbstractAdd.h.
Referenced by GUIGlObject_AbstractAdd::getType().
std::string Named::myID [protected, inherited] |
The name of the object.
Definition at line 66 of file Named.h.
Referenced by RORouteDef_OrigDest::buildCurrentRoute(), RORouteDef_Complete::buildCurrentRoute(), RORouteDef_Alternatives::buildCurrentRoute(), and Named::getID().
int GUIPointOfInterest::myLayer [protected] |
The layer this object is located in.
This value is used for determining which object to choose as being on top under the cursor
Definition at line 117 of file GUIPointOfInterest.h.
Referenced by getLayer().
std::vector< GUIGlObject_AbstractAdd * > GUIGlObject_AbstractAdd::myObjectList [static, protected, inherited] |
The list of all addtional objects currently loaded.
Definition at line 92 of file GUIGlObject_AbstractAdd.h.
Referenced by GUIGlObject_AbstractAdd::clearDictionary(), GUIGlObject_AbstractAdd::getIDList(), and GUIGlObject_AbstractAdd::getObjectList().
std::map< std::string, GUIGlObject_AbstractAdd * > GUIGlObject_AbstractAdd::myObjects [static, protected, inherited] |
Map from names of loaded additional objects to the objects themselves.
Definition at line 89 of file GUIGlObject_AbstractAdd.h.
Referenced by GUIGlObject_AbstractAdd::clearDictionary(), and GUIGlObject_AbstractAdd::get().
std::string PointOfInterest::myType [protected, inherited] |
the type of the poi
Definition at line 81 of file PointOfInterest.h.
Referenced by getPopUpMenu(), PointOfInterest::getType(), and PointOfInterest::setType().
1.5.6