23 #ifndef GUIBaseVehicle_h 24 #define GUIBaseVehicle_h 258 std::map<GUISUMOAbstractView*, int>
dummy;
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
std::map< GUISUMOAbstractView *, int > myAdditionalVisualizations
Enabled visualisations, per view.
void drawAction_drawVehicleAsBoxPlus() const
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
virtual void drawAction_drawLinkItems(const GUIVisualizationSettings &) const
MFXMutex myLock
The mutex used to avoid concurrent updates of the vehicle buffer.
Stores the information about how to visualize structures.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
show vehicle's best lanes
MSDevice_Vehroutes * myRoutes
virtual Position getPosition(const SUMOReal offset=0) const =0
Return current position (x/y, cartesian)
virtual SUMOReal getAngle() const =0
Returns the vehicle's direction in radians.
The base class for microscopic and mesoscopic vehicles.
void drawAction_drawVehicleAsPoly(const GUIVisualizationSettings &s) const
virtual void selectBlockingFoes() const =0
adds the blocking foes to the current selection
A class that stores a 2D geometrical boundary.
The car-following model and parameter.
PositionVector mySeatPositions
positions of seats in the vehicle (updated at every drawing step)
static void drawPoly(double *poses, SUMOReal offset)
bool drawAction_drawVehicleAsImage(const GUIVisualizationSettings &s, SUMOReal length=-1) const
virtual void drawBestLanes() const
Draws the vehicle's best lanes.
A point in 2D or 3D with translation and scaling methods.
virtual GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own type parameter window.
A MSVehicle extended by some values for usage within the gui.
SUMOReal myCarriageLength
Variable to set with the length of the last drawn carriage or the vehicle length. ...
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void drawRoute(const GUIVisualizationSettings &s, int routeNo, SUMOReal darken) const
Chooses the route to draw and draws it, darkening it as given.
VisualisationFeatures
Additional visualisation feature ids.
virtual SUMOReal getColorValue(size_t activeScheme) const =0
gets the color value according to the current scheme index
GUIBaseVehicle(MSBaseVehicle &vehicle)
virtual void drawAction_drawVehicleBlinker(SUMOReal) const
bool hasActiveAddVisualisation(GUISUMOAbstractView *const parent, int which) const
Returns whether the named feature is enabled in the given view.
~GUIBaseVehicle()
destructor
virtual SUMOReal getLastLaneChangeOffset() const =0
Returns the time since the last lane change in seconds.
void removeActiveAddVisualisation(GUISUMOAbstractView *const parent, int which)
Adds the named visualisation feature to the given view.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
virtual void drawGLAdditional(GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
Draws additionally triggered visualisations.
virtual void drawAction_drawPersonsAndContainers(const GUIVisualizationSettings &) const
static bool setFunctionalColor(size_t activeScheme, const MSBaseVehicle *veh)
sets the color according to the current scheme index and some vehicle function
static void drawLinkItem(const Position &pos, SUMOTime arrivalTime, SUMOTime leaveTime, SUMOReal exagerate)
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own parameter window.
virtual bool drawAction_drawCarriageClass(const GUIVisualizationSettings &s, SUMOVehicleShape guiShape, bool asImage) const =0
draws the given guiShape if it has distinc carriages/modules and eturns true if so ...
virtual void drawRouteHelper(const MSRoute &r, SUMOReal exaggeration) const =0
Draws the route.
show all vehicle's routes
A device which collects info on the vehicle trip (mainly on departure and arrival) ...
virtual void drawAction_drawVehicleBrakeLight(SUMOReal) const
virtual std::string getStopInfo() const =0
retrieve information about the current stop state
const Position & getSeatPosition(size_t personIndex) const
returns the seat position for the person with the given index
MSBaseVehicle & myVehicle
The vehicle to which all calls should be delegated.
virtual void drawAction_drawVehicleBlueLight() const
const MSVehicleType & myVType
A shortcut to myVehicle.myType.
void addActiveAddVisualisation(GUISUMOAbstractView *const parent, int which)
Adds the named visualisation feature to the given view.
A window containing a gl-object's parameter.
show vehicle's current route
void drawAction_drawVehicleAsTrianglePlus() const