59 #ifdef CHECK_MEMORY_LEAKS
61 #endif // CHECK_MEMORY_LEAKS
95 GUIGlObject& o, std::map<GUISUMOAbstractView*, int>& additionalVisualizations)
96 :
GUIGLObjectPopupMenu(app, parent, o), myVehiclesAdditionalVisualizations(additionalVisualizations) {
170 glScaled(upscale, upscale, 1);
259 switch (activeScheme) {
293 switch (activeScheme) {
319 glBegin(GL_TRIANGLES);
333 glTranslated(0, 0, .045);
335 glTranslated(0, 0, -.045);
337 glTranslated(0, 0, .04);
340 glTranslated(0, 0, -.04);
float vehicleExaggeration
The vehicle exaggeration (upscale)
const std::string & getID() const
returns the person id
std::map< GUISUMOAbstractView *, int > myAdditionalVisualizations
Enabled visualisations, per view.
bool myAmVisualizedAsStopped
whether the person is visualized as stopped
const RGBColor getColor(const SUMOReal value) const
const MSVehicleType & getVehicleType() const
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
GUIVisualizationTextSettings personName
void drawAction_drawAsImage(const GUIVisualizationSettings &s) const
bool isWaiting4Vehicle() const
Whether the person waits for a vehicle.
const MSEdge * getFromEdge() const
Returns the departure edge.
Stores the information about how to visualize structures.
StageType getCurrentStageType() const
SUMOReal getLength() const
Get vehicle's length [m].
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
SUMOReal getColorValue(size_t activeScheme) const
gets the color value according to the current scheme index
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
SUMOTime getCurrentTimeStep() const
Returns the current simulation step.
void drawAction_drawAsPoly(const GUIVisualizationSettings &s) const
SUMOReal x() const
Returns the x-position.
void buildPositionCopyEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
GUIGlID getGlID() const
Returns the numerical id of the object.
A class that stores a 2D geometrical boundary.
The car-following model and parameter.
const MSEdge & getDestination() const
Returns the current destination.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
SUMOReal scale
information about a lane's width (temporary, used for a single view)
const SUMOVehicleParameter & getParameter() const
float personExaggeration
The person exaggeration (upscale)
std::string getCurrentStageTypeName() const
static void drawFilledCircle(SUMOReal width, int steps=8)
Draws a filled circle around (0,0)
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
virtual Position getPosition(SUMOTime now) const
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
virtual void drawGLAdditional(GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
Draws additionally triggered visualisations.
static void drawTexturedBox(unsigned int which, SUMOReal size)
Draws a named texture as a box with the given size.
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
bool setFunctionalColor(size_t activeScheme) const
sets the color according to the current scheme index and some vehicle function
A point in 2D or 3D with translation and scaling methods.
GUIColorer personColorer
The person colorer.
void drawAction_drawAsTriangle(const GUIVisualizationSettings &s) const
void drawName(const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
const int VEHPARS_COLOR_SET
SUMOReal getAngle(SUMOTime now) const
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
SUMOReal getWidth() const
Get the width which vehicles of this class shall have when being drawn.
void add(SUMOReal x, SUMOReal y)
Makes the boundary include the given coordinate.
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
SUMOTime timeWaiting4Vehicle(SUMOTime now) const
the time this person spent waiting for a vehicle
Structure representing possible vehicle parameter.
GUIColorScheme & getScheme()
RGBColor changedBrightness(const char change)
Returns a new color with altered brightness.
SUMOReal y() const
Returns the y-position.
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
int personQuality
The quality of person drawing.
Base class for coloring. Allows changing the used colors and sets the used color in dependence to a v...
Position getPosition(SUMOTime now) const
overrides the base method and returns myPositionInVehicle while in driving stage
GUIPerson(const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSPerson::MSPersonPlan *plan)
Constructor.
std::string getImgFile() const
Get this vehicle type's raster model file name.
void mkItem(const char *name, bool dynamic, ValueSource< unsigned > *src)
Adds a row which obtains its value from an unsigned-ValueSource.
void closeBuilding()
Closes the building of the table.
Position myPositionInVehicle
The position of a person while riding a vehicle.
std::vector< MSPersonStage * > MSPersonPlan
the structure holding the plan of a person
A window containing a gl-object's parameter.
const int VTYPEPARS_COLOR_SET
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
static RGBColor getColor()
gets the gl-color
static int getTextureID(const std::string &filename)
return texture id for the given filename (initialize on first use)