SUMO - Simulation of Urban MObility
|
A 2D- or 3D-Shape. More...
#include <Shape.h>
Public Member Functions | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
const std::string & | getID () const |
Returns the id. More... | |
void | setID (const std::string &newID) |
resets the id More... | |
Shape (const std::string &id, const std::string &type, const RGBColor &color, SUMOReal layer, SUMOReal angle, const std::string &imgFile) | |
Constructor. More... | |
virtual | ~Shape () |
Destructor. 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 |
Protected Attributes | |
SUMOReal | myAngle |
The angle of the Shape. More... | |
RGBColor | myColor |
The color of the Shape. 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... | |
|
inlineinherited |
Adds this object to the given container.
in,filled] | cont The container to add this item to |
Definition at line 114 of file Named.h.
References Named::StoringVisitor::add().
|
inline |
Returns the angle of the Shape.
Definition at line 93 of file Shape.h.
References myAngle.
Referenced by GUIPointOfInterest::drawGL(), and PCPolyContainer::save().
|
inline |
Returns the color of the Shape.
Definition at line 78 of file Shape.h.
References myColor.
Referenced by GUIPolygon::drawGL(), GUIPointOfInterest::drawGL(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_POI::processGet(), and PCPolyContainer::save().
|
inlineinherited |
Returns the id.
Definition at line 60 of file Named.h.
References Named::myID.
Referenced by Named::StoringVisitor::add(), MSDetectorControl::add(), RORouteDef::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), NIImporter_OpenDrive::addE2EConnectionsSecure(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NIVisumTL::build(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSVehicleTransfer::checkInsertions(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), NBTrafficLightDefinition::collectEdges(), NBOwnTLDef::collectLinks(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBEdge::connections_sorter(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), MSNet::getBusStopID(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), NIImporter_OpenDrive::loadNetwork(), MSVehicle::moveChecked(), NBRampsComputer::moveRampRight(), 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_Tripinfo::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Person::notifyLeave(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::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(), RORDLoader_SUMOBase::parseRoute(), NBLoadedTLDef::SignalGroup::patchTYellow(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processGet(), NWWriter_SUMO::prohibitionConnection(), NBEdgeCont::recheckPostProcessConnections(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), PCPolyContainer::save(), RONet::saveAndRemoveRoutesUntil(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), MSLane::setCritical(), NIXMLEdgesHandler::setNodes(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), RORDLoader_SUMOBase::startRoute(), NBEdge::startShapeAt(), NIXMLConnectionsHandler::validateLaneInfo(), MSEmissionExport::write(), MSInstantInductLoop::write(), NBSign::writeAsPOI(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSInductLoop::writeTypedXMLOutput(), MSFullExport::writeVehicles(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inline |
Returns the imgFile of the Shape.
Definition at line 100 of file Shape.h.
References myImgFile.
Referenced by GUIPolygon::drawGL(), and PCPolyContainer::save().
|
inline |
Returns the layer of the Shape.
Definition at line 86 of file Shape.h.
References myLayer.
Referenced by GUIPolygon::drawGL(), GUIPointOfInterest::drawGL(), and PCPolyContainer::save().
|
inline |
Returns the (abstract) type of the Shape.
Definition at line 70 of file Shape.h.
References myType.
Referenced by TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), and PCPolyContainer::save().
|
inline |
|
inline |
Sets a new color.
[in] | col | The new color to use |
Definition at line 120 of file Shape.h.
References myColor.
Referenced by TraCIServerAPI_POI::processSet(), and TraCIServerAPI_Polygon::processSet().
|
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().
|
inline |
|
inline |
|
inline |
Sets a new type.
[in] | type | The new type to use |
Definition at line 112 of file Shape.h.
References myType.
Referenced by TraCIServerAPI_POI::processSet(), and TraCIServerAPI_Polygon::processSet().
|
static |
Definition at line 149 of file Shape.h.
Referenced by NLHandler::addPOI(), NLHandler::addPoly(), PCLoaderXML::myStartElement(), TraCIServerAPI_Polygon::processSet(), TraCIServerAPI_POI::processSet(), and PCPolyContainer::save().
|
static |
Definition at line 150 of file Shape.h.
Referenced by NLHandler::addPOI(), NLHandler::addPoly(), PCLoaderXML::myStartElement(), TraCIServerAPI_Polygon::processSet(), TraCIServerAPI_POI::processSet(), and PCPolyContainer::save().
|
static |
Definition at line 152 of file Shape.h.
Referenced by NLHandler::addPOI(), PCLoaderXML::myStartElement(), TraCIServerAPI_POI::processSet(), and PCPolyContainer::save().
|
static |
Definition at line 151 of file Shape.h.
Referenced by NLHandler::addPOI(), PCLoaderXML::myStartElement(), TraCIServerAPI_POI::processSet(), and PCPolyContainer::save().
|
protected |
The angle of the Shape.
Definition at line 165 of file Shape.h.
Referenced by getAngle(), and setAngle().
|
protected |
The color of the Shape.
Definition at line 159 of file Shape.h.
Referenced by getColor(), and setColor().
|
protectedinherited |
The name of the object.
Definition at line 121 of file Named.h.
Referenced by NLDetectorBuilder::addE3Entry(), NLDetectorBuilder::addE3Exit(), NBEdge::computeEdgeShape(), Named::getID(), NBEdge::getLaneID(), NBEdge::init(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), RORouteDef::repairCurrentRoute(), Named::setID(), NBEdge::splitGeometry(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().
|
protected |
The angle of the Shape.
Definition at line 168 of file Shape.h.
Referenced by GUIPointOfInterest::drawGL(), getImgFile(), and setImgFile().
|
protected |
The layer of the Shape.
Definition at line 162 of file Shape.h.
Referenced by getLayer(), and setLayer().
|
protected |
The type of the Shape.
Definition at line 156 of file Shape.h.
Referenced by GUIPolygon::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), getType(), and setType().