95 GNEViewNet(FXComposite* tmpParent, FXComposite* actualParent,
97 FXGLCanvas* share, FXToolBar* toolBar);
long onCmdResetEdgeEndpoint(FXObject *, FXSelector, void *)
restore geometry endpoint to node position
long onCmdDeleteGeometry(FXObject *, FXSelector, void *)
delete the closes geometry point
GNEConnector * myConnector
FXMenuCheck * mySelectEdges
GNEJunction * getJunctionAtCursorPosition(Position &pos)
try to retrieve a junction at the given position
long onCmdVisualizeHeight(FXObject *, FXSelector, void *)
switch color scheme
void abortOperation(bool clearSelection=true)
void deleteSelectedJunctions()
delete all currently selected junctions
bool setColorScheme(const std::string &name)
bool changeAllPhases() const
long onCmdDuplicateLane(FXObject *, FXSelector, void *)
duplicate selected lane
StringBijection< EditMode > myEditModeNames
since we cannot switch on strings we map the mode names to an enum
long onMouseMove(FXObject *, FXSelector, void *)
GNEViewNet()
FOX needs this.
FXMenuCheck * myChainCreateEdge
long onCmdSplitEdge(FXObject *, FXSelector, void *)
split edge at cursor position
FXMenuCheck * myChangeAllPhases
void setEditMode(EditMode mode)
void setSelectionScaling(SUMOReal selectionScale)
long onCmdNodeShape(FXObject *, FXSelector, void *)
input custom node shape
A NBNetBuilder extended by visualisation and editing capabilities.
FXComboBox * myEditModesCombo
combo box for selecting the edit mode
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void setEditModeFromHotkey(FXushort selid)
sets edit mode (from hotkey)
long onCmdSetEdgeEndpoint(FXObject *, FXSelector, void *)
set non-default geometry endpoint
void updateControls()
update control contents after undo/redo or recompute
EditMode myPreviousEditMode
GNEEdge * myEdgeToMove
the edge of which geometry is being moved
A class that stores a 2D geometrical boundary.
long onCmdChangeMode(FXObject *, FXSelector, void *)
sets edit mode via combo box
A single child window which contains a view of the simulation area.
GNETLSEditor * myTLSEditor
bool myMoveSelection
whether a selection is being moved
void buildEditModeControls()
adds controls for setting the edit mode
std::set< GNEEdge * > getEdgesAtCursorPosition(Position &pos)
try to retrieve multiple edges at the given position
GNESelector * getSelector()
long onLeftBtnPress(FXObject *, FXSelector, void *)
long onCmdSimplifyShape(FXObject *, FXSelector, void *)
simply shape of current polygon
SUMOReal selectionScale
the current selection scaling in NETEDIT (temporary)
FXMenuCheck * myWarnAboutMerge
whether we should warn about merging junctions
virtual ~GNEViewNet()
destructor
GNEInspector * myInspector
A point in 2D or 3D with translation and scaling methods.
FXToolBar * myToolbar
a reference to the toolbar in myParent
long onCmdSplitEdgeBidi(FXObject *, FXSelector, void *)
split edge at cursor position
void removeCurrentPoly()
remove the currently edited polygon
GNEJunction * myJunctionToMove
GNELane * getLaneAtCurserPosition(Position &pos)
try to retrieve a lane at the given position
void doInit()
called after some features are already initialized
FXMenuCheck * myAutoCreateOppositeEdge
bool mergeJunctions(GNEJunction *moved)
try to merge moved junction with another junction in that spot return true if merging did take place ...
A road/street connecting two junctions (netedit-version)
FXMenuCheck * myExtendToEdgeNodes
GUIVisualizationSettings * myVisualizationSettings
Position myMoveSrc
position from which to move edge geometry
long onCmdReverseEdge(FXObject *, FXSelector, void *)
reverse edge
GNETLSEditor * getTLSEditor()
int doPaintGL(int mode, const Boundary &bound)
GNEJunction * myCreateEdgeSource
FXMenuCheck * myVisualizeHeight
void updateModeSpecificControls()
updates mode specific controls
void setStatusBarText(const std::string &text)
virtual void buildViewToolBars(GUIGlChildWindow &)
builds the view toolbars
long onCmdStraightenEdges(FXObject *, FXSelector, void *)
makes selected edges straight
GNEEdge * getEdgeAtCursorPosition(Position &pos)
try to retrieve an edge at the given position
long onCmdNodeReplace(FXObject *, FXSelector, void *)
replace node by geometry
long onCmdAddReversedEdge(FXObject *, FXSelector, void *)
add reversed edge
long onLeftBtnRelease(FXObject *, FXSelector, void *)
void deleteSelectedEdges()
delete all currently selected edges
GNEUndoList * myUndoList
a reference to the undolist maintained in the application
GNEPoly * myPolyToMove
the poly of which geometry is being moved