234 std::map<GUISUMOAbstractView*, int>
dummy;
288 void setGeometry(GUIOSGView* view, osg::ShapeDrawable* geom) {
292 void updateColor(GUIOSGView* view);
356 std::map<GUIOSGView*, osg::ShapeDrawable*> myGeom;
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
virtual void drawGLAdditional(GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
Draws additionally triggered visualisations.
void selectBlockingFoes() const
adds the blocking foes to the current selection
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
SUMOReal getColorValue(size_t activeScheme) const
gets the color value according to the current scheme index
Representation of a vehicle in the micro simulation.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
MSLane * getPreviousLane(MSLane *current, int &routeIndex) const
void drawBestLanes() const
Draws the vehicle's best lanes.
Stores the information about how to visualize structures.
bool hasActiveAddVisualisation(GUISUMOAbstractView *const parent, int which) const
Returns whether the named feature is enabled in the given view.
SUMOReal getLastLaneChangeOffset() const
Returns the time since the last lane change in seconds.
show all vehicle's routes
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void removeActiveAddVisualisation(GUISUMOAbstractView *const parent, int which)
Adds the named visualisation feature to the given view.
bool drawAction_drawVehicleAsImage(const GUIVisualizationSettings &s, SUMOReal length=-1) const
A class that stores a 2D geometrical boundary.
bool setFunctionalColor(size_t activeScheme) const
sets the color according to the current scheme index and some vehicle function
The car-following model and parameter.
std::string getStopInfo() const
retrieve information about the current stop state
void drawAction_drawVehicleAsPoly(const GUIVisualizationSettings &s) const
void drawAction_drawVehicleAsTrianglePlus() const
A point in 2D or 3D with translation and scaling methods.
std::map< GUISUMOAbstractView *, int > myAdditionalVisualizations
Enabled visualisations, per view.
show vehicle's current route
const std::vector< LaneQ > & getBestLanes() const
Returns the description of best lanes to use in order to continue the route.
static void drawPoly(double *poses, SUMOReal offset)
MSDevice_Vehroutes * myRoutes
int getNumPassengers() const
return the number of passengers
PositionVector mySeatPositions
positions of seats in the vehicle (updated at every drawing step)
static void drawLinkItem(const Position &pos, SUMOTime arrivalTime, SUMOTime leaveTime, SUMOReal exagerate)
VisualisationFeatures
Additional visualisation feature ids.
MFXMutex myLock
The mutex used to avoid concurrent updates of the vehicle buffer.
GUIVehicle(SUMOVehicleParameter *pars, const MSRoute *route, const MSVehicleType *type, SUMOReal speedFactor, int vehicleIndex)
Constructor.
void computeSeats(const Position &front, const Position &back, int &requiredSeats) const
add seats to mySeatPositions and update requiredSeats
const Position & getSeatPosition(size_t personIndex) const
returns the seat position for the person with the given index
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Structure representing possible vehicle parameter.
void drawAction_drawVehicleAsBoxPlus() const
void drawRoute(const GUIVisualizationSettings &s, int routeNo, SUMOReal darken) const
Chooses the route to draw and draws it, darkening it as given.
A device which collects info on the vehicle trip (mainly on departure and arrival) ...
void drawAction_drawRailCarriages(const GUIVisualizationSettings &s, SUMOReal defaultLength, int firstPassengerCarriage=0, bool asImage=false) const
show vehicle's best lanes
void drawRouteHelper(const MSRoute &r, SUMOReal exaggeration) const
Draws the route.
Representation of a lane in the micro simulation.
A window containing a gl-object's parameter.
void addActiveAddVisualisation(GUISUMOAbstractView *const parent, int which)
Adds the named visualisation feature to the given view.
A MSVehicle extended by some values for usage within the gui.