![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEViewNet.h>
Data Structures | |
struct | CreateEdgeOptions |
struct used to group all variables related to create edges More... | |
struct | KeyPressed |
class used to group all variables related with key pressed after certain events More... | |
struct | MovedItems |
struct used to group all pointers to moved elements More... | |
struct | MoveMultipleElementValues |
struct used to group all variables related with movement of groups of elements More... | |
struct | MoveSingleElementValues |
struct used to group all variables related with movement of single elements More... | |
class | ObjectsUnderCursor |
FOX-declaration. More... | |
struct | SelectingArea |
struct used to group all variables related with selecting using a square or polygon More... | |
struct | TestingMode |
struct used to group all variables related with testing More... | |
struct | ViewOptions |
struct used to group all variables related to view options More... | |
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) |
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... | |
virtual void | buildViewToolBars (GUIGlChildWindow &) |
builds the view toolbars More... | |
virtual void | centerTo (GUIGlID id, bool applyZoom, double zoomDist=20) |
centers to the chosen artifact 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... | |
bool | editingElevation () const |
return true if elevation is being edited 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... | |
EditMode | getCurrentEditMode () const |
get the current edit mode More... | |
double | getDelay () const |
Returns the delay of the parent application. More... | |
const GNEAttributeCarrier * | getDottedAC () const |
get AttributeCarrier under cursor More... | |
double | getGridHeight () const |
get grid Height More... | |
double | getGridWidth () const |
get grid width More... | |
const KeyPressed & | getKeyPressed () const |
get Key Pressed modul More... | |
FXMenuCheck * | getMenuCheckShowGrid () const |
get grid button More... | |
GNENet * | getNet () const |
get the net object 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... | |
GNEViewNet (FXComposite *tmpParent, FXComposite *actualParent, GUIMainWindow &app, GNEViewParent *viewParent, GNENet *net, GNEUndoList *undoList, FXGLVisual *glVis, FXGLCanvas *share, FXToolBar *toolBar) | |
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 | onCmdAddRestrictedLaneBikelane (FXObject *, FXSelector, void *) |
Add restricted lane for bikes. More... | |
long | onCmdAddRestrictedLaneBuslane (FXObject *, FXSelector, void *) |
Add restricted lane for buses. More... | |
long | onCmdAddRestrictedLaneGreenVerge (FXObject *, FXSelector, void *) |
Add restricted lane for all vehicles. More... | |
long | onCmdAddRestrictedLaneSidewalk (FXObject *, FXSelector, void *) |
Add restricted lane for pedestrians. 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 | onCmdOpenAdditionalDialog (FXObject *, FXSelector, void *) |
open additional dialog More... | |
long | onCmdOpenPolygon (FXObject *, FXSelector, void *) |
open closed polygon More... | |
long | onCmdRemoveRestrictedLaneBikelane (FXObject *, FXSelector, void *) |
remove restricted lane for bikes More... | |
long | onCmdRemoveRestrictedLaneBuslane (FXObject *, FXSelector, void *) |
remove restricted lane for bus More... | |
long | onCmdRemoveRestrictedLaneGreenVerge (FXObject *, FXSelector, void *) |
remove restricted lane for all vehicles More... | |
long | onCmdRemoveRestrictedLaneSidewalk (FXObject *, FXSelector, void *) |
remove restricted lane for pedestrians 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 | onCmdRestrictLaneBikelane (FXObject *, FXSelector, void *) |
restrict lane to bikes More... | |
long | onCmdRestrictLaneBuslane (FXObject *, FXSelector, void *) |
restrict lane to buslanes More... | |
long | onCmdRestrictLaneGreenVerge (FXObject *, FXSelector, void *) |
restrict lane to all vehicles More... | |
long | onCmdRestrictLaneSidewalk (FXObject *, FXSelector, void *) |
restrict lane to pedestrians 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 | onCmdShowGrid (FXObject *, FXSelector, void *) |
toogle show grid 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 | onCmdStraightenEdges (FXObject *, FXSelector, void *) |
makes selected edges straight More... | |
long | onCmdStraightenEdgesElevation (FXObject *, FXSelector, void *) |
interpolate z values linear between junctions More... | |
long | onCmdToogleMoveElevation (FXObject *, FXSelector, void *) |
toogle move elevation More... | |
long | onCmdToogleSelectEdges (FXObject *, FXSelector, void *) |
toogle selet edges More... | |
long | onCmdToogleShowBubbles (FXObject *, FXSelector, void *) |
toogle show bubbles More... | |
long | onCmdToogleShowConnection (FXObject *, FXSelector, void *) |
toogle show connections More... | |
long | onCmdTransformPOI (FXObject *, FXSelector, void *) |
Transform POI to POILane, and viceversa. More... | |
virtual void | onGamingClick (Position) |
on gaming click More... | |
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... | |
bool | selectEdges () const |
whether inspection, selection and inversion should apply to edges or to lanes 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 | setEditModeFromHotkey (FXushort selid) |
sets edit mode (from hotkey) 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 information whether rotation is allowd. More... | |
bool | showConnections () |
show connections over junctions 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) const |
Returns a position that is mapped to the closest grid point if the grid is active. More... | |
void | startEditCustomShape (GNENetElement *element, const PositionVector &shape, bool fill) |
start edit custom shape More... | |
virtual void | startTrack (int) |
star track More... | |
void | stopEditCustomShape () |
edit edit shape More... | |
virtual void | stopTrack () |
stop track 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 mode call backs | |
called when user press the button for create edge mode | |
long | onCmdSetModeCreateEdge (FXObject *, FXSelector, void *) |
long | onCmdSetModeMove (FXObject *, FXSelector, void *) |
called when user press the button for move mode More... | |
long | onCmdSetModeDelete (FXObject *, FXSelector, void *) |
called when user press the button for delete mode More... | |
long | onCmdSetModeInspect (FXObject *, FXSelector, void *) |
called when user press the button for inspect mode More... | |
long | onCmdSetModeSelect (FXObject *, FXSelector, void *) |
called when user press the button for select mode More... | |
long | onCmdSetModeConnect (FXObject *, FXSelector, void *) |
called when user press the button for connect mode More... | |
long | onCmdSetModeTLS (FXObject *, FXSelector, void *) |
called when user press the button for traffic lights mode More... | |
long | onCmdSetModeAdditional (FXObject *, FXSelector, void *) |
called when user press the button for additional mode More... | |
long | onCmdSetModeCrossing (FXObject *, FXSelector, void *) |
called when user press the button for crossing mode More... | |
long | onCmdSetModeTAZ (FXObject *, FXSelector, void *) |
called when user press the button for TAZ mode More... | |
long | onCmdSetModePolygon (FXObject *, FXSelector, void *) |
called when user press the button for polygon mode More... | |
long | onCmdSetModeProhibition (FXObject *, FXSelector, void *) |
called when user press the button for polygon mode 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 | displayLegend () |
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... | |
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... | |
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... | |
MFXMutex | 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 |
MFXMutex | 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 () |
adds controls for setting the edit mode 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 | 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... | |
GNEViewNet (const GNEViewNet &)=delete | |
Invalidated copy constructor. 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... | |
GNEViewNet & | operator= (const GNEViewNet &)=delete |
Invalidated assignment operator. 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 | setEditMode (EditMode mode) |
set edit mode More... | |
void | updateCursor () |
update cursor after every click/key press/release More... | |
void | updateModeSpecificControls () |
updates mode specific controls More... | |
void | drawLaneCandidates () const |
draw functions More... | |
void | drawTemporalDrawShape () const |
draw temporal polygon shape in Polygon Mode 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... | |
EditMode | myEditMode |
the current edit mode More... | |
GNENet * | myNet |
Pointer to current net. (We are not responsible for deletion) More... | |
FXToolBar * | myToolbar |
a reference to the toolbar in myParent More... | |
GNEUndoList * | myUndoList |
a reference to the undolist maintained in the application More... | |
GNEViewParent * | myViewParent |
view parent More... | |
structs | |
KeyPressed | myKeyPressed |
variable used to save key status after certain events More... | |
ObjectsUnderCursor | myObjectsUnderCursor |
variable use to save all pointers to objects under cursor after a click More... | |
CreateEdgeOptions | myCreateEdgeOptions |
variable used to save all elements related to creation of Edges More... | |
MovedItems | myMovedItems |
variable use to save pointers to moved elements More... | |
MoveSingleElementValues | myMoveSingleElementValues |
variable used to save variables related with movement of single elements More... | |
MoveMultipleElementValues | myMoveMultipleElementValues |
variable used to save variables related with movement of multiple elements More... | |
SelectingArea | mySelectingArea |
variable used to save variables related with selecting areas More... | |
TestingMode | myTestingMode |
variable used to save variables related with testing mode More... | |
ViewOptions | myViewOptions |
variable used to save variables related with view options More... | |
buttons for selecting the edit mode | |
chekable button for edit mode create edge | |
MFXCheckableButton * | myEditModeCreateEdge |
MFXCheckableButton * | myEditModeMove |
chekable button for edit mode move More... | |
MFXCheckableButton * | myEditModeDelete |
chekable button for edit mode delete More... | |
MFXCheckableButton * | myEditModeInspect |
chekable button for edit mode inspect More... | |
MFXCheckableButton * | myEditModeSelect |
chekable button for edit mode select More... | |
MFXCheckableButton * | myEditModeConnection |
chekable button for edit mode connection More... | |
MFXCheckableButton * | myEditModeTrafficLight |
chekable button for edit mode traffic light More... | |
MFXCheckableButton * | myEditModeAdditional |
chekable button for edit mode additional More... | |
MFXCheckableButton * | myEditModeCrossing |
chekable button for edit mode crossing More... | |
MFXCheckableButton * | myEditModeTAZ |
chekable button for edit mode TAZ More... | |
MFXCheckableButton * | myEditModePolygon |
chekable button for edit mode polygon More... | |
MFXCheckableButton * | myEditModeProhibition |
checkable button for edit mode polygon More... | |
variables for edit shapes | |
polygon used for edit shapes | |
GNEPoly * | myEditShapePoly |
EditMode | myPreviousEditMode |
the previous edit mode before edit junction's shapes More... | |
Microsocopic view at the simulation
Definition at line 100 of file GNEViewNet.h.
GNEViewNet::GNEViewNet | ( | FXComposite * | tmpParent, |
FXComposite * | actualParent, | ||
GUIMainWindow & | app, | ||
GNEViewParent * | viewParent, | ||
GNENet * | net, | ||
GNEUndoList * | undoList, | ||
FXGLVisual * | glVis, | ||
FXGLCanvas * | share, | ||
FXToolBar * | toolBar | ||
) |
Definition at line 487 of file GNEViewNet.cpp.
References buildEditModeControls(), GNEViewNet::TestingMode::initTestingMode(), GUISUMOAbstractView::myChanger, myNet, myTestingMode, myUndoList, GUITextureSubSys::resetTextures(), and GNENet::setViewNet().
GNEViewNet::~GNEViewNet | ( | ) |
destructor
Definition at line 532 of file GNEViewNet.cpp.
|
protected |
FOX needs this.
Definition at line 816 of file GNEViewNet.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEViewNet::abortOperation | ( | bool | clearSelection = true | ) |
abort current edition operation
Definition at line 1391 of file GNEViewNet.cpp.
References GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrame::DrawingShape::abortDrawing(), GNESelectorFrame::clearCurrentSelection(), GNEViewNet::CreateEdgeOptions::createEdgeSource, GNEViewParent::getAdditionalFrame(), GNEConnectorFrame::getConnectionModifications(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNEViewParent::getTLSEditorFrame(), GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_PROHIBITION, GNE_MODE_SELECT, GNE_MODE_TAZ, GNE_MODE_TLS, GNEFrame::DrawingShape::isDrawing(), myCreateEdgeOptions, myEditMode, mySelectingArea, myUndoList, myViewParent, GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEUndoList::p_abort(), GNEViewNet::SelectingArea::selectingUsingRectangle, GNETAZFrame::TAZCurrent::setTAZ(), stopEditCustomShape(), and GNEJunction::unMarkAsCreateEdgeSource().
Referenced by GNEApplicationWindow::onCmdAbort(), and setEditMode().
|
inherited |
Adds an object to call its additional visualisation method.
[in] | which | The object to add |
Definition at line 1383 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), GUISUMOAbstractView::buildColorRainbow(), and GUIVehicle::drawOutsideNetwork().
|
inherited |
add decals
Definition at line 227 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myDecals.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
private |
add restricted lane
Definition at line 2368 of file GNEViewNet.cpp.
References GNENet::addRestrictedLane(), GNELane::getIndex(), getLaneAtPopupPosition(), GNELane::getParentEdge(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdge(), GNENet::retrieveEdges(), GNENet::retrieveLanes(), toString(), and WRITE_DEBUG.
Referenced by onCmdAddRestrictedLaneBikelane(), onCmdAddRestrictedLaneBuslane(), onCmdAddRestrictedLaneGreenVerge(), and onCmdAddRestrictedLaneSidewalk().
|
inherited |
Sets the snapshot time to file map.
[in] | snaps | The snapshots to take at certain times |
Definition at line 909 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 1421 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 763 of file GNEViewNet.cpp.
References GNEViewNet::ViewOptions::menuCheckExtendSelection, and myViewOptions.
Referenced by GNESelectorFrame::handleIDs(), and GNEViewNet::SelectingArea::processBoundarySelection().
|
virtual |
recalibrate color scheme according to the current value range
Reimplemented from GUISUMOAbstractView.
Definition at line 685 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 |
adds controls for setting the edit mode
Definition at line 2827 of file GNEViewNet.cpp.
References GNEViewNet::CreateEdgeOptions::buildCreateEdgeOptionMenuChecks(), GNEViewNet::ViewOptions::buildViewOptionsMenuChecks(), GUIIconSubSys::getIcon(), GUIDesignButtonToolbarCheckable, ICON_MODEADDITIONAL, ICON_MODECONNECTION, ICON_MODECREATEEDGE, ICON_MODECROSSING, ICON_MODEDELETE, ICON_MODEINSPECT, ICON_MODEMOVE, ICON_MODEPOLYGON, ICON_MODEPROHIBITION, ICON_MODESELECT, ICON_MODETAZ, ICON_MODETLS, MID_GNE_SETMODE_ADDITIONAL, MID_GNE_SETMODE_CONNECT, MID_GNE_SETMODE_CREATE_EDGE, MID_GNE_SETMODE_CROSSING, MID_GNE_SETMODE_DELETE, MID_GNE_SETMODE_INSPECT, MID_GNE_SETMODE_MOVE, MID_GNE_SETMODE_POLYGON, MID_GNE_SETMODE_PROHIBITION, MID_GNE_SETMODE_SELECT, MID_GNE_SETMODE_TAZ, MID_GNE_SETMODE_TLS, myCreateEdgeOptions, myEditModeAdditional, myEditModeConnection, myEditModeCreateEdge, myEditModeCrossing, myEditModeDelete, myEditModeInspect, myEditModeMove, myEditModePolygon, myEditModeProhibition, myEditModeSelect, myEditModeTAZ, myEditModeTrafficLight, myToolbar, and myViewOptions.
Referenced by GNEViewNet().
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 617 of file GNEViewNet.cpp.
References GUIIconSubSys::getIcon(), ICON_FLAG_MINUS, ICON_FLAG_PLUS, GNEAttributeCarrier::isAttributeCarrierSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEEdge::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
virtual |
builds the view toolbars
Reimplemented from GUISUMOAbstractView.
Definition at line 540 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_LOCATETLS, MAX2(), MID_LOCATEADD, MID_LOCATEEDGE, MID_LOCATEJUNCTION, MID_LOCATEPOI, MID_LOCATEPOLY, MID_LOCATETLS, GUISUMOAbstractView::myVisualizationSettings, and GUIVisualizationSettings::name.
Referenced by GNEViewParent::GNEViewParent().
|
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 636 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(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processSet(), and GUIGlChildWindow::setView().
|
inherited |
centers to the chosen artifact
Definition at line 653 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::setViewport().
bool GNEViewNet::changeAllPhases | ( | ) | const |
change all phases
Definition at line 775 of file GNEViewNet.cpp.
References GNEViewNet::ViewOptions::menuCheckChangeAllPhases, and myViewOptions.
Referenced by GNETLSEditorFrame::handleChange().
|
protectedinherited |
check whether we can read image data or position with gdal
Definition at line 1256 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 1077 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 1178 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 3045 of file GNEViewNet.cpp.
References GNEViewParent::getAdditionalFrame(), getViewParent(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEAdditionalFrame::removeAdditional(), GNENet::retrieveAdditional(), and GNENet::retrieveAdditionals().
Referenced by hotkeyDel().
|
private |
delete all currently selected connections
Definition at line 3089 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 3063 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 edges
Definition at line 3030 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 3001 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 3015 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 3113 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 717 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myPopupPosition, and Position::set().
Referenced by GUISUMOAbstractView::buildColorRainbow(), onCmdClearConnections(), onCmdEditConnectionShape(), onCmdEditCrossingShape(), onCmdEditJunctionShape(), onCmdReplaceJunction(), onCmdResetConnections(), onCmdResetJunctionShape(), onCmdSplitJunction(), GNEInternalLane::onDefault(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), and processClick().
|
protectedinherited |
a line with ticks, and the length information.
Definition at line 551 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 536 of file GNEViewNet.cpp.
|
protectedvirtual |
do paintGL
Reimplemented from GUISUMOAbstractView.
Definition at line 827 of file GNEViewNet.cpp.
References GUISUMOAbstractView::drawDecals(), GUIVisualizationSettings::drawForSelecting, drawLaneCandidates(), GNEViewNet::SelectingArea::drawRectangleSelection(), drawTemporalDrawShape(), GNEViewNet::TestingMode::drawTestingElements(), GUIVisualizationSettings::editMode, GLO_ADDITIONAL, GUISUMOAbstractView::m2p(), GNEViewNet::ViewOptions::menuCheckShowConnections, GNEViewNet::ViewOptions::menuCheckShowGrid, GUISUMOAbstractView::myAdditionallyDrawn, GUISUMOAbstractView::myApp, myEditMode, GUISUMOAbstractView::myGrid, mySelectingArea, myTestingMode, GUISUMOAbstractView::myUseToolTips, myViewOptions, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), GUIVisualizationSettings::scale, SUMORTree::Search(), GUIVisualizationSettings::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 1335 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(), MFXMutex::lock(), GUISUMOAbstractView::myDecals, GUISUMOAbstractView::myDecalsLock, GUISUMOAbstractView::p2m(), GUISUMOAbstractView::Decal::rot, MFXImageHelper::scalePower2(), GUISUMOAbstractView::screenPos2NetPos(), GUISUMOAbstractView::Decal::screenRelative, GUISUMOAbstractView::Decal::skip2D, MFXMutex::unlock(), GUISUMOAbstractView::Decal::width, WRITE_ERROR, Position::x(), and Position::y().
Referenced by GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::GUISUMOAbstractView(), and GUISUMOAbstractView::makeSnapshot().
|
private |
draw functions
draw connections between lane candidates during selecting lane mode in Additional mode
Definition at line 3918 of file GNEViewNet.cpp.
References RGBColor::CYAN, Position::distanceTo2D(), GLHelper::drawBoxLines(), GLHelper::drawFilledCircle(), GLHelper::drawText(), GNEViewParent::getAdditionalFrame(), NBEdge::getConnection(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNELane::getIndex(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEAdditionalFrame::SelectorLaneParents::getSelectedLaneColor(), GNEAdditionalFrame::SelectorLaneParents::getSelectedLanes(), GLO_JUNCTION, GNEAdditionalFrame::SelectorLaneParents::isSelectingLanes(), M_PI, myViewParent, RGBColor::RED, GLHelper::setColor(), Position::x(), and Position::y().
Referenced by doPaintGL().
|
private |
draw temporal polygon shape in Polygon Mode
Definition at line 3992 of file GNEViewNet.cpp.
References RGBColor::BLUE, GLHelper::drawLine(), GNEFrame::DrawingShape::getDeleteLastCreatedPoint(), GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GUISUMOAbstractView::getPositionInformation(), GNEViewParent::getTAZFrame(), GNEFrame::DrawingShape::getTemporalShape(), RGBColor::GREEN, GNEFrame::DrawingShape::isDrawing(), myViewParent, RGBColor::RED, GLHelper::setColor(), and GUISUMOAbstractView::snapToActiveGrid().
Referenced by doPaintGL().
bool GNEViewNet::editingElevation | ( | ) | const |
return true if elevation is being edited
Definition at line 739 of file GNEViewNet.cpp.
References GNEViewNet::CreateEdgeOptions::menuCheckMoveElevation, and myCreateEdgeOptions.
Referenced by GNEJunction::drawGL(), GNEPoly::drawGL(), and GNEEdge::drawGL().
|
inlinevirtualinherited |
Ends a video snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 180 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 1715 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 585 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, myViewOptions, myViewParent, GNENet::retrieveAttributeCarrier(), GNEViewNet::ViewOptions::selectEdges(), and SUMO_TAG_LANE.
Referenced by GNETAZFrame::buildShape(), GNEViewNet::SelectingArea::processBoundarySelection(), and GNEViewNet::SelectingArea::processEdgeRectangleSelection().
|
inherited |
get changer
Definition at line 172 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 1250 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getColoringSchemesCombo(), and GUISUMOAbstractView::myParent.
Referenced by GUISettingsHandler::addSettings(), GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::onCmdSaveSetting().
|
private |
try to retrieve a connection at popup position
Definition at line 1633 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 1654 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().
EditMode GNEViewNet::getCurrentEditMode | ( | ) | const |
get the current edit mode
Definition at line 1576 of file GNEViewNet.cpp.
References myEditMode.
Referenced by GNETAZ::drawGL(), GNEPoly::drawGL(), GNEEdge::drawGL(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEConnection::getPopUpMenu(), and GNELane::updateGeometry().
|
virtualinherited |
get the current simulation time
Reimplemented in GUIViewTraffic.
Definition at line 1119 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::endSnapshot().
|
inherited |
Returns the delay of the parent application.
Definition at line 1455 of file GUISUMOAbstractView.cpp.
References GUIMainWindow::getDelay(), and GUISUMOAbstractView::myApp.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting().
const GNEAttributeCarrier * GNEViewNet::getDottedAC | ( | ) | const |
get AttributeCarrier under cursor
Definition at line 1594 of file GNEViewNet.cpp.
References myDottedAC.
Referenced by GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEVariableSpeedSign::drawGL(), GNEJunction::drawGL(), GNECrossing::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNECalibrator::drawGL(), GNETAZ::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GNEDetectorE2::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GNEEdge::drawGL(), GNEPoly::mouseOverObject(), and GNEJunction::mouseOverObject().
|
private |
try to retrieve an edge at popup position
Definition at line 1674 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().
|
inherited |
get grid Height
Definition at line 1223 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), and GUISUMOAbstractView::myGrid.
Referenced by GUISUMOAbstractView::buildColorRainbow(), GUISUMOAbstractView::checkGDALImage(), and GUIDialog_ViewSettings::onCmdEditTable().
|
inherited |
get grid width
Definition at line 1217 of file GUISUMOAbstractView.cpp.
References Boundary::getWidth(), and GUISUMOAbstractView::myGrid.
Referenced by GUISUMOAbstractView::buildColorRainbow(), GUISUMOAbstractView::checkGDALImage(), and GUIDialog_ViewSettings::onCmdEditTable().
|
protectedinherited |
returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT
Definition at line 420 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 330 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.
Referenced by onLeftBtnPress(), onLeftBtnRelease(), and GUISUMOAbstractView::retrieveBreakpoints().
|
private |
try to retrieve a junction at popup position
Definition at line 1612 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(), and onCmdSplitJunction().
const GNEViewNet::KeyPressed & GNEViewNet::getKeyPressed | ( | ) | const |
get Key Pressed modul
Definition at line 1582 of file GNEViewNet.cpp.
References myKeyPressed.
Referenced by GNEConnectorFrame::handleLaneClick(), GNEProhibitionFrame::handleProhibitionClick(), and GNEInspectorFrame::processClick().
|
private |
try to retrieve a lane at popup position
Definition at line 1698 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().
FXMenuCheck * GNEViewNet::getMenuCheckShowGrid | ( | ) | const |
get grid button
Definition at line 1588 of file GNEViewNet.cpp.
References GNEViewNet::ViewOptions::menuCheckShowGrid, and myViewOptions.
Referenced by GNEApplicationWindow::onCmdToogleGrid().
GNENet * GNEViewNet::getNet | ( | ) | const |
get the net object
Definition at line 1564 of file GNEViewNet.cpp.
References myNet.
Referenced by GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildAdditional(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildChargingStation(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNETLSEditorFrame::buildIinternalLanes(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEPolygonFrame::buildShape(), GNETAZFrame::buildShape(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVehicleType(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNESelectorFrame::clearCurrentSelection(), GNETAZ::deleteGeometryPoint(), GNEAdditional::endGeometryMoving(), GNEAdditional::generateAdditionalChildID(), GNEAdditionalFrame::generateID(), GNEAdditionalFrame::SelectorEdgeChilds::getEdgeIdsSelected(), GNEAdditionalFrame::SelectorLaneChilds::getLaneIdsSelected(), GNESelectorFrame::getMatches(), GNEDetectorE3::getParentName(), GNECalibratorRoute::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNECalibratorVehicleType::getParentName(), GNETAZ::getParentName(), GNEAdditional::getPopUpMenu(), GNERouteProbReroute::GNERouteProbReroute(), GNESelectorFrame::handleIDs(), GNETLSEditorFrame::handleMultiChange(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEBusStop::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEClosingReroute::isValid(), GNEClosingLaneReroute::isValid(), GNEDestProbReroute::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNECalibratorRoute::isValid(), GNECalibratorFlow::isValid(), GNEVariableSpeedSign::isValid(), GNERerouter::isValid(), GNEAccess::isValid(), GNEDetectorE1::isValid(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNEDetectorE2::isValid(), GNEAdditional::isValidAdditionalID(), GNEAdditional::isValidDetectorID(), GNECalibratorDialog::onCmdAddFlow(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNETLSEditorFrame::onCmdDefSwitch(), 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(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), onCmdToogleShowConnection(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildCalibratorRoute(), GNEAdditionalHandler::parseAndBuildCalibratorVehicleType(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::SelectorAdditionalParent::refreshSelectorAdditionalParentModul(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), GNEClosingReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNECalibratorRoute::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNERerouter::setAttribute(), GNEDetectorE2::setAttribute(), GNECalibratorFlow::setAttribute(), GNETAZ::setAttribute(), GNETAZFrame::TAZCurrent::setTAZ(), GNEDeleteFrame::show(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorEdgeChilds::showSelectorEdgeChildsModul(), GNEAdditionalFrame::SelectorLaneChilds::showSelectorLaneChildsModul(), GNECalibratorDialog::updateFlowAndLabelButton(), GNEContainerStop::updateGeometry(), GNEBusStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEParkingArea::updateGeometry(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEParkingSpace::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNEAccess::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntry::updateGeometry(), GNEDetectorExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), GNECalibrator::updateGeometry(), GNEDetectorE2::updateGeometry(), GNECalibratorDialog::updateRouteTable(), GNEAdditionalFrame::SelectorEdgeChilds::updateUseSelectedEdges(), GNEAdditionalFrame::SelectorLaneChilds::updateUseSelectedLanes(), and GNECalibratorDialog::updateVehicleTypeTable().
returns the id of the object at position using GL_SELECT
Definition at line 336 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 385 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 450 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::doPaintGL(), GUIVisualizationSettings::drawForSelecting, GUIPerspectiveChanger::getViewport(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, GUIMainWindow::setStatusBarText(), GUIPerspectiveChanger::setViewport(), 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 323 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 317 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), and GUISUMOAbstractView::getPositionInformation().
Referenced by GUIViewTraffic::getLaneUnderCursor(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::openObjectDialog(), openObjectDialog(), GUISUMOAbstractView::paintGL(), and GUISUMOAbstractView::retrieveBreakpoints().
|
private |
try to retrieve a POILane at popup position
Definition at line 1743 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 1729 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 712 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myPopupPosition.
Referenced by GUISUMOAbstractView::buildColorRainbow(), getAdditionalAtPopupPosition(), getConnectionAtPopupPosition(), getCrossingAtPopupPosition(), getEdgeAtPopupPosition(), 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 187 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myWindowCursorPositionX, GUISUMOAbstractView::myWindowCursorPositionY, and GUISUMOAbstractView::screenPos2NetPos().
Referenced by GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEViewNet::SelectingArea::beginRectangleSelection(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculateOffsetMovement(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), GNEViewNet::MoveSingleElementValues::calculateTAZValues(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEJunction::drawGL(), GNETAZ::drawGL(), GNEPoly::drawGL(), GNEEdge::drawGL(), drawTemporalDrawShape(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), GUISUMOAbstractView::getObjectstUnderCursor(), GUISUMOAbstractView::getObjectUnderCursor(), GUIEdge::getParameterWindow(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPoly::mouseOverObject(), GNEJunction::mouseOverObject(), GNEViewNet::SelectingArea::moveRectangleSelection(), GNEViewNet::MoveMultipleElementValues::moveSelection(), GUIDanielPerspectiveChanger::onKeyPress(), onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), GUISUMOAbstractView::openObjectDialog(), openObjectDialog(), GNEDeleteFrame::removeAttributeCarrier(), GUISUMOAbstractView::showToolTipFor(), and GUISUMOAbstractView::updatePositionInformation().
|
virtualinherited |
get tracked id
Reimplemented in GUIViewTraffic.
Definition at line 1239 of file GUISUMOAbstractView.cpp.
References GUIGlObject::INVALID_ID.
Referenced by GUISUMOAbstractView::buildColorRainbow(), GUIPerson::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUISUMOAbstractView::paintGL(), and TraCIServerAPI_GUI::processSet().
GNEUndoList * GNEViewNet::getUndoList | ( | ) | const |
get the undoList object
Definition at line 1570 of file GNEViewNet.cpp.
References myUndoList.
Referenced by GNEAdditionalDialog::acceptChanges(), GNETAZFrame::addOrRemoveTAZMember(), GNEPolygonFrame::addPOI(), GNENet::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNENet::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::builDestProbReroute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEAdditionalHandler::buildVehicleType(), GNEAdditionalHandler::builParkingAreaReroute(), GNEAdditionalDialog::cancelChanges(), GNEPoly::changeFirstGeometryPoint(), GNESelectorFrame::clearCurrentSelection(), GNEPoly::closePolygon(), GNENet::computeAndUpdate(), GNETAZ::deleteGeometryPoint(), GNEEdge::deleteGeometryPoint(), GNEPoly::deleteGeometryPoint(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNEViewNet::MoveMultipleElementValues::finishMoveSelection(), GNEDetectorE1Instant::fixAdditionalProblem(), GNEStoppingPlace::fixAdditionalProblem(), GNEDetectorE1::fixAdditionalProblem(), GNEDetectorEntry::fixAdditionalProblem(), GNEDetectorExit::fixAdditionalProblem(), GNEDetectorE2::fixAdditionalProblem(), GNESelectorFrame::handleIDs(), GNEAdditionalDialog::initChanges(), GNEDialog_FixAdditionalPositions::onCmdAccept(), GNEDialog_AllowDisallow::onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdAddStep(), 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(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::onCmdOK(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues(), GNECalibratorFlowDialog::onCmdSetVariable(), GNECalibratorRouteDialog::onCmdSetVariable(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNEPoly::openPolygon(), GNETLSEditorFrame::parseTLSPrograms(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAdditionalDialog::resetChanges(), and GNEPoly::simplifyShape().
GNEViewParent * GNEViewNet::getViewParent | ( | ) | const |
get the net object
Definition at line 1558 of file GNEViewNet.cpp.
References myViewParent.
Referenced by GNENet::computeAndUpdate(), GNEFrame::ACHierarchy::createPopUpMenu(), GNENet::deleteAdditional(), GNENet::deleteEdge(), GNENet::deleteLane(), deleteSelectedAdditionals(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNETAZ::drawGL(), GNELane::getPopUpMenu(), GNEFrame::hide(), GNEApplicationWindow::onCmdAbort(), GNEDialog_FixAdditionalPositions::onCmdAccept(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNELane::onDefault(), GNEInspectorFrame::processClick(), GNEChange_Shape::redo(), GNEChange_Junction::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::removePolygonForEditShapes(), GNENet::removeShape(), GNENet::requiereSaveAdditionals(), GNENet::requiereSaveShapes(), GNENet::requiereSaveTLSPrograms(), GNEShape::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEFrame::show(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_Additional::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEShape::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), and GNEAdditional::unselectAttributeCarrier().
|
inherited |
get the viewport and create it on first access
Definition at line 1140 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 265 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 1199 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myVisualizationSettings.
Referenced by GNEEdge::commitShapeChange(), GUISUMOAbstractView::endSnapshot(), GNELane::getPopUpMenu(), GNEProhibitionFrame::GNEProhibitionFrame(), GUIApplicationWindow::onCmdEditChosen(), TraCIServerAPI_GUI::processGet(), and startEditCustomShape().
|
inherited |
get visualisation settings
Definition at line 233 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myVisualizationSettings.
void GNEViewNet::hotkeyDel | ( | ) |
handle del keypress
Definition at line 1433 of file GNEViewNet.cpp.
References deleteSelectedAdditionals(), deleteSelectedConnections(), deleteSelectedCrossings(), deleteSelectedEdges(), deleteSelectedJunctions(), deleteSelectedLanes(), deleteSelectedShapes(), GNE_MODE_CONNECT, GNE_MODE_TLS, myEditMode, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), and setStatusBarText().
Referenced by GNEApplicationWindow::onCmdDel().
void GNEViewNet::hotkeyEnter | ( | ) |
handle enter keypress
Definition at line 1451 of file GNEViewNet.cpp.
References GNECrossingFrame::createCrossingHotkey(), GNEViewParent::getAdditionalFrame(), GNEConnectorFrame::getConnectionModifications(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEViewParent::getCrossingFrame(), GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), SUMOPolygon::getShape(), GNEPoly::getShapeEditedElement(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNETAZFrame::getTAZSaveChangesModul(), GNEViewParent::getTLSEditorFrame(), GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CROSSING, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_TAZ, GNE_MODE_TLS, GNEAttributeCarrier::TagProperties::hasAttribute(), GNETAZFrame::TAZSaveChanges::isChangesPending(), GNEFrame::DrawingShape::isDrawing(), GNEAdditionalFrame::SelectorLaneParents::isSelectingLanes(), myEditMode, myEditShapePoly, myUndoList, myViewParent, GNETLSEditorFrame::onCmdOK(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENetElement::setAttribute(), GNEFrame::DrawingShape::startDrawing(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), GNEFrame::DrawingShape::stopDrawing(), stopEditCustomShape(), SUMO_ATTR_CUSTOMSHAPE, SUMO_ATTR_SHAPE, and toString().
Referenced by GNEApplicationWindow::onCmdEnter().
void GNEViewNet::hotkeyFocusFrame | ( | ) |
handle focus frame keypress
Definition at line 1501 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 1411 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUISUMOAbstractView::buildColorRainbow().
|
inherited |
returns true, if the edit button was pressed
Definition at line 166 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myInEditMode.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
inherited |
meter-to-pixels conversion method
Definition at line 618 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUISUMOAbstractView::displayLegend(), GUIViewTraffic::doPaintGL(), doPaintGL(), and GUISUMOAbstractView::makeSnapshot().
|
inherited |
A reimplementation due to some internal reasons.
Definition at line 674 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(), GUISUMOAbstractView::onLeftBtnPress(), onLeftBtnPress(), onLeftBtnRelease(), GUISUMOAbstractView::onPaint(), GUISUMOAbstractView::openObjectDialog(), openObjectDialog(), GNEViewNet::SelectingArea::processBoundarySelection(), and GNEViewNet::SelectingArea::processEdgeRectangleSelection().
|
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 919 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), 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(), 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 3129 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(), GNEViewNet::CreateEdgeOptions::menuCheckWarnAboutMerge, GNENet::mergeJunctions(), GNEJunction::moveGeometry(), myCreateEdgeOptions, myNet, myUndoList, toString(), GUIGlObjectStorage::unblockObject(), and WRITE_DEBUG.
Referenced by onLeftBtnRelease().
long GNEViewNet::onCmdAddRestrictedLaneBikelane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Add restricted lane for bikes.
Definition at line 2239 of file GNEViewNet.cpp.
References addRestrictedLane(), and SVC_BICYCLE.
long GNEViewNet::onCmdAddRestrictedLaneBuslane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Add restricted lane for buses.
Definition at line 2245 of file GNEViewNet.cpp.
References addRestrictedLane(), and SVC_BUS.
long GNEViewNet::onCmdAddRestrictedLaneGreenVerge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Add restricted lane for all vehicles.
Definition at line 2251 of file GNEViewNet.cpp.
References addRestrictedLane(), and SVC_IGNORING.
long GNEViewNet::onCmdAddRestrictedLaneSidewalk | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Add restricted lane for pedestrians.
Definition at line 2233 of file GNEViewNet.cpp.
References addRestrictedLane(), and SVC_PEDESTRIAN.
long GNEViewNet::onCmdAddReversedEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add reversed edge
Definition at line 1885 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 2750 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 2633 of file GNEViewNet.cpp.
References GNENet::clearJunctionConnections(), GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNENet::retrieveJunctions().
long GNEViewNet::onCmdClosePolygon | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
close opened polygon
Definition at line 2042 of file GNEViewNet.cpp.
References GNEPoly::closePolygon(), getPolygonAtPopupPosition(), and myEditShapePoly.
long GNEViewNet::onCmdDeleteGeometryPoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
delete the closes geometry point
Definition at line 2027 of file GNEViewNet.cpp.
References GNEPoly::deleteGeometryPoint(), getPolygonAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), and myEditShapePoly.
long GNEViewNet::onCmdDuplicateLane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
duplicate selected lane
Definition at line 2163 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 2681 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getConnectionAtPopupPosition(), GNEConnection::getShape(), and startEditCustomShape().
long GNEViewNet::onCmdEditCrossingShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
edit crossing shape
Definition at line 2695 of file GNEViewNet.cpp.
References NBNode::Crossing::customShape, GUISUMOAbstractView::destroyPopup(), getCrossingAtPopupPosition(), GNECrossing::getNBCrossing(), NBNode::Crossing::shape, and startEditCustomShape().
long GNEViewNet::onCmdEditEdgeEndpoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
change geometry endpoint
Definition at line 1906 of file GNEViewNet.cpp.
References GNEEdge::editEndpoint(), getEdgeAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), and myUndoList.
long GNEViewNet::onCmdEditJunctionShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
edit junction shape
Definition at line 2554 of file GNEViewNet.cpp.
References PositionVector::closePolygon(), GNENet::computeAndUpdate(), NBNode::computeNodeShape(), GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), GNEJunction::getNBNode(), OptionsCont::getOptions(), NBNode::getShape(), myNet, and startEditCustomShape().
long GNEViewNet::onCmdOpenAdditionalDialog | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
open additional dialog
Definition at line 2281 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 2057 of file GNEViewNet.cpp.
References getPolygonAtPopupPosition(), myEditShapePoly, and GNEPoly::openPolygon().
long GNEViewNet::onCmdRemoveRestrictedLaneBikelane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove restricted lane for bikes
Definition at line 2263 of file GNEViewNet.cpp.
References removeRestrictedLane(), and SVC_BICYCLE.
long GNEViewNet::onCmdRemoveRestrictedLaneBuslane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove restricted lane for bus
Definition at line 2269 of file GNEViewNet.cpp.
References removeRestrictedLane(), and SVC_BUS.
long GNEViewNet::onCmdRemoveRestrictedLaneGreenVerge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove restricted lane for all vehicles
Definition at line 2275 of file GNEViewNet.cpp.
References removeRestrictedLane(), and SVC_IGNORING.
long GNEViewNet::onCmdRemoveRestrictedLaneSidewalk | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove restricted lane for pedestrians
Definition at line 2257 of file GNEViewNet.cpp.
References removeRestrictedLane(), and SVC_PEDESTRIAN.
long GNEViewNet::onCmdRemoveSelected | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
unselect AC under cursor
Definition at line 2764 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 2605 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), myNet, myUndoList, and GNENet::replaceJunctionByGeometry().
long GNEViewNet::onCmdResetConnections | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reset junction connections
Definition at line 2657 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), GNENetElement::isAttributeCarrierSelected(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::resetJunctionConnections(), and GNENet::retrieveJunctions().
long GNEViewNet::onCmdResetEdgeEndpoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
change geometry endpoint
Definition at line 1917 of file GNEViewNet.cpp.
References getEdgeAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), myUndoList, and GNEEdge::resetEndpoint().
long GNEViewNet::onCmdResetJunctionShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reset junction shape
Definition at line 2579 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 2186 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::onCmdRestrictLaneBikelane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
restrict lane to bikes
Definition at line 2215 of file GNEViewNet.cpp.
References restrictLane(), and SVC_BICYCLE.
long GNEViewNet::onCmdRestrictLaneBuslane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
restrict lane to buslanes
Definition at line 2221 of file GNEViewNet.cpp.
References restrictLane(), and SVC_BUS.
long GNEViewNet::onCmdRestrictLaneGreenVerge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
restrict lane to all vehicles
Definition at line 2227 of file GNEViewNet.cpp.
References restrictLane(), and SVC_IGNORING.
long GNEViewNet::onCmdRestrictLaneSidewalk | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
restrict lane to pedestrians
Definition at line 2209 of file GNEViewNet.cpp.
References restrictLane(), and SVC_PEDESTRIAN.
long GNEViewNet::onCmdReverseEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reverse edge
Definition at line 1864 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 2072 of file GNEViewNet.cpp.
References GNEPoly::changeFirstGeometryPoint(), getPolygonAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), GNEPoly::getVertexIndex(), and myEditShapePoly.
long GNEViewNet::onCmdSetModeAdditional | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for additional mode
Definition at line 1806 of file GNEViewNet.cpp.
References GNE_MODE_ADDITIONAL, and setEditMode().
long GNEViewNet::onCmdSetModeConnect | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for connect mode
Definition at line 1792 of file GNEViewNet.cpp.
References GNE_MODE_CONNECT, and setEditMode().
long GNEViewNet::onCmdSetModeCreateEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1757 of file GNEViewNet.cpp.
References GNE_MODE_CREATE_EDGE, and setEditMode().
long GNEViewNet::onCmdSetModeCrossing | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for crossing mode
Definition at line 1813 of file GNEViewNet.cpp.
References GNE_MODE_CROSSING, and setEditMode().
long GNEViewNet::onCmdSetModeDelete | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for delete mode
Definition at line 1771 of file GNEViewNet.cpp.
References GNE_MODE_DELETE, and setEditMode().
long GNEViewNet::onCmdSetModeInspect | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for inspect mode
Definition at line 1778 of file GNEViewNet.cpp.
References GNE_MODE_INSPECT, and setEditMode().
long GNEViewNet::onCmdSetModeMove | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for move mode
Definition at line 1764 of file GNEViewNet.cpp.
References GNE_MODE_MOVE, and setEditMode().
long GNEViewNet::onCmdSetModePolygon | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for polygon mode
Definition at line 1827 of file GNEViewNet.cpp.
References GNE_MODE_POLYGON, and setEditMode().
long GNEViewNet::onCmdSetModeProhibition | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for polygon mode
Definition at line 1833 of file GNEViewNet.cpp.
References GNE_MODE_PROHIBITION, and setEditMode().
long GNEViewNet::onCmdSetModeSelect | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for select mode
Definition at line 1785 of file GNEViewNet.cpp.
References GNE_MODE_SELECT, and setEditMode().
long GNEViewNet::onCmdSetModeTAZ | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for TAZ mode
Definition at line 1820 of file GNEViewNet.cpp.
References GNE_MODE_TAZ, and setEditMode().
long GNEViewNet::onCmdSetModeTLS | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press the button for traffic lights mode
Definition at line 1799 of file GNEViewNet.cpp.
References GNE_MODE_TLS, and setEditMode().
long GNEViewNet::onCmdShowGrid | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
toogle show grid
Definition at line 2778 of file GNEViewNet.cpp.
References GNEViewNet::ViewOptions::menuCheckShowGrid, myViewOptions, GUISUMOAbstractView::myVisualizationSettings, and GUIVisualizationSettings::showGrid.
Referenced by GNEApplicationWindow::onCmdToogleGrid().
long GNEViewNet::onCmdSimplifyShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
simply shape of current polygon
Definition at line 2012 of file GNEViewNet.cpp.
References getPolygonAtPopupPosition(), myEditShapePoly, and GNEPoly::simplifyShape().
long GNEViewNet::onCmdSmoothEdges | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
smooth geometry
Definition at line 1949 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 1991 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 1839 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 1849 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 2619 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), myNet, myUndoList, and GNENet::splitJunction().
long GNEViewNet::onCmdStraightenEdges | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
makes selected edges straight
Definition at line 1927 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 1970 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::onCmdToogleMoveElevation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
toogle move elevation
Definition at line 2742 of file GNEViewNet.cpp.
long GNEViewNet::onCmdToogleSelectEdges | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
toogle selet edges
Definition at line 2727 of file GNEViewNet.cpp.
long GNEViewNet::onCmdToogleShowBubbles | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
toogle show bubbles
Definition at line 2734 of file GNEViewNet.cpp.
long GNEViewNet::onCmdToogleShowConnection | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
toogle show connections
Definition at line 2711 of file GNEViewNet.cpp.
References getNet(), GNENet::initGNEConnections(), myViewOptions, GUISUMOAbstractView::myVisualizationSettings, GNENet::requireRecompute(), GNEViewNet::ViewOptions::showConnections(), and GUIVisualizationSettings::showLane2Lane.
long GNEViewNet::onCmdTransformPOI | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Transform POI to POILane, and viceversa.
Definition at line 2087 of file GNEViewNet.cpp.
References GNENet::addPOI(), GNENet::deleteShape(), Position::distanceTo(), GNEPOI::getCenteringBoundary(), PointOfInterest::getHeight(), GNEAttributeCarrier::getID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), getPOIAtPopupPosition(), GNEPOI::getPositionInView(), GNELane::getShape(), 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(), SUMO_TAG_LANE, SUMO_TAG_POI, toString(), and WRITE_WARNING.
|
virtualinherited |
mouse functions
Definition at line 681 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 803 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtualinherited |
on gaming click
Reimplemented in GUIViewTraffic.
Definition at line 1245 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildColorRainbow(), and GUISUMOAbstractView::onLeftBtnRelease().
|
virtual |
called when user press a key
Reimplemented from GUISUMOAbstractView.
Definition at line 1355 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNEViewParent::getTAZFrame(), GNE_MODE_POLYGON, GNE_MODE_TAZ, GNEFrame::DrawingShape::isDrawing(), myEditMode, myKeyPressed, myViewParent, GUISUMOAbstractView::onKeyPress(), GNEFrame::DrawingShape::setDeleteLastCreatedPoint(), GNEViewNet::KeyPressed::shiftKeyPressed(), GNEViewNet::KeyPressed::update(), and updateCursor().
|
virtual |
called when user release a key
Reimplemented from GUISUMOAbstractView.
Definition at line 1372 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNE_MODE_POLYGON, GNEFrame::DrawingShape::isDrawing(), myEditMode, myKeyPressed, mySelectingArea, myViewParent, GUISUMOAbstractView::onKeyRelease(), GNEViewNet::SelectingArea::selectingUsingRectangle, GNEFrame::DrawingShape::setDeleteLastCreatedPoint(), GNEViewNet::KeyPressed::shiftKeyPressed(), GNEViewNet::KeyPressed::update(), and updateCursor().
|
virtual |
this function will be implemented in the future class GNECreateEdgeFrame
Reimplemented from GUISUMOAbstractView.
Definition at line 887 of file GNEViewNet.cpp.
References GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEViewNet::MovedItems::additionalToMove, GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNEPolygonFrame::ADDSHAPE_UPDATEDTEMPORALSHAPE, GNEViewNet::CreateEdgeOptions::autoCreateOppositeEdge, GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEViewNet::SelectingArea::beginRectangleSelection(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), GNEViewNet::MoveSingleElementValues::calculateTAZValues(), GNEViewNet::CreateEdgeOptions::chainCreateEdge, GNEViewNet::KeyPressed::controlKeyPressed(), GNENet::createEdge(), GNEViewNet::CreateEdgeOptions::createEdgeSource, GNENet::createJunction(), GNEDeleteFrame::DeleteOptions::deleteOnlyGeometryPoints(), GNETLSEditorFrame::editJunction(), GNEViewParent::getAdditionalFrame(), GNEViewNet::ObjectsUnderCursor::getAdditionalFront(), GNEViewNet::ObjectsUnderCursor::getAttributeCarrierFront(), GNEViewNet::ObjectsUnderCursor::getConnectionFront(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEDeleteFrame::getDeleteOptions(), GNEViewNet::ObjectsUnderCursor::getEdgeFront(), GNEInspectorFrame::TemplateEditor::getEdgeTemplate(), GNEViewNet::ObjectsUnderCursor::getGlTypeFront(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), Named::getID(), GNEViewParent::getInspectorFrame(), GNEViewNet::ObjectsUnderCursor::getJunctionFront(), GNEViewNet::ObjectsUnderCursor::getLaneFront(), GNESelectorFrame::getLockGLObjectTypes(), GNEEdge::getNBEdge(), GNEViewNet::ObjectsUnderCursor::getPOIFront(), GNEViewNet::ObjectsUnderCursor::getPolyFront(), GNEViewParent::getPolygonFrame(), GUISUMOAbstractView::getPositionInformation(), GNEJunction::getPositionInView(), GNEPOI::getPositionInView(), GNEAdditional::getPositionInView(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNEViewNet::ObjectsUnderCursor::getTAZFront(), GNEInspectorFrame::getTemplateEditor(), GNEViewParent::getTLSEditorFrame(), GNEEdge::getVertexIndex(), GNEPoly::getVertexIndex(), GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_CROSSING, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_PROHIBITION, GNE_MODE_SELECT, GNE_MODE_TAZ, GNE_MODE_TLS, GNEConnectorFrame::handleLaneClick(), GNEProhibitionFrame::handleProhibitionClick(), GNEUndoList::hasCommandGroup(), GNENetElement::isAttributeCarrierSelected(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GNEAdditionalFrame::SelectorLaneParents::isSelectingLanes(), GNEAdditionalFrame::SelectorLaneParents::isShown(), GNEViewNet::MovedItems::junctionToMove, GUISUMOAbstractView::makeCurrent(), GNEJunction::markAsCreateEdgeSource(), myCreateEdgeOptions, myEditMode, myEditShapePoly, myKeyPressed, myMovedItems, myMoveMultipleElementValues, myMoveSingleElementValues, myNet, myObjectsUnderCursor, mySelectingArea, myUndoList, myViewOptions, myViewParent, GNEViewNet::MoveSingleElementValues::originalPositionInView, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEViewNet::MovedItems::poiToMove, GNEPolygonFrame::processClick(), GNEInspectorFrame::processClick(), GNETAZFrame::processClick(), processClick(), GNEViewNet::MoveSingleElementValues::relativeClickedPosition, GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAttributeCarrier::selectAttributeCarrier(), GNEViewNet::ViewOptions::selectEdges(), GNEViewNet::ObjectsUnderCursor::setCreatedJunction(), setStatusBarText(), GNEViewNet::KeyPressed::shiftKeyPressed(), GUISUMOAbstractView::snapToActiveGrid(), GNEAdditionalFrame::SelectorLaneParents::startConsecutiveLaneSelector(), GNEAdditional::startGeometryMoving(), GNEJunction::startGeometryMoving(), SUMO_TAG_EDGE, SUMO_TAG_LANE, GNEViewNet::ObjectsUnderCursor::swapLane2Edge(), toString(), GNEJunction::unMarkAsCreateEdgeSource(), GNEAttributeCarrier::unselectAttributeCarrier(), GNEViewNet::KeyPressed::update(), updateCursor(), and GNEViewNet::ObjectsUnderCursor::updateObjectUnderCursor().
|
virtual |
called when user releases mouse's left button
Reimplemented from GUISUMOAbstractView.
Definition at line 1177 of file GNEViewNet.cpp.
References GNEViewNet::MovedItems::additionalToMove, GNEPOI::commitGeometryMoving(), GNEAdditional::commitGeometryMoving(), GNEJunction::commitGeometryMoving(), GNETAZ::commitShapeChange(), GNEPoly::commitShapeChange(), GNEEdge::commitShapeChange(), GNEEdge::commitShapeEndChange(), GNEEdge::commitShapeStartChange(), GNEViewNet::MovedItems::edgeToMove, GNEEdge::endGeometryMoving(), GNEAdditional::endGeometryMoving(), GNEJunction::endGeometryMoving(), GNEViewNet::MoveMultipleElementValues::finishMoveSelection(), GNEViewNet::SelectingArea::finishRectangleSelection(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GNEViewNet::ObjectsUnderCursor::getLaneFront(), GNEViewParent::getTAZFrame(), GNE_MODE_SELECT, GNE_MODE_TAZ, GNENetElement::isAttributeCarrierSelected(), GNEViewNet::MoveMultipleElementValues::isMovingSelection(), GNEViewNet::MovedItems::junctionToMove, GUISUMOAbstractView::makeCurrent(), mergeJunctions(), GNEViewNet::MoveSingleElementValues::movingEndPos, GNEViewNet::MoveSingleElementValues::movingStartPos, myEditMode, myEditShapePoly, myKeyPressed, myMovedItems, myMoveMultipleElementValues, myMoveSingleElementValues, myObjectsUnderCursor, mySelectingArea, myUndoList, myViewParent, GUISUMOAbstractView::onLeftBtnRelease(), GNEViewNet::MoveSingleElementValues::originalPositionInView, GNEViewNet::MoveSingleElementValues::originalShapeBeforeMoving, GNEViewNet::MovedItems::poiToMove, GNEViewNet::MovedItems::polyToMove, GNEViewNet::SelectingArea::processEdgeRectangleSelection(), GNETAZFrame::processEdgeSelection(), GNEViewNet::SelectingArea::processRectangleSelection(), GNENetElement::selectAttributeCarrier(), GNEViewNet::SelectingArea::selectingUsingRectangle, GNEViewNet::KeyPressed::shiftKeyPressed(), GNEViewNet::SelectingArea::startDrawing, GNEViewNet::MovedItems::tazToMove, GNENetElement::unselectAttributeCarrier(), GNEViewNet::KeyPressed::update(), updateCursor(), and GNEViewNet::ObjectsUnderCursor::updateObjectUnderCursor().
|
virtualinherited |
Definition at line 770 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtualinherited |
Definition at line 776 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtualinherited |
Definition at line 846 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars().
|
virtual |
called when user moves mouse
move TAZ's geometry without commiting changes depending if polygon is blocked
Reimplemented from GUISUMOAbstractView.
Definition at line 1288 of file GNEViewNet.cpp.
References GNEViewNet::MovedItems::additionalToMove, GNEViewNet::MoveSingleElementValues::calculateOffsetMovement(), GNEViewNet::MovedItems::edgeToMove, GNEPolygonFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNE_MODE_POLYGON, GNEAdditional::isAdditionalBlocked(), GNEFrame::DrawingShape::isDrawing(), GNEViewNet::MoveMultipleElementValues::isMovingSelection(), GNEPoly::isPolygonBlocked(), GNETAZ::isShapeBlocked(), GNEViewNet::MovedItems::junctionToMove, GNETAZ::moveEntireShape(), GNEPoly::moveEntireShape(), GNEPOI::moveGeometry(), GNEAdditional::moveGeometry(), GNEJunction::moveGeometry(), GNEViewNet::SelectingArea::moveRectangleSelection(), GNEViewNet::MoveMultipleElementValues::moveSelection(), GNEEdge::moveShapeEnd(), GNEEdge::moveShapeStart(), GNETAZ::moveVertexShape(), GNEPoly::moveVertexShape(), GNEEdge::moveVertexShape(), GNEViewNet::MoveSingleElementValues::movingEndPos, GNEViewNet::MoveSingleElementValues::movingIndexShape, GNEViewNet::MoveSingleElementValues::movingStartPos, myEditMode, myKeyPressed, myMovedItems, myMoveMultipleElementValues, myMoveSingleElementValues, mySelectingArea, myViewParent, GUISUMOAbstractView::onMouseMove(), GNEViewNet::MoveSingleElementValues::originalPositionInView, GNEViewNet::MoveSingleElementValues::originalShapeBeforeMoving, GNEViewNet::MovedItems::poiToMove, GNEViewNet::MovedItems::polyToMove, GNEViewNet::SelectingArea::selectingUsingRectangle, GNEFrame::DrawingShape::setDeleteLastCreatedPoint(), GNEViewNet::KeyPressed::shiftKeyPressed(), GNEViewNet::MovedItems::tazToMove, GNEViewNet::KeyPressed::update(), and updateCursor().
|
virtualinherited |
Definition at line 809 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 699 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, and GUISUMOAbstractView::paintGL().
Referenced by GUISUMOAbstractView::buildViewToolBars(), and updateModeSpecificControls().
|
virtual |
called when user press mouse's right button
Reimplemented from GUISUMOAbstractView.
Definition at line 1258 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNE_MODE_POLYGON, GNEFrame::DrawingShape::isDrawing(), myEditMode, myKeyPressed, myViewParent, GUISUMOAbstractView::onRightBtnPress(), GNEViewNet::KeyPressed::update(), and updateCursor().
|
virtual |
called when user releases mouse's right button
Reimplemented from GUISUMOAbstractView.
Definition at line 1273 of file GNEViewNet.cpp.
References GNEPolygonFrame::getDrawingShapeModul(), GNEViewParent::getPolygonFrame(), GNE_MODE_POLYGON, GNEFrame::DrawingShape::isDrawing(), myEditMode, myKeyPressed, myViewParent, GUISUMOAbstractView::onRightBtnRelease(), GNEViewNet::KeyPressed::update(), and updateCursor().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 644 of file GNEViewNet.cpp.
References GNEInspectorFrame::OverlappedInspection::checkSavedPosition(), GNEInspectorFrame::getInspectedACs(), 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 624 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), GUISUMOAbstractView::drawDecals(), GNEViewNet::TestingMode::drawTestingElements(), GUIDanielPerspectiveChanger::move(), and GUISUMOAbstractView::showToolTipFor().
|
protectedinherited |
performs the painting of the simulation
Definition at line 271 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::displayLegend(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::getObjectUnderCursor(), GUISUMOAbstractView::getTrackedID(), RGBColor::green(), GUIGlObject::INVALID_ID, GUISUMOAbstractView::myUseToolTips, GUISUMOAbstractView::myVisualizationSettings, RGBColor::red(), GUIVisualizationSettings::showSizeLegend, and GUISUMOAbstractView::showToolTipFor().
Referenced by GUISUMOAbstractView::onPaint(), and GUISUMOAbstractView::retrieveBreakpoints().
|
protectedinherited |
paints a grid
Definition at line 509 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 2526 of file GNEViewNet.cpp.
References GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::onLeftBtnPress().
Referenced by onLeftBtnPress().
|
virtualinherited |
recenters the view
Definition at line 630 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 1205 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myViewportChooser.
Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().
|
inherited |
remove view settings
Definition at line 1211 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 1395 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUISUMOAbstractView::buildColorRainbow(), GUIVehicle::drawOutsideNetwork(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIPerson::removeActiveAddVisualisation().
|
private |
remove restricted lane
Definition at line 2449 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 onCmdRemoveRestrictedLaneBikelane(), onCmdRemoveRestrictedLaneBuslane(), onCmdRemoveRestrictedLaneGreenVerge(), and onCmdRemoveRestrictedLaneSidewalk().
|
private |
restrict lane
Definition at line 2293 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 onCmdRestrictLaneBikelane(), onCmdRestrictLaneBuslane(), onCmdRestrictLaneGreenVerge(), and onCmdRestrictLaneSidewalk().
|
inlinevirtualinherited |
retrieve breakpoints if provided by the application
Reimplemented in GUIViewTraffic.
Definition at line 336 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::displayLegend(), GUISUMOAbstractView::doInit(), GUISUMOAbstractView::doPaintGL(), 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 1070 of file GUISUMOAbstractView.cpp.
References UNUSED_PARAMETER.
Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUISUMOAbstractView::makeSnapshot().
|
inherited |
Translate screen position to network position.
Definition at line 212 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(), GNEViewNet::TestingMode::drawTestingElements(), and GUISUMOAbstractView::getPositionInformation().
bool GNEViewNet::selectEdges | ( | ) | const |
whether inspection, selection and inversion should apply to edges or to lanes
Definition at line 733 of file GNEViewNet.cpp.
References myViewOptions, and GNEViewNet::ViewOptions::selectEdges().
Referenced by GNESelectorFrame::SelectionOperation::onCmdInvert(), GNEInspectorFrame::OverlappedInspection::onCmdNextElement(), GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement(), and GNEInspectorFrame::processClick().
|
virtual |
set color scheme
Reimplemented from GUISUMOAbstractView.
Definition at line 628 of file GNEViewNet.cpp.
References GUICompleteSchemeStorage::contains(), GUICompleteSchemeStorage::get(), GUIDialog_ViewSettings::getCurrentScheme(), gSchemeStorage, GUISUMOAbstractView::myVisualizationChanger, GUISUMOAbstractView::myVisualizationSettings, and GUIDialog_ViewSettings::setCurrentScheme().
|
inherited |
Sets the delay of the parent application.
Definition at line 1461 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 1600 of file GNEViewNet.cpp.
References myDottedAC.
Referenced by GNEInspectorFrame::clearInspectedAC(), GNEInspectorFrame::hide(), GNEInspectorFrame::inspectSingleElement(), GNEPoly::mouseOverObject(), and GNEJunction::mouseOverObject().
|
private |
set edit mode
Definition at line 2795 of file GNEViewNet.cpp.
References abortOperation(), GNENet::computeEverything(), GNEFrame::focusUpperElement(), GNEViewParent::getTLSEditorFrame(), GNE_MODE_CONNECT, GNE_MODE_PROHIBITION, GNE_MODE_TLS, GNETLSEditorFrame::isTLSSaved(), GUISUMOAbstractView::myApp, myCurrentFrame, myEditMode, myNet, myViewParent, setStatusBarText(), stopEditCustomShape(), and updateModeSpecificControls().
Referenced by onCmdSetModeAdditional(), onCmdSetModeConnect(), onCmdSetModeCreateEdge(), onCmdSetModeCrossing(), onCmdSetModeDelete(), onCmdSetModeInspect(), onCmdSetModeMove(), onCmdSetModePolygon(), onCmdSetModeProhibition(), onCmdSetModeSelect(), onCmdSetModeTAZ(), onCmdSetModeTLS(), setEditModeFromHotkey(), and stopEditCustomShape().
void GNEViewNet::setEditModeFromHotkey | ( | FXushort | selid | ) |
sets edit mode (from hotkey)
[in] | selid | An id MID_GNE_SETMODE_<foo> as defined in GUIAppEnum |
Definition at line 1512 of file GNEViewNet.cpp.
References GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_CROSSING, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_PROHIBITION, GNE_MODE_SELECT, GNE_MODE_TAZ, GNE_MODE_TLS, MID_GNE_SETMODE_ADDITIONAL, MID_GNE_SETMODE_CONNECT, MID_GNE_SETMODE_CREATE_EDGE, MID_GNE_SETMODE_CROSSING, MID_GNE_SETMODE_DELETE, MID_GNE_SETMODE_INSPECT, MID_GNE_SETMODE_MOVE, MID_GNE_SETMODE_POLYGON, MID_GNE_SETMODE_PROHIBITION, MID_GNE_SETMODE_SELECT, MID_GNE_SETMODE_TAZ, MID_GNE_SETMODE_TLS, and setEditMode().
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), GNEApplicationWindow::onCmdSetMode(), and startEditCustomShape().
void GNEViewNet::setSelectionScaling | ( | double | selectionScale | ) |
set selection scaling
Definition at line 769 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 727 of file GNEViewNet.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::setStatusBarText().
Referenced by GNEAdditionalFrame::addAdditional(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::editJunction(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), hotkeyDel(), GNEViewNet::SelectingArea::moveRectangleSelection(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNETLSEditorFrame::onCmdDefSwitch(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), onLeftBtnPress(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), setEditMode(), and GNEFrame::ACAttributes::showWarningMessage().
|
virtualinherited |
applies the given viewport settings
Definition at line 1170 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 information whether rotation is allowd.
Definition at line 667 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myMouseHotspotX, GUISUMOAbstractView::myMouseHotspotY, GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.
Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUIDanielPerspectiveChanger::onMouseMove().
bool GNEViewNet::showConnections | ( | ) |
show connections over junctions
Definition at line 749 of file GNEViewNet.cpp.
References GNE_MODE_CONNECT, GNE_MODE_PROHIBITION, GNEViewNet::ViewOptions::menuCheckHideConnections, GNEViewNet::ViewOptions::menuCheckShowConnections, myEditMode, myViewOptions, GUISUMOAbstractView::myVisualizationSettings, and GUIVisualizationSettings::showLane2Lane.
Referenced by GNEConnection::drawGL(), and GNEDetectorE2::drawGL().
bool GNEViewNet::showJunctionAsBubbles | ( | ) | const |
return true if junction must be showed as bubbles
Definition at line 781 of file GNEViewNet.cpp.
References GNE_MODE_MOVE, GNEViewNet::CreateEdgeOptions::menuCheckShowBubbleOverJunction, myCreateEdgeOptions, and myEditMode.
Referenced by GNEJunction::drawGL(), and GNEJunction::mouseOverObject().
bool GNEViewNet::showLockIcon | ( | ) | const |
check if lock icon should be visible
Definition at line 1606 of file GNEViewNet.cpp.
References GNE_MODE_ADDITIONAL, GNE_MODE_INSPECT, GNE_MODE_MOVE, and myEditMode.
Referenced by GNEShape::draw(), and GNEAdditional::BlockIcon::draw().
|
protectedinherited |
invokes the tooltip for the given object
Definition at line 489 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 1187 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myUseToolTips.
Referenced by GUISUMOAbstractView::endSnapshot(), and GUIGlChildWindow::onCmdShowToolTips().
|
virtualinherited |
show viewport editor
Definition at line 1161 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 1125 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().
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 193 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(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), GNETAZ::getVertexIndex(), GNEEdge::getVertexIndex(), GNEPoly::getVertexIndex(), GNETAZ::moveGeometry(), GNEDetectorE3::moveGeometry(), GNEParkingSpace::moveGeometry(), GNEVariableSpeedSign::moveGeometry(), GNEAccess::moveGeometry(), GNERerouter::moveGeometry(), GNEDetectorE1::moveGeometry(), GNEDetectorEntry::moveGeometry(), GNEDetectorExit::moveGeometry(), GNEDetectorE1Instant::moveGeometry(), GNEStoppingPlace::moveGeometry(), GNEPOI::moveGeometry(), GNEDetectorE2::moveGeometry(), GNEJunction::moveGeometry(), GNEEdge::moveShapeEnd(), GNEEdge::moveShapeStart(), GNETAZ::moveVertexShape(), GNEPoly::moveVertexShape(), GNEEdge::moveVertexShape(), and onLeftBtnPress().
void GNEViewNet::startEditCustomShape | ( | GNENetElement * | element, |
const PositionVector & | shape, | ||
bool | fill | ||
) |
start edit custom shape
Definition at line 787 of file GNEViewNet.cpp.
References GNENet::addPolygonForEditShapes(), GUIPropertySchemeStorage< T >::getSchemes(), GUISUMOAbstractView::getVisualisationSettings(), GUIVisualizationSettings::junctionColorer, MID_GNE_SETMODE_MOVE, myEditMode, myEditShapePoly, myNet, myPreviousEditMode, and setEditModeFromHotkey().
Referenced by onCmdEditConnectionShape(), onCmdEditCrossingShape(), and onCmdEditJunctionShape().
|
virtualinherited |
star track
Reimplemented in GUIViewTraffic.
Definition at line 1229 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildColorRainbow(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), and TraCIServerAPI_GUI::processSet().
void GNEViewNet::stopEditCustomShape | ( | ) |
edit edit shape
Definition at line 803 of file GNEViewNet.cpp.
References myEditMode, myEditShapePoly, myNet, myPreviousEditMode, GNENet::removePolygonForEditShapes(), and setEditMode().
Referenced by abortOperation(), hotkeyEnter(), and setEditMode().
|
virtualinherited |
stop track
Reimplemented in GUIViewTraffic.
Definition at line 1234 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildColorRainbow(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), and TraCIServerAPI_GUI::processSet().
void GNEViewNet::updateControls | ( | ) |
update control contents after undo/redo or recompute
Definition at line 3192 of file GNEViewNet.cpp.
References GNEViewParent::getInspectorFrame(), GNE_MODE_INSPECT, myEditMode, and myViewParent.
Referenced by GNEApplicationWindow::updateControls().
|
private |
update cursor after every click/key press/release
Definition at line 2541 of file GNEViewNet.cpp.
References GNEViewNet::KeyPressed::controlKeyPressed(), GUICursorSubSys::getCursor(), GNE_MODE_ADDITIONAL, GNE_MODE_POLYGON, GNE_MODE_TAZ, myEditMode, myKeyPressed, SUMOCURSOR_DEFAULT, and SUMOCURSOR_MOVE.
Referenced by onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), and onRightBtnRelease().
|
private |
updates mode specific controls
Definition at line 2868 of file GNEViewNet.cpp.
References GNEViewNet::CreateEdgeOptions::autoCreateOppositeEdge, GNEViewNet::CreateEdgeOptions::chainCreateEdge, GNEFrame::focusUpperElement(), GNEViewParent::getAdditionalFrame(), GNEViewParent::getConnectorFrame(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEViewParent::getInspectorFrame(), GNEViewParent::getPolygonFrame(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), GNEViewParent::getTAZFrame(), GNEViewParent::getTLSEditorFrame(), GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_CROSSING, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_PROHIBITION, GNE_MODE_SELECT, GNE_MODE_TAZ, GNE_MODE_TLS, GNEViewParent::hideAllFrames(), GNEViewNet::CreateEdgeOptions::hideCreateEdgeOptionMenuChecks(), GNEViewNet::ViewOptions::hideViewOptionsMenuChecks(), GNEViewNet::ViewOptions::menuCheckChangeAllPhases, GNEViewNet::ViewOptions::menuCheckExtendSelection, GNEViewNet::ViewOptions::menuCheckHideConnections, GNEViewNet::CreateEdgeOptions::menuCheckMoveElevation, GNEViewNet::ViewOptions::menuCheckSelectEdges, GNEViewNet::CreateEdgeOptions::menuCheckShowBubbleOverJunction, GNEViewNet::ViewOptions::menuCheckShowConnections, GNEViewNet::ViewOptions::menuCheckShowGrid, GNEViewNet::CreateEdgeOptions::menuCheckWarnAboutMerge, myCreateEdgeOptions, myCurrentFrame, myEditMode, myEditModeAdditional, myEditModeConnection, myEditModeCreateEdge, myEditModeCrossing, myEditModeDelete, myEditModeInspect, myEditModeMove, myEditModePolygon, myEditModeProhibition, myEditModeSelect, myEditModeTAZ, myEditModeTrafficLight, myToolbar, myViewOptions, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::onPaint(), MFXCheckableButton::setChecked(), GNEProhibitionFrame::show(), GNEDeleteFrame::show(), GNEPolygonFrame::show(), GNEAdditionalFrame::show(), GNESelectorFrame::show(), GNEInspectorFrame::show(), GNEFrame::show(), and GUIVisualizationSettings::showGrid.
Referenced by setEditMode().
|
protectedinherited |
update position information
Definition at line 239 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 178 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myUseToolTips.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIDanielPerspectiveChanger::onKeyPress(), GUIDanielPerspectiveChanger::onMouseMove(), and GUIDanielPerspectiveChanger::onMouseWheel().
|
inherited |
Definition at line 1110 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::mySnapshotCondition, GUISUMOAbstractView::mySnapshots, and GUISUMOAbstractView::mySnapshotsMutex.
Referenced by GUISUMOAbstractView::endSnapshot().
|
protectedinherited |
List of objects for which GUIGlObject::drawGLAdditional is called.
Definition at line 463 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addAdditionalGLVisualisation(), GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::isAdditionalGLVisualisationEnabled(), and GUISUMOAbstractView::removeAdditionalGLVisualisation().
|
protectedinherited |
Internal information whether doInit() was called.
Definition at line 430 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::onPaint(), GUISUMOAbstractView::openObjectDialog(), and openObjectDialog().
|
protectedinherited |
The application.
Definition at line 400 of file GUISUMOAbstractView.h.
Referenced by doPaintGL(), GUISUMOAbstractView::getDelay(), GUISUMOAbstractView::getObjectsInBoundary(), GUIViewTraffic::onDoubleClicked(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnRelease(), GUISUMOAbstractView::openObjectDialog(), openObjectDialog(), GUIViewTraffic::retrieveBreakpoints(), GUIViewTraffic::saveFrame(), GUIViewTraffic::setColorScheme(), GUISUMOAbstractView::setDelay(), setEditMode(), setStatusBarText(), and GUISUMOAbstractView::updatePositionInformation().
|
protectedinherited |
The perspective changer.
Definition at line 409 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::copyViewportTo(), GUISUMOAbstractView::getChanger(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getViewportEditor(), GUISUMOAbstractView::getVisibleBoundary(), GNEViewNet(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GUISUMOAbstractView::openObjectDialog(), openObjectDialog(), GUISUMOAbstractView::p2m(), GUISUMOAbstractView::paintGLGrid(), processClick(), GUISUMOAbstractView::recenterView(), GUISUMOAbstractView::screenPos2NetPos(), GUISUMOAbstractView::setViewportFromToRot(), GUISUMOAbstractView::showViewportEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
private |
variable used to save all elements related to creation of Edges
Definition at line 838 of file GNEViewNet.h.
Referenced by abortOperation(), buildEditModeControls(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculateOffsetMovement(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), editingElevation(), mergeJunctions(), GNEViewNet::MoveMultipleElementValues::moveSelection(), onLeftBtnPress(), showJunctionAsBubbles(), and updateModeSpecificControls().
|
private |
the current frame
Definition at line 826 of file GNEViewNet.h.
Referenced by hotkeyFocusFrame(), setEditMode(), and updateModeSpecificControls().
|
protectedinherited |
Definition at line 444 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 447 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::showViewschemeEditor().
|
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 908 of file GNEViewNet.h.
Referenced by getDottedAC(), and setDottedAC().
|
private |
the current edit mode
Definition at line 823 of file GNEViewNet.h.
Referenced by abortOperation(), doPaintGL(), getCurrentEditMode(), hotkeyDel(), hotkeyEnter(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), setEditMode(), showConnections(), showJunctionAsBubbles(), showLockIcon(), startEditCustomShape(), stopEditCustomShape(), updateControls(), updateCursor(), and updateModeSpecificControls().
|
private |
chekable button for edit mode additional
Definition at line 886 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode connection
Definition at line 880 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
Definition at line 865 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode crossing
Definition at line 889 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode delete
Definition at line 871 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode inspect
Definition at line 874 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode move
Definition at line 868 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode polygon
Definition at line 895 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
checkable button for edit mode polygon
Definition at line 898 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode select
Definition at line 877 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode TAZ
Definition at line 892 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
chekable button for edit mode traffic light
Definition at line 883 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
Definition at line 913 of file GNEViewNet.h.
Referenced by hotkeyEnter(), onCmdClosePolygon(), onCmdDeleteGeometryPoint(), onCmdOpenPolygon(), onCmdSetFirstGeometryPoint(), onCmdSimplifyShape(), onLeftBtnPress(), onLeftBtnRelease(), startEditCustomShape(), and stopEditCustomShape().
|
protectedinherited |
The visualization speed-up.
Definition at line 406 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 412 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::isInEditMode().
|
private |
variable used to save key status after certain events
Definition at line 832 of file GNEViewNet.h.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), GNEViewNet::MoveSingleElementValues::calculateTAZValues(), getKeyPressed(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), GNEViewNet::SelectingArea::processEdgeRectangleSelection(), GNEViewNet::SelectingArea::processRectangleSelection(), and updateCursor().
|
protectedinherited |
Offset to the mouse-hotspot from the mouse position.
Definition at line 415 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Definition at line 415 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::setWindowCursorPosition().
|
private |
variable use to save pointers to moved elements
Definition at line 841 of file GNEViewNet.h.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), GNEViewNet::MoveSingleElementValues::calculateTAZValues(), onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
private |
variable used to save variables related with movement of multiple elements
Definition at line 847 of file GNEViewNet.h.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
private |
variable used to save variables related with movement of single elements
Definition at line 844 of file GNEViewNet.h.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculateOffsetMovement(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), GNEViewNet::MoveSingleElementValues::calculateTAZValues(), onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
private |
Pointer to current net. (We are not responsible for deletion)
Definition at line 820 of file GNEViewNet.h.
Referenced by addRestrictedLane(), buildColorRainbow(), deleteSelectedAdditionals(), deleteSelectedConnections(), deleteSelectedCrossings(), deleteSelectedEdges(), deleteSelectedJunctions(), deleteSelectedLanes(), deleteSelectedShapes(), getAttributeCarriersInBoundary(), getNet(), GNEViewNet(), mergeJunctions(), onCmdAddReversedEdge(), onCmdClearConnections(), onCmdDuplicateLane(), onCmdEditJunctionShape(), onCmdReplaceJunction(), onCmdResetConnections(), onCmdResetJunctionShape(), onCmdResetLaneCustomShape(), onCmdReverseEdge(), onCmdSmoothEdges(), onCmdSmoothEdgesElevation(), onCmdSplitEdge(), onCmdSplitEdgeBidi(), onCmdSplitJunction(), onCmdStraightenEdges(), onCmdStraightenEdgesElevation(), onCmdTransformPOI(), onLeftBtnPress(), GNEViewNet::SelectingArea::processBoundarySelection(), removeRestrictedLane(), restrictLane(), setEditMode(), startEditCustomShape(), and stopEditCustomShape().
|
private |
variable use to save all pointers to objects under cursor after a click
Definition at line 835 of file GNEViewNet.h.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), GNEViewNet::MoveSingleElementValues::calculateTAZValues(), onLeftBtnPress(), and onLeftBtnRelease().
|
protectedinherited |
The parent window.
Definition at line 403 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getColoringSchemesCombo().
|
mutableprotectedinherited |
poly draw lock
Definition at line 460 of file GUISUMOAbstractView.h.
|
protectedinherited |
The current popup-menu.
Definition at line 418 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::openObjectDialog(), openObjectDialog(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
The current popup-menu position.
Definition at line 421 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::getPopupPosition(), GUISUMOAbstractView::openObjectDialog(), and openObjectDialog().
|
private |
the previous edit mode before edit junction's shapes
Definition at line 916 of file GNEViewNet.h.
Referenced by startEditCustomShape(), and stopEditCustomShape().
|
private |
variable used to save variables related with selecting areas
Definition at line 850 of file GNEViewNet.h.
Referenced by abortOperation(), doPaintGL(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
protectedinherited |
the semaphore when waiting for snapshots to finish
Definition at line 457 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().
|
protectedinherited |
Snapshots.
Definition at line 451 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 454 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 853 of file GNEViewNet.h.
Referenced by doPaintGL(), and GNEViewNet().
|
private |
a reference to the toolbar in myParent
Definition at line 860 of file GNEViewNet.h.
Referenced by GNEViewNet::CreateEdgeOptions::buildCreateEdgeOptionMenuChecks(), buildEditModeControls(), GNEViewNet::ViewOptions::buildViewOptionsMenuChecks(), and updateModeSpecificControls().
|
private |
a reference to the undolist maintained in the application
Definition at line 903 of file GNEViewNet.h.
Referenced by abortOperation(), addRestrictedLane(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), deleteSelectedAdditionals(), deleteSelectedConnections(), deleteSelectedCrossings(), deleteSelectedEdges(), deleteSelectedJunctions(), deleteSelectedLanes(), deleteSelectedShapes(), getUndoList(), GNEViewNet(), hotkeyDel(), hotkeyEnter(), mergeJunctions(), onCmdAddReversedEdge(), onCmdClearConnections(), onCmdDuplicateLane(), onCmdEditEdgeEndpoint(), onCmdReplaceJunction(), onCmdResetConnections(), onCmdResetEdgeEndpoint(), onCmdResetJunctionShape(), onCmdResetLaneCustomShape(), onCmdReverseEdge(), onCmdSmoothEdges(), onCmdSmoothEdgesElevation(), onCmdSplitEdge(), onCmdSplitEdgeBidi(), onCmdSplitJunction(), onCmdStraightenEdges(), onCmdStraightenEdgesElevation(), onCmdTransformPOI(), onLeftBtnPress(), onLeftBtnRelease(), GNEViewNet::SelectingArea::processBoundarySelection(), removeRestrictedLane(), and restrictLane().
|
protectedinherited |
use tool tips
Definition at line 427 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 view options
Definition at line 856 of file GNEViewNet.h.
Referenced by autoSelectNodes(), buildEditModeControls(), changeAllPhases(), doPaintGL(), getAttributeCarriersInBoundary(), getMenuCheckShowGrid(), onCmdShowGrid(), onCmdToogleShowConnection(), onLeftBtnPress(), selectEdges(), showConnections(), and updateModeSpecificControls().
|
private |
view parent
Definition at line 817 of file GNEViewNet.h.
Referenced by abortOperation(), drawLaneCandidates(), drawTemporalDrawShape(), getAttributeCarriersInBoundary(), getViewParent(), hotkeyEnter(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), openObjectDialog(), GNEViewNet::SelectingArea::processBoundarySelection(), setEditMode(), updateControls(), and updateModeSpecificControls().
|
protectedinherited |
viewport chooser
Definition at line 433 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 439 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::remove(), GUIViewTraffic::setColorScheme(), setColorScheme(), GUISUMOAbstractView::showViewschemeEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
visualization settings
Definition at line 424 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::applyGLTransform(), GNEViewNet::ViewOptions::buildViewOptionsMenuChecks(), GUIViewTraffic::buildViewToolBars(), buildViewToolBars(), GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getVisualisationSettings(), GUISUMOAbstractView::makeSnapshot(), onCmdShowGrid(), onCmdToogleShowConnection(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::paintGLGrid(), GUIViewTraffic::setColorScheme(), setColorScheme(), setSelectionScaling(), showConnections(), GUISUMOAbstractView::showToolTipFor(), GUISUMOAbstractView::showViewschemeEditor(), GUISUMOAbstractView::snapToActiveGrid(), updateModeSpecificControls(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Position of the cursor relative to the window.
Definition at line 436 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::TestingMode::drawTestingElements(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Definition at line 436 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::TestingMode::drawTestingElements(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::setWindowCursorPosition().