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