![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEViewNet.h>
Public Member Functions | |
void | abortOperation (bool clearSelection=true) |
abort current edition operation More... | |
void | addDecals (const std::vector< Decal > &decals) |
add decals More... | |
bool | autoSelectNodes () |
whether to autoselect nodes or to lanes More... | |
void | buildColorRainbow (const GUIVisualizationSettings &s, GUIColorScheme &scheme, int active, GUIGlObjectType objectType, bool hide=false, double hideThreshold=0.) |
recalibrate color scheme according to the current value range More... | |
void | buildSelectionACPopupEntry (GUIGLObjectPopupMenu *ret, GNEAttributeCarrier *AC) |
Builds an entry which allows to (de)select the object. More... | |
void | buildViewToolBars (GUIGlChildWindow &) |
builds the view toolbars More... | |
virtual void | centerTo (GUIGlID id, bool applyZoom, double zoomDist=20) |
centers to the chosen artifact More... | |
virtual void | centerTo (const Position &pos, bool applyZoom, double zoomDist=20) |
centers to the chosen position More... | |
void | centerTo (const Boundary &bound) |
centers to the chosen artifact More... | |
bool | changeAllPhases () const |
change all phases More... | |
virtual void | copyViewportTo (GUISUMOAbstractView *view) |
copy the viewport to the given view More... | |
void | destroyPopup () |
destoys the popup More... | |
std::set< std::pair< std::string, GNEAttributeCarrier * > > | getAttributeCarriersInBoundary (const Boundary &boundary, bool forceSelectEdges=false) |
get AttributeCarriers in Boundary More... | |
GUIPerspectiveChanger & | getChanger () const |
get changer More... | |
FXComboBox * | getColoringSchemesCombo () |
get coloring schemes combo More... | |
const GNEViewNetHelper::CommonViewOptions & | getCommonViewOptions () const |
get Common view options More... | |
double | getDelay () const |
Returns the delay of the parent application. More... | |
const GNEViewNetHelper::DemandViewOptions & | getDemandViewOptions () const |
get demand view options More... | |
const GNEAttributeCarrier * | getDottedAC () const |
get AttributeCarrier under cursor More... | |
virtual std::vector< std::string > | getEdgeDataAttrs () const |
return list of loaded edgeData attributes More... | |
virtual std::vector< std::string > | getEdgeLaneParamKeys (bool) const |
return list of available edge parameters More... | |
const GNEViewNetHelper::EditModes & | getEditModes () const |
get edit modes More... | |
const GNEViewNetHelper::EditShapes & | getEditShapes () const |
get Edit Shape modul More... | |
double | getFPS () const |
retrieve FPS More... | |
double | getGridHeight () const |
get grid Height More... | |
double | getGridWidth () const |
get grid width More... | |
const GNEViewNetHelper::KeyPressed & | getKeyPressed () const |
get Key Pressed modul More... | |
GNENet * | getNet () const |
get the net object More... | |
const GNEViewNetHelper::NetworkViewOptions & | getNetworkViewOptions () const |
get network view options More... | |
const Position & | getPopupPosition () const |
get position of current popup More... | |
Position | getPositionInformation () const |
Returns the cursor's x/y position within the network. More... | |
virtual GUIGlID | getTrackedID () const |
get tracked id More... | |
GNEUndoList * | getUndoList () const |
get the undoList object More... | |
GNEViewParent * | getViewParent () const |
get the net object More... | |
GUIDialog_EditViewport * | getViewportEditor () |
get the viewport and create it on first access More... | |
Boundary | getVisibleBoundary () const |
get visible boundary More... | |
GUIVisualizationSettings * | getVisualisationSettings () const |
get visualitation settings More... | |
GUIVisualizationSettings * | getVisualisationSettings () |
get visualisation settings More... | |
Position | getWindowCursorPosition () const |
Returns the information whether rotation is allowd. More... | |
GNEViewNet (FXComposite *tmpParent, FXComposite *actualParent, GUIMainWindow &app, GNEViewParent *viewParent, GNENet *net, GNEUndoList *undoList, FXGLVisual *glVis, FXGLCanvas *share) | |
void | hotkeyBackSpace () |
handle backspace keypress More... | |
void | hotkeyDel () |
handle del keypress More... | |
void | hotkeyEnter () |
handle enter keypress More... | |
void | hotkeyFocusFrame () |
handle focus frame keypress More... | |
bool | isInEditMode () |
returns true, if the edit button was pressed More... | |
double | m2p (double meter) const |
meter-to-pixels conversion method More... | |
FXbool | makeCurrent () |
A reimplementation due to some internal reasons. More... | |
long | onCmdAddReversedEdge (FXObject *, FXSelector, void *) |
add reversed edge More... | |
long | onCmdAddSelected (FXObject *, FXSelector, void *) |
select AC under cursor More... | |
long | onCmdClearConnections (FXObject *, FXSelector, void *) |
clear junction connections More... | |
long | onCmdClosePolygon (FXObject *, FXSelector, void *) |
close opened polygon More... | |
long | onCmdDeleteGeometryPoint (FXObject *, FXSelector, void *) |
delete the closes geometry point More... | |
long | onCmdDuplicateLane (FXObject *, FXSelector, void *) |
duplicate selected lane More... | |
long | onCmdEditConnectionShape (FXObject *, FXSelector, void *) |
edit connection shape More... | |
long | onCmdEditCrossingShape (FXObject *, FXSelector, void *) |
edit crossing shape More... | |
long | onCmdEditEdgeEndpoint (FXObject *, FXSelector, void *) |
change geometry endpoint More... | |
long | onCmdEditJunctionShape (FXObject *, FXSelector, void *) |
edit junction shape More... | |
long | onCmdLaneOperation (FXObject *, FXSelector sel, void *) |
add/remove/restrict lane More... | |
long | onCmdOpenAdditionalDialog (FXObject *, FXSelector, void *) |
open additional dialog More... | |
long | onCmdOpenPolygon (FXObject *, FXSelector, void *) |
open closed polygon More... | |
long | onCmdRemoveSelected (FXObject *, FXSelector, void *) |
unselect AC under cursor More... | |
long | onCmdReplaceJunction (FXObject *, FXSelector, void *) |
replace node by geometry More... | |
long | onCmdResetConnections (FXObject *, FXSelector, void *) |
reset junction connections More... | |
long | onCmdResetEdgeEndpoint (FXObject *, FXSelector, void *) |
change geometry endpoint More... | |
long | onCmdResetJunctionShape (FXObject *, FXSelector, void *) |
reset junction shape More... | |
long | onCmdResetLaneCustomShape (FXObject *, FXSelector, void *) |
reset custom shapes of selected lanes More... | |
long | onCmdReverseEdge (FXObject *, FXSelector, void *) |
reverse edge More... | |
long | onCmdSetFirstGeometryPoint (FXObject *, FXSelector, void *) |
set as first geometry point the closes geometry point More... | |
long | onCmdSimplifyShape (FXObject *, FXSelector, void *) |
simply shape of current polygon More... | |
long | onCmdSmoothEdges (FXObject *, FXSelector, void *) |
smooth geometry More... | |
long | onCmdSmoothEdgesElevation (FXObject *, FXSelector, void *) |
smooth elevation with regard to adjoining edges More... | |
long | onCmdSplitEdge (FXObject *, FXSelector, void *) |
split edge at cursor position More... | |
long | onCmdSplitEdgeBidi (FXObject *, FXSelector, void *) |
split edge at cursor position More... | |
long | onCmdSplitJunction (FXObject *, FXSelector, void *) |
split junction into multiple junctions More... | |
long | onCmdSplitJunctionReconnect (FXObject *, FXSelector, void *) |
split junction into multiple junctions and reconnect them More... | |
long | onCmdStraightenEdges (FXObject *, FXSelector, void *) |
makes selected edges straight More... | |
long | onCmdStraightenEdgesElevation (FXObject *, FXSelector, void *) |
interpolate z values linear between junctions More... | |
long | onCmdTransformPOI (FXObject *, FXSelector, void *) |
Transform POI to POILane, and viceversa. More... | |
virtual void | onGamingClick (Position) |
on gaming click More... | |
virtual void | onGamingRightClick (Position) |
void | openObjectDialog () |
double | p2m (double pixel) const |
pixels-to-meters conversion method More... | |
virtual void | recenterView () |
recenters the view More... | |
void | remove (GUIDialog_EditViewport *) |
remove viewport More... | |
void | remove (GUIDialog_ViewSettings *) |
remove view settings More... | |
virtual const std::vector< SUMOTime > | retrieveBreakpoints () const |
retrieve breakpoints if provided by the application More... | |
Position | screenPos2NetPos (int x, int y) const |
Translate screen position to network position. More... | |
void | setBreakpoints (const std::vector< SUMOTime > &breakpoints) |
Sets the breakpoints of the parent application. More... | |
bool | setColorScheme (const std::string &name) |
set color scheme More... | |
void | setDelay (double delay) |
Sets the delay of the parent application. More... | |
void | setDottedAC (const GNEAttributeCarrier *AC) |
set attributeCarrier under cursor More... | |
void | setSelectionScaling (double selectionScale) |
set selection scaling More... | |
void | setStatusBarText (const std::string &text) |
set staturBar text More... | |
virtual void | setViewportFromToRot (const Position &lookFrom, const Position &lookAt, double rotation) |
applies the given viewport settings More... | |
void | setWindowCursorPosition (FXint x, FXint y) |
Returns the gl-id of the object under the given coordinates. More... | |
bool | showJunctionAsBubbles () const |
return true if junction must be showed as bubbles More... | |
bool | showLockIcon () const |
check if lock icon should be visible More... | |
void | showToolTips (bool val) |
show tool tips More... | |
virtual void | showViewportEditor () |
show viewport editor More... | |
void | showViewschemeEditor () |
show viewsscheme editor More... | |
Position | snapToActiveGrid (const Position &pos, bool snapXY=true) const |
Returns a position that is mapped to the closest grid point if the grid is active. More... | |
virtual void | startTrack (int) |
star track More... | |
virtual void | stopTrack () |
stop track More... | |
void | update () const |
Mark the entire GNEViewNet to be repainted later. More... | |
void | updateControls () |
update control contents after undo/redo or recompute More... | |
void | updateToolTip () |
A method that updates the tooltip. More... | |
~GNEViewNet () | |
destructor More... | |
overloaded handlers | |
called when user press mouse's left button | |
long | onLeftBtnPress (FXObject *, FXSelector, void *) |
long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
called when user releases mouse's left button More... | |
long | onRightBtnPress (FXObject *, FXSelector, void *) |
called when user press mouse's right button More... | |
long | onRightBtnRelease (FXObject *, FXSelector, void *) |
called when user releases mouse's right button More... | |
long | onMouseMove (FXObject *, FXSelector, void *) |
called when user moves mouse More... | |
long | onKeyPress (FXObject *o, FXSelector sel, void *data) |
called when user press a key More... | |
long | onKeyRelease (FXObject *o, FXSelector sel, void *data) |
called when user release a key More... | |
set modes call backs | |
called when user press a supermode button | |
long | onCmdSetSupermode (FXObject *, FXSelector sel, void *) |
long | onCmdSetMode (FXObject *, FXSelector sel, void *) |
called when user press a mode button (Network or demand) More... | |
View options network call backs | |
toogle show demand elements | |
long | onCmdToogleShowDemandElements (FXObject *, FXSelector, void *) |
long | onCmdToogleSelectEdges (FXObject *, FXSelector, void *) |
toogle select edges More... | |
long | onCmdToogleShowConnections (FXObject *, FXSelector, void *) |
toogle show connections More... | |
long | onCmdToogleHideConnections (FXObject *, FXSelector, void *) |
toogle hide connections More... | |
long | onCmdToogleExtendSelection (FXObject *, FXSelector, void *) |
toogle extend selection More... | |
long | onCmdToogleChangeAllPhases (FXObject *, FXSelector, void *) |
toogle change all phases More... | |
long | onCmdToogleShowGrid (FXObject *, FXSelector, void *) |
toogle show grid More... | |
long | onCmdToogleWarnAboutMerge (FXObject *, FXSelector, void *) |
toogle warn for merge More... | |
long | onCmdToogleShowJunctionBubbles (FXObject *, FXSelector, void *) |
toogle show junction bubbles More... | |
long | onCmdToogleMoveElevation (FXObject *, FXSelector, void *) |
toogle move elevation More... | |
long | onCmdToogleChainEdges (FXObject *, FXSelector, void *) |
toogle chain edges More... | |
long | onCmdToogleAutoOppositeEdge (FXObject *, FXSelector, void *) |
toogle autoOpposite edge More... | |
long | onCmdToogleHideNonInspecteDemandElements (FXObject *, FXSelector, void *) |
toogle hide non inspected demand elements More... | |
long | onCmdToogleHideShapes (FXObject *, FXSelector, void *) |
toogle hide shapes in super mode demand More... | |
long | onCmdToogleShowAllPersonPlans (FXObject *, FXSelector, void *) |
toogle show all person plans in super mode demand More... | |
long | onCmdToogleLockPerson (FXObject *, FXSelector, void *) |
toogle lock person in super mode demand More... | |
virtual long | onConfigure (FXObject *, FXSelector, void *) |
mouse functions More... | |
virtual long | onPaint (FXObject *, FXSelector, void *) |
virtual long | onMiddleBtnPress (FXObject *, FXSelector, void *) |
virtual long | onMiddleBtnRelease (FXObject *, FXSelector, void *) |
virtual long | onDoubleClicked (FXObject *, FXSelector, void *) |
virtual long | onMouseWheel (FXObject *, FXSelector, void *) |
virtual long | onMouseLeft (FXObject *, FXSelector, void *) |
Dealing with snapshots | |
void | addSnapshot (SUMOTime time, const std::string &file, const int width=-1, const int height=-1) |
Sets the snapshot time to file map. More... | |
std::string | makeSnapshot (const std::string &destFile, const int width=-1, const int height=-1) |
Takes a snapshots and writes it into the given file. More... | |
virtual void | saveFrame (const std::string &destFile, FXColor *buf) |
Adds a frame to a video snapshot which will be initialized if neccessary. More... | |
virtual void | endSnapshot () |
Ends a video snapshot. More... | |
virtual void | checkSnapshots () |
Checks whether it is time for a snapshot. More... | |
void | waitForSnapshots (const SUMOTime snapshotTime) |
virtual SUMOTime | getCurrentTimeStep () const |
get the current simulation time More... | |
Additional visualisations | |
bool | addAdditionalGLVisualisation (const GUIGlObject *const which) |
Adds an object to call its additional visualisation method. More... | |
bool | removeAdditionalGLVisualisation (const GUIGlObject *const which) |
Removes an object from the list of objects that show additional things. More... | |
bool | isAdditionalGLVisualisationEnabled (GUIGlObject *const which) const |
Check if an object is added in the additional GL visualitation. More... | |
Protected Member Functions | |
Boundary | applyGLTransform (bool fixRatio=true) |
applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections) More... | |
FXImage * | checkGDALImage (Decal &d) |
check whether we can read image data or position with gdal More... | |
void | displayColorLegend () |
Draws a legend for the current edge coloring scheme. More... | |
void | displayLegend () |
Draws a line with ticks, and the length information. More... | |
void | doInit () |
called after some features are already initialized More... | |
int | doPaintGL (int mode, const Boundary &bound) |
do paintGL More... | |
void | drawDecals () |
Draws the stored decals. More... | |
void | drawFPS () |
Draws frames-per-second indicator. More... | |
std::vector< GUIGlObject * > | getGUIGlObjectsAtPosition (Position pos, double radius) |
returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT More... | |
std::vector< GUIGlObject * > | getGUIGlObjectsUnderCursor () |
returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects) More... | |
GUIGlID | getObjectAtPosition (Position pos) |
returns the id of the object at position using GL_SELECT More... | |
std::vector< GUIGlID > | getObjectsAtPosition (Position pos, double radius) |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT More... | |
std::vector< GUIGlID > | getObjectsInBoundary (Boundary bound) |
returns the ids of all objects in the given boundary More... | |
std::vector< GUIGlID > | getObjectstUnderCursor () |
returns the id of the objects under the cursor using GL_SELECT (including overlapped objects) More... | |
GUIGlID | getObjectUnderCursor () |
returns the id of the front object under the cursor using GL_SELECT More... | |
GNEViewNet () | |
FOX needs this. More... | |
void | paintGL () |
performs the painting of the simulation More... | |
void | paintGLGrid () |
paints a grid More... | |
void | showToolTipFor (const GUIGlID id) |
invokes the tooltip for the given object More... | |
void | updatePositionInformation () const |
update position information More... | |
Protected Attributes | |
std::map< const GUIGlObject *, int > | myAdditionallyDrawn |
List of objects for which GUIGlObject::drawGLAdditional is called. More... | |
bool | myAmInitialised |
Internal information whether doInit() was called. More... | |
GUIMainWindow * | myApp |
The application. More... | |
GUIPerspectiveChanger * | myChanger |
The perspective changer. More... | |
long | myFrameDrawTime |
counter for measuring rendering time More... | |
SUMORTree * | myGrid |
The visualization speed-up. More... | |
bool | myInEditMode |
Information whether too-tip informations shall be generated. More... | |
int | myMouseHotspotX |
Offset to the mouse-hotspot from the mouse position. More... | |
int | myMouseHotspotY |
GUIGlChildWindow * | myParent |
The parent window. More... | |
FXMutex | myPolyDrawLock |
poly draw lock More... | |
GUIGLObjectPopupMenu * | myPopup |
The current popup-menu. More... | |
Position | myPopupPosition |
The current popup-menu position. More... | |
FXCondition | mySnapshotCondition |
the semaphore when waiting for snapshots to finish More... | |
std::map< SUMOTime, std::vector< std::tuple< std::string, int, int > > > | mySnapshots |
Snapshots. More... | |
FXMutex | mySnapshotsMutex |
The mutex to use before accessing the decals list in order to avoid thread conflicts. More... | |
bool | myUseToolTips |
use tool tips More... | |
GUIDialog_EditViewport * | myViewportChooser |
viewport chooser More... | |
GUIDialog_ViewSettings * | myVisualizationChanger |
Visualization changer. More... | |
GUIVisualizationSettings * | myVisualizationSettings |
visualization settings More... | |
FXint | myWindowCursorPositionX |
Position of the cursor relative to the window. More... | |
FXint | myWindowCursorPositionY |
Optionally shown decals | |
The list of decals to show | |
std::vector< Decal > | myDecals |
FXMutex | myDecalsLock |
The mutex to use before accessing the decals list in order to avoid thread conflicts. More... | |
Private Member Functions | |
bool | addRestrictedLane (SUMOVehicleClass vclass) |
add restricted lane More... | |
void | buildEditModeControls () |
create edit mode buttons and elements More... | |
void | deleteSelectedAdditionals () |
delete all currently selected additionals More... | |
void | deleteSelectedConnections () |
delete all currently selected connections More... | |
void | deleteSelectedCrossings () |
delete all currently selected crossings More... | |
void | deleteSelectedDemandElements () |
delete all currently selected demand elements More... | |
void | deleteSelectedEdges () |
delete all currently selected edges More... | |
void | deleteSelectedJunctions () |
delete all currently selected junctions More... | |
void | deleteSelectedLanes () |
delete all currently selected lanes More... | |
void | deleteSelectedShapes () |
delete all currently selected shapes More... | |
GNEAdditional * | getAdditionalAtPopupPosition () |
try to retrieve a additional at popup position More... | |
GNEConnection * | getConnectionAtPopupPosition () |
try to retrieve a connection at popup position More... | |
GNECrossing * | getCrossingAtPopupPosition () |
try to retrieve a crossing at popup position More... | |
GNEEdge * | getEdgeAtPopupPosition () |
try to retrieve an edge at popup position More... | |
GNEJunction * | getJunctionAtPopupPosition () |
try to retrieve a junction at popup position More... | |
GNELane * | getLaneAtPopupPosition () |
try to retrieve a lane at popup position More... | |
GNEPOI * | getPOIAtPopupPosition () |
try to retrieve a POILane at popup position More... | |
GNEPoly * | getPolygonAtPopupPosition () |
try to retrieve a polygon at popup position More... | |
bool | mergeJunctions (GNEJunction *moved, const Position &oldPos) |
try to merge moved junction with another junction in that spot return true if merging did take place More... | |
void | processClick (void *eventData) |
Auxiliar function used by onLeftBtnPress(...) More... | |
bool | removeRestrictedLane (SUMOVehicleClass vclass) |
remove restricted lane More... | |
bool | restrictLane (SUMOVehicleClass vclass) |
restrict lane More... | |
void | updateCursor () |
update cursor after every click/key press/release More... | |
void | updateDemandModeSpecificControls () |
updates Demand mode specific controls More... | |
void | updateNetworkModeSpecificControls () |
updates Network mode specific controls More... | |
void | drawLaneCandidates () const |
draw functions More... | |
void | drawTemporalDrawShape () const |
draw temporal polygon shape in Polygon Mode More... | |
void | processLeftButtonPressNetwork (void *eventData) |
mouse process functions More... | |
void | processLeftButtonReleaseNetwork () |
process left button release function in Supermode Network More... | |
void | processMoveMouseNetwork () |
process move mouse function in Supermode Network More... | |
void | processLeftButtonPressDemand (void *eventData) |
process left button press function in Supermode Demand More... | |
void | processLeftButtonReleaseDemand () |
process left button release function in Supermode Demand More... | |
void | processMoveMouseDemand () |
process move mouse function in Supermode Demand More... | |
GNEViewNet (const GNEViewNet &)=delete | |
Invalidated copy constructor. More... | |
GNEViewNet & | operator= (const GNEViewNet &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
GNEFrame * | myCurrentFrame |
the current frame More... | |
const GNEAttributeCarrier * | myDottedAC |
current AttributeCarrier that is drawn using with a dotted contour note: it's constant because is edited from constant functions (example: drawGL(...) const) More... | |
GNEViewNetHelper::EditShapes | myEditShapes |
struct for grouping all variables related with edit shapes More... | |
GNENet * | myNet |
Pointer to current net. (We are not responsible for deletion) More... | |
GNEViewNetHelper::SelectingArea | mySelectingArea |
variable used to save variables related with selecting areas More... | |
GNEUndoList * | myUndoList |
a reference to the undolist maintained in the application More... | |
GNEViewParent * | myViewParent |
view parent More... | |
structs related with modes and testing mode | |
GNEViewNetHelper::EditModes | myEditModes |
variable used to save variables related with edit moves modes More... | |
GNEViewNetHelper::TestingMode | myTestingMode |
variable used to save variables related with testing mode More... | |
structs related with input (keyboard and mouse) | |
GNEViewNetHelper::KeyPressed | myKeyPressed |
variable used to save key status after certain events More... | |
GNEViewNetHelper::ObjectsUnderCursor | myObjectsUnderCursor |
variable use to save all pointers to objects under cursor after a click More... | |
structs related with checkable buttons | |
GNEViewNetHelper::CommonCheckableButtons | myCommonCheckableButtons |
variable used to save checkable buttons for common supermodes More... | |
GNEViewNetHelper::NetworkCheckableButtons | myNetworkCheckableButtons |
variable used to save checkable buttons for Supermode Network More... | |
GNEViewNetHelper::DemandCheckableButtons | myDemandCheckableButtons |
variable used to save checkable buttons for Supermode Demand More... | |
structs related with view options | |
GNEViewNetHelper::CommonViewOptions | myCommonViewOptions |
variable used to save variables related with common view options More... | |
GNEViewNetHelper::NetworkViewOptions | myNetworkViewOptions |
variable used to save variables related with view options in Network Supermode More... | |
GNEViewNetHelper::DemandViewOptions | myDemandViewOptions |
variable used to save variables related with view options in Demand Supermode More... | |
structs related with move elements | |
variable used to save variables related with movement of single elements | |
GNEViewNetHelper::MoveSingleElementValues | myMoveSingleElementValues |
GNEViewNetHelper::MoveMultipleElementValues | myMoveMultipleElementValues |
variable used to save variables related with movement of multiple elements More... | |
structs related with Demand options | |
GNEViewNetHelper::VehicleOptions | myVehicleOptions |
variable used to save variables related with vehicle options More... | |
GNEViewNetHelper::VehicleTypeOptions | myVehicleTypeOptions |
variable used to save variables related with vehicle type options More... | |
Friends | |
struct | GNEViewNetHelper |
FOX-declaration. More... | |
Microsocopic view at the simulation
Definition at line 43 of file GNEViewNet.h.
GNEViewNet::GNEViewNet | ( | FXComposite * | tmpParent, |
FXComposite * | actualParent, | ||
GUIMainWindow & | app, | ||
GNEViewParent * | viewParent, | ||
GNENet * | net, | ||
GNEUndoList * | undoList, | ||
FXGLVisual * | glVis, | ||
FXGLCanvas * | share | ||
) |
Definition at line 170 of file GNEViewNet.cpp.
References GUITextureSubSys::resetTextures().
GNEViewNet::~GNEViewNet | ( | ) |
destructor
Definition at line 212 of file GNEViewNet.cpp.
|
protected |
FOX needs this.
Definition at line 511 of file GNEViewNet.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEViewNet::abortOperation | ( | bool | clearSelection = true | ) |
abort current edition operation
Definition at line 749 of file GNEViewNet.cpp.
References GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrameModuls::DrawingShape::abortDrawing(), GNECreateEdgeFrame::abortEdgeCreation(), GNEFrameModuls::EdgePathCreator::abortEdgePathCreation(), GNEPersonPlanFrame::PersonPlanCreator::abortPersonPlanCreation(), GNESelectorFrame::clearCurrentSelection(), GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditModes::demandEditMode, GNEViewParent::getAdditionalFrame(), GNEConnectorFrame::getConnectionModifications(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEViewParent::getCreateEdgeFrame(), GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEPersonFrame::getEdgePathCreator(), GNEVehicleFrame::getEdgePathCreator(), GNEViewParent::getPersonFrame(), GNEPersonPlanFrame::getPersonPlanCreator(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getPolygonFrame(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getRouteFrame(), GNEViewParent::getSelectorFrame(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNEViewParent::getTLSEditorFrame(), GNEViewParent::getVehicleFrame(), GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_ROUTE, GNE_DMODE_SELECT, GNE_DMODE_VEHICLE, GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CREATE_EDGE, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_PROHIBITION, GNE_NMODE_SELECT, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GNERouteFrame::hotkeyEsc(), GNEFrameModuls::DrawingShape::isDrawing(), myEditModes, myEditShapes, mySelectingArea, myUndoList, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEUndoList::p_abort(), GNEViewNetHelper::SelectingArea::selectingUsingRectangle, GNETAZFrame::TAZCurrent::setTAZ(), and GNEViewNetHelper::EditShapes::stopEditCustomShape().
Referenced by GNEApplicationWindow::onCmdAbort(), GNEViewNetHelper::EditModes::setDemandEditMode(), GNEViewNetHelper::EditModes::setNetworkEditMode(), and GNEViewNetHelper::EditModes::setSupermode().
|
inherited |
Adds an object to call its additional visualisation method.
[in] | which | The object to add |
Definition at line 1545 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), GUIVehicle::drawOutsideNetwork(), and GUISUMOAbstractView::getEdgeLaneParamKeys().
|
inherited |
add decals
Definition at line 228 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myDecals.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
private |
add restricted lane
Definition at line 1697 of file GNEViewNet.cpp.
References GNENet::addRestrictedLane(), GNELane::getIndex(), getLaneAtPopupPosition(), GNEEdge::getLanes(), GNELane::getParentEdge(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdge(), GNENet::retrieveEdges(), GNENet::retrieveLanes(), SVC_PEDESTRIAN, toString(), and WRITE_DEBUG.
Referenced by onCmdLaneOperation().
|
inherited |
Sets the snapshot time to file map.
[in] | snaps | The snapshots to take at certain times |
Definition at line 1059 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::mySnapshots, and GUISUMOAbstractView::mySnapshotsMutex.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIViewTraffic::checkSnapshots(), TraCIServerAPI_GUI::processSet(), and GUISettingsHandler::setSnapshots().
|
protectedinherited |
applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections)
Definition at line 1583 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::angle, DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GLO_MAX, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::GUISUMOAbstractView(), GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::paintGL().
bool GNEViewNet::autoSelectNodes | ( | ) |
whether to autoselect nodes or to lanes
Definition at line 488 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckExtendSelection, and myNetworkViewOptions.
Referenced by GNESelectorFrame::handleIDs(), and GNEViewNetHelper::SelectingArea::processBoundarySelection().
|
virtual |
recalibrate color scheme according to the current value range
Reimplemented from GUISUMOAbstractView.
Definition at line 435 of file GNEViewNet.cpp.
References GUIPropertyScheme< T >::addColor(), RGBColor::BLUE, GUIPropertyScheme< T >::clear(), RGBColor::CYAN, GLO_JUNCTION, GLO_LANE, RGBColor::GREEN, GUIPropertyScheme< T >::isFixed(), RGBColor::MAGENTA, MAX2(), MIN2(), myNet, RGBColor::ORANGE, RGBColor::RED, GNENet::retrieveJunctions(), GNENet::retrieveLanes(), UNUSED_PARAMETER, and RGBColor::YELLOW.
|
private |
create edit mode buttons and elements
Definition at line 2339 of file GNEViewNet.cpp.
References GNEViewNetHelper::CommonCheckableButtons::buildCommonCheckableButtons(), GNEViewNetHelper::CommonViewOptions::buildCommonViewOptionsMenuChecks(), GNEViewNetHelper::DemandCheckableButtons::buildDemandCheckableButtons(), GNEViewNetHelper::DemandViewOptions::buildDemandViewOptionsMenuChecks(), GNEViewNetHelper::NetworkCheckableButtons::buildNetworkCheckableButtons(), GNEViewNetHelper::NetworkViewOptions::buildNetworkViewOptionsMenuChecks(), GNEViewNetHelper::EditModes::buildSuperModeButtons(), myCommonCheckableButtons, myCommonViewOptions, myDemandCheckableButtons, myDemandViewOptions, myEditModes, myNetworkCheckableButtons, and myNetworkViewOptions.
void GNEViewNet::buildSelectionACPopupEntry | ( | GUIGLObjectPopupMenu * | ret, |
GNEAttributeCarrier * | AC | ||
) |
Builds an entry which allows to (de)select the object.
ret | The popup menu to add the entry to |
AC | AttributeCarrier that will be select/unselected |
Definition at line 331 of file GNEViewNet.cpp.
References GUIIconSubSys::getIcon(), ICON_FLAG_MINUS, ICON_FLAG_PLUS, GNEAttributeCarrier::isAttributeCarrierSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
virtual |
builds the view toolbars
Reimplemented from GUISUMOAbstractView.
Definition at line 220 of file GNEViewNet.cpp.
References GUIGlChildWindow::getColoringSchemesCombo(), GUIIconSubSys::getIcon(), GUIGlChildWindow::getLocatorPopup(), GUICompleteSchemeStorage::getNames(), gSchemeStorage, ICON_LOCATEADD, ICON_LOCATEEDGE, ICON_LOCATEJUNCTION, ICON_LOCATEPOI, ICON_LOCATEPOLY, ICON_LOCATEROUTE, ICON_LOCATESTOP, ICON_LOCATETLS, ICON_LOCATEVEHICLE, MAX2(), MID_LOCATEADD, MID_LOCATEEDGE, MID_LOCATEJUNCTION, MID_LOCATEPOI, MID_LOCATEPOLY, MID_LOCATEROUTE, MID_LOCATESTOP, MID_LOCATETLS, MID_LOCATEVEHICLE, GUISUMOAbstractView::myVisualizationSettings, and GUIVisualizationSettings::name.
|
virtualinherited |
centers to the chosen artifact
[in] | id | The id of the artifact to center to |
[in] | applyZoom | Whether to zoom in |
[in] | zoomDist | The distance in m to use for the zoom, values < 0 means: use the centeringBoundary |
Definition at line 769 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), Boundary::getCenter(), GUIGlObject::getCenteringBoundary(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, GUISUMOAbstractView::myChanger, GUIPerspectiveChanger::setViewport(), GUIGlObjectStorage::unblockObject(), and GUISUMOAbstractView::updatePositionInformation().
Referenced by GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), GUISUMOAbstractView::buildViewToolBars(), GUIGLObjectPopupMenu::onCmdCenter(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processSet(), and GUIGlChildWindow::setView().
|
virtualinherited |
centers to the chosen position
[in] | pos | Position to center view |
[in] | applyZoom | Whether to zoom in |
[in] | zoomDist | The distance in m to use for the zoom, values < 0 means: use the centeringBoundary |
Definition at line 786 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), GUISUMOAbstractView::myChanger, and GUISUMOAbstractView::updatePositionInformation().
|
inherited |
centers to the chosen artifact
Definition at line 794 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::setViewport().
bool GNEViewNet::changeAllPhases | ( | ) | const |
change all phases
Definition at line 500 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckChangeAllPhases, and myNetworkViewOptions.
Referenced by GNETLSEditorFrame::handleChange().
|
protectedinherited |
check whether we can read image data or position with gdal
Definition at line 1418 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GeoConvHelper::getProcessing(), GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::width, WRITE_MESSAGE, WRITE_WARNING, Position::x(), GeoConvHelper::x2cartesian(), and Position::y().
Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::GUISUMOAbstractView().
|
virtualinherited |
Checks whether it is time for a snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 1235 of file GUISUMOAbstractView.cpp.
References DELTA_T, GUISUMOAbstractView::getCurrentTimeStep(), joinToString(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::mySnapshotCondition, GUISUMOAbstractView::mySnapshots, GUISUMOAbstractView::mySnapshotsMutex, toString(), and WRITE_WARNING.
Referenced by GUIViewTraffic::checkSnapshots(), GUISUMOAbstractView::endSnapshot(), GUISUMOAbstractView::onConfigure(), and GUISUMOViewParent::onSimStep().
|
virtualinherited |
copy the viewport to the given view
Definition at line 1336 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), GUISUMOAbstractView::myChanger, and GUISUMOAbstractView::setViewportFromToRot().
Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUIApplicationWindow::openNewView().
|
private |
delete all currently selected additionals
Definition at line 2732 of file GNEViewNet.cpp.
References GNENet::deleteAdditional(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), and GNENet::retrieveAdditionals().
Referenced by hotkeyDel().
|
private |
delete all currently selected connections
Definition at line 2792 of file GNEViewNet.cpp.
References GNENet::deleteConnection(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), SUMO_TAG_CONNECTION, and toString().
Referenced by hotkeyDel().
|
private |
delete all currently selected crossings
Definition at line 2766 of file GNEViewNet.cpp.
References GNENet::deleteCrossing(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveCrossing(), GNENet::retrieveJunctions(), SUMO_TAG_CROSSING, and toString().
Referenced by hotkeyDel().
|
private |
delete all currently selected demand elements
Definition at line 2749 of file GNEViewNet.cpp.
References GNENet::deleteDemandElement(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveDemandElement(), and GNENet::retrieveDemandElements().
Referenced by hotkeyDel().
|
private |
delete all currently selected edges
Definition at line 2717 of file GNEViewNet.cpp.
References GNENet::deleteEdge(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), SUMO_TAG_EDGE, and toString().
Referenced by hotkeyDel().
|
private |
delete all currently selected junctions
Definition at line 2688 of file GNEViewNet.cpp.
References GNENet::deleteJunction(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveJunctions(), SUMO_TAG_JUNCTION, and toString().
Referenced by hotkeyDel().
|
private |
delete all currently selected lanes
Definition at line 2702 of file GNEViewNet.cpp.
References GNENet::deleteLane(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveLanes(), SUMO_TAG_LANE, and toString().
Referenced by hotkeyDel().
|
private |
delete all currently selected shapes
Definition at line 2816 of file GNEViewNet.cpp.
References GNENet::deleteShape(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNENet::retrieveShapes().
Referenced by hotkeyDel().
|
inherited |
destoys the popup
Definition at line 864 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myPopupPosition, and Position::set().
Referenced by GUISUMOAbstractView::getEdgeLaneParamKeys(), onCmdClearConnections(), onCmdEditConnectionShape(), onCmdEditCrossingShape(), onCmdEditJunctionShape(), onCmdReplaceJunction(), onCmdResetConnections(), onCmdResetJunctionShape(), onCmdSplitJunction(), onCmdSplitJunctionReconnect(), GNEInternalLane::onDefault(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), and processClick().
|
protectedinherited |
Draws a legend for the current edge coloring scheme.
Definition at line 628 of file GUISUMOAbstractView.cpp.
References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_RIGHT, GUIPropertyScheme< T >::getColors(), GUIVisualizationSettings::getLaneEdgeScheme(), GUIPropertyScheme< T >::getNames(), GUIPropertyScheme< T >::getThresholds(), RGBColor::interpolate(), GUIPropertyScheme< T >::isFixed(), GUISUMOAbstractView::myVisualizationSettings, GLHelper::setColor(), toString(), and RGBColor::WHITE.
Referenced by GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::paintGL(), and GUISUMOAbstractView::retrieveBreakpoints().
|
protectedinherited |
Draws a line with ticks, and the length information.
Definition at line 562 of file GUISUMOAbstractView.cpp.
References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_LEFT, and GUISUMOAbstractView::m2p().
Referenced by GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::paintGL(), and GUISUMOAbstractView::retrieveBreakpoints().
|
protectedvirtual |
called after some features are already initialized
Reimplemented from GUISUMOAbstractView.
Definition at line 216 of file GNEViewNet.cpp.
|
protectedvirtual |
do paintGL
Reimplemented from GUISUMOAbstractView.
Definition at line 530 of file GNEViewNet.cpp.
References GUIVisualizationSettings::colorSettings, GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditModes::demandEditMode, GUISUMOAbstractView::drawDecals(), GUIVisualizationSettings::drawForSelecting, drawLaneCandidates(), GNEViewNetHelper::SelectingArea::drawRectangleSelection(), drawTemporalDrawShape(), GNEPersonPlanFrame::PersonPlanCreator::drawTemporalRoute(), GNEFrameModuls::EdgePathCreator::drawTemporalRoute(), GNERouteFrame::drawTemporalRoute(), GNEViewNetHelper::TestingMode::drawTestingElements(), GUIVisualizationSettings::forceDrawForSelecting, getDottedAC(), GNEPersonFrame::getEdgePathCreator(), GNEVehicleFrame::getEdgePathCreator(), GNEViewNetHelper::DemandViewOptions::getLockedPerson(), GNEViewParent::getPersonFrame(), GNEPersonPlanFrame::getPersonPlanCreator(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getRouteFrame(), GNEAttributeCarrier::getTagProperty(), GNEViewParent::getVehicleFrame(), GNE_DMODE_INSPECT, GNE_SUPERMODE_DEMAND, GNEAttributeCarrier::TagProperties::isPerson(), GNEAttributeCarrier::TagProperties::isPersonPlan(), GNEAttributeCarrier::TagProperties::isPersonStop(), GUISUMOAbstractView::m2p(), GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson, GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans, GNEViewNetHelper::NetworkViewOptions::menuCheckShowConnections, GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, GUISUMOAbstractView::myApp, myCommonViewOptions, myDemandViewOptions, myEditModes, GUISUMOAbstractView::myGrid, myNetworkViewOptions, mySelectingArea, myTestingMode, GUISUMOAbstractView::myUseToolTips, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), GUIVisualizationSettings::scale, SUMORTree::Search(), GUIVisualizationColorSettings::selectionColor, GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showLane2Lane, SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
protectedinherited |
Draws the stored decals.
Definition at line 1497 of file GUISUMOAbstractView.cpp.
References GUITexturesHelper::add(), GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::checkGDALImage(), GUITexturesHelper::drawTexturedBox(), GUISUMOAbstractView::Decal::filename, GUITexturesHelper::getMaxTextureSize(), GUISUMOAbstractView::Decal::glID, GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::image, GUISUMOAbstractView::Decal::initialised, GUISUMOAbstractView::Decal::layer, MFXImageHelper::loadImage(), GUISUMOAbstractView::myDecals, GUISUMOAbstractView::myDecalsLock, GUISUMOAbstractView::p2m(), GUISUMOAbstractView::Decal::rot, MFXImageHelper::scalePower2(), GUISUMOAbstractView::screenPos2NetPos(), GUISUMOAbstractView::Decal::screenRelative, GUISUMOAbstractView::Decal::skip2D, GUISUMOAbstractView::Decal::width, WRITE_ERROR, Position::x(), and Position::y().
Referenced by GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::GUISUMOAbstractView(), and GUISUMOAbstractView::makeSnapshot().
|
protectedinherited |
Draws frames-per-second indicator.
Definition at line 731 of file GUISUMOAbstractView.cpp.
References GLHelper::drawText(), FONS_ALIGN_LEFT, GUISUMOAbstractView::getFPS(), RGBColor::RED, and toString().
Referenced by GUISUMOAbstractView::paintGL(), and GUISUMOAbstractView::retrieveBreakpoints().
|
private |
draw functions
draw connections between lane candidates during selecting lane mode in Additional mode
Definition at line 2912 of file GNEViewNet.cpp.
References RGBColor::CYAN, Position::distanceTo2D(), GLHelper::drawBoxLines(), GLHelper::drawFilledCircle(), GLHelper::drawText(), GNEViewParent::getAdditionalFrame(), GUIVisualizationSettings::getCircleResolution(), NBEdge::getConnection(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNELane::getIndex(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEAdditionalFrame::SelectorLaneParents::getSelectedLaneColor(), GNEAdditionalFrame::SelectorLaneParents::getSelectedLanes(), GLO_JUNCTION, GNEAdditionalFrame::SelectorLaneParents::isSelectingLanes(), M_PI, myViewParent, GUISUMOAbstractView::myVisualizationSettings, RGBColor::RED, GLHelper::setColor(), Position::x(), and Position::y().
Referenced by doPaintGL().
|
private |
draw temporal polygon shape in Polygon Mode
Definition at line 2986 of file GNEViewNet.cpp.
References RGBColor::BLUE, GLHelper::drawLine(), GNEFrameModuls::DrawingShape::getDeleteLastCreatedPoint(), GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GUISUMOAbstractView::getPositionInformation(), GNEViewParent::getTAZFrame(), GNEFrameModuls::DrawingShape::getTemporalShape(), GLO_MAX, RGBColor::GREEN, GNEFrameModuls::DrawingShape::isDrawing(), myViewParent, RGBColor::RED, GLHelper::setColor(), and GUISUMOAbstractView::snapToActiveGrid().
Referenced by doPaintGL().
|
inlinevirtualinherited |
Ends a video snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 190 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::checkSnapshots(), GUISUMOAbstractView::getCurrentTimeStep(), GUISUMOAbstractView::getViewportEditor(), GUISUMOAbstractView::getVisualisationSettings(), GUISUMOAbstractView::setColorScheme(), GUISUMOAbstractView::showToolTips(), GUISUMOAbstractView::showViewportEditor(), GUISUMOAbstractView::showViewschemeEditor(), and GUISUMOAbstractView::waitForSnapshots().
Referenced by GUISUMOViewParent::onCmdMakeSnapshot().
|
private |
try to retrieve a additional at popup position
Definition at line 1060 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObjectStorage::gIDStorage, GUISUMOAbstractView::makeCurrent(), and GUIGlObjectStorage::unblockObject().
Referenced by onCmdOpenAdditionalDialog().
std::set< std::pair< std::string, GNEAttributeCarrier * > > GNEViewNet::getAttributeCarriersInBoundary | ( | const Boundary & | boundary, |
bool | forceSelectEdges = false |
||
) |
get AttributeCarriers in Boundary
Definition at line 299 of file GNEViewNet.cpp.
References GNEAttributeCarrier::getID(), GNESelectorFrame::getLockGLObjectTypes(), GUISUMOAbstractView::getObjectsInBoundary(), GNEViewParent::getSelectorFrame(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GUIGlObject::getType(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GUISUMOAbstractView::makeCurrent(), myNet, myNetworkViewOptions, myViewParent, GNENet::retrieveAttributeCarrier(), GNEViewNetHelper::NetworkViewOptions::selectEdges(), and SUMO_TAG_LANE.
Referenced by GNEViewNetHelper::SelectingArea::processBoundarySelection(), GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection(), and GNETAZFrame::shapeDrawed().
|
inherited |
get changer
Definition at line 173 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger.
Referenced by GUISettingsHandler::applyViewport(), GUISUMOAbstractView::buildViewToolBars(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdLoad(), GUIApplicationWindow::onCmdNetedit(), GNEApplicationWindow::onCmdOpenSUMOGUI(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_GUI::processSet(), and GUIDialog_EditViewport::setValues().
|
inherited |
get coloring schemes combo
Definition at line 1412 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getColoringSchemesCombo(), and GUISUMOAbstractView::myParent.
Referenced by GUISettingsHandler::addSettings(), GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::onCmdSaveSetting().
const GNEViewNetHelper::CommonViewOptions & GNEViewNet::getCommonViewOptions | ( | ) | const |
get Common view options
Definition at line 405 of file GNEViewNet.cpp.
References myCommonViewOptions.
Referenced by GNEApplicationWindow::onCmdToogleEditOptions(), and GNEApplicationWindow::onCmdToogleGrid().
|
private |
try to retrieve a connection at popup position
Definition at line 978 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_CONNECTION, GUISUMOAbstractView::makeCurrent(), and GUIGlObjectStorage::unblockObject().
Referenced by onCmdEditConnectionShape().
|
private |
try to retrieve a crossing at popup position
Definition at line 999 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_CROSSING, GUISUMOAbstractView::makeCurrent(), and GUIGlObjectStorage::unblockObject().
Referenced by onCmdEditCrossingShape().
|
virtualinherited |
get the current simulation time
Reimplemented in GUIViewTraffic.
Definition at line 1277 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::endSnapshot().
|
inherited |
Returns the delay of the parent application.
Definition at line 1617 of file GUISUMOAbstractView.cpp.
References GUIMainWindow::getDelay(), and GUISUMOAbstractView::myApp.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting().
const GNEViewNetHelper::DemandViewOptions & GNEViewNet::getDemandViewOptions | ( | ) | const |
get demand view options
Definition at line 417 of file GNEViewNet.cpp.
References myDemandViewOptions.
Referenced by GNEJunction::drawGL(), GNEStop::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GNEEdge::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEEdge::drawPartialPersonPlan(), and GNEApplicationWindow::onCmdToogleEditOptions().
const GNEAttributeCarrier * GNEViewNet::getDottedAC | ( | ) | const |
get AttributeCarrier under cursor
Definition at line 939 of file GNEViewNet.cpp.
References myDottedAC.
Referenced by doPaintGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEVariableSpeedSign::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GNEDetectorE1Instant::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNECalibrator::drawGL(), GNETAZ::drawGL(), GNEDetectorE2::drawGL(), GNEConnection::drawGL(), GNEStop::drawGL(), GNELane::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GNEEdge::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GNEPerson::getHierarchyName(), GNEVehicle::getHierarchyName(), onCmdToogleLockPerson(), GNELane::setLaneColor(), and GNEViewNetHelper::DemandViewOptions::showNonInspectedDemandElements().
|
private |
try to retrieve an edge at popup position
Definition at line 1019 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_EDGE, GLO_LANE, GUISUMOAbstractView::makeCurrent(), and GUIGlObjectStorage::unblockObject().
Referenced by onCmdAddReversedEdge(), onCmdEditEdgeEndpoint(), onCmdResetEdgeEndpoint(), onCmdReverseEdge(), onCmdSmoothEdges(), onCmdSmoothEdgesElevation(), onCmdSplitEdge(), onCmdSplitEdgeBidi(), onCmdStraightenEdges(), and onCmdStraightenEdgesElevation().
|
inlinevirtualinherited |
return list of loaded edgeData attributes
Reimplemented in GUIViewTraffic.
Definition at line 227 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
|
inlinevirtualinherited |
return list of available edge parameters
Reimplemented in GUIViewTraffic.
Definition at line 232 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GUISUMOAbstractView::getPopupPosition(), GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::isAdditionalGLVisualisationEnabled(), GUISUMOAbstractView::onGamingClick(), GUISUMOAbstractView::onGamingRightClick(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GUISUMOAbstractView::startTrack(), and GUISUMOAbstractView::stopTrack().
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
const GNEViewNetHelper::EditModes & GNEViewNet::getEditModes | ( | ) | const |
get edit modes
Definition at line 399 of file GNEViewNet.cpp.
References myEditModes.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNESelectorFrame::clearCurrentSelection(), GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu(), GNEEdge::drawGeometryPoints(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNETAZ::drawGL(), GNEConnection::drawGL(), GNEPoly::drawGL(), GNEEdge::drawGL(), GNENetElement::drawUsingSelectColor(), GNEShape::drawUsingSelectColor(), GNEAdditional::drawUsingSelectColor(), GNEDemandElement::drawUsingSelectColor(), GNEJunction::getColorValue(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNENet::getSelectedAttributeCarriers(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEApplicationWindow::onCmdProcessButton(), GNESelectorFrame::ElementSet::onCmdSelectElementSet(), GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow(), GNESelectorFrame::ElementSet::refreshElementSet(), GNEFrameAttributesModuls::GenericParametersEditor::refreshGenericParametersEditor(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEInspectorFrame::GEOAttributesEditor::showGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEInspectorFrame::TemplateEditor::showTemplateEditor(), GNESelectorFrame::LockGLObjectTypes::showTypeEntries(), and GNELane::updateGeometry().
const GNEViewNetHelper::EditShapes & GNEViewNet::getEditShapes | ( | ) | const |
get Edit Shape modul
Definition at line 429 of file GNEViewNet.cpp.
References myEditShapes.
Referenced by GNEPoly::commitShapeChange().
|
inherited |
retrieve FPS
Definition at line 726 of file GUISUMOAbstractView.cpp.
References MAX2(), and GUISUMOAbstractView::myFrameDrawTime.
Referenced by GUISUMOAbstractView::drawFPS(), GUINet::getParameterWindow(), and GUISUMOAbstractView::retrieveBreakpoints().
|
inherited |
get grid Height
Definition at line 1381 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), and GUISUMOAbstractView::myGrid.
Referenced by GUISUMOAbstractView::checkGDALImage(), GUISUMOAbstractView::getEdgeLaneParamKeys(), and GUIDialog_ViewSettings::onCmdEditTable().
|
inherited |
get grid width
Definition at line 1375 of file GUISUMOAbstractView.cpp.
References Boundary::getWidth(), and GUISUMOAbstractView::myGrid.
Referenced by GUISUMOAbstractView::checkGDALImage(), GUISUMOAbstractView::getEdgeLaneParamKeys(), and GUIDialog_ViewSettings::onCmdEditTable().
|
protectedinherited |
returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT
Definition at line 430 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), and GUISUMOAbstractView::retrieveBreakpoints().
|
protectedinherited |
returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects)
Definition at line 340 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.
Referenced by onLeftBtnPress(), processLeftButtonReleaseNetwork(), and GUISUMOAbstractView::retrieveBreakpoints().
|
private |
try to retrieve a junction at popup position
Definition at line 957 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_JUNCTION, GUISUMOAbstractView::makeCurrent(), and GUIGlObjectStorage::unblockObject().
Referenced by onCmdClearConnections(), onCmdEditJunctionShape(), onCmdReplaceJunction(), onCmdResetConnections(), onCmdResetJunctionShape(), onCmdSplitJunction(), and onCmdSplitJunctionReconnect().
const GNEViewNetHelper::KeyPressed & GNEViewNet::getKeyPressed | ( | ) | const |
get Key Pressed modul
Definition at line 423 of file GNEViewNet.cpp.
References myKeyPressed.
Referenced by GNEConnectorFrame::handleLaneClick(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::processDemandSupermodeClick(), and GNEInspectorFrame::processNetworkSupermodeClick().
|
private |
try to retrieve a lane at popup position
Definition at line 1043 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_LANE, GUISUMOAbstractView::makeCurrent(), and GUIGlObjectStorage::unblockObject().
Referenced by addRestrictedLane(), onCmdDuplicateLane(), onCmdResetLaneCustomShape(), removeRestrictedLane(), and restrictLane().
GNENet * GNEViewNet::getNet | ( | ) | const |
get the net object
Definition at line 927 of file GNEViewNet.cpp.
References myNet.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNERouteHandler::addPersonTrip(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNERouteHandler::addRide(), GNERouteHandler::addStop(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEVehicleFrame::addVehicle(), GNERouteHandler::addWalk(), GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNETLSEditorFrame::buildIinternalLanes(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonTripBusStop(), GNERouteHandler::buildPersonTripFromTo(), GNEAdditionalHandler::buildRerouter(), GNERouteHandler::buildRideBusStop(), GNERouteHandler::buildRideFromTo(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTrip(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNERouteHandler::buildWalkBusStop(), GNERouteHandler::buildWalkEdges(), GNERouteHandler::buildWalkFromTo(), GNERouteHandler::buildWalkRoute(), GNEAdditional::changeAdditionalID(), GNEHierarchicalElementParents::changeAdditionalParent(), GNEDemandElement::changeDemandElementID(), GNEHierarchicalElementParents::changeDemandElementParent(), GNEHierarchicalElementChildren::changeEdgeChildren(), GNEHierarchicalElementParents::changeEdgeParents(), GNEHierarchicalElementChildren::changeLaneChildren(), GNEHierarchicalElementParents::changeLaneParents(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNERouteHandler::closePerson(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNETAZ::commitGeometryMoving(), GNEDetectorE3::commitGeometryMoving(), GNEParkingSpace::commitGeometryMoving(), GNEVariableSpeedSign::commitGeometryMoving(), GNEAccess::commitGeometryMoving(), GNERerouter::commitGeometryMoving(), GNEDetectorE1::commitGeometryMoving(), GNEDetectorEntryExit::commitGeometryMoving(), GNEDetectorE1Instant::commitGeometryMoving(), GNEStop::commitGeometryMoving(), GNEStoppingPlace::commitGeometryMoving(), GNEDetectorE2::commitGeometryMoving(), GNERide::commitGeometryMoving(), GNEPersonTrip::commitGeometryMoving(), GNEWalk::commitGeometryMoving(), GNETAZ::commitShapeChange(), GNEVehicle::compute(), GNETAZ::deleteGeometryPoint(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNEStop::enableAttribute(), GNEPerson::enableAttribute(), GNEVehicle::enableAttribute(), GNEAdditional::endGeometryMoving(), GNEAdditional::generateChildID(), GNEDemandElement::generateChildID(), GNEAdditionalFrame::generateID(), GNEAdditionalFrame::SelectorEdgeChildren::getEdgeIdsSelected(), GNEPerson::getHierarchyName(), GNEVehicle::getHierarchyName(), GNEAdditionalFrame::SelectorLaneChildren::getLaneIdsSelected(), GNEAdditionalHandler::getLanePos(), GNESelectorFrame::getMatches(), GNEDetectorE3::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNEVehicleType::getParentName(), GNETAZ::getParentName(), GNERide::getParentName(), GNEPersonTrip::getParentName(), GNEWalk::getParentName(), GNERoute::getParentName(), GNEPerson::getParentName(), GNEAdditional::getPopUpMenu(), GNEVehicle::getPopUpMenu(), GNEStopFrame::getStopParameter(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNESelectorFrame::handleIDs(), GNETLSEditorFrame::handleMultiChange(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNERouteHandler::isPersonIdDuplicated(), GNEBusStop::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEClosingReroute::isValid(), GNEClosingLaneReroute::isValid(), GNEDestProbReroute::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEDetectorE1::isValid(), GNECalibratorFlow::isValid(), GNEDetectorEntryExit::isValid(), GNEVariableSpeedSign::isValid(), GNERerouter::isValid(), GNEAccess::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNEDetectorE2::isValid(), GNEVehicleType::isValid(), GNEStop::isValid(), GNERide::isValid(), GNEPersonTrip::isValid(), GNEWalk::isValid(), GNERoute::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), GNEAdditional::isValidAdditionalID(), GNEDemandElement::isValidDemandElementID(), GNEAdditional::isValidDetectorID(), GNERouteHandler::isVehicleIdDuplicated(), GNEDialog_FixDemandElements::onCmdAccept(), GNEDialog_FixAdditionalElements::onCmdAccept(), GNECalibratorDialog::onCmdAddFlow(), GNECalibratorDialog::onCmdAddVehicleType(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEPersonTypeFrame::PersonTypeEditor::onCmdCopyPersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdCopyVehicleType(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEPersonTypeFrame::PersonTypeEditor::onCmdCreatePersonType(), GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdCreateVehicleType(), GNETLSEditorFrame::onCmdDefSwitch(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem(), GNEPersonTypeFrame::PersonTypeEditor::onCmdDeletePersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdDeleteVehicleType(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEViewParent::onCmdLocate(), GNETLSEditorFrame::onCmdOK(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEFrameModuls::DemandElementSelector::onCmdSelectDemandElement(), GNEPersonTypeFrame::PersonTypeSelector::onCmdSelectItem(), GNEVehicleTypeFrame::VehicleTypeSelector::onCmdSelectItem(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), onCmdToogleShowConnections(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildParkingSpace(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep(), GNETLSEditorFrame::parseTLSPrograms(), GNEViewNetHelper::SelectingArea::processBoundarySelection(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEFrameModuls::DemandElementSelector::refreshDemandElementSelector(), GNEPersonTypeFrame::PersonTypeSelector::refreshPersonTypeSelector(), GNEFrameModuls::SelectorParent::refreshSelectorParentModul(), GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelector(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), GNEChargingStation::setAttribute(), GNEContainerStop::setAttribute(), GNEBusStop::setAttribute(), GNEParkingArea::setAttribute(), GNEVaporizer::setAttribute(), GNERouteProbe::setAttribute(), GNEClosingReroute::setAttribute(), GNEDetectorE3::setAttribute(), GNERouteProbReroute::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNECalibratorFlow::setAttribute(), GNERerouterInterval::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEAccess::setAttribute(), GNERerouter::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNECalibrator::setAttribute(), GNETAZ::setAttribute(), GNEDetectorE2::setAttribute(), GNEVehicleType::setAttribute(), GNEStop::setAttribute(), GNERide::setAttribute(), GNEPersonTrip::setAttribute(), GNEWalk::setAttribute(), GNERoute::setAttribute(), GNEPerson::setAttribute(), GNEVehicle::setAttribute(), GNEVehicle::setColor(), GNERouteHandler::RouteParameter::setEdges(), GNETAZFrame::TAZCurrent::setTAZ(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEStopFrame::show(), GNEDeleteFrame::show(), GNEPersonPlanFrame::show(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorEdgeChildren::showSelectorEdgeChildrenModul(), GNEAdditionalFrame::SelectorLaneChildren::showSelectorLaneChildrenModul(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToVehicle(), GNECalibratorDialog::updateFlowAndLabelButton(), GNEParkingArea::updateGeometry(), GNECalibratorDialog::updateRouteTable(), GNEAdditionalFrame::SelectorEdgeChildren::updateUseSelectedEdges(), GNEAdditionalFrame::SelectorLaneChildren::updateUseSelectedLanes(), and GNECalibratorDialog::updateVehicleTypeTable().
const GNEViewNetHelper::NetworkViewOptions & GNEViewNet::getNetworkViewOptions | ( | ) | const |
get network view options
Definition at line 411 of file GNEViewNet.cpp.
References myNetworkViewOptions.
Referenced by GNEEdge::drawGeometryPoints(), GNEJunction::drawGL(), GNEDetectorE2::drawGL(), GNEConnection::drawGL(), GNEStop::drawGL(), GNEPoly::drawGL(), GNEEdge::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEInspectorFrame::OverlappedInspection::inspectOverlappedAttributeCarrier(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNEApplicationWindow::onCmdToogleEditOptions(), and GNEInspectorFrame::processNetworkSupermodeClick().
returns the id of the object at position using GL_SELECT
Definition at line 346 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_LANE, GLO_NETWORK, GLO_POI, GLO_POLYGON, Boundary::grow(), GUISUMOAbstractView::SENSITIVITY, GUIGlObjectStorage::unblockObject(), and GUIVisualizationSettings::UseMesoSim.
Referenced by getAdditionalAtPopupPosition(), getConnectionAtPopupPosition(), getCrossingAtPopupPosition(), getEdgeAtPopupPosition(), getJunctionAtPopupPosition(), getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectUnderCursor(), getPOIAtPopupPosition(), getPolygonAtPopupPosition(), onCmdAddSelected(), onCmdRemoveSelected(), and GUISUMOAbstractView::retrieveBreakpoints().
|
protectedinherited |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT
Definition at line 395 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_NETWORK, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by GUISUMOAbstractView::getObjectstUnderCursor(), and GUISUMOAbstractView::retrieveBreakpoints().
|
protectedinherited |
returns the ids of all objects in the given boundary
Definition at line 460 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::doPaintGL(), GUIVisualizationSettings::drawForSelecting, GUIPerspectiveChanger::getViewport(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::scale, GUIMainWindow::setStatusBarText(), GUIPerspectiveChanger::setViewport(), SUMO_const_laneWidth, and toString().
Referenced by getAttributeCarriersInBoundary(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), mergeJunctions(), onCmdTransformPOI(), and GUISUMOAbstractView::retrieveBreakpoints().
|
protectedinherited |
returns the id of the objects under the cursor using GL_SELECT (including overlapped objects)
Definition at line 333 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.
Referenced by GUISUMOAbstractView::retrieveBreakpoints().
|
protectedinherited |
returns the id of the front object under the cursor using GL_SELECT
Definition at line 327 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), and GUISUMOAbstractView::getPositionInformation().
Referenced by GUIViewTraffic::getLaneUnderCursor(), GUISUMOAbstractView::onLeftBtnPress(), openObjectDialog(), GUISUMOAbstractView::openObjectDialog(), GUISUMOAbstractView::paintGL(), and GUISUMOAbstractView::retrieveBreakpoints().
|
private |
try to retrieve a POILane at popup position
Definition at line 1088 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObjectStorage::gIDStorage, GUISUMOAbstractView::makeCurrent(), and GUIGlObjectStorage::unblockObject().
Referenced by onCmdTransformPOI().
|
private |
try to retrieve a polygon at popup position
Definition at line 1074 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObjectStorage::gIDStorage, GUISUMOAbstractView::makeCurrent(), and GUIGlObjectStorage::unblockObject().
Referenced by onCmdClosePolygon(), onCmdDeleteGeometryPoint(), onCmdOpenPolygon(), onCmdSetFirstGeometryPoint(), and onCmdSimplifyShape().
|
inherited |
get position of current popup
Definition at line 859 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myPopupPosition.
Referenced by getAdditionalAtPopupPosition(), getConnectionAtPopupPosition(), getCrossingAtPopupPosition(), getEdgeAtPopupPosition(), GUISUMOAbstractView::getEdgeLaneParamKeys(), getJunctionAtPopupPosition(), getLaneAtPopupPosition(), getPOIAtPopupPosition(), getPolygonAtPopupPosition(), onCmdAddSelected(), onCmdDeleteGeometryPoint(), onCmdEditEdgeEndpoint(), onCmdRemoveSelected(), onCmdResetEdgeEndpoint(), onCmdSetFirstGeometryPoint(), onCmdSplitEdge(), and onCmdSplitEdgeBidi().
|
inherited |
Returns the cursor's x/y position within the network.
Definition at line 188 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myWindowCursorPositionX, GUISUMOAbstractView::myWindowCursorPositionY, and GUISUMOAbstractView::screenPos2NetPos().
Referenced by GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), GNEViewNetHelper::SelectingArea::beginRectangleSelection(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues(), GNEViewNetHelper::MoveSingleElementValues::calculatePolyValues(), GNEViewNetHelper::MoveSingleElementValues::calculateTAZValues(), GNEEdge::drawGeometryPoints(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEJunction::drawGL(), GNETAZ::drawGL(), GNEPoly::drawGL(), GNEVehicle::drawGL(), GNEEdge::drawPartialPersonPlan(), drawTemporalDrawShape(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues(), GUISUMOAbstractView::getObjectstUnderCursor(), GUISUMOAbstractView::getObjectUnderCursor(), GUIEdge::getParameterWindow(), GUIEdge::getPopUpMenu(), GNELane::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEViewNetHelper::SelectingArea::moveRectangleSelection(), GNEViewNetHelper::MoveMultipleElementValues::moveSelection(), GNEViewNetHelper::MoveSingleElementValues::moveSingleElement(), GUIDanielPerspectiveChanger::onKeyPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), openObjectDialog(), GUISUMOAbstractView::openObjectDialog(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), GNEDeleteFrame::removeAttributeCarrier(), GUISUMOAbstractView::showToolTipFor(), and GUISUMOAbstractView::updatePositionInformation().
|
virtualinherited |
get tracked id
Reimplemented in GUIViewTraffic.
Definition at line 1397 of file GUISUMOAbstractView.cpp.
References GUIGlObject::INVALID_ID.
Referenced by GUISUMOAbstractView::getEdgeLaneParamKeys(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processGet(), and TraCIServerAPI_GUI::processSet().
GNEUndoList * GNEViewNet::getUndoList | ( | ) | const |
get the undoList object
Definition at line 933 of file GNEViewNet.cpp.
References myUndoList.
Referenced by GNEAdditionalDialog::acceptChanges(), GNEDemandElementDialog::acceptChanges(), GNETAZFrame::addOrRemoveTAZMember(), GNEPolygonFrame::addPOI(), GNENet::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNENet::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::builDestProbReroute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonFlow(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNERouteHandler::buildPersonTripBusStop(), GNERouteHandler::buildPersonTripFromTo(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRideBusStop(), GNERouteHandler::buildRideFromTo(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTrip(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNERouteHandler::buildWalkBusStop(), GNERouteHandler::buildWalkEdges(), GNERouteHandler::buildWalkFromTo(), GNERouteHandler::buildWalkRoute(), GNEAdditionalHandler::builParkingAreaReroute(), GNEAdditionalDialog::cancelChanges(), GNEDemandElementDialog::cancelChanges(), GNEPoly::changeFirstGeometryPoint(), GNESelectorFrame::clearCurrentSelection(), GNERouteHandler::closePerson(), GNEPoly::closePolygon(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNENet::computeAndUpdate(), GNETAZ::deleteGeometryPoint(), GNEEdge::deleteGeometryPoint(), GNEPoly::deleteGeometryPoint(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement(), GNEDetectorE1Instant::fixAdditionalProblem(), GNEDetectorE1::fixAdditionalProblem(), GNEDetectorEntryExit::fixAdditionalProblem(), GNEStoppingPlace::fixAdditionalProblem(), GNEDetectorE2::fixAdditionalProblem(), GNEVehicleTypeDialog::GNEVehicleTypeDialog(), GNESelectorFrame::handleIDs(), GNEAdditionalDialog::initChanges(), GNEDemandElementDialog::initChanges(), GNEAdditionalHandler::myEndElement(), GNEDialog_FixDemandElements::onCmdAccept(), GNEDialog_FixAdditionalElements::onCmdAccept(), GNEDialog_AllowDisallow::onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdAddStep(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNETLSEditorFrame::onCmdCancel(), GNETAZFrame::TAZSaveChanges::onCmdCancelChanges(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNERerouterIntervalDialog::onCmdChangeBeginEnd(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute(), GNERerouterIntervalDialog::onCmdClickedClosingReroute(), GNERerouterIntervalDialog::onCmdClickedDestProbReroute(), GNECalibratorDialog::onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEPersonTypeFrame::PersonTypeEditor::onCmdCopyPersonType(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdCopyVehicleType(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNEPersonTypeFrame::PersonTypeEditor::onCmdCreatePersonType(), GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdCreateVehicleType(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem(), GNEPersonTypeFrame::PersonTypeEditor::onCmdDeletePersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdDeleteVehicleType(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNEFrameAttributesModuls::GenericParametersEditor::onCmdEditGenericParameter(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemDown(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemUp(), GNETLSEditorFrame::onCmdOK(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNEApplicationWindow::onCmdRedo(), GNEPersonTypeFrame::PersonTypeEditor::onCmdResetPersonType(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdResetVehicleType(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton(), GNEVehicleTypeDialog::VTypeAtributes::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues(), GNERouteDialog::onCmdSetVariable(), GNECalibratorFlowDialog::onCmdSetVariable(), GNEVehicleTypeDialog::CarFollowingModelParameters::onCmdSetVariable(), GNEApplicationWindow::onCmdUndo(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openImageFileDialog(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog(), GNEPoly::openPolygon(), GNETLSEditorFrame::parseTLSPrograms(), GNECreateEdgeFrame::processClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDemandElementDialog::resetChanges(), GNEAdditionalDialog::resetChanges(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVariable(), GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::setVariable(), GNEPoly::simplifyShape(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), and GNERouteHandler::transformToVehicle().
GNEViewParent * GNEViewNet::getViewParent | ( | ) | const |
get the net object
Definition at line 921 of file GNEViewNet.cpp.
References myViewParent.
Referenced by GNEPersonPlanFrame::PersonPlanCreator::addEdge(), GNERouteFrame::ConsecutiveEdges::addEdge(), GNERouteFrame::NonConsecutiveEdges::addEdge(), GNEFrameModuls::EdgePathCreator::addEdge(), GNEViewNetHelper::EditModes::buildSuperModeButtons(), GNEFrameModuls::EdgePathCreator::clearEdges(), GNENet::computeAndUpdate(), GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu(), GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNETAZ::drawGL(), GNELane::getPopUpMenu(), GNEFrame::hide(), GNEApplicationWindow::onCmdAbort(), GNEPersonPlanFrame::PersonPlanCreator::onCmdAbortPersonPlanCreation(), GNERouteFrame::ConsecutiveEdges::onCmdAbortRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdAbortRoute(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem(), GNEPersonPlanFrame::PersonPlanCreator::onCmdFinishPersonPlanCreation(), GNEInspectorFrame::onCmdGoBack(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdInspectItem(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNEApplicationWindow::onCmdRedo(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNEApplicationWindow::onCmdUndo(), GNELane::onDefault(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEChange_DemandElement::redo(), GNENet::removePolygonForEditShapes(), GNENet::removeShape(), GNENet::requiereSaveAdditionals(), GNENet::requiereSaveDemandElements(), GNENet::requiereSaveTLSPrograms(), GNENet::saveDemandElements(), GNEVehicleType::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNEShape::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEFrame::show(), GNEChange_DemandElement::undo(), GNEVehicleType::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNEShape::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), and GNEVehicle::unselectAttributeCarrier().
|
inherited |
get the viewport and create it on first access
Definition at line 1298 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), MAX2(), MIN2(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myViewportChooser, and GUIDialog_EditViewport::setValues().
Referenced by GUISUMOAbstractView::endSnapshot(), GUIDialog_ViewSettings::onCmdExportSetting(), and GUISUMOAbstractView::showViewportEditor().
|
inherited |
get visible boundary
Definition at line 266 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), and GUISUMOAbstractView::myChanger.
Referenced by GUISUMOAbstractView::buildViewToolBars(), and TraCIServerAPI_GUI::processGet().
|
inherited |
get visualitation settings
Definition at line 1357 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myVisualizationSettings.
Referenced by GNEViewNetHelper::NetworkViewOptions::buildNetworkViewOptionsMenuChecks(), GNEProhibitionFrame::buildProhibition(), GNEEdge::commitShapeChange(), GUISUMOAbstractView::endSnapshot(), GNEStop::getColor(), GUIApplicationWindow::onCmdEditChosen(), TraCIServerAPI_GUI::processGet(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEViewNetHelper::NetworkViewOptions::showConnections(), and GNEViewNetHelper::EditShapes::startEditCustomShape().
|
inherited |
get visualisation settings
Definition at line 234 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myVisualizationSettings.
|
inherited |
Returns the information whether rotation is allowd.
Definition at line 808 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.
Referenced by GUISUMOAbstractView::buildViewToolBars(), and GNEViewNetHelper::TestingMode::drawTestingElements().
void GNEViewNet::hotkeyBackSpace | ( | ) |
handle backspace keypress
Definition at line 893 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditModes::demandEditMode, GNEPersonFrame::getEdgePathCreator(), GNEVehicleFrame::getEdgePathCreator(), GNEViewParent::getPersonFrame(), GNEPersonPlanFrame::getPersonPlanCreator(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getRouteFrame(), GNEViewParent::getVehicleFrame(), GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_ROUTE, GNE_DMODE_VEHICLE, GNE_SUPERMODE_DEMAND, GNERouteFrame::hotkeyBackSpace(), myEditModes, myViewParent, GNEPersonPlanFrame::PersonPlanCreator::removeLastAddedElement(), and GNEFrameModuls::EdgePathCreator::removeLastInsertedElement().
Referenced by GNEApplicationWindow::onCmdBackspace().
void GNEViewNet::hotkeyDel | ( | ) |
handle del keypress
Definition at line 812 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, deleteSelectedAdditionals(), deleteSelectedConnections(), deleteSelectedCrossings(), deleteSelectedDemandElements(), deleteSelectedEdges(), deleteSelectedJunctions(), deleteSelectedLanes(), deleteSelectedShapes(), GNE_NMODE_CONNECT, GNE_NMODE_TLS, GNE_SUPERMODE_NETWORK, myEditModes, myUndoList, GNEViewNetHelper::EditModes::networkEditMode, GNEUndoList::p_begin(), GNEUndoList::p_end(), setStatusBarText(), and update().
Referenced by GNEApplicationWindow::onCmdDel().
void GNEViewNet::hotkeyEnter | ( | ) |
handle enter keypress
Definition at line 839 of file GNEViewNet.cpp.
References GNECrossingFrame::createCrossingHotkey(), GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditModes::demandEditMode, GNEViewNetHelper::EditShapes::editedShapePoly, GNEFrameModuls::EdgePathCreator::finishEdgePathCreation(), GNEPersonPlanFrame::PersonPlanCreator::finishPersonPlanCreation(), GNEViewParent::getAdditionalFrame(), GNEConnectorFrame::getConnectionModifications(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEViewParent::getCrossingFrame(), GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEPersonFrame::getEdgePathCreator(), GNEVehicleFrame::getEdgePathCreator(), GNEViewParent::getPersonFrame(), GNEPersonPlanFrame::getPersonPlanCreator(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getPolygonFrame(), GNEViewParent::getRouteFrame(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNETAZFrame::getTAZSaveChangesModul(), GNEViewParent::getTLSEditorFrame(), GNEViewParent::getVehicleFrame(), GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_ROUTE, GNE_DMODE_VEHICLE, GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CROSSING, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GNERouteFrame::hotkeyEnter(), GNETAZFrame::TAZSaveChanges::isChangesPending(), GNEFrameModuls::DrawingShape::isDrawing(), GNEAdditionalFrame::SelectorLaneParents::isSelectingLanes(), myEditModes, myEditShapes, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GNETLSEditorFrame::onCmdOK(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNEViewNetHelper::EditShapes::saveEditedShape(), GNEFrameModuls::DrawingShape::startDrawing(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), and GNEFrameModuls::DrawingShape::stopDrawing().
Referenced by GNEApplicationWindow::onCmdEnter().
void GNEViewNet::hotkeyFocusFrame | ( | ) |
handle focus frame keypress
Definition at line 910 of file GNEViewNet.cpp.
References GNEFrame::focusUpperElement(), and myCurrentFrame.
Referenced by GNEApplicationWindow::onCmdFocusFrame().
|
inherited |
Check if an object is added in the additional GL visualitation.
[in] | which | The object to check |
Definition at line 1573 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUISUMOAbstractView::getEdgeLaneParamKeys().
|
inherited |
returns true, if the edit button was pressed
Definition at line 167 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myInEditMode.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
inherited |
meter-to-pixels conversion method
Definition at line 751 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUISUMOAbstractView::displayLegend(), GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::getObjectsInBoundary(), and GUISUMOAbstractView::makeSnapshot().
|
inherited |
A reimplementation due to some internal reasons.
Definition at line 821 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars(), getAdditionalAtPopupPosition(), getAttributeCarriersInBoundary(), getConnectionAtPopupPosition(), getCrossingAtPopupPosition(), getEdgeAtPopupPosition(), getJunctionAtPopupPosition(), getLaneAtPopupPosition(), GUIViewTraffic::getLaneUnderCursor(), getPOIAtPopupPosition(), getPolygonAtPopupPosition(), GUISUMOAbstractView::makeSnapshot(), mergeJunctions(), onCmdAddSelected(), onCmdRemoveSelected(), GUISUMOAbstractView::onConfigure(), onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onPaint(), openObjectDialog(), GUISUMOAbstractView::openObjectDialog(), GNEViewNetHelper::SelectingArea::processBoundarySelection(), GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection(), and processLeftButtonReleaseNetwork().
|
inherited |
Takes a snapshots and writes it into the given file.
The format to use is determined from the extension. If compiled with ffmpeg and a video format is requested it will instantiate a video encoder.
[in] | destFile | The name of the file to write the snapshot into |
Definition at line 1069 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::displayColorLegend(), GUISUMOAbstractView::displayLegend(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::drawDecals(), GUIPerspectiveChanger::getViewport(), RGBColor::green(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, GUISUMOAbstractView::myUseToolTips, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), RGBColor::red(), GUISUMOAbstractView::saveFrame(), MFXImageHelper::saveImage(), GUIVisualizationSettings::scale, SUMORTree::Search(), GLHelper::setGL2PS(), GUIVisualizationSettings::showColorLegend, GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showSizeLegend, FXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUISUMOAbstractView::checkSnapshots(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().
|
private |
try to merge moved junction with another junction in that spot return true if merging did take place
Definition at line 2832 of file GNEViewNet.cpp.
References Boundary::add(), GNEJunction::endGeometryMoving(), GUIGlObject::getGlID(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), NBNode::getPosition(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_JUNCTION, Boundary::grow(), GUISUMOAbstractView::makeCurrent(), GNEViewNetHelper::NetworkViewOptions::menuCheckWarnAboutMerge, GNENet::mergeJunctions(), GNEJunction::moveGeometry(), myNet, myNetworkViewOptions, myUndoList, toString(), GUIGlObjectStorage::unblockObject(), and WRITE_DEBUG.
Referenced by GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement().
long GNEViewNet::onCmdAddReversedEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add reversed edge
Definition at line 1251 of file GNEViewNet.cpp.
References GNENet::addReversedEdge(), getEdgeAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), SUMO_TAG_EDGE, and toString().
long GNEViewNet::onCmdAddSelected | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
select AC under cursor
Definition at line 2300 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObjectStorage::gIDStorage, GNEAttributeCarrier::isAttributeCarrierSelected(), GUISUMOAbstractView::makeCurrent(), GNEAttributeCarrier::selectAttributeCarrier(), and GUIGlObjectStorage::unblockObject().
long GNEViewNet::onCmdClearConnections | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
clear junction connections
Definition at line 1996 of file GNEViewNet.cpp.
References GNENet::clearJunctionConnections(), GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveJunctions(), and update().
long GNEViewNet::onCmdClosePolygon | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
close opened polygon
Definition at line 1408 of file GNEViewNet.cpp.
References GNEPoly::closePolygon(), GNEViewNetHelper::EditShapes::editedShapePoly, getPolygonAtPopupPosition(), myEditShapes, and update().
long GNEViewNet::onCmdDeleteGeometryPoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
delete the closes geometry point
Definition at line 1393 of file GNEViewNet.cpp.
References GNEPoly::deleteGeometryPoint(), GNEViewNetHelper::EditShapes::editedShapePoly, getPolygonAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), myEditShapes, and update().
long GNEViewNet::onCmdDuplicateLane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
duplicate selected lane
Definition at line 1529 of file GNEViewNet.cpp.
References GNENet::duplicateLane(), getLaneAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveLanes(), SUMO_TAG_LANE, and toString().
long GNEViewNet::onCmdEditConnectionShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
edit connection shape
Definition at line 2044 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getConnectionAtPopupPosition(), GNENetElement::getGeometry(), myEditShapes, GNENetElement::NetElementGeometry::shape, and GNEViewNetHelper::EditShapes::startEditCustomShape().
long GNEViewNet::onCmdEditCrossingShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
edit crossing shape
Definition at line 2058 of file GNEViewNet.cpp.
References NBNode::Crossing::customShape, GUISUMOAbstractView::destroyPopup(), getCrossingAtPopupPosition(), GNECrossing::getNBCrossing(), myEditShapes, NBNode::Crossing::shape, and GNEViewNetHelper::EditShapes::startEditCustomShape().
long GNEViewNet::onCmdEditEdgeEndpoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
change geometry endpoint
Definition at line 1272 of file GNEViewNet.cpp.
References GNEEdge::editEndpoint(), getEdgeAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), and myUndoList.
long GNEViewNet::onCmdEditJunctionShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
edit junction shape
Definition at line 1903 of file GNEViewNet.cpp.
References PositionVector::closePolygon(), GNENet::computeAndUpdate(), NBNode::computeNodeShape(), GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), GNEJunction::getNBNode(), OptionsCont::getOptions(), NBNode::getShape(), myEditShapes, myNet, and GNEViewNetHelper::EditShapes::startEditCustomShape().
long GNEViewNet::onCmdLaneOperation | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
add/remove/restrict lane
Definition at line 1575 of file GNEViewNet.cpp.
References addRestrictedLane(), MID_GNE_LANE_ADD_BIKE, MID_GNE_LANE_ADD_BUS, MID_GNE_LANE_ADD_GREENVERGE, MID_GNE_LANE_ADD_SIDEWALK, MID_GNE_LANE_REMOVE_BIKE, MID_GNE_LANE_REMOVE_BUS, MID_GNE_LANE_REMOVE_GREENVERGE, MID_GNE_LANE_REMOVE_SIDEWALK, MID_GNE_LANE_TRANSFORM_BIKE, MID_GNE_LANE_TRANSFORM_BUS, MID_GNE_LANE_TRANSFORM_GREENVERGE, MID_GNE_LANE_TRANSFORM_SIDEWALK, removeRestrictedLane(), restrictLane(), SVC_BICYCLE, SVC_BUS, SVC_IGNORING, and SVC_PEDESTRIAN.
long GNEViewNet::onCmdOpenAdditionalDialog | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
open additional dialog
Definition at line 1610 of file GNEViewNet.cpp.
References getAdditionalAtPopupPosition(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::TagProperties::hasDialog(), and GNEAdditional::openAdditionalDialog().
long GNEViewNet::onCmdOpenPolygon | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
open closed polygon
Definition at line 1423 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditShapes::editedShapePoly, getPolygonAtPopupPosition(), myEditShapes, GNEPoly::openPolygon(), and update().
long GNEViewNet::onCmdRemoveSelected | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
unselect AC under cursor
Definition at line 2318 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPopupPosition(), GUIGlObjectStorage::gIDStorage, GNEAttributeCarrier::isAttributeCarrierSelected(), GUISUMOAbstractView::makeCurrent(), GUIGlObjectStorage::unblockObject(), and GNEAttributeCarrier::unselectAttributeCarrier().
long GNEViewNet::onCmdReplaceJunction | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
replace node by geometry
Definition at line 1954 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), myNet, myUndoList, GNENet::replaceJunctionByGeometry(), and update().
long GNEViewNet::onCmdResetConnections | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reset junction connections
Definition at line 2020 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::resetJunctionConnections(), GNENet::retrieveJunctions(), and update().
long GNEViewNet::onCmdResetEdgeEndpoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
change geometry endpoint
Definition at line 1283 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), myUndoList, and GNEEdge::resetEndpoint().
long GNEViewNet::onCmdResetJunctionShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reset junction shape
Definition at line 1928 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveJunctions(), GNEJunction::setAttribute(), and SUMO_ATTR_SHAPE.
long GNEViewNet::onCmdResetLaneCustomShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reset custom shapes of selected lanes
Definition at line 1552 of file GNEViewNet.cpp.
References getLaneAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveLanes(), GNELane::setAttribute(), and SUMO_ATTR_CUSTOMSHAPE.
long GNEViewNet::onCmdReverseEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reverse edge
Definition at line 1230 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), GNENet::reverseEdge(), SUMO_TAG_EDGE, and toString().
long GNEViewNet::onCmdSetFirstGeometryPoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
set as first geometry point the closes geometry point
Definition at line 1438 of file GNEViewNet.cpp.
References GNEPoly::changeFirstGeometryPoint(), GNEViewNetHelper::EditShapes::editedShapePoly, getPolygonAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), GNEPoly::getVertexIndex(), myEditShapes, and update().
long GNEViewNet::onCmdSetMode | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
called when user press a mode button (Network or demand)
Definition at line 1117 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, GNE_DMODE_DELETE, GNE_DMODE_INSPECT, GNE_DMODE_MOVE, GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_PERSONTYPES, GNE_DMODE_ROUTE, GNE_DMODE_SELECT, GNE_DMODE_STOP, GNE_DMODE_VEHICLE, GNE_DMODE_VEHICLETYPES, GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CREATE_EDGE, GNE_NMODE_CROSSING, GNE_NMODE_DELETE, GNE_NMODE_INSPECT, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_PROHIBITION, GNE_NMODE_SELECT, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNE_SUPERMODE_NETWORK, MID_HOTKEY_A_ADDITIONALMODE_STOPMODE, MID_HOTKEY_C_CONNECTMODE_PERSONPLANMODE, MID_HOTKEY_D_DELETEMODE, MID_HOTKEY_E_EDGEMODE, MID_HOTKEY_I_INSPECTMODE, MID_HOTKEY_M_MOVEMODE, MID_HOTKEY_P_POLYGONMODE_PERSONMODE, MID_HOTKEY_R_CROSSINGMODE_ROUTEMODE, MID_HOTKEY_S_SELECTMODE, MID_HOTKEY_T_TLSMODE_VTYPEMODE, MID_HOTKEY_V_VEHICLEMODE, MID_HOTKEY_W_PROHIBITIONMODE_PERSONTYPEMODE, MID_HOTKEY_Z_TAZMODE, myEditModes, GNEViewNetHelper::EditModes::setDemandEditMode(), and GNEViewNetHelper::EditModes::setNetworkEditMode().
Referenced by GNEApplicationWindow::onCmdSetMode().
long GNEViewNet::onCmdSetSupermode | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
Definition at line 1101 of file GNEViewNet.cpp.
References GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, MID_HOTKEY_F3_SUPERMODE_NETWORK, MID_HOTKEY_F4_SUPERMODE_DEMAND, myEditModes, and GNEViewNetHelper::EditModes::setSupermode().
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GNEApplicationWindow::onCmdSetSuperMode().
long GNEViewNet::onCmdSimplifyShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
simply shape of current polygon
Definition at line 1378 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditShapes::editedShapePoly, getPolygonAtPopupPosition(), myEditShapes, GNEPoly::simplifyShape(), and update().
long GNEViewNet::onCmdSmoothEdges | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
smooth geometry
Definition at line 1315 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), GNEEdge::smooth(), SUMO_TAG_EDGE, and toString().
long GNEViewNet::onCmdSmoothEdgesElevation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
smooth elevation with regard to adjoining edges
Definition at line 1357 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), GNEEdge::smoothElevation(), SUMO_TAG_EDGE, and toString().
long GNEViewNet::onCmdSplitEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
split edge at cursor position
Definition at line 1205 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), GNEEdge::getSplitPos(), myNet, myUndoList, and GNENet::splitEdge().
long GNEViewNet::onCmdSplitEdgeBidi | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
split edge at cursor position
Definition at line 1215 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GNEEdge::getOppositeEdge(), GUISUMOAbstractView::getPopupPosition(), GNEEdge::getSplitPos(), myNet, myUndoList, and GNENet::splitEdgesBidi().
long GNEViewNet::onCmdSplitJunction | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
split junction into multiple junctions
Definition at line 1968 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), myNet, myUndoList, GNENet::splitJunction(), and update().
long GNEViewNet::onCmdSplitJunctionReconnect | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
split junction into multiple junctions and reconnect them
Definition at line 1982 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), myNet, myUndoList, GNENet::splitJunction(), and update().
long GNEViewNet::onCmdStraightenEdges | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
makes selected edges straight
Definition at line 1293 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), GNEEdge::setAttribute(), SUMO_ATTR_SHAPE, SUMO_TAG_EDGE, and toString().
long GNEViewNet::onCmdStraightenEdgesElevation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
interpolate z values linear between junctions
Definition at line 1336 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), GNEEdge::straightenElevation(), SUMO_TAG_EDGE, and toString().
long GNEViewNet::onCmdToogleAutoOppositeEdge | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle autoOpposite edge
Definition at line 2218 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckAutoOppositeEdge, MID_GNE_NETWORKVIEWOPTIONS_AUTOOPPOSITEEDGES, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleChainEdges | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle chain edges
Definition at line 2206 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckChainEdges, MID_GNE_NETWORKVIEWOPTIONS_CHAINEDGES, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleChangeAllPhases | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle change all phases
Definition at line 2140 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckChangeAllPhases, MID_GNE_NETWORKVIEWOPTIONS_CHANGEALLPHASES, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleExtendSelection | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle extend selection
Definition at line 2128 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckExtendSelection, MID_GNE_NETWORKVIEWOPTIONS_EXTENDSELECTION, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleHideConnections | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle hide connections
Definition at line 2116 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckHideConnections, MID_GNE_NETWORKVIEWOPTIONS_HIDECONNECTIONS, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleHideNonInspecteDemandElements | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle hide non inspected demand elements
Definition at line 2230 of file GNEViewNet.cpp.
References GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements, MID_GNE_DEMANDVIEWOPTIONS_HIDENONINSPECTED, myDemandViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleHideShapes | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle hide shapes in super mode demand
Definition at line 2242 of file GNEViewNet.cpp.
References GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes, MID_GNE_DEMANDVIEWOPTIONS_HIDESHAPES, myDemandViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleLockPerson | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle lock person in super mode demand
Definition at line 2266 of file GNEViewNet.cpp.
References GNEHierarchicalElementParents::getDemandElementParents(), getDottedAC(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::TagProperties::isPerson(), GNEViewNetHelper::DemandViewOptions::lockPerson(), GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson, MID_GNE_DEMANDVIEWOPTIONS_LOCKPERSON, myDemandViewOptions, GNEViewNetHelper::DemandViewOptions::unlockPerson(), and update().
long GNEViewNet::onCmdToogleMoveElevation | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle move elevation
Definition at line 2194 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckMoveElevation, MID_GNE_NETWORKVIEWOPTIONS_MOVEELEVATION, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleSelectEdges | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle select edges
Definition at line 2086 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckSelectEdges, MID_GNE_NETWORKVIEWOPTIONS_SELECTEDGES, and myNetworkViewOptions.
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleShowAllPersonPlans | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle show all person plans in super mode demand
Definition at line 2254 of file GNEViewNet.cpp.
References GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans, MID_GNE_DEMANDVIEWOPTIONS_SHOWALLPERSONPLANS, myDemandViewOptions, and update().
long GNEViewNet::onCmdToogleShowConnections | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle show connections
Definition at line 2096 of file GNEViewNet.cpp.
References getNet(), GNENet::initGNEConnections(), GNEViewNetHelper::NetworkViewOptions::menuCheckShowConnections, MID_GNE_NETWORKVIEWOPTIONS_SHOWCONNECTIONS, myNetworkViewOptions, GUISUMOAbstractView::myVisualizationSettings, GNENet::requireRecompute(), GUIVisualizationSettings::showLane2Lane, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleShowDemandElements | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
Definition at line 2074 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckShowDemandElements, MID_GNE_NETWORKVIEWOPTIONS_SHOWDEMANDELEMENTS, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleShowGrid | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle show grid
Definition at line 2152 of file GNEViewNet.cpp.
References GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, MID_GNE_COMMONVIEWOPTIONS_SHOWGRID, myCommonViewOptions, GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::showGrid, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions(), and GNEApplicationWindow::onCmdToogleGrid().
long GNEViewNet::onCmdToogleShowJunctionBubbles | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle show junction bubbles
Definition at line 2182 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckShowJunctionBubble, MID_GNE_NETWORKVIEWOPTIONS_SHOWBUBBLES, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdToogleWarnAboutMerge | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
toogle warn for merge
Definition at line 2170 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkViewOptions::menuCheckWarnAboutMerge, MID_GNE_NETWORKVIEWOPTIONS_ASKFORMERGE, myNetworkViewOptions, and update().
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
long GNEViewNet::onCmdTransformPOI | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Transform POI to POILane, and viceversa.
Definition at line 1453 of file GNEViewNet.cpp.
References GNENet::addPOI(), GNENet::deleteShape(), Position::distanceTo(), GNEPOI::getCenteringBoundary(), GNENetElement::getGeometry(), PointOfInterest::getHeight(), GNEAttributeCarrier::getID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), getPOIAtPopupPosition(), GNEPOI::getPositionInView(), Shape::getShapeColor(), Shape::getShapeImgFile(), Shape::getShapeLayer(), Shape::getShapeNaviDegree(), Shape::getShapeRelativePath(), Shape::getShapeType(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), PointOfInterest::getWidth(), GUIGlObjectStorage::gIDStorage, myNet, myUndoList, PositionVector::nearest_offset_to_point2D(), GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::positionAtOffset(), GNENetElement::NetElementGeometry::shape, SUMO_TAG_LANE, SUMO_TAG_POI, toString(), update(), and WRITE_WARNING.
|
virtualinherited |
mouse functions
Definition at line 828 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::checkSnapshots(), GUISUMOAbstractView::doInit(), RGBColor::green(), GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, GUISUMOAbstractView::myVisualizationSettings, and RGBColor::red().
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtualinherited |
Reimplemented in GUIViewTraffic.
Definition at line 953 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtualinherited |
on gaming click
Reimplemented in GUIViewTraffic.
Definition at line 1403 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::getEdgeLaneParamKeys(), and GUISUMOAbstractView::onLeftBtnRelease().
|
virtualinherited |
Reimplemented in GUIViewTraffic.
Definition at line 1407 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::getEdgeLaneParamKeys(), and GUISUMOAbstractView::onRightBtnRelease().
|
virtual |
called when user press a key
Reimplemented from GUISUMOAbstractView.
Definition at line 711 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNEViewParent::getTAZFrame(), GNE_NMODE_POLYGON, GNE_NMODE_TAZ, GNEFrameModuls::DrawingShape::isDrawing(), myEditModes, myKeyPressed, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GUISUMOAbstractView::onKeyPress(), GNEFrameModuls::DrawingShape::setDeleteLastCreatedPoint(), GNEViewNetHelper::KeyPressed::shiftKeyPressed(), update(), GNEViewNetHelper::KeyPressed::update(), and updateCursor().
|
virtual |
called when user release a key
Reimplemented from GUISUMOAbstractView.
Definition at line 729 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNE_NMODE_POLYGON, GNEFrameModuls::DrawingShape::isDrawing(), myEditModes, myKeyPressed, mySelectingArea, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GUISUMOAbstractView::onKeyRelease(), GNEViewNetHelper::SelectingArea::selectingUsingRectangle, GNEFrameModuls::DrawingShape::setDeleteLastCreatedPoint(), GNEViewNetHelper::KeyPressed::shiftKeyPressed(), update(), GNEViewNetHelper::KeyPressed::update(), and updateCursor().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 617 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditShapes::editedShapePoly, GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GUISUMOAbstractView::makeCurrent(), myEditModes, myEditShapes, myKeyPressed, myObjectsUnderCursor, processLeftButtonPressDemand(), processLeftButtonPressNetwork(), update(), GNEViewNetHelper::KeyPressed::update(), updateCursor(), and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().
|
virtual |
called when user releases mouse's left button
Reimplemented from GUISUMOAbstractView.
Definition at line 643 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, myEditModes, myKeyPressed, GUISUMOAbstractView::onLeftBtnRelease(), processLeftButtonReleaseDemand(), processLeftButtonReleaseNetwork(), update(), GNEViewNetHelper::KeyPressed::update(), and updateCursor().
|
virtualinherited |
Definition at line 917 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtualinherited |
Definition at line 923 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtualinherited |
Definition at line 996 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtual |
called when user moves mouse
Reimplemented from GUISUMOAbstractView.
Definition at line 693 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, myEditModes, myKeyPressed, GUISUMOAbstractView::onMouseMove(), processMoveMouseDemand(), processMoveMouseNetwork(), GNEViewNetHelper::KeyPressed::update(), and updateCursor().
|
virtualinherited |
Definition at line 959 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myViewportChooser, GUIPerspectiveChanger::onMouseWheel(), GUIDialog_EditViewport::setValues(), and GUISUMOAbstractView::updatePositionInformation().
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtualinherited |
Definition at line 846 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, and GUISUMOAbstractView::paintGL().
Referenced by GUISUMOAbstractView::buildViewToolBars(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().
|
virtual |
called when user press mouse's right button
Reimplemented from GUISUMOAbstractView.
Definition at line 663 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNE_NMODE_POLYGON, GNEFrameModuls::DrawingShape::isDrawing(), myEditModes, myKeyPressed, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GUISUMOAbstractView::onRightBtnPress(), GNEViewNetHelper::KeyPressed::update(), and updateCursor().
|
virtual |
called when user releases mouse's right button
Reimplemented from GUISUMOAbstractView.
Definition at line 678 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNE_NMODE_POLYGON, GNEFrameModuls::DrawingShape::isDrawing(), myEditModes, myKeyPressed, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GUISUMOAbstractView::onRightBtnRelease(), GNEViewNetHelper::KeyPressed::update(), and updateCursor().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 358 of file GNEViewNet.cpp.
References GNEInspectorFrame::OverlappedInspection::checkSavedPosition(), GNEInspectorFrame::getAttributesEditor(), GNEFrameAttributesModuls::AttributesEditor::getEditedACs(), GNEViewParent::getInspectorFrame(), GUIGlObjectStorage::getNetObject(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectUnderCursor(), GNEInspectorFrame::getOverlappedInspection(), GUIGlObject::getPopUpMenu(), GUISUMOAbstractView::getPositionInformation(), GUIGlObjectStorage::gIDStorage, GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myPopupPosition, myViewParent, GUIPerspectiveChanger::onRightBtnRelease(), GNEInspectorFrame::OverlappedInspection::overlappedInspectionShown(), and GUIGlObjectStorage::unblockObject().
|
privatedelete |
Invalidated assignment operator.
|
inherited |
pixels-to-meters conversion method
Definition at line 757 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), GUISUMOAbstractView::drawDecals(), GNEViewNetHelper::TestingMode::drawTestingElements(), GUIDanielPerspectiveChanger::move(), and GUISUMOAbstractView::showToolTipFor().
|
protectedinherited |
performs the painting of the simulation
Definition at line 272 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::displayColorLegend(), GUISUMOAbstractView::displayLegend(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::drawFPS(), GUIVisualizationSettings::fps, SysUtils::getCurrentMillis(), GUISUMOAbstractView::getObjectUnderCursor(), GUISUMOAbstractView::getTrackedID(), RGBColor::green(), GUIGlObject::INVALID_ID, GUISUMOAbstractView::myFrameDrawTime, GUISUMOAbstractView::myUseToolTips, GUISUMOAbstractView::myVisualizationSettings, RGBColor::red(), GUIVisualizationSettings::showColorLegend, GUIVisualizationSettings::showSizeLegend, and GUISUMOAbstractView::showToolTipFor().
Referenced by GUISUMOAbstractView::onPaint(), and GUISUMOAbstractView::retrieveBreakpoints().
|
protectedinherited |
paints a grid
Definition at line 520 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::addSize, GUIVisualizationSizeSettings::getExaggeration(), GUIPerspectiveChanger::getViewport(), GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::scale, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::retrieveBreakpoints().
|
private |
Auxiliar function used by onLeftBtnPress(...)
Definition at line 1859 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::onLeftBtnPress().
Referenced by processLeftButtonPressDemand(), and processLeftButtonPressNetwork().
|
private |
process left button press function in Supermode Demand
Definition at line 3295 of file GNEViewNet.cpp.
References GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode(), GNEViewNetHelper::SelectingArea::beginRectangleSelection(), GNEViewNetHelper::KeyPressed::controlKeyPressed(), GNEViewNetHelper::EditModes::demandEditMode, GNEViewNetHelper::ObjectsUnderCursor::getAttributeCarrierFront(), GNEViewParent::getDeleteFrame(), GNEViewNetHelper::ObjectsUnderCursor::getGlTypeFront(), GNEViewParent::getInspectorFrame(), GNEViewNetHelper::ObjectsUnderCursor::getLaneFront(), GNESelectorFrame::getLockGLObjectTypes(), GNELane::getParentEdge(), GNEViewParent::getPersonFrame(), GNEViewParent::getPersonPlanFrame(), GUISUMOAbstractView::getPositionInformation(), GNEViewParent::getRouteFrame(), GNEViewParent::getSelectorFrame(), GNEViewParent::getStopFrame(), GNEAttributeCarrier::getTagProperty(), GNEViewParent::getVehicleFrame(), GNE_DMODE_DELETE, GNE_DMODE_INSPECT, GNE_DMODE_MOVE, GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_ROUTE, GNE_DMODE_SELECT, GNE_DMODE_STOP, GNE_DMODE_VEHICLE, GNERouteFrame::handleEdgeClick(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), myEditModes, myKeyPressed, myMoveMultipleElementValues, myMoveSingleElementValues, myObjectsUnderCursor, mySelectingArea, myViewParent, processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAttributeCarrier::selectAttributeCarrier(), GNEViewNetHelper::KeyPressed::shiftKeyPressed(), GNEAttributeCarrier::unselectAttributeCarrier(), and update().
Referenced by onLeftBtnPress().
|
private |
mouse process functions
process left button press function in Supermode Network
Definition at line 3023 of file GNEViewNet.cpp.
References GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNEPolygonFrame::ADDSHAPE_UPDATEDTEMPORALSHAPE, GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), GNEViewNetHelper::SelectingArea::beginRectangleSelection(), GNEViewNetHelper::KeyPressed::controlKeyPressed(), GNEDeleteFrame::DeleteOptions::deleteOnlyGeometryPoints(), GNETLSEditorFrame::editJunction(), GNEViewParent::getAdditionalFrame(), GNEViewNetHelper::ObjectsUnderCursor::getAttributeCarrierFront(), GNEViewNetHelper::ObjectsUnderCursor::getConnectionFront(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEViewParent::getCreateEdgeFrame(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEDeleteFrame::getDeleteOptions(), GNEViewNetHelper::ObjectsUnderCursor::getEdgeFront(), GNEViewNetHelper::ObjectsUnderCursor::getGlTypeFront(), GNEViewParent::getInspectorFrame(), GNEViewNetHelper::ObjectsUnderCursor::getJunctionFront(), GNEViewNetHelper::ObjectsUnderCursor::getLaneFront(), GNESelectorFrame::getLockGLObjectTypes(), GNEViewNetHelper::ObjectsUnderCursor::getPOIFront(), GNEViewNetHelper::ObjectsUnderCursor::getPolyFront(), GNEViewParent::getPolygonFrame(), GUISUMOAbstractView::getPositionInformation(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNEViewParent::getTLSEditorFrame(), GNEEdge::getVertexIndex(), GNEPoly::getVertexIndex(), GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CREATE_EDGE, GNE_NMODE_CROSSING, GNE_NMODE_DELETE, GNE_NMODE_INSPECT, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_PROHIBITION, GNE_NMODE_SELECT, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNEConnectorFrame::handleLaneClick(), GNEProhibitionFrame::handleProhibitionClick(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GNEAdditionalFrame::SelectorLaneParents::isSelectingLanes(), GNEAdditionalFrame::SelectorLaneParents::isShown(), GNEViewNetHelper::NetworkViewOptions::menuCheckAutoOppositeEdge, GNEViewNetHelper::NetworkViewOptions::menuCheckChainEdges, myEditModes, myKeyPressed, myMoveMultipleElementValues, myMoveSingleElementValues, myNetworkViewOptions, myObjectsUnderCursor, mySelectingArea, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), processClick(), GNETAZFrame::processClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAttributeCarrier::selectAttributeCarrier(), GNEViewNetHelper::NetworkViewOptions::selectEdges(), GNEViewNetHelper::KeyPressed::shiftKeyPressed(), GUISUMOAbstractView::snapToActiveGrid(), GNEAdditionalFrame::SelectorLaneParents::startConsecutiveLaneSelector(), SUMO_TAG_LANE, GNEViewNetHelper::ObjectsUnderCursor::swapLane2Edge(), GNEAttributeCarrier::unselectAttributeCarrier(), and update().
Referenced by onLeftBtnPress().
|
private |
process left button release function in Supermode Demand
Definition at line 3427 of file GNEViewNet.cpp.
References GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement(), GNEViewNetHelper::SelectingArea::finishRectangleSelection(), GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection(), myMoveMultipleElementValues, myMoveSingleElementValues, mySelectingArea, GNEViewNetHelper::SelectingArea::processRectangleSelection(), GNEViewNetHelper::SelectingArea::selectingUsingRectangle, and GNEViewNetHelper::SelectingArea::startDrawing.
Referenced by onLeftBtnRelease().
|
private |
process left button release function in Supermode Network
Definition at line 3234 of file GNEViewNet.cpp.
References GNEViewNetHelper::EditShapes::editedShapePoly, GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement(), GNEViewNetHelper::SelectingArea::finishRectangleSelection(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GNEViewNetHelper::ObjectsUnderCursor::getLaneFront(), GNEViewParent::getTAZFrame(), GNE_NMODE_SELECT, GNE_NMODE_TAZ, GNENetElement::isAttributeCarrierSelected(), GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection(), GUISUMOAbstractView::makeCurrent(), myEditModes, myEditShapes, myKeyPressed, myMoveMultipleElementValues, myMoveSingleElementValues, myObjectsUnderCursor, mySelectingArea, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection(), GNETAZFrame::processEdgeSelection(), GNEViewNetHelper::SelectingArea::processRectangleSelection(), GNENetElement::selectAttributeCarrier(), GNEViewNetHelper::SelectingArea::selectingUsingRectangle, GNEViewNetHelper::KeyPressed::shiftKeyPressed(), GNEViewNetHelper::SelectingArea::startDrawing, GNENetElement::unselectAttributeCarrier(), and GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor().
Referenced by onLeftBtnRelease().
|
private |
process move mouse function in Supermode Demand
Definition at line 3446 of file GNEViewNet.cpp.
References GNEViewNetHelper::SelectingArea::moveRectangleSelection(), GNEViewNetHelper::MoveSingleElementValues::moveSingleElement(), myMoveSingleElementValues, mySelectingArea, and GNEViewNetHelper::SelectingArea::selectingUsingRectangle.
Referenced by onMouseMove().
|
private |
process move mouse function in Supermode Network
Definition at line 3275 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNE_NMODE_POLYGON, GNEFrameModuls::DrawingShape::isDrawing(), GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection(), GNEViewNetHelper::SelectingArea::moveRectangleSelection(), GNEViewNetHelper::MoveMultipleElementValues::moveSelection(), GNEViewNetHelper::MoveSingleElementValues::moveSingleElement(), myEditModes, myKeyPressed, myMoveMultipleElementValues, myMoveSingleElementValues, mySelectingArea, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GNEViewNetHelper::SelectingArea::selectingUsingRectangle, GNEFrameModuls::DrawingShape::setDeleteLastCreatedPoint(), and GNEViewNetHelper::KeyPressed::shiftKeyPressed().
Referenced by onMouseMove().
|
virtualinherited |
recenters the view
Definition at line 763 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, and GUIPerspectiveChanger::setViewport().
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIGlChildWindow::onCmdRecenterView(), GUIDanielPerspectiveChanger::onKeyPress(), and GUICompleteSchemeStorage::setViewport().
|
inherited |
remove viewport
Definition at line 1363 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myViewportChooser.
Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().
|
inherited |
remove view settings
Definition at line 1369 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myVisualizationChanger.
|
inherited |
Removes an object from the list of objects that show additional things.
[in] | which | The object to remoe |
Definition at line 1557 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUIVehicle::drawOutsideNetwork(), GUISUMOAbstractView::getEdgeLaneParamKeys(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIPerson::removeActiveAddVisualisation().
|
private |
remove restricted lane
Definition at line 1782 of file GNEViewNet.cpp.
References getLaneAtPopupPosition(), GNELane::getParentEdge(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::removeRestrictedLane(), GNENet::retrieveEdge(), GNENet::retrieveEdges(), GNENet::retrieveLanes(), toString(), and WRITE_DEBUG.
Referenced by onCmdLaneOperation().
|
private |
restrict lane
Definition at line 1622 of file GNEViewNet.cpp.
References getLaneAtPopupPosition(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::restrictLane(), GNENet::retrieveEdge(), GNENet::retrieveLanes(), toString(), and WRITE_DEBUG.
Referenced by onCmdLaneOperation().
|
inlinevirtualinherited |
retrieve breakpoints if provided by the application
Reimplemented in GUIViewTraffic.
Definition at line 364 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::displayColorLegend(), GUISUMOAbstractView::displayLegend(), GUISUMOAbstractView::doInit(), GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::drawFPS(), GUISUMOAbstractView::getFPS(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getObjectstUnderCursor(), GUISUMOAbstractView::getObjectUnderCursor(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::paintGLGrid(), GUISUMOAbstractView::showToolTipFor(), and GUISUMOAbstractView::updatePositionInformation().
Referenced by GUIDialog_ViewSettings::onCmdExportSetting().
|
virtualinherited |
Adds a frame to a video snapshot which will be initialized if neccessary.
Reimplemented in GUIViewTraffic.
Definition at line 1228 of file GUISUMOAbstractView.cpp.
References UNUSED_PARAMETER.
Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUISUMOAbstractView::makeSnapshot().
|
inherited |
Translate screen position to network position.
Definition at line 213 of file GUISUMOAbstractView.cpp.
References DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GUISUMOAbstractView::myChanger, Position::rotateAround2D(), Boundary::xmin(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::drawDecals(), GNEViewNetHelper::TestingMode::drawTestingElements(), and GUISUMOAbstractView::getPositionInformation().
|
inherited |
Sets the breakpoints of the parent application.
Definition at line 1629 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::setBreakpoints().
Referenced by GUIDialog_ViewSettings::loadSettings().
|
virtual |
set color scheme
Reimplemented from GUISUMOAbstractView.
Definition at line 342 of file GNEViewNet.cpp.
References GUICompleteSchemeStorage::contains(), GUICompleteSchemeStorage::get(), GUIDialog_ViewSettings::getCurrentScheme(), gSchemeStorage, GUISUMOAbstractView::myVisualizationChanger, GUISUMOAbstractView::myVisualizationSettings, GUIDialog_ViewSettings::setCurrentScheme(), and update().
|
inherited |
Sets the delay of the parent application.
Definition at line 1623 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::setDelay().
Referenced by GUIDialog_ViewSettings::loadSettings().
void GNEViewNet::setDottedAC | ( | const GNEAttributeCarrier * | AC | ) |
set attributeCarrier under cursor
Definition at line 945 of file GNEViewNet.cpp.
References myDottedAC.
Referenced by GNEInspectorFrame::clearInspectedAC(), GNEInspectorFrame::hide(), and GNEInspectorFrame::inspectSingleElement().
void GNEViewNet::setSelectionScaling | ( | double | selectionScale | ) |
set selection scaling
Definition at line 494 of file GNEViewNet.cpp.
References GUISUMOAbstractView::myVisualizationSettings, and GUIVisualizationSettings::selectionScale.
Referenced by GNESelectorFrame::VisualScaling::onCmdScaleSelection().
void GNEViewNet::setStatusBarText | ( | const std::string & | text | ) |
set staturBar text
Definition at line 482 of file GNEViewNet.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::setStatusBarText().
Referenced by GNEAdditionalFrame::addAdditional(), GNEFrameModuls::EdgePathCreator::addEdge(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEVehicleFrame::addVehicle(), GNEConnectorFrame::buildConnection(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEPersonFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues(), hotkeyDel(), GNEViewNetHelper::SelectingArea::moveRectangleSelection(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNETLSEditorFrame::onCmdDefSwitch(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEViewNetHelper::EditModes::setDemandEditMode(), GNEViewNetHelper::EditModes::setNetworkEditMode(), GNEViewNetHelper::EditModes::setSupermode(), and GNEFrameAttributesModuls::AttributesCreator::showWarningMessage().
|
virtualinherited |
applies the given viewport settings
Definition at line 1328 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, GUIPerspectiveChanger::setRotation(), GUIPerspectiveChanger::setViewportFrom(), Position::x(), Position::y(), and Position::z().
Referenced by GUISettingsHandler::applyViewport(), GUISUMOAbstractView::buildViewToolBars(), GUISUMOAbstractView::copyViewportTo(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIDialog_EditViewport::onCmdCancel(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdOk(), TraCIServerAPI_GUI::processSet(), and GUICompleteSchemeStorage::setViewport().
|
inherited |
Returns the gl-id of the object under the given coordinates.
Definition at line 814 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myMouseHotspotX, GUISUMOAbstractView::myMouseHotspotY, GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.
Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUIDanielPerspectiveChanger::onMouseMove().
bool GNEViewNet::showJunctionAsBubbles | ( | ) | const |
return true if junction must be showed as bubbles
Definition at line 506 of file GNEViewNet.cpp.
References GNE_NMODE_MOVE, GNEViewNetHelper::NetworkViewOptions::menuCheckShowJunctionBubble, myEditModes, myNetworkViewOptions, and GNEViewNetHelper::EditModes::networkEditMode.
Referenced by GNEJunction::drawGL().
bool GNEViewNet::showLockIcon | ( | ) | const |
check if lock icon should be visible
Definition at line 951 of file GNEViewNet.cpp.
References GNE_NMODE_ADDITIONAL, GNE_NMODE_INSPECT, GNE_NMODE_MOVE, myEditModes, and GNEViewNetHelper::EditModes::networkEditMode.
Referenced by GNEShape::draw(), and GNEAdditional::BlockIcon::drawIcon().
|
protectedinherited |
invokes the tooltip for the given object
Definition at line 500 of file GUISUMOAbstractView.cpp.
References Position::add(), RGBColor::BLACK, GLHelper::drawTextBox(), GUIVisualizationSettings::edgeValue, GUIGlObject::getColorValue(), GUIVisualizationSettings::getLaneEdgeMode(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPositionInformation(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_EDGE, GLO_LANE, GLO_MAX, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::p2m(), GUIVisualizationTextSettings::show, toString(), and GUIGlObjectStorage::unblockObject().
Referenced by GUISUMOAbstractView::paintGL(), and GUISUMOAbstractView::retrieveBreakpoints().
|
inherited |
show tool tips
Definition at line 1345 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myUseToolTips.
Referenced by GUISUMOAbstractView::endSnapshot(), and GUIGlChildWindow::onCmdShowToolTips().
|
virtualinherited |
show viewport editor
Definition at line 1319 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUISUMOAbstractView::getViewportEditor(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), Position::INVALID, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myViewportChooser, GUIDialog_EditViewport::setOldValues(), and GUIDialog_EditViewport::show().
Referenced by GUISUMOAbstractView::endSnapshot(), GUIGlChildWindow::onCmdEditViewport(), and GNEApplicationWindow::onCmdEditViewport().
|
inherited |
show viewsscheme editor
Definition at line 1283 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myDecals, GUISUMOAbstractView::myDecalsLock, GUISUMOAbstractView::myVisualizationChanger, GUISUMOAbstractView::myVisualizationSettings, GUIDialog_ViewSettings::setCurrent(), and GUIDialog_ViewSettings::show().
Referenced by GUISUMOAbstractView::endSnapshot(), GUIGlChildWindow::onCmdEditViewScheme(), and GNEApplicationWindow::onCmdEditViewScheme().
|
inherited |
Returns a position that is mapped to the closest grid point if the grid is active.
note: formats are pos(x,y,0) por pos(0,0,z)
Definition at line 194 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, GUISUMOAbstractView::myVisualizationSettings, Position::setx(), Position::sety(), Position::setz(), GUIVisualizationSettings::showGrid, Position::x(), Position::y(), and Position::z().
Referenced by GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), drawTemporalDrawShape(), GNEEdge::editEndpoint(), GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues(), GNETAZ::getVertexIndex(), GNEEdge::getVertexIndex(), GNEPoly::getVertexIndex(), GNETAZ::moveGeometry(), GNEDetectorE3::moveGeometry(), GNEParkingSpace::moveGeometry(), GNEVariableSpeedSign::moveGeometry(), GNEAccess::moveGeometry(), GNERerouter::moveGeometry(), GNEDetectorE1::moveGeometry(), GNEDetectorEntryExit::moveGeometry(), GNEDetectorE1Instant::moveGeometry(), GNEStop::moveGeometry(), GNEStoppingPlace::moveGeometry(), GNEDetectorE2::moveGeometry(), GNEPOI::moveGeometry(), GNERide::moveGeometry(), GNEPersonTrip::moveGeometry(), GNEWalk::moveGeometry(), GNEJunction::moveGeometry(), GNEEdge::moveShapeEnd(), GNEEdge::moveShapeStart(), GNETAZ::moveVertexShape(), GNEPoly::moveVertexShape(), GNEEdge::moveVertexShape(), GNECreateEdgeFrame::processClick(), and processLeftButtonPressNetwork().
|
virtualinherited |
star track
Reimplemented in GUIViewTraffic.
Definition at line 1387 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::getEdgeLaneParamKeys(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::onCmdTrack(), and TraCIServerAPI_GUI::processSet().
|
virtualinherited |
stop track
Reimplemented in GUIViewTraffic.
Definition at line 1392 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::getEdgeLaneParamKeys(), GUIDialog_GLObjChooser::onCmdCenter(), GUIContainer::GUIContainerPopupMenu::onCmdStopTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), and TraCIServerAPI_GUI::processSet().
void GNEViewNet::update | ( | ) | const |
Mark the entire GNEViewNet to be repainted later.
Definition at line 292 of file GNEViewNet.cpp.
Referenced by GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrameModuls::DrawingShape::abortDrawing(), GNEFrameAttributesModuls::DrawingShape::abortDrawing(), GNECrossingFrame::addCrossing(), GNENet::addPolygonForEditShapes(), GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNENet::cleanInvalidDemandElements(), GNENet::cleanUnusedRoutes(), GNESelectorFrame::clearCurrentSelection(), GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNECrossingFrame::EdgesSelector::enableEdgeSelector(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNERouteFrame::hotkeyBackSpace(), hotkeyDel(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNENet::insertShape(), GNEInspectorFrame::OverlappedInspection::inspectOverlappedAttributeCarrier(), GNENet::joinRoutes(), GNEViewNetHelper::SelectingArea::moveRectangleSelection(), GNEViewNetHelper::MoveMultipleElementValues::moveSelection(), GNEViewNetHelper::MoveSingleElementValues::moveSingleElement(), GNEApplicationWindow::onCmdAbort(), GNERouteFrame::ConsecutiveEdges::onCmdAbortRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdAbortRoute(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem(), onCmdClearConnections(), onCmdClosePolygon(), onCmdDeleteGeometryPoint(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem(), GNEPersonPlanFrame::PersonPlanCreator::onCmdFinishPersonPlanCreation(), GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::onCmdOK(), onCmdOpenPolygon(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEFrameModuls::EdgePathCreator::onCmdRemoveLastInsertedElement(), GNERouteFrame::ConsecutiveEdges::onCmdRemoveLastRouteEdge(), GNERouteFrame::NonConsecutiveEdges::onCmdRemoveLastRouteEdge(), onCmdReplaceJunction(), onCmdResetConnections(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), onCmdSetFirstGeometryPoint(), onCmdSimplifyShape(), onCmdSplitJunction(), onCmdSplitJunctionReconnect(), onCmdToogleAutoOppositeEdge(), onCmdToogleChainEdges(), onCmdToogleChangeAllPhases(), onCmdToogleExtendSelection(), onCmdToogleHideConnections(), onCmdToogleHideNonInspecteDemandElements(), onCmdToogleHideShapes(), onCmdToogleLockPerson(), onCmdToogleMoveElevation(), onCmdToogleShowAllPersonPlans(), onCmdToogleShowConnections(), onCmdToogleShowDemandElements(), onCmdToogleShowGrid(), onCmdToogleShowJunctionBubbles(), onCmdToogleWarnAboutMerge(), onCmdTransformPOI(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), GNEChange_Crossing::redo(), GNERouteFrame::ConsecutiveEdges::refreshEdgeCandidates(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::removePolygonForEditShapes(), GNENet::removeShape(), GNECrossingFrame::EdgesSelector::restoreEdgeColors(), GNENet::saveAdditionals(), GNENet::saveDemandElements(), GNEViewNetHelper::EditShapes::saveEditedShape(), setColorScheme(), GNEViewNetHelper::EditShapes::startEditCustomShape(), GNEFrameModuls::DrawingShape::stopDrawing(), GNEFrameAttributesModuls::DrawingShape::stopDrawing(), GNEChange_Crossing::undo(), GNENet::update(), updateControls(), updateDemandModeSpecificControls(), GNETAZFrame::TAZEdgesGraphic::updateEdgeColors(), and updateNetworkModeSpecificControls().
void GNEViewNet::updateControls | ( | ) |
update control contents after undo/redo or recompute
Definition at line 2895 of file GNEViewNet.cpp.
References GNEViewParent::getInspectorFrame(), GNE_NMODE_INSPECT, myEditModes, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, and update().
Referenced by GNEApplicationWindow::updateControls().
|
private |
update cursor after every click/key press/release
Definition at line 1874 of file GNEViewNet.cpp.
References GNEViewNetHelper::KeyPressed::controlKeyPressed(), GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditModes::demandEditMode, GUICursorSubSys::getCursor(), GNE_DMODE_ROUTE, GNE_DMODE_STOP, GNE_DMODE_VEHICLE, GNE_NMODE_ADDITIONAL, GNE_NMODE_POLYGON, GNE_NMODE_TAZ, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, myEditModes, myKeyPressed, GNEViewNetHelper::EditModes::networkEditMode, SUMOCURSOR_DEFAULT, and SUMOCURSOR_MOVE.
Referenced by onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), and onRightBtnRelease().
|
private |
updates Demand mode specific controls
show toolbar grip of view options
Definition at line 2523 of file GNEViewNet.cpp.
References GNEViewNetHelper::CommonCheckableButtons::deleteButton, GNEViewNetHelper::EditModes::demandEditMode, GNEViewNetHelper::CommonCheckableButtons::disableCommonCheckableButtons(), GNEViewNetHelper::DemandCheckableButtons::disableDemandCheckableButtons(), GNEFrame::focusUpperElement(), GNEViewParent::getDeleteFrame(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEViewParent::getPersonFrame(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getPersonTypeFrame(), GNEViewParent::getRouteFrame(), GNEViewParent::getSelectorFrame(), GNEViewParent::getStopFrame(), GNEApplicationWindow::getToolbarsGrip(), GNEViewParent::getVehicleFrame(), GNEViewParent::getVehicleTypeFrame(), GNE_DMODE_DELETE, GNE_DMODE_INSPECT, GNE_DMODE_MOVE, GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_PERSONTYPES, GNE_DMODE_ROUTE, GNE_DMODE_SELECT, GNE_DMODE_STOP, GNE_DMODE_VEHICLE, GNE_DMODE_VEHICLETYPES, GNEViewParent::hideAllFrames(), GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks(), GNEViewNetHelper::NetworkViewOptions::hideNetworkViewOptionsMenuChecks(), GNEViewNetHelper::CommonCheckableButtons::inspectButton, GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements, GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes, GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson, GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans, GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, GNEApplicationWindow::ToolbarsGrip::modeOptions, GNEApplicationWindow::ToolbarsGrip::modes, GNEViewNetHelper::CommonCheckableButtons::moveButton, myCommonCheckableButtons, myCommonViewOptions, myCurrentFrame, myDemandCheckableButtons, myDemandViewOptions, myEditModes, myNetworkViewOptions, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::onPaint(), GNEViewNetHelper::DemandCheckableButtons::personButton, GNEViewNetHelper::DemandCheckableButtons::personPlanButton, GNEViewNetHelper::DemandCheckableButtons::personTypeButton, GNEViewNetHelper::DemandCheckableButtons::routeButton, GNEViewNetHelper::CommonCheckableButtons::selectButton, MFXCheckableButton::setChecked(), GNEPersonFrame::show(), GNEVehicleFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), GNEPersonTypeFrame::show(), GNEVehicleTypeFrame::show(), GNEPersonPlanFrame::show(), GNERouteFrame::show(), GNEInspectorFrame::show(), GNESelectorFrame::show(), GUIVisualizationSettings::showGrid, GNEViewNetHelper::DemandCheckableButtons::stopButton, update(), GNEViewNetHelper::CommonCheckableButtons::updateCommonCheckableButtons(), GNEViewNetHelper::DemandCheckableButtons::updateDemandCheckableButtons(), GNEViewNetHelper::DemandCheckableButtons::vehicleButton, and GNEViewNetHelper::DemandCheckableButtons::vehicleTypeButton.
Referenced by GNEViewNetHelper::EditModes::setDemandEditMode().
|
private |
updates Network mode specific controls
Definition at line 2364 of file GNEViewNet.cpp.
References GNEViewNetHelper::NetworkCheckableButtons::additionalButton, GNEViewNetHelper::NetworkCheckableButtons::connectionButton, GNEViewNetHelper::NetworkCheckableButtons::createEdgeButton, GNEViewNetHelper::NetworkCheckableButtons::crossingButton, GNEViewNetHelper::CommonCheckableButtons::deleteButton, GNEViewNetHelper::CommonCheckableButtons::disableCommonCheckableButtons(), GNEViewNetHelper::NetworkCheckableButtons::disableNetworkCheckableButtons(), GNEFrame::focusUpperElement(), GNEViewParent::getAdditionalFrame(), GNEViewParent::getConnectorFrame(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEViewParent::getPolygonFrame(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), GNEViewParent::getTAZFrame(), GNEViewParent::getTLSEditorFrame(), GNEApplicationWindow::getToolbarsGrip(), GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CREATE_EDGE, GNE_NMODE_CROSSING, GNE_NMODE_DELETE, GNE_NMODE_INSPECT, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_PROHIBITION, GNE_NMODE_SELECT, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNEViewParent::hideAllFrames(), GNEViewNetHelper::CommonViewOptions::hideCommonViewOptionsMenuChecks(), GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks(), GNEViewNetHelper::NetworkViewOptions::hideNetworkViewOptionsMenuChecks(), GNEViewNetHelper::CommonCheckableButtons::inspectButton, GNEViewNetHelper::NetworkViewOptions::menuCheckAutoOppositeEdge, GNEViewNetHelper::NetworkViewOptions::menuCheckChainEdges, GNEViewNetHelper::NetworkViewOptions::menuCheckChangeAllPhases, GNEViewNetHelper::NetworkViewOptions::menuCheckExtendSelection, GNEViewNetHelper::NetworkViewOptions::menuCheckHideConnections, GNEViewNetHelper::NetworkViewOptions::menuCheckMoveElevation, GNEViewNetHelper::NetworkViewOptions::menuCheckSelectEdges, GNEViewNetHelper::NetworkViewOptions::menuCheckShowConnections, GNEViewNetHelper::NetworkViewOptions::menuCheckShowDemandElements, GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, GNEViewNetHelper::NetworkViewOptions::menuCheckShowJunctionBubble, GNEViewNetHelper::NetworkViewOptions::menuCheckWarnAboutMerge, GNEApplicationWindow::ToolbarsGrip::modeOptions, GNEApplicationWindow::ToolbarsGrip::modes, GNEViewNetHelper::CommonCheckableButtons::moveButton, myCommonCheckableButtons, myCommonViewOptions, myCurrentFrame, myDemandViewOptions, myEditModes, myNetworkCheckableButtons, myNetworkViewOptions, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GNEViewNetHelper::EditModes::networkEditMode, GUISUMOAbstractView::onPaint(), GNEViewNetHelper::NetworkCheckableButtons::prohibitionButton, GNEViewNetHelper::CommonCheckableButtons::selectButton, MFXCheckableButton::setChecked(), GNEViewNetHelper::NetworkCheckableButtons::shapeButton, GNEFrame::show(), GNEDeleteFrame::show(), GNEPolygonFrame::show(), GNEProhibitionFrame::show(), GNEAdditionalFrame::show(), GNEInspectorFrame::show(), GNESelectorFrame::show(), GUIVisualizationSettings::showGrid, GNEViewNetHelper::NetworkCheckableButtons::TAZButton, GNEViewNetHelper::NetworkCheckableButtons::trafficLightButton, update(), GNEViewNetHelper::CommonCheckableButtons::updateCommonCheckableButtons(), and GNEViewNetHelper::NetworkCheckableButtons::updateNetworkCheckableButtons().
Referenced by GNEViewNetHelper::EditModes::setNetworkEditMode().
|
protectedinherited |
update position information
Definition at line 240 of file GUISUMOAbstractView.cpp.
References GeoConvHelper::cartesian2geo(), GUIMainWindow::getCartesianLabel(), GeoConvHelper::getFinal(), GUIMainWindow::getGeoLabel(), GUISUMOAbstractView::getPositionInformation(), gPrecisionGeo, GUISUMOAbstractView::myApp, toString(), Position::x(), and Position::y().
Referenced by GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), and GUISUMOAbstractView::retrieveBreakpoints().
|
inherited |
A method that updates the tooltip.
Definition at line 179 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myUseToolTips.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIDanielPerspectiveChanger::onKeyPress(), GUIDanielPerspectiveChanger::onMouseMove(), and GUIDanielPerspectiveChanger::onMouseWheel().
|
inherited |
Definition at line 1268 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::mySnapshotCondition, GUISUMOAbstractView::mySnapshots, and GUISUMOAbstractView::mySnapshotsMutex.
Referenced by GUISUMOAbstractView::endSnapshot().
|
friend |
FOX-declaration.
declare GNEViewNetHelper as friend struct
Definition at line 48 of file GNEViewNet.h.
|
protectedinherited |
List of objects for which GUIGlObject::drawGLAdditional is called.
Definition at line 500 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addAdditionalGLVisualisation(), GUIViewTraffic::doPaintGL(), GUISUMOAbstractView::isAdditionalGLVisualisationEnabled(), and GUISUMOAbstractView::removeAdditionalGLVisualisation().
|
protectedinherited |
Internal information whether doInit() was called.
Definition at line 467 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::onPaint(), openObjectDialog(), and GUISUMOAbstractView::openObjectDialog().
|
protectedinherited |
The application.
Definition at line 437 of file GUISUMOAbstractView.h.
Referenced by doPaintGL(), GUISUMOAbstractView::getDelay(), GUISUMOAbstractView::getObjectsInBoundary(), GUIViewTraffic::onDoubleClicked(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnRelease(), openObjectDialog(), GUISUMOAbstractView::openObjectDialog(), GUIViewTraffic::retrieveBreakpoints(), GUIViewTraffic::saveFrame(), GUISUMOAbstractView::setBreakpoints(), GUIViewTraffic::setColorScheme(), GUISUMOAbstractView::setDelay(), setStatusBarText(), and GUISUMOAbstractView::updatePositionInformation().
|
protectedinherited |
The perspective changer.
Definition at line 446 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::copyViewportTo(), GUISUMOAbstractView::getChanger(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getViewportEditor(), GUISUMOAbstractView::getVisibleBoundary(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), openObjectDialog(), GUISUMOAbstractView::openObjectDialog(), GUISUMOAbstractView::p2m(), GUISUMOAbstractView::paintGLGrid(), processClick(), GUISUMOAbstractView::recenterView(), GUISUMOAbstractView::screenPos2NetPos(), GUISUMOAbstractView::setViewportFromToRot(), GUISUMOAbstractView::showViewportEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
private |
variable used to save checkable buttons for common supermodes
Definition at line 375 of file GNEViewNet.h.
Referenced by buildEditModeControls(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().
|
private |
variable used to save variables related with common view options
Definition at line 388 of file GNEViewNet.h.
Referenced by buildEditModeControls(), doPaintGL(), getCommonViewOptions(), onCmdToogleShowGrid(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().
|
private |
the current frame
Definition at line 429 of file GNEViewNet.h.
Referenced by hotkeyFocusFrame(), GNEViewNetHelper::EditModes::setDemandEditMode(), GNEViewNetHelper::EditModes::setNetworkEditMode(), GNEViewNetHelper::EditModes::setSupermode(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().
|
protectedinherited |
Definition at line 481 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addDecals(), GUISUMOAbstractView::drawDecals(), GUISUMOAbstractView::showViewschemeEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 484 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::showViewschemeEditor().
|
private |
variable used to save checkable buttons for Supermode Demand
Definition at line 381 of file GNEViewNet.h.
Referenced by buildEditModeControls(), GNEViewNetHelper::EditModes::setSupermode(), and updateDemandModeSpecificControls().
|
private |
variable used to save variables related with view options in Demand Supermode
Definition at line 394 of file GNEViewNet.h.
Referenced by buildEditModeControls(), doPaintGL(), getDemandViewOptions(), onCmdToogleHideNonInspecteDemandElements(), onCmdToogleHideShapes(), onCmdToogleLockPerson(), onCmdToogleShowAllPersonPlans(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().
|
private |
current AttributeCarrier that is drawn using with a dotted contour note: it's constant because is edited from constant functions (example: drawGL(...) const)
Definition at line 437 of file GNEViewNet.h.
Referenced by getDottedAC(), and setDottedAC().
|
private |
variable used to save variables related with edit moves modes
Definition at line 355 of file GNEViewNet.h.
Referenced by abortOperation(), buildEditModeControls(), doPaintGL(), getEditModes(), hotkeyBackSpace(), hotkeyDel(), hotkeyEnter(), onCmdSetMode(), onCmdSetSupermode(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), GNEViewNetHelper::SelectingArea::processBoundarySelection(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), processLeftButtonReleaseNetwork(), processMoveMouseNetwork(), GNEViewNetHelper::NetworkViewOptions::showConnections(), showJunctionAsBubbles(), showLockIcon(), GNEViewNetHelper::EditShapes::startEditCustomShape(), GNEViewNetHelper::EditShapes::stopEditCustomShape(), updateControls(), updateCursor(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().
|
private |
struct for grouping all variables related with edit shapes
Definition at line 420 of file GNEViewNet.h.
Referenced by abortOperation(), getEditShapes(), hotkeyEnter(), onCmdClosePolygon(), onCmdDeleteGeometryPoint(), onCmdEditConnectionShape(), onCmdEditCrossingShape(), onCmdEditJunctionShape(), onCmdOpenPolygon(), onCmdSetFirstGeometryPoint(), onCmdSimplifyShape(), onLeftBtnPress(), processLeftButtonReleaseNetwork(), GNEViewNetHelper::EditModes::setDemandEditMode(), and GNEViewNetHelper::EditModes::setNetworkEditMode().
|
protectedinherited |
counter for measuring rendering time
Definition at line 503 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getFPS(), and GUISUMOAbstractView::paintGL().
|
protectedinherited |
The visualization speed-up.
Definition at line 443 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::recenterView().
|
protectedinherited |
Information whether too-tip informations shall be generated.
Definition at line 449 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::isInEditMode().
|
private |
variable used to save key status after certain events
Definition at line 365 of file GNEViewNet.h.
Referenced by GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues(), GNEViewNetHelper::MoveSingleElementValues::calculatePolyValues(), GNEViewNetHelper::MoveSingleElementValues::calculateTAZValues(), getKeyPressed(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), processLeftButtonReleaseNetwork(), processMoveMouseNetwork(), GNEViewNetHelper::SelectingArea::processRectangleSelection(), and updateCursor().
|
protectedinherited |
Offset to the mouse-hotspot from the mouse position.
Definition at line 452 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Definition at line 452 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::setWindowCursorPosition().
|
private |
variable used to save variables related with movement of multiple elements
Definition at line 403 of file GNEViewNet.h.
Referenced by processLeftButtonPressDemand(), processLeftButtonPressNetwork(), processLeftButtonReleaseDemand(), processLeftButtonReleaseNetwork(), and processMoveMouseNetwork().
|
private |
Definition at line 400 of file GNEViewNet.h.
Referenced by GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues(), GNEViewNetHelper::MoveSingleElementValues::calculatePolyValues(), GNEViewNetHelper::MoveSingleElementValues::calculateTAZValues(), GNEViewNetHelper::MoveSingleElementValues::moveSingleElement(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), processLeftButtonReleaseDemand(), processLeftButtonReleaseNetwork(), processMoveMouseDemand(), and processMoveMouseNetwork().
|
private |
Pointer to current net. (We are not responsible for deletion)
Definition at line 426 of file GNEViewNet.h.
Referenced by addRestrictedLane(), buildColorRainbow(), deleteSelectedAdditionals(), deleteSelectedConnections(), deleteSelectedCrossings(), deleteSelectedDemandElements(), deleteSelectedEdges(), deleteSelectedJunctions(), deleteSelectedLanes(), deleteSelectedShapes(), getAttributeCarriersInBoundary(), getNet(), mergeJunctions(), onCmdAddReversedEdge(), onCmdClearConnections(), onCmdDuplicateLane(), onCmdEditJunctionShape(), onCmdReplaceJunction(), onCmdResetConnections(), onCmdResetJunctionShape(), onCmdResetLaneCustomShape(), onCmdReverseEdge(), onCmdSmoothEdges(), onCmdSmoothEdgesElevation(), onCmdSplitEdge(), onCmdSplitEdgeBidi(), onCmdSplitJunction(), onCmdSplitJunctionReconnect(), onCmdStraightenEdges(), onCmdStraightenEdgesElevation(), onCmdTransformPOI(), removeRestrictedLane(), restrictLane(), GNEViewNetHelper::EditModes::setDemandEditMode(), GNEViewNetHelper::EditModes::setNetworkEditMode(), GNEViewNetHelper::EditShapes::startEditCustomShape(), and GNEViewNetHelper::EditShapes::stopEditCustomShape().
|
private |
variable used to save checkable buttons for Supermode Network
Definition at line 378 of file GNEViewNet.h.
Referenced by buildEditModeControls(), GNEViewNetHelper::EditModes::setSupermode(), and updateNetworkModeSpecificControls().
|
private |
variable used to save variables related with view options in Network Supermode
Definition at line 391 of file GNEViewNet.h.
Referenced by autoSelectNodes(), buildEditModeControls(), GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues(), GNEViewNetHelper::MoveSingleElementValues::calculatePolyValues(), changeAllPhases(), doPaintGL(), getAttributeCarriersInBoundary(), getNetworkViewOptions(), mergeJunctions(), GNEViewNetHelper::MoveMultipleElementValues::moveSelection(), GNEViewNetHelper::MoveSingleElementValues::moveSingleElement(), onCmdToogleAutoOppositeEdge(), onCmdToogleChainEdges(), onCmdToogleChangeAllPhases(), onCmdToogleExtendSelection(), onCmdToogleHideConnections(), onCmdToogleMoveElevation(), onCmdToogleSelectEdges(), onCmdToogleShowConnections(), onCmdToogleShowDemandElements(), onCmdToogleShowJunctionBubbles(), onCmdToogleWarnAboutMerge(), processLeftButtonPressNetwork(), showJunctionAsBubbles(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().
|
private |
variable use to save all pointers to objects under cursor after a click
Definition at line 368 of file GNEViewNet.h.
Referenced by GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues(), GNEViewNetHelper::MoveSingleElementValues::calculatePolyValues(), GNEViewNetHelper::MoveSingleElementValues::calculateTAZValues(), onLeftBtnPress(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), and processLeftButtonReleaseNetwork().
|
protectedinherited |
The parent window.
Definition at line 440 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getColoringSchemesCombo().
|
mutableprotectedinherited |
poly draw lock
Definition at line 497 of file GUISUMOAbstractView.h.
|
protectedinherited |
The current popup-menu.
Definition at line 455 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::onMouseMove(), openObjectDialog(), GUISUMOAbstractView::openObjectDialog(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
The current popup-menu position.
Definition at line 458 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::getPopupPosition(), openObjectDialog(), and GUISUMOAbstractView::openObjectDialog().
|
private |
variable used to save variables related with selecting areas
Definition at line 417 of file GNEViewNet.h.
Referenced by abortOperation(), doPaintGL(), onKeyRelease(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), processLeftButtonReleaseDemand(), processLeftButtonReleaseNetwork(), processMoveMouseDemand(), and processMoveMouseNetwork().
|
protectedinherited |
the semaphore when waiting for snapshots to finish
Definition at line 494 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().
|
protectedinherited |
Snapshots.
Definition at line 488 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().
|
protectedinherited |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 491 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().
|
private |
variable used to save variables related with testing mode
Definition at line 358 of file GNEViewNet.h.
Referenced by doPaintGL().
|
private |
a reference to the undolist maintained in the application
Definition at line 432 of file GNEViewNet.h.
Referenced by abortOperation(), addRestrictedLane(), GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues(), deleteSelectedAdditionals(), deleteSelectedConnections(), deleteSelectedCrossings(), deleteSelectedDemandElements(), deleteSelectedEdges(), deleteSelectedJunctions(), deleteSelectedLanes(), deleteSelectedShapes(), getUndoList(), hotkeyDel(), mergeJunctions(), onCmdAddReversedEdge(), onCmdClearConnections(), onCmdDuplicateLane(), onCmdEditEdgeEndpoint(), onCmdReplaceJunction(), onCmdResetConnections(), onCmdResetEdgeEndpoint(), onCmdResetJunctionShape(), onCmdResetLaneCustomShape(), onCmdReverseEdge(), onCmdSmoothEdges(), onCmdSmoothEdgesElevation(), onCmdSplitEdge(), onCmdSplitEdgeBidi(), onCmdSplitJunction(), onCmdSplitJunctionReconnect(), onCmdStraightenEdges(), onCmdStraightenEdgesElevation(), onCmdTransformPOI(), GNEViewNetHelper::SelectingArea::processBoundarySelection(), removeRestrictedLane(), restrictLane(), and GNEViewNetHelper::EditShapes::saveEditedShape().
|
protectedinherited |
use tool tips
Definition at line 464 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::showToolTips(), and GUISUMOAbstractView::updateToolTip().
|
private |
variable used to save variables related with vehicle options
Definition at line 410 of file GNEViewNet.h.
|
private |
variable used to save variables related with vehicle type options
Definition at line 413 of file GNEViewNet.h.
|
private |
view parent
Definition at line 423 of file GNEViewNet.h.
Referenced by abortOperation(), GNEViewNetHelper::CommonCheckableButtons::buildCommonCheckableButtons(), GNEViewNetHelper::CommonViewOptions::buildCommonViewOptionsMenuChecks(), GNEViewNetHelper::DemandCheckableButtons::buildDemandCheckableButtons(), GNEViewNetHelper::DemandViewOptions::buildDemandViewOptionsMenuChecks(), GNEViewNetHelper::NetworkCheckableButtons::buildNetworkCheckableButtons(), GNEViewNetHelper::NetworkViewOptions::buildNetworkViewOptionsMenuChecks(), doPaintGL(), drawLaneCandidates(), drawTemporalDrawShape(), getAttributeCarriersInBoundary(), getViewParent(), GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks(), GNEViewNetHelper::NetworkViewOptions::hideNetworkViewOptionsMenuChecks(), hotkeyBackSpace(), hotkeyEnter(), onKeyPress(), onKeyRelease(), onRightBtnPress(), onRightBtnRelease(), openObjectDialog(), GNEViewNetHelper::SelectingArea::processBoundarySelection(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), processLeftButtonReleaseNetwork(), processMoveMouseNetwork(), GNEViewNetHelper::EditModes::setDemandEditMode(), GNEViewNetHelper::EditModes::setNetworkEditMode(), GNEViewNetHelper::EditModes::setSupermode(), updateControls(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().
|
protectedinherited |
viewport chooser
Definition at line 470 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getViewportEditor(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::remove(), GUISUMOAbstractView::showViewportEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Visualization changer.
Definition at line 476 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::remove(), setColorScheme(), GUIViewTraffic::setColorScheme(), GUISUMOAbstractView::showViewschemeEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
visualization settings
Definition at line 461 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::applyGLTransform(), GUIViewTraffic::buildViewToolBars(), buildViewToolBars(), GUISUMOAbstractView::displayColorLegend(), GUIViewTraffic::doPaintGL(), doPaintGL(), drawLaneCandidates(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getVisualisationSettings(), GUISUMOAbstractView::makeSnapshot(), onCmdToogleShowConnections(), onCmdToogleShowGrid(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::paintGLGrid(), setColorScheme(), GUIViewTraffic::setColorScheme(), setSelectionScaling(), GUISUMOAbstractView::showToolTipFor(), GUISUMOAbstractView::showViewschemeEditor(), GUISUMOAbstractView::snapToActiveGrid(), updateDemandModeSpecificControls(), updateNetworkModeSpecificControls(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Position of the cursor relative to the window.
Definition at line 473 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getPositionInformation(), GUISUMOAbstractView::getWindowCursorPosition(), and GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Definition at line 473 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getPositionInformation(), GUISUMOAbstractView::getWindowCursorPosition(), and GUISUMOAbstractView::setWindowCursorPosition().