SUMO - Simulation of Urban MObility
|
A point-of-interest. More...
#include <PointOfInterest.h>
Public Member Functions | |
void | add (const Position &pos) |
Adds the given position to this one. More... | |
void | add (SUMOReal dx, SUMOReal dy) |
Adds the given position to this one. More... | |
void | add (SUMOReal dx, SUMOReal dy, SUMOReal dz) |
Adds the given position to this one. More... | |
void | addParameter (const std::string &key, const std::string &value) |
Adds a parameter. More... | |
void | addParameter (const std::map< std::string, std::string > &mapArg) |
Adds all given parameter. More... | |
void | addParameter (const Parameterised &p) |
Adds all given parameter. More... | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
bool | almostSame (const Position &p2, SUMOReal maxDiv=POSITION_EPS) const |
void | clearParameter () |
Clears the parameter map. More... | |
Position | crossProduct (const Position &pos) |
returns the cross product between this point and the second one More... | |
SUMOReal | distanceSquaredTo (const Position &p2) const |
SUMOReal | distanceSquaredTo2D (const Position &p2) const |
SUMOReal | distanceTo (const Position &p2) const |
returns the euclidean distance in 3 dimension More... | |
SUMOReal | distanceTo2D (const Position &p2) const |
returns the euclidean distance in the x-y-plane More... | |
SUMOReal | dotProduct (const Position &pos) |
returns the dot product (scalar product) between this point and the second one More... | |
const std::string & | getID () const |
Returns the id. More... | |
const std::map< std::string, std::string > & | getMap () const |
Returns the inner key/value map. More... | |
const std::string & | getParameter (const std::string &key, const std::string &defaultValue) const |
Returns the value for a given key. More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
void | mul (SUMOReal val) |
Multiplies both positions with the given value. More... | |
void | mul (SUMOReal mx, SUMOReal my) |
Multiplies position with the given values. More... | |
void | mul (SUMOReal mx, SUMOReal my, SUMOReal mz) |
Multiplies position with the given values. More... | |
void | norm2d () |
bool | operator!= (const Position &p2) const |
Position | operator* (SUMOReal scalar) const |
keep the direction but modify the length of the (location) vector to length * scalar More... | |
Position | operator+ (const Position &p2) const |
Position | operator+ (SUMOReal offset) const |
keep the direction but modify the length of the (location) vector to length + scalar More... | |
Position | operator- (const Position &p2) const |
bool | operator< (const Position &p2) const |
lexicographical sorting for use in maps and sets More... | |
bool | operator== (const Position &p2) const |
PointOfInterest (const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, SUMOReal layer=DEFAULT_LAYER, SUMOReal angle=DEFAULT_ANGLE, const std::string &imgFile=DEFAULT_IMG_FILE, SUMOReal width=DEFAULT_IMG_WIDTH, SUMOReal height=DEFAULT_IMG_HEIGHT) | |
Constructor. More... | |
void | reshiftRotate (SUMOReal xoff, SUMOReal yoff, SUMOReal rot) |
void | set (SUMOReal x, SUMOReal y) |
void | set (SUMOReal x, SUMOReal y, SUMOReal z) |
void | set (const Position &pos) |
void | setID (const std::string &newID) |
resets the id More... | |
void | sub (SUMOReal dx, SUMOReal dy) |
Substracts the given position from this one. More... | |
void | sub (SUMOReal dx, SUMOReal dy, SUMOReal dz) |
Substracts the given position from this one. More... | |
void | sub (const Position &pos) |
Substracts the given position from this one. More... | |
SUMOReal | x () const |
Returns the x-position. More... | |
SUMOReal | y () const |
Returns the y-position. More... | |
SUMOReal | z () const |
Returns the z-position. More... | |
virtual | ~PointOfInterest () |
Destructor. More... | |
Getter | |
SUMOReal | getWidth () const |
Returns whether the image width of the POI. More... | |
SUMOReal | getHeight () const |
Returns whether the image hidth of the POI. More... | |
Setter | |
void | setWidth (SUMOReal width) |
set the image width of the POI More... | |
void | setHeight (SUMOReal height) |
set the image height of the POI More... | |
Getter | |
const std::string & | getType () const |
Returns the (abstract) type of the Shape. More... | |
const RGBColor & | getColor () const |
Returns the color of the Shape. More... | |
SUMOReal | getLayer () const |
Returns the layer of the Shape. More... | |
SUMOReal | getAngle () const |
Returns the angle of the Shape. More... | |
const std::string & | getImgFile () const |
Returns the imgFile of the Shape. More... | |
Setter | |
void | setType (const std::string &type) |
Sets a new type. More... | |
void | setColor (const RGBColor &col) |
Sets a new color. More... | |
void | setLayer (const SUMOReal layer) |
Sets a new layer. More... | |
void | setAngle (const SUMOReal angle) |
Sets a new angle. More... | |
void | setImgFile (const std::string &imgFile) |
Sets a new imgFile. More... | |
Static Public Attributes | |
static const SUMOReal | DEFAULT_ANGLE = 0 |
static const std::string | DEFAULT_IMG_FILE = "" |
static const SUMOReal | DEFAULT_IMG_HEIGHT = 1 |
static const SUMOReal | DEFAULT_IMG_WIDTH = 1 |
static const SUMOReal | DEFAULT_LAYER = 128 |
static const std::string | DEFAULT_TYPE = "" |
static const Position | INVALID |
Protected Attributes | |
SUMOReal | myAngle |
The angle of the Shape. More... | |
RGBColor | myColor |
The color of the Shape. More... | |
SUMOReal | myHalfImgHeight |
The half height of the image when rendering this POI. More... | |
SUMOReal | myHalfImgWidth |
The half width of the image when rendering this POI. More... | |
std::string | myID |
The name of the object. More... | |
std::string | myImgFile |
The angle of the Shape. More... | |
SUMOReal | myLayer |
The layer of the Shape. More... | |
std::string | myType |
The type of the Shape. More... | |
A point-of-interest.
Definition at line 48 of file PointOfInterest.h.
|
inline |
Constructor.
[in] | id | The name of the POI |
[in] | type | The (abstract) type of the POI |
[in] | color | The color of the POI |
[in] | layer | The layer of the POI |
[in] | angle | The rotation of the POI |
[in] | imgFile | The raster image of the shape |
[in] | pos | The position of the POI |
[in] | width | The width of the POI image |
[in] | height | The height of the POI image |
Definition at line 61 of file PointOfInterest.h.
|
inlinevirtual |
Destructor.
Definition at line 76 of file PointOfInterest.h.
|
inlineinherited |
Adds the given position to this one.
Definition at line 119 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
Referenced by Line::add(), NBNodeCont::analyzeCluster(), AGPosition::compute2dPosition(), NBNodeShapeComputer::computeNodeShapeDefault(), NIVissimDistrictConnection::dict_BuildDistrictNodes(), GUIEdge::drawGL(), GLHelper::drawTextBox(), Line::extrapolateBy(), Line::extrapolateBy2D(), NBNode::getEmptyDir(), Line::move2side(), GeoConvHelper::moveConvertedBy(), NBNode::reshiftPosition(), Line::rotateAtP1(), GUISUMOAbstractView::showToolTipFor(), GeomHelper::transfer_to_side(), and GeoConvHelper::x2cartesian_const().
Adds the given position to this one.
Definition at line 126 of file Position.h.
References Position::myX, and Position::myY.
Adds the given position to this one.
Definition at line 132 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 53 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by SUMORouteHandler::addParam(), NLHandler::addParam(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NBTrafficLightDefinition::compute(), NIImporter_OpenDrive::loadNetwork(), NIImporter_MATSim::EdgesHandler::myStartElement(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_TLS::processSet(), TraCIServerAPI_POI::processSet(), TraCIServerAPI_Polygon::processSet(), and TraCIServerAPI_Lane::processSet().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 59 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 67 of file Parameterised.cpp.
References Parameterised::myMap.
|
inlineinherited |
Adds this object to the given container.
in,filled] | cont The container to add this item to |
Definition at line 121 of file Named.h.
References Named::StoringVisitor::add().
|
inlineinherited |
Definition at line 223 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
Referenced by NBNode::computeSmoothShape(), AGPosition::operator==(), PositionVector::push_back_noDoublePos(), and PositionVector::push_front_noDoublePos().
|
inherited |
Clears the parameter map.
Definition at line 91 of file Parameterised.cpp.
References Parameterised::myMap.
returns the cross product between this point and the second one
Definition at line 250 of file Position.h.
References Position::myX, Position::myY, Position::myZ, and Position::Position().
Referenced by NBHeightMapper::Triangle::normalVector().
Definition at line 234 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
Referenced by GeomHelper::distancePointLine(), and Position::distanceTo().
Definition at line 245 of file Position.h.
References Position::myX, and Position::myY.
Referenced by Position::distanceTo2D().
returns the euclidean distance in 3 dimension
Definition at line 229 of file Position.h.
References Position::distanceSquaredTo().
Referenced by TraCIServerAPI_Vehicle::commandDistanceRequest(), TraCIServerAPI_Simulation::commandDistanceRequest(), NBNode::computeSmoothShape(), NIVissimEdge::dict_checkEdges2Join(), NBHelpers::distance(), GeomHelper::distancePointLine(), AGPosition::distanceTo(), GLHelper::drawBoxLines(), GeomHelper::extrapolate_first(), GeomHelper::extrapolate_second(), Line::extrapolateBy(), Line::getPositionAtDistance(), GUIBusStop::GUIBusStop(), GUIContainerStop::GUIContainerStop(), PositionVector::indexOfClosest(), NBEdge::init(), GeomHelper::interpolate(), Line::length(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), GUIViewTraffic::onGamingClick(), Position::operator+(), PositionVector::positionAtOffset(), NIVissimEdge::remapOneOfNodes(), GUIVehicle::setFunctionalColor(), and MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility().
returns the euclidean distance in the x-y-plane
Definition at line 240 of file Position.h.
References Position::distanceSquaredTo2D().
Referenced by Line::atan2DegreeSlope(), NBNode::buildWalkingAreas(), NBNode::checkCrossing(), GeomHelper::closestDistancePointLine2D(), PositionVector::distance(), GUIVehicle::drawAction_drawRailCarriages(), Line::extrapolateBy2D(), ROEdge::getDistanceTo(), MSEdge::getDistanceTo(), GeomHelper::getNormal90D_CW(), Line::getPositionAtDistance2D(), GUILane::GUILane(), MSPModel_Striping::initWalkingAreaPaths(), Line::intersectsAtLengths2D(), PositionVector::intersectsAtLengths2D(), Line::length2D(), PositionVector::move2side(), GeomHelper::nearest_offset_on_line_to_point2D(), PositionVector::nearest_offset_to_point2D(), PositionVector::positionAtOffset2D(), PositionVector::transformToVectorCoordinates(), and TraCIServerAPI_Vehicle::vtdMap().
returns the dot product (scalar product) between this point and the second one
Definition at line 258 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
Referenced by NBHeightMapper::Triangle::getZ().
|
inlineinherited |
Returns the angle of the Shape.
Definition at line 94 of file Shape.h.
References Shape::myAngle.
Referenced by GUIPointOfInterest::drawGL(), PCPolyContainer::save(), and SUMO::Polygon::writeXML().
|
inlineinherited |
Returns the color of the Shape.
Definition at line 79 of file Shape.h.
References Shape::myColor.
Referenced by GUIPolygon::drawGL(), GUIPointOfInterest::drawGL(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), PCPolyContainer::save(), and SUMO::Polygon::writeXML().
|
inline |
Returns whether the image hidth of the POI.
Definition at line 89 of file PointOfInterest.h.
References myHalfImgHeight.
Referenced by PCPolyContainer::save().
|
inlineinherited |
Returns the id.
Definition at line 60 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), Named::StoringVisitor::add(), MSDetectorControl::add(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBEdge::addSidewalk(), NBDistrict::addSink(), NBDistrict::addSource(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), MSVehicle::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NBNode::buildCrossings(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), NBNode::buildInnerEdges(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::buildWalkingAreas(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), GUINet::createTLWrapper(), NIVissimDistrictConnection::dict_BuildDistricts(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), PedestrianEdge< E, L, N >::getEffort(), NBEdge::getFirstNonPedestrianLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPModel_Striping::getNextLane(), GUIVehicle::getParameterWindow(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSVehicleControl::getWaitingVehicle(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollision(), NBEdgeCont::ignoreFilterMatch(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), PedestrianEdge< E, L, N >::initPedestrianNetwork(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), RODFNet::isDestination(), RODFNet::isFalseSource(), RODFNet::isSource(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), NIImporter_OpenDrive::loadNetwork(), ODDistrictCont::makeDistricts(), MSPModel_Striping::moveInDirection(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSContainer::MSContainerStage_Waiting::MSContainerStage_Waiting(), MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTsender::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_Example::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSDevice_Container::notifyLeave(), MSDevice_Person::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_BTreceiver::notifyMove(), GUIViewTraffic::onGamingClick(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), MSEdge::by_id_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_JE2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSRightOfWayJunction::postloadInit(), AGStreet::print(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), PCPolyContainer::save(), RONet::saveAndRemoveRoutesUntil(), MSBaseVehicle::saveState(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), NIXMLEdgesHandler::setNodes(), MSLink::setRequestInformation(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSLCM_JE2013::wantsChange(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), NBSign::writeAsPOI(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSInductLoop::writeTypedXMLOutput(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inlineinherited |
Returns the imgFile of the Shape.
Definition at line 101 of file Shape.h.
References Shape::myImgFile.
Referenced by GUIPolygon::drawGL(), PCPolyContainer::save(), and SUMO::Polygon::writeXML().
|
inlineinherited |
Returns the layer of the Shape.
Definition at line 87 of file Shape.h.
References Shape::myLayer.
Referenced by GUIPolygon::drawGL(), GUIPointOfInterest::drawGL(), PCPolyContainer::save(), and SUMO::Polygon::writeXML().
|
inlineinherited |
Returns the inner key/value map.
Definition at line 107 of file Parameterised.h.
References Parameterised::myMap.
Referenced by NBTrafficLightDefinition::compute(), GUIVehicle::getParameterWindow(), TraCIServerAPI_TLS::processGet(), PCPolyContainer::save(), ROVehicle::saveAllAsXML(), SUMOVTypeParameter::write(), and SUMO::Polygon::writeXML().
|
inherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 81 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), and TraCIServerAPI_Vehicle::vtdMap().
|
inlineinherited |
Returns the (abstract) type of the Shape.
Definition at line 71 of file Shape.h.
References Shape::myType.
Referenced by TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), PCPolyContainer::save(), and SUMO::Polygon::writeXML().
|
inline |
Returns whether the image width of the POI.
Definition at line 84 of file PointOfInterest.h.
References myHalfImgWidth.
Referenced by PCPolyContainer::save().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 75 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), and MSDevice::equippedByDefaultAssignmentOptions().
|
inlineinherited |
Multiplies both positions with the given value.
Definition at line 99 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
Referenced by NIXMLNodesHandler::addNode(), NBNodeCont::analyzeCluster(), AGPosition::compute2dPosition(), NBNodeShapeComputer::computeNodeShapeDefault(), GUIEdge::drawGL(), NBNode::getEmptyDir(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and NWWriter_DlrNavteq::writeTrafficSignals().
Multiplies position with the given values.
Definition at line 106 of file Position.h.
References Position::myX, and Position::myY.
Multiplies position with the given values.
Definition at line 112 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
|
inlineinherited |
Definition at line 158 of file Position.h.
References Position::myX, Position::myY, and SUMOReal.
Referenced by NBNode::getEmptyDir().
Definition at line 208 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
keep the direction but modify the length of the (location) vector to length * scalar
Definition at line 190 of file Position.h.
References Position::myX, Position::myY, Position::myZ, and Position::Position().
Definition at line 181 of file Position.h.
References Position::myX, Position::myY, Position::myZ, and Position::Position().
keep the direction but modify the length of the (location) vector to length + scalar
Definition at line 195 of file Position.h.
References Position::distanceTo(), Position::myX, Position::myY, Position::myZ, Position::Position(), and SUMOReal.
Definition at line 185 of file Position.h.
References Position::myX, Position::myY, Position::myZ, and Position::Position().
lexicographical sorting for use in maps and sets
Definition at line 213 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
Definition at line 204 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
Definition at line 164 of file Position.h.
References Position::myX, Position::myY, SUMOReal, Position::x(), and Position::y().
Referenced by NBDistrict::reshiftPosition(), and Line::rotateAtP1().
Definition at line 78 of file Position.h.
References Position::myX, Position::myY, Position::x(), and Position::y().
Referenced by NIXMLNodesHandler::addNode(), ShapeHandler::addPOI(), GeoConvHelper::cartesian2geo(), GeomHelper::closestDistancePointLine2D(), TraCIServerAPI_Vehicle::commandDistanceRequest(), TraCIServerAPI_Simulation::commandDistanceRequest(), TraCIServerAPI_Simulation::commandPositionConversion(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), GeomHelper::FindLineCircleIntersections(), GUICompleteSchemeStorage::init(), NBHeightMapper::loadTiff(), GUISettingsHandler::myStartElement(), NLJunctionControlBuilder::openJunction(), operator>>(), TraCIServerAPI_GUI::processSet(), TraCIServer::readTypeCheckingPosition2D(), GUICompleteSchemeStorage::saveViewport(), NGNode::setX(), NGNode::setY(), GeoConvHelper::x2cartesian(), and GeoConvHelper::x2cartesian_const().
Definition at line 84 of file Position.h.
References Position::myX, Position::myY, Position::myZ, Position::x(), Position::y(), and Position::z().
|
inlineinherited |
Definition at line 91 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
|
inlineinherited |
Sets a new angle.
[in] | layer | The new angle to use |
Definition at line 137 of file Shape.h.
References Shape::myAngle.
|
inlineinherited |
Sets a new color.
[in] | col | The new color to use |
Definition at line 121 of file Shape.h.
References Shape::myColor.
Referenced by TraCIServerAPI_POI::processSet(), and TraCIServerAPI_Polygon::processSet().
|
inline |
set the image height of the POI
Definition at line 105 of file PointOfInterest.h.
References myHalfImgHeight.
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 68 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().
|
inlineinherited |
Sets a new imgFile.
[in] | imgFile | The new imgFile to use |
Definition at line 144 of file Shape.h.
References Shape::myImgFile.
|
inlineinherited |
Sets a new layer.
[in] | layer | The new layer to use |
Definition at line 129 of file Shape.h.
References Shape::myLayer.
|
inlineinherited |
Sets a new type.
[in] | type | The new type to use |
Definition at line 113 of file Shape.h.
References Shape::myType.
Referenced by TraCIServerAPI_POI::processSet(), and TraCIServerAPI_Polygon::processSet().
|
inline |
set the image width of the POI
Definition at line 100 of file PointOfInterest.h.
References myHalfImgWidth.
Substracts the given position from this one.
Definition at line 139 of file Position.h.
References Position::myX, and Position::myY.
Referenced by GeoConvHelper::cartesian2geo(), AGPosition::compute2dPosition(), NBNode::computeSmoothShape(), GLHelper::drawTextBox(), Line::extrapolateBy(), Line::extrapolateBy2D(), NBNode::getEmptyDir(), NBHeightMapper::Triangle::getZ(), Line::rotateAtP1(), and Line::sub().
Substracts the given position from this one.
Definition at line 145 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
|
inlineinherited |
Substracts the given position from this one.
Definition at line 152 of file Position.h.
References Position::myX, Position::myY, and Position::myZ.
|
inlineinherited |
Returns the x-position.
Definition at line 63 of file Position.h.
References Position::myX.
Referenced by Boundary::add(), Line::add(), NIXMLNodesHandler::addNode(), Boundary::around(), PositionVector::around(), Line::atan2Angle(), Line::atan2DegreeAngle(), NIImporter_OpenDrive::calculateStraightEndPoint(), GeoConvHelper::cartesian2geo(), GUIDanielPerspectiveChanger::centerTo(), NGRandomNetBuilder::checkAngles(), GUISUMOAbstractView::checkGDALImage(), TraCIServerAPI_Simulation::commandPositionConversion(), NBEdge::computeAngle(), NBEdge::computeLaneShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBNode::computeSmoothShape(), NGRandomNetBuilder::createNewNode(), GeomHelper::distancePointLine(), GUIVehicle::drawAction_drawRailCarriages(), GUILane::drawArrows(), GLHelper::drawBoxLine(), GLHelper::drawBoxLines(), GLHelper::drawFilledPoly(), GUITrafficLightLogicWrapper::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIVehicle::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawLane2LaneConnections(), GLHelper::drawLine(), GUIVehicle::drawLinkItem(), GUILane::drawLinkRule(), GUIE3Collector::MyWrapper::drawSingleCrossing(), GLHelper::drawText(), GUILane::drawTextAtEnd(), GLHelper::drawTextBox(), MSVTypeProbe::execute(), NBNodeCont::extract(), GeomHelper::FindLineCircleIntersections(), MSVehicle::getAngle(), GUIPointOfInterest::getCenteringBoundary(), NBNode::getEmptyDir(), MSPModel_Striping::getNextLaneObstacles(), GeomHelper::getNormal90D_CW(), MSVTKExport::getPositions(), TraCIServerAPI_InductionLoop::getTree(), GUIDanielPerspectiveChanger::getXPos(), NBHeightMapper::getZ(), GUIBusStop::GUIBusStop(), GUIContainerStop::GUIContainerStop(), GUIJunctionWrapper::GUIJunctionWrapper(), GUILane::GUILane(), NBNodeCont::insert(), GeomHelper::intersection_position2D(), GeomHelper::intersects(), isLeft(), PositionVector::isLeft(), NBHeightMapper::loadTiff(), PositionVector::move2side(), MSPModel_Striping::moveInDirection(), GUISettingsHandler::myStartElement(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), GeomHelper::nearest_offset_on_line_to_point2D(), GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), PositionVector::as_poly_cw_sorter::operator()(), PositionVector::increasing_x_y_sorter::operator()(), GeomHelper::pointOnLine(), TraCIServerAPI_Junction::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_GUI::processSet(), NIImporter_SUMO::reconstructEdgeShape(), Position::reshiftRotate(), NBNodeCont::retrieve(), PCPolyContainer::save(), Position::set(), GUIVehicle::setFunctionalColor(), GUIDialog_EditViewport::setValues(), GUISUMOAbstractView::setViewport(), NGNode::setY(), NBEdge::startShapeAt(), GeomHelper::transfer_to_side(), NBNetBuilder::transformCoordinates(), GUISUMOAbstractView::updatePositionInformation(), MSFCDExport::write(), MSEmissionExport::write(), NBSign::writeAsPOI(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_OpenDrive::writePlanView(), BinaryFormatter::writePosition(), NWFrame::writePositionLong(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFullExport::writeVehicles(), GeoConvHelper::x2cartesian(), GeoConvHelper::x2cartesian_const(), and GUIDanielPerspectiveChanger::zoom().
|
inlineinherited |
Returns the y-position.
Definition at line 68 of file Position.h.
References Position::myY.
Referenced by Boundary::add(), Line::add(), NIXMLNodesHandler::addNode(), Boundary::around(), PositionVector::around(), Line::atan2Angle(), Line::atan2DegreeAngle(), NIImporter_OpenDrive::calculateStraightEndPoint(), GeoConvHelper::cartesian2geo(), GUIDanielPerspectiveChanger::centerTo(), NGRandomNetBuilder::checkAngles(), GUISUMOAbstractView::checkGDALImage(), TraCIServerAPI_Simulation::commandPositionConversion(), NBEdge::computeAngle(), NBEdge::computeLaneShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBNode::computeSmoothShape(), NGRandomNetBuilder::createNewNode(), GeomHelper::distancePointLine(), GUIVehicle::drawAction_drawRailCarriages(), GUILane::drawArrows(), GLHelper::drawBoxLine(), GLHelper::drawBoxLines(), GLHelper::drawFilledPoly(), GUITrafficLightLogicWrapper::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIVehicle::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawLane2LaneConnections(), GLHelper::drawLine(), GUIVehicle::drawLinkItem(), GUILane::drawLinkRule(), GUIE3Collector::MyWrapper::drawSingleCrossing(), GLHelper::drawText(), GUILane::drawTextAtEnd(), GLHelper::drawTextBox(), MSVTypeProbe::execute(), NBNodeCont::extract(), GeomHelper::FindLineCircleIntersections(), MSVehicle::getAngle(), GUIPointOfInterest::getCenteringBoundary(), NBNode::getEmptyDir(), MSPModel_Striping::getNextLaneObstacles(), GeomHelper::getNormal90D_CW(), MSVTKExport::getPositions(), TraCIServerAPI_InductionLoop::getTree(), GUIDanielPerspectiveChanger::getYPos(), NBHeightMapper::getZ(), GUIBusStop::GUIBusStop(), GUIContainerStop::GUIContainerStop(), GUIJunctionWrapper::GUIJunctionWrapper(), GUILane::GUILane(), NBNodeCont::insert(), GeomHelper::intersection_position2D(), GeomHelper::intersects(), isLeft(), PositionVector::isLeft(), NBHeightMapper::loadTiff(), PositionVector::move2side(), MSPModel_Striping::moveInDirection(), GUISettingsHandler::myStartElement(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUI_E2_ZS_Collector::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), GeomHelper::nearest_offset_on_line_to_point2D(), GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), PositionVector::as_poly_cw_sorter::operator()(), PositionVector::increasing_x_y_sorter::operator()(), GeomHelper::pointOnLine(), TraCIServerAPI_Junction::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_GUI::processSet(), NIImporter_SUMO::reconstructEdgeShape(), Position::reshiftRotate(), NBNodeCont::retrieve(), PCPolyContainer::save(), Position::set(), GUIVehicle::setFunctionalColor(), GUIDialog_EditViewport::setValues(), GUISUMOAbstractView::setViewport(), NGNode::setX(), NBEdge::startShapeAt(), GeomHelper::transfer_to_side(), NBNetBuilder::transformCoordinates(), GUISUMOAbstractView::updatePositionInformation(), MSFCDExport::write(), MSEmissionExport::write(), NBSign::writeAsPOI(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_OpenDrive::writePlanView(), BinaryFormatter::writePosition(), NWFrame::writePositionLong(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFullExport::writeVehicles(), GeoConvHelper::x2cartesian(), GeoConvHelper::x2cartesian_const(), and GUIDanielPerspectiveChanger::zoom().
|
inlineinherited |
Returns the z-position.
Definition at line 73 of file Position.h.
References Position::myZ.
Referenced by Line::add(), Line::atan2DegreeSlope(), TraCIServerAPI_Simulation::commandPositionConversion(), NBEdge::computeLaneShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBNode::computeSmoothShape(), GUILane::getPopUpMenu(), MSVTKExport::getPositions(), GeomHelper::intersection_position2D(), GUIDialog_ViewSettings::loadSettings(), PositionVector::move2side(), GUISettingsHandler::myStartElement(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), Position::set(), GUIDialog_EditViewport::setValues(), GUISettingsHandler::setViewport(), GUISUMOAbstractView::setViewport(), GUICompleteSchemeStorage::setViewport(), NBEdge::startShapeAt(), BinaryFormatter::writePosition(), and NWFrame::writePositionLong().
|
staticinherited |
Definition at line 151 of file Shape.h.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), PCLoaderXML::myStartElement(), TraCIServerAPI_Polygon::processSet(), TraCIServerAPI_POI::processSet(), PCPolyContainer::save(), and SUMO::Polygon::writeXML().
|
staticinherited |
Definition at line 152 of file Shape.h.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), PCLoaderXML::myStartElement(), TraCIServerAPI_Polygon::processSet(), TraCIServerAPI_POI::processSet(), PCPolyContainer::save(), and SUMO::Polygon::writeXML().
|
staticinherited |
Definition at line 154 of file Shape.h.
Referenced by ShapeHandler::addPOI(), PCLoaderXML::myStartElement(), TraCIServerAPI_POI::processSet(), and PCPolyContainer::save().
|
staticinherited |
Definition at line 153 of file Shape.h.
Referenced by ShapeHandler::addPOI(), PCLoaderXML::myStartElement(), TraCIServerAPI_POI::processSet(), and PCPolyContainer::save().
|
staticinherited |
Definition at line 150 of file Shape.h.
Referenced by ShapeHandler::addPoly().
|
staticinherited |
Definition at line 149 of file Shape.h.
Referenced by ShapeHandler::addPoly().
|
staticinherited |
Definition at line 262 of file Position.h.
Referenced by MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::enterLaneAtMove(), MSVehicle::executeMove(), MSVehicle::fixPosition(), NLShapeHandler::getLanePos(), MSPModel_Striping::PState::getPosition(), MSVehicle::getPosition(), GeomHelper::intersection_position2D(), PositionVector::intersectsAtPoint(), MSPModel_Striping::moveInDirection(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdOk(), PositionVector::positionAtOffset(), PositionVector::positionAtOffset2D(), GUISUMOAbstractView::showViewportEditor(), and PositionVector::transformToVectorCoordinates().
|
protectedinherited |
The angle of the Shape.
Definition at line 167 of file Shape.h.
Referenced by Shape::getAngle(), and Shape::setAngle().
|
protectedinherited |
The color of the Shape.
Definition at line 161 of file Shape.h.
Referenced by Shape::getColor(), and Shape::setColor().
|
protected |
The half height of the image when rendering this POI.
Definition at line 117 of file PointOfInterest.h.
Referenced by GUIPointOfInterest::drawGL(), GUIPointOfInterest::getCenteringBoundary(), getHeight(), and setHeight().
|
protected |
The half width of the image when rendering this POI.
Definition at line 114 of file PointOfInterest.h.
Referenced by GUIPointOfInterest::drawGL(), GUIPointOfInterest::getCenteringBoundary(), getWidth(), and setWidth().
|
protectedinherited |
The name of the object.
Definition at line 128 of file Named.h.
Referenced by GUI_E2_ZS_CollectorOverLanes::buildCollector(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), NBNode::computeNodeShape(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSActuatedTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), RORouteDef::repairCurrentRoute(), Named::setID(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
The angle of the Shape.
Definition at line 170 of file Shape.h.
Referenced by GUIPointOfInterest::drawGL(), Shape::getImgFile(), and Shape::setImgFile().
|
protectedinherited |
The layer of the Shape.
Definition at line 164 of file Shape.h.
Referenced by Shape::getLayer(), and Shape::setLayer().
|
protectedinherited |
The type of the Shape.
Definition at line 158 of file Shape.h.
Referenced by GUIPolygon::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), Shape::getType(), and Shape::setType().