SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PointOfInterest Class Reference

A point-of-interest. More...

#include <PointOfInterest.h>

Inheritance diagram for PointOfInterest:
Shape Position Parameterised Named GUIPointOfInterest

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
 
Position operator+ (const Position &p2) const
 
Position operator- (const Position &p2) const
 
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 RGBColorgetColor () 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...
 

Detailed Description

A point-of-interest.

Definition at line 47 of file PointOfInterest.h.

Constructor & Destructor Documentation

PointOfInterest::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 
)
inline

Constructor.

Parameters
[in]idThe name of the POI
[in]typeThe (abstract) type of the POI
[in]colorThe color of the POI
[in]layerThe layer of the POI
[in]angleThe rotation of the POI
[in]imgFileThe raster image of the shape
[in]posThe position of the POI
[in]widthThe width of the POI image
[in]heightThe height of the POI image

Definition at line 60 of file PointOfInterest.h.

virtual PointOfInterest::~PointOfInterest ( )
inlinevirtual

Destructor.

Definition at line 75 of file PointOfInterest.h.

Member Function Documentation

void Position::add ( SUMOReal  dx,
SUMOReal  dy 
)
inlineinherited

Adds the given position to this one.

Definition at line 126 of file Position.h.

References Position::myX, and Position::myY.

void Position::add ( SUMOReal  dx,
SUMOReal  dy,
SUMOReal  dz 
)
inlineinherited

Adds the given position to this one.

Definition at line 132 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

void Parameterised::addParameter ( const std::string &  key,
const std::string &  value 
)
inherited
void Parameterised::addParameter ( const std::map< std::string, std::string > &  mapArg)
inherited

Adds all given parameter.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 59 of file Parameterised.cpp.

References Parameterised::myMap.

void Parameterised::addParameter ( const Parameterised p)
inherited

Adds all given parameter.

Parameters
[in]pThe keys/values to insert

Definition at line 67 of file Parameterised.cpp.

References Parameterised::myMap.

void Named::addTo ( const StoringVisitor cont) const
inlineinherited

Adds this object to the given container.

Parameters
in,filled]cont The container to add this item to

Definition at line 114 of file Named.h.

References Named::StoringVisitor::add().

bool Position::almostSame ( const Position p2,
SUMOReal  maxDiv = POSITION_EPS 
) const
inlineinherited
void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 91 of file Parameterised.cpp.

References Parameterised::myMap.

Position Position::crossProduct ( const Position pos)
inlineinherited

returns the cross product between this point and the second one

Definition at line 229 of file Position.h.

References Position::myX, Position::myY, Position::myZ, and Position::Position().

SUMOReal Position::distanceSquaredTo ( const Position p2) const
inlineinherited

Definition at line 213 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

Referenced by GeomHelper::distancePointLine(), and Position::distanceTo().

SUMOReal Position::distanceSquaredTo2D ( const Position p2) const
inlineinherited

Definition at line 224 of file Position.h.

References Position::myX, and Position::myY.

Referenced by Position::distanceTo2D().

SUMOReal Position::dotProduct ( const Position pos)
inlineinherited

returns the dot product (scalar product) between this point and the second one

Definition at line 237 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

SUMOReal Shape::getAngle ( ) const
inlineinherited

Returns the angle of the Shape.

Returns
The Shape's rotation angle

Definition at line 93 of file Shape.h.

References Shape::myAngle.

Referenced by GUIPointOfInterest::drawGL(), and PCPolyContainer::save().

const RGBColor& Shape::getColor ( ) const
inlineinherited

Returns the color of the Shape.

Returns
The Shape's color

Definition at line 78 of file Shape.h.

References Shape::myColor.

Referenced by GUIPolygon::drawGL(), GUIPointOfInterest::drawGL(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), and PCPolyContainer::save().

SUMOReal PointOfInterest::getHeight ( ) const
inline

Returns whether the image hidth of the POI.

Definition at line 88 of file PointOfInterest.h.

References myHalfImgHeight.

Referenced by PCPolyContainer::save().

const std::string& Named::getID ( ) const
inlineinherited

