43 #ifdef CHECK_MEMORY_LEAKS 45 #endif // CHECK_MEMORY_LEAKS 52 #pragma warning(disable: 4355) 56 MEVehicle(pars, route, type, speedFactor),
61 #pragma warning(default: 4355) 79 ret->
mkItem(
"waiting time [s]",
true,
119 std::ostringstream str;
120 for (std::vector<MSDevice*>::const_iterator i =
myDevices.begin(); i !=
myDevices.end(); ++i) {
124 str << (*i)->getID().substr(0, (*i)->getID().find(
getID()));
126 ret->
mkItem(
"devices",
false, str.str());
149 ret->
mkItem(
"Type Information:",
false,
"");
196 switch (activeScheme) {
243 for (; i != r.
end(); ++i) {
260 std::string result =
"";
void drawAction_drawVehicleAsBoxPlus() const
const MSVehicleType * myType
This Vehicle's type.
const std::vector< SUMOReal > & getShapeRotations() const
bool isParking() const
Returns whether the vehicle is parking.
unsigned int getNumberReroutes() const
Returns the number of new routes this vehicle got.
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
A vehicle from the mesoscopic point of view.
Position getPosition(const SUMOReal offset=0) const
Return current position (x/y, cartesian)
SUMOReal getMaxSpeed() const
Returns the maximum speed.
const std::vector< MSLane * > & getLanes() const
Returns this edge's lanes.
Position myPos
the position for drawing
Stores the information about how to visualize structures.
void drawRouteHelper(const MSRoute &r, SUMOReal exaggeration) const
Draws the route.
SUMOReal getSpeed() const
Returns the vehicle's estimated speed assuming no delays.
std::string time2string(SUMOTime t)
SUMOReal getLength() const
Get vehicle's length [m].
static void drawBoxLines(const PositionVector &geom, const std::vector< SUMOReal > &rots, const std::vector< SUMOReal > &lengths, SUMOReal width, int cornerDetail=0, SUMOReal offset=0)
Draws thick lines.
GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
const std::map< std::string, std::string > & getMap() const
Returns the inner key/value map.
const std::vector< SUMOReal > & getShapeLengths() const
const SUMOVehicleParameter * myParameter
This Vehicle's parameter.
The base class for microscopic and mesoscopic vehicles.
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
SUMOReal getEventTimeSeconds() const
Returns the earliest leave time for the current segment.
GUIGlID getGlID() const
Returns the numerical id of the object.
The car-following model and parameter.
SUMOReal getBlockTimeSeconds() const
Returns the time at which the vehicle was blocked on the current segment.
Representation of a lane in the micro simulation (gui-version)
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
bool isStopped() const
Returns whether the vehicle is at a stop.
const SUMOVTypeParameter & getParameter() const
SUMOReal getMinGap() const
Get the free space in front of vehicles of this class.
SUMOTime getDepartDelay() const
Returns the depart delay.
A point in 2D or 3D with translation and scaling methods.
SUMOReal getLastEntryTimeSeconds() const
Returns the entry time for the current segment.
~GUIMEVehicle()
destructor
SUMOReal getLength() const
Returns the length of the segment in meters.
ConstMSEdgeVector::const_iterator MSRouteIterator
SUMOReal myAngle
the angle for drawing
A MSVehicle extended by some values for usage within the gui.
static std::string getName(const SUMOEmissionClass c)
Checks whether the string describes a known vehicle class.
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
unsigned int getPersonCapacity() const
Get this vehicle type's person capacity.
SUMOReal getAngle() const
Returns the vehicle's direction in degrees.
std::string line
The vehicle's line (mainly for public transport)
MESegment * mySegment
The segment the vehicle is at.
bool drawAction_drawCarriageClass(const GUIVisualizationSettings &s, SUMOVehicleShape guiShape, bool asImage) const
draws the given guiShape if it has distinc carriages/modules and eturns true if so ...
std::string getStopInfo() const
retrieve information about the current stop state
SUMOReal getLastLaneChangeOffset() const
Returns the time since the last lane change in seconds.
Structure representing possible vehicle parameter.
MSRouteIterator end() const
Returns the end of the list of edges to pass.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
SUMOReal getWaitingSeconds() const
Returns the number of seconds waited (speed was lesser than 0.1m/s)
void selectBlockingFoes() const
adds the blocking foes to the current selection
SUMOReal getColorValue(size_t activeScheme) const
gets the color value according to the current scheme index
SUMOReal getChosenSpeedFactor() const
Returns the precomputed factor by which the driver wants to be faster than the speed limit...
SUMOReal getPositionOnLane() const
Get the vehicle's position along the lane.
const std::string & getID() const
Returns the name of the vehicle type.
const SUMOVehicleParameter & getParameter() const
Returns the vehicle's parameter (including departure definition)
unsigned int getContainerCapacity() const
Get this vehicle type's container capacity.
SUMOReal getVehicleMaxSpeed(const SUMOVehicle *const veh) const
Returns the maximum speed the vehicle may use on this edge.
const MSEdge * getEdge() const
Returns the edge the vehicle is currently at.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
GUIMEVehicle(SUMOVehicleParameter *pars, const MSRoute *route, const MSVehicleType *type, const SUMOReal speedFactor)
Constructor.
void mkItem(const char *name, bool dynamic, ValueSource< unsigned > *src)
Adds a row which obtains its value from an unsigned-ValueSource.
GUISelectedStorage gSelected
A global holder of selected objects.
void closeBuilding()
Closes the building of the table.
std::vector< MSDevice * > myDevices
The devices this vehicle has.
A window containing a gl-object's parameter.
MESegment * getSegment() const
Returns the current segment the vehicle is on.
SUMOReal getAngle() const
Returns the vehicle's direction in degrees.
MSRouteIterator begin() const
Returns the begin of the list of edges to pass.
static const Position INVALID
const std::string & getID() const
Returns the name of the vehicle.
const PositionVector & getShape() const