Returns the id.

Returns
The stored id

Definition at line 60 of file Named.h.

References Named::myID.

Referenced by NIImporter_SUMO::_loadNetwork(), Named::StoringVisitor::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), RORouteDef::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSVehicleTransfer::addVeh(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NBEdge::connections_sorter(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), GUINet::createTLWrapper(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), RODFNet::getDetectorEdge(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), AGStreet::getName(), NIImporter_VISUM::getNamedEdgeContinuating(), GUIVehicle::getParameterWindow(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), RODFDetectorCon::guessEmptyFlows(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), RODFNet::isDestination(), RODFNet::isFalseSource(), RODFNet::isSource(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), NIImporter_OpenDrive::loadNetwork(), NBRampsComputer::moveRampRight(), MSCalibrator::MSCalibrator(), MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting(), MSVehicle::MSVehicle(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), NIXMLTrafficLightsHandler::myEndElement(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTreceiver::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Person::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), GUIViewTraffic::onGamingClick(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::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(), MSLCM_JE2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), AGStreet::print(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), NWWriter_SUMO::prohibitionConnection(), 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(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), 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(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().

const std::string& Shape::getImgFile ( ) const
inlineinherited

Returns the imgFile of the Shape.

Returns
The Shape's rotation imgFile

Definition at line 100 of file Shape.h.

References Shape::myImgFile.

Referenced by GUIPolygon::drawGL(), and PCPolyContainer::save().

SUMOReal Shape::getLayer ( ) const
inlineinherited

Returns the layer of the Shape.

Returns
The Shape's layer

Definition at line 86 of file Shape.h.

References Shape::myLayer.

Referenced by GUIPolygon::drawGL(), GUIPointOfInterest::drawGL(), and PCPolyContainer::save().

const std::map<std::string, std::string>& Parameterised::getMap ( ) const
inlineinherited

Returns the inner key/value map.

Returns
the inner map

Definition at line 106 of file Parameterised.h.

References Parameterised::myMap.

Referenced by NBTrafficLightDefinition::compute(), GUIVehicle::getParameterWindow(), and PCPolyContainer::save().

const std::string & Parameterised::getParameter ( const std::string &  key,
const std::string &  defaultValue 
) const
inherited
const std::string& Shape::getType ( ) const
inlineinherited

Returns the (abstract) type of the Shape.

Returns
The Shape's (abstract) type

Definition at line 70 of file Shape.h.

References Shape::myType.

Referenced by TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), and PCPolyContainer::save().

SUMOReal PointOfInterest::getWidth ( ) const
inline

Returns whether the image width of the POI.

Definition at line 83 of file PointOfInterest.h.

References myHalfImgWidth.

Referenced by PCPolyContainer::save().

bool Parameterised::knowsParameter ( const std::string &  key) const
inherited

Returns whether the parameter is known.

Parameters
[in]keyThe key to ask for
Returns
Whether the key is known

Definition at line 75 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), and TraCIServerAPI_Vehicle::vtdMap_matchingNearest().

void Position::mul ( SUMOReal  mx,
SUMOReal  my 
)
inlineinherited

Multiplies position with the given values.

Definition at line 106 of file Position.h.

References Position::myX, and Position::myY.

void Position::mul ( SUMOReal  mx,
SUMOReal  my,
SUMOReal  mz 
)
inlineinherited

Multiplies position with the given values.

Definition at line 112 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

void Position::norm2d ( )
inlineinherited

Definition at line 158 of file Position.h.

References Position::myX, Position::myY, and SUMOReal.

Referenced by NBNode::getEmptyDir().

bool Position::operator!= ( const Position p2) const
inlineinherited

Definition at line 197 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

Position Position::operator* ( SUMOReal  scalar) const
inlineinherited

Definition at line 189 of file Position.h.

References Position::myX, Position::myY, Position::myZ, and Position::Position().

Position Position::operator+ ( const Position p2) const
inlineinherited

Definition at line 181 of file Position.h.

References Position::myX, Position::myY, Position::myZ, and Position::Position().

Position Position::operator- ( const Position p2) const
inlineinherited

Definition at line 185 of file Position.h.

References Position::myX, Position::myY, Position::myZ, and Position::Position().

bool Position::operator== ( const Position p2) const
inlineinherited

Definition at line 193 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

void Position::reshiftRotate ( SUMOReal  xoff,
SUMOReal  yoff,
SUMOReal  rot 
)
inlineinherited
void Position::set ( SUMOReal  x,
SUMOReal  y,
SUMOReal  z 
)
inlineinherited
void Position::set ( const Position pos)
inlineinherited

Definition at line 91 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

void Shape::setAngle ( const SUMOReal  angle)
inlineinherited

Sets a new angle.

Parameters
[in]layerThe new angle to use

Definition at line 136 of file Shape.h.

References Shape::myAngle.

void Shape::setColor ( const RGBColor col)
inlineinherited

Sets a new color.

Parameters
[in]colThe new color to use

Definition at line 120 of file Shape.h.

References Shape::myColor.

Referenced by TraCIServerAPI_POI::processSet(), and TraCIServerAPI_Polygon::processSet().

void PointOfInterest::setHeight ( SUMOReal  height)
inline

set the image height of the POI

Definition at line 104 of file PointOfInterest.h.

References myHalfImgHeight.

void Named::setID ( const std::string &  newID)
inlineinherited

resets the id

Parameters
[in]newIDThe new id of this object

Definition at line 68 of file Named.h.

References Named::myID.

Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().

void Shape::setImgFile ( const std::string &  imgFile)
inlineinherited

Sets a new imgFile.

Parameters
[in]imgFileThe new imgFile to use

Definition at line 143 of file Shape.h.

References Shape::myImgFile.

void Shape::setLayer ( const SUMOReal  layer)
inlineinherited

Sets a new layer.

Parameters
[in]layerThe new layer to use

Definition at line 128 of file Shape.h.

References Shape::myLayer.

void Shape::setType ( const std::string &  type)
inlineinherited

Sets a new type.

Parameters
[in]typeThe new type to use

Definition at line 112 of file Shape.h.

References Shape::myType.

Referenced by TraCIServerAPI_POI::processSet(), and TraCIServerAPI_Polygon::processSet().

void PointOfInterest::setWidth ( SUMOReal  width)
inline

set the image width of the POI

Definition at line 99 of file PointOfInterest.h.

References myHalfImgWidth.

void Position::sub ( SUMOReal  dx,
SUMOReal  dy 
)
inlineinherited
void Position::sub ( SUMOReal  dx,
SUMOReal  dy,
SUMOReal  dz 
)
inlineinherited

Substracts the given position from this one.

Definition at line 145 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

void Position::sub ( const Position pos)
inlineinherited

Substracts the given position from this one.

Definition at line 152 of file Position.h.

References Position::myX, Position::myY, and Position::myZ.

SUMOReal Position::x ( ) const
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(), NBNodeShapeComputer::computeContinuationNodeShape(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShape(), NBNodeShapeComputer::computeNodeShapeByCrosses(), NGRandomNetBuilder::createNewNode(), GeomHelper::distancePointLine(), GUIVehicle::drawAction_drawRailCarriages(), GUILane::drawArrows(), GLHelper::drawBoxLine(), GLHelper::drawBoxLines(), GLHelper::drawFilledPoly(), GUITrafficLightLogicWrapper::drawGL(), GUIPerson::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), GUIEdge::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawLane2LaneConnections(), GLHelper::drawLine(), GUIVehicle::drawLinkItem(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUIE3Collector::MyWrapper::drawSingleCrossing(), GLHelper::drawText(), GLHelper::drawTextBox(), GUILane::drawTLSLinkNo(), MSVTypeProbe::execute(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), GeomHelper::FindLineCircleIntersections(), MSVehicle::getAngle(), GUIPointOfInterest::getCenteringBoundary(), NBNode::getEmptyDir(), GeomHelper::getNormal90D_CW(), MSVTKExport::getPositions(), TraCIServerAPI_InductionLoop::getTree(), GUIDanielPerspectiveChanger::getXPos(), GUIBusStop::GUIBusStop(), GUIJunctionWrapper::GUIJunctionWrapper(), GUILane::GUILane(), GeomHelper::intersection_position2D(), GeomHelper::intersects(), isLeft(), PositionVector::isLeft(), PositionVector::move2side(), 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_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(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), 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().

SUMOReal Position::y ( ) const
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(), NBNodeShapeComputer::computeContinuationNodeShape(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShape(), NBNodeShapeComputer::computeNodeShapeByCrosses(), NGRandomNetBuilder::createNewNode(), GeomHelper::distancePointLine(), GUIVehicle::drawAction_drawRailCarriages(), GUILane::drawArrows(), GLHelper::drawBoxLine(), GLHelper::drawBoxLines(), GLHelper::drawFilledPoly(), GUITrafficLightLogicWrapper::drawGL(), GUIPerson::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), GUIEdge::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawLane2LaneConnections(), GLHelper::drawLine(), GUIVehicle::drawLinkItem(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUIE3Collector::MyWrapper::drawSingleCrossing(), GLHelper::drawText(), GLHelper::drawTextBox(), GUILane::drawTLSLinkNo(), MSVTypeProbe::execute(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), GeomHelper::FindLineCircleIntersections(), MSVehicle::getAngle(), GUIPointOfInterest::getCenteringBoundary(), NBNode::getEmptyDir(), GeomHelper::getNormal90D_CW(), MSVTKExport::getPositions(), TraCIServerAPI_InductionLoop::getTree(), GUIDanielPerspectiveChanger::getYPos(), GUIBusStop::GUIBusStop(), GUIJunctionWrapper::GUIJunctionWrapper(), GUILane::GUILane(), GeomHelper::intersection_position2D(), GeomHelper::intersects(), isLeft(), PositionVector::isLeft(), PositionVector::move2side(), 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_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(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), 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().

Field Documentation

const std::string Shape::DEFAULT_IMG_FILE = ""
staticinherited
const SUMOReal Shape::DEFAULT_IMG_HEIGHT = 1
staticinherited
const SUMOReal Shape::DEFAULT_IMG_WIDTH = 1
staticinherited
const SUMOReal Shape::DEFAULT_LAYER = 128
staticinherited

Definition at line 149 of file Shape.h.

Referenced by NLHandler::addPoly().

const std::string Shape::DEFAULT_TYPE = ""
staticinherited

Definition at line 148 of file Shape.h.

Referenced by NLHandler::addPoly().

SUMOReal Shape::myAngle
protectedinherited

The angle of the Shape.

Definition at line 166 of file Shape.h.

Referenced by Shape::getAngle(), and Shape::setAngle().

RGBColor Shape::myColor
protectedinherited

The color of the Shape.

Definition at line 160 of file Shape.h.

Referenced by Shape::getColor(), and Shape::setColor().

SUMOReal PointOfInterest::myHalfImgHeight
protected

The half height of the image when rendering this POI.

Definition at line 116 of file PointOfInterest.h.

Referenced by GUIPointOfInterest::drawGL(), GUIPointOfInterest::getCenteringBoundary(), getHeight(), and setHeight().

SUMOReal PointOfInterest::myHalfImgWidth
protected

The half width of the image when rendering this POI.

Definition at line 113 of file PointOfInterest.h.

Referenced by GUIPointOfInterest::drawGL(), GUIPointOfInterest::getCenteringBoundary(), getWidth(), and setWidth().

std::string Shape::myImgFile
protectedinherited

The angle of the Shape.

Definition at line 169 of file Shape.h.

Referenced by GUIPointOfInterest::drawGL(), Shape::getImgFile(), and Shape::setImgFile().

SUMOReal Shape::myLayer
protectedinherited

The layer of the Shape.

Definition at line 163 of file Shape.h.

Referenced by Shape::getLayer(), and Shape::setLayer().

std::string Shape::myType
protectedinherited

The type of the Shape.

Definition at line 157 of file Shape.h.

Referenced by GUIPolygon::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), Shape::getType(), and Shape::setType().


The documentation for this class was generated from the following file: