90 FXGLCanvas* share,
GNENet* net, const
bool newNet,
GNEUndoList* undoList, FXIcon* ic, FXuint opts, FXint x, FXint y, FXint w, FXint h) :
91 GUIGlChildWindow(p, parentWindow, mdimenu, name, parentWindow->getToolbarsGrip().navigation, ic, opts, x, y, w, h),
92 myGNEAppWindows(parentWindow) {
94 myParent->addGLChild(
this);
100 myUndoButton =
new MFXButtonTooltip(myGripNavigationToolbar, myGNEAppWindows->getStaticTooltipMenu(),
102 myRedoButton =
new MFXButtonTooltip(myGripNavigationToolbar, myGNEAppWindows->getStaticTooltipMenu(),
109 myComputePathManagerButton =
new MFXButtonTooltip(myGripNavigationToolbar, myGNEAppWindows->getStaticTooltipMenu(),
122 FXComposite* tmp =
new FXComposite(
this);
125 GNEViewNet* viewNet =
new GNEViewNet(tmp, myViewArea, *myParent,
this, net, newNet, undoList, myParent->getGLVisual(), share);
128 myGNEAppWindows->getToolbarsGrip().buildMenuToolbarsGrip();
134 myCommonFrames.buildCommonFrames(
this, viewNet);
135 myNetworkFrames.buildNetworkFrames(
this, viewNet);
136 myDemandFrames.buildDemandFrames(
this, viewNet);
137 myDataFrames.buildDataFrames(
this, viewNet);
143 onCmdUpdateFrameAreaWidth(
nullptr, 0,
nullptr);
149 myView->buildViewToolBars(
this);
375 if (chooserDialog ==
nullptr) {
438 FXFileDialog opendialog(
this,
TL(
"Save Snapshot"));
440 opendialog.setSelectMode(SELECTFILE_ANY);
441 opendialog.setPatternList(
"All Image Files (*.gif, *.bmp, *.xpm, *.pcx, *.ico, *.rgb, *.xbm, *.tga, *.png, *.jpg, *.jpeg, *.tif, *.tiff, *.ps, *.eps, *.pdf, *.svg, *.tex, *.pgf)\n"
442 "GIF Image (*.gif)\nBMP Image (*.bmp)\nXPM Image (*.xpm)\nPCX Image (*.pcx)\nICO Image (*.ico)\n"
443 "RGB Image (*.rgb)\nXBM Image (*.xbm)\nTARGA Image (*.tga)\nPNG Image (*.png)\n"
444 "JPEG Image (*.jpg, *.jpeg)\nTIFF Image (*.tif, *.tiff)\n"
445 "Postscript (*.ps)\nEncapsulated Postscript (*.eps)\nPortable Document Format (*.pdf)\n"
446 "Scalable Vector Graphics (*.svg)\nLATEX text strings (*.tex)\nPortable LaTeX Graphics (*.pgf)\n"
455 std::string file = opendialog.getFilename().text();
456 if (file.find(
".") == std::string::npos) {
458 WRITE_MESSAGE(
TL(
"No file extension was specified - saving Snapshot as PNG."));
463 WRITE_DEBUG(
"Opening FXMessageBox 'error saving snapshot'");
465 FXMessageBox::error(
this, MBOX_OK,
TL(
"Saving failed."),
"%s", error.c_str());
467 WRITE_DEBUG(
"Closed FXMessageBox 'error saving snapshot' with 'OK'");
488 std::vector<GNEAttributeCarrier*> ACsToLocate;
489 int messageId = FXSELID(sel);
491 std::string locateTitle;
495 locateTitle =
"Junction";
498 ACsToLocate.push_back(junction.second);
503 locateTitle =
"Edge";
506 ACsToLocate.push_back(edge.second);
511 locateTitle =
"WalkingArea";
514 ACsToLocate.push_back(walkingArea);
519 locateTitle =
"Vehicle";
532 ACsToLocate.push_back(vehicle);
536 ACsToLocate.push_back(trip);
540 ACsToLocate.push_back(trip);
544 ACsToLocate.push_back(trip);
548 ACsToLocate.push_back(flow);
552 ACsToLocate.push_back(flowRoute);
556 ACsToLocate.push_back(flowRoute);
560 ACsToLocate.push_back(flowRoute);
566 locateTitle =
"Person";
571 ACsToLocate.push_back(person);
575 ACsToLocate.push_back(personFlow);
580 locateTitle =
"Route";
583 ACsToLocate.push_back(route);
588 locateTitle =
"Stop";
597 ACsToLocate.push_back(stopLane);
601 ACsToLocate.push_back(stopBusStop);
605 ACsToLocate.push_back(stopContainerStop);
609 ACsToLocate.push_back(stopChargingStation);
613 ACsToLocate.push_back(stopParkingArea);
623 if (junction.second->getNBNode()->getControllingTLS().size() > 0) {
624 ACsToLocate.push_back(junction.second);
630 locateTitle =
"Additional";
638 for (
const auto& additional : additionalTag.second) {
639 ACsToLocate.push_back(additional);
648 ACsToLocate.push_back(
POI);
651 ACsToLocate.push_back(
POI);
654 ACsToLocate.push_back(
POI);
659 locateTitle =
"Poly";
662 ACsToLocate.push_back(polygon);
665 ACsToLocate.push_back(taz);
669 throw ProcessError(
"Unknown Message ID in onCmdLocate");
679 *chooserLoc = chooser;
720 inspectorFrame(nullptr),
721 deleteFrame(nullptr),
722 selectorFrame(nullptr),
738 inspectorFrame->hide();
740 selectorFrame->hide();
748 inspectorFrame->setFrameWidth(frameWidth);
749 deleteFrame->setFrameWidth(frameWidth);
750 selectorFrame->setFrameWidth(frameWidth);
751 moveFrame->setFrameWidth(frameWidth);
758 if (inspectorFrame->shown()) {
760 }
else if (deleteFrame->shown()) {
762 }
else if (selectorFrame->shown()) {
764 }
else if (moveFrame->shown()) {
775 if (inspectorFrame->shown()) {
776 return inspectorFrame;
777 }
else if (deleteFrame->shown()) {
779 }
else if (selectorFrame->shown()) {
780 return selectorFrame;
781 }
else if (moveFrame->shown()) {
793 connectorFrame(nullptr),
794 TLSEditorFrame(nullptr),
795 additionalFrame(nullptr),
796 crossingFrame(nullptr),
798 polygonFrame(nullptr),
799 prohibitionFrame(nullptr),
801 createEdgeFrame(nullptr) {
821 connectorFrame->hide();
822 TLSEditorFrame->hide();
823 additionalFrame->hide();
824 crossingFrame->hide();
826 polygonFrame->hide();
827 prohibitionFrame->hide();
829 createEdgeFrame->hide();
836 connectorFrame->setFrameWidth(frameWidth);
837 TLSEditorFrame->setFrameWidth(frameWidth);
838 additionalFrame->setFrameWidth(frameWidth);
839 crossingFrame->setFrameWidth(frameWidth);
840 TAZFrame->setFrameWidth(frameWidth);
841 polygonFrame->setFrameWidth(frameWidth);
842 prohibitionFrame->setFrameWidth(frameWidth);
843 wireFrame->setFrameWidth(frameWidth);
844 createEdgeFrame->setFrameWidth(frameWidth);
851 if (connectorFrame->shown()) {
853 }
else if (TLSEditorFrame->shown()) {
855 }
else if (additionalFrame->shown()) {
857 }
else if (crossingFrame->shown()) {
859 }
else if (TAZFrame->shown()) {
861 }
else if (polygonFrame->shown()) {
863 }
else if (prohibitionFrame->shown()) {
865 }
else if (wireFrame->shown()) {
867 }
else if (createEdgeFrame->shown()) {
878 if (connectorFrame->shown()) {
879 return connectorFrame;
880 }
else if (TLSEditorFrame->shown()) {
881 return TLSEditorFrame;
882 }
else if (additionalFrame->shown()) {
883 return additionalFrame;
884 }
else if (crossingFrame->shown()) {
885 return crossingFrame;
886 }
else if (TAZFrame->shown()) {
888 }
else if (polygonFrame->shown()) {
890 }
else if (prohibitionFrame->shown()) {
891 return prohibitionFrame;
892 }
else if (wireFrame->shown()) {
894 }
else if (createEdgeFrame->shown()) {
895 return createEdgeFrame;
907 vehicleFrame(nullptr),
908 vehicleTypeFrame(nullptr),
910 personFrame(nullptr),
911 personPlanFrame(nullptr),
912 containerFrame(nullptr),
913 containerPlanFrame(nullptr) {
921 vehicleTypeFrame =
new GNETypeFrame(viewParent, viewNet);
933 vehicleFrame->hide();
934 vehicleTypeFrame->hide();
937 personPlanFrame->hide();
938 containerFrame->hide();
939 containerPlanFrame->hide();
946 routeFrame->setFrameWidth(frameWidth);
947 vehicleFrame->setFrameWidth(frameWidth);
948 vehicleTypeFrame->setFrameWidth(frameWidth);
949 stopFrame->setFrameWidth(frameWidth);
950 personFrame->setFrameWidth(frameWidth);
951 personPlanFrame->setFrameWidth(frameWidth);
952 containerFrame->setFrameWidth(frameWidth);
953 containerPlanFrame->setFrameWidth(frameWidth);
960 if (routeFrame->shown()) {
962 }
else if (vehicleFrame->shown()) {
964 }
else if (vehicleTypeFrame->shown()) {
966 }
else if (stopFrame->shown()) {
968 }
else if (personFrame->shown()) {
970 }
else if (personPlanFrame->shown()) {
972 }
else if (containerFrame->shown()) {
974 }
else if (containerPlanFrame->shown()) {
985 if (routeFrame->shown()) {
987 }
else if (vehicleFrame->shown()) {
989 }
else if (vehicleTypeFrame->shown()) {
990 return vehicleTypeFrame;
991 }
else if (stopFrame->shown()) {
993 }
else if (personFrame->shown()) {
995 }
else if (personPlanFrame->shown()) {
996 return personPlanFrame;
997 }
else if (containerFrame->shown()) {
998 return containerFrame;
999 }
else if (containerPlanFrame->shown()) {
1000 return containerPlanFrame;
1011 edgeDataFrame(nullptr),
1012 edgeRelDataFrame(nullptr),
1013 TAZRelDataFrame(nullptr) {
1027 edgeDataFrame->hide();
1028 edgeRelDataFrame->hide();
1029 TAZRelDataFrame->hide();
1036 edgeDataFrame->setFrameWidth(frameWidth);
1037 edgeRelDataFrame->setFrameWidth(frameWidth);
1038 TAZRelDataFrame->setFrameWidth(frameWidth);
1045 if (edgeDataFrame->shown()) {
1047 }
else if (edgeRelDataFrame->shown()) {
1049 }
else if (TAZRelDataFrame->shown()) {
1060 if (edgeDataFrame->shown()) {
1061 return edgeDataFrame;
1062 }
else if (edgeRelDataFrame->shown()) {
1063 return edgeRelDataFrame;
1064 }
else if (TAZRelDataFrame->shown()) {
1065 return TAZRelDataFrame;
1076 ACChooserJunction(nullptr),
1077 ACChooserEdges(nullptr),
1078 ACChooserWalkingAreas(nullptr),
1079 ACChooserVehicles(nullptr),
1080 ACChooserPersons(nullptr),
1081 ACChooserRoutes(nullptr),
1082 ACChooserStops(nullptr),
1083 ACChooserTLS(nullptr),
1084 ACChooserAdditional(nullptr),
1085 ACChooserPOI(nullptr),
1086 ACChooserPolygon(nullptr),
1087 ACChooserProhibition(nullptr),
1088 ACChooserWire(nullptr) {
1094 if (ACChooserJunction) {
1095 delete ACChooserJunction;
1097 if (ACChooserEdges) {
1098 delete ACChooserEdges;
1100 if (ACChooserWalkingAreas) {
1101 delete ACChooserWalkingAreas;
1103 if (ACChooserRoutes) {
1104 delete ACChooserRoutes;
1106 if (ACChooserStops) {
1107 delete ACChooserStops;
1109 if (ACChooserVehicles) {
1110 delete ACChooserVehicles;
1112 if (ACChooserPersons) {
1113 delete ACChooserPersons;
1116 delete ACChooserTLS;
1118 if (ACChooserAdditional) {
1119 delete ACChooserAdditional;
1122 delete ACChooserPOI;
1124 if (ACChooserPolygon) {
1125 delete ACChooserPolygon;
1127 if (ACChooserProhibition) {
1128 delete ACChooserProhibition;
1130 if (ACChooserWire) {
1131 delete ACChooserWire;
FXDEFMAP(GNEViewParent) GNEViewParentMap[]
@ MID_MAKESNAPSHOT
Make snapshot - button.
@ MID_LOCATEPERSON
Locate person - button.
@ MID_HOTKEY_CTRL_Y_REDO
Undo.
@ MID_LOCATEJUNCTION
Locate junction - button.
@ MID_HOTKEY_CTRL_W_CLOSESIMULATION
Close simulation - ID.
@ MID_LOCATEPOLY
Locate polygons - button.
@ MID_LOCATEADD
Locate additional structure - button.
@ MID_LOCATEPOI
Locate poi - button.
@ MID_LOCATESTOP
Locate stop - button.
@ MID_GNE_VIEWPARENT_FRAMEAREAWIDTH
Size of frame area updated.
@ MID_LOCATEWALKINGAREA
Locate edge - button.
@ MID_LOCATEEDGE
Locate edge - button.
@ MID_LOCATEVEHICLE
Locate vehicle - button.
@ MID_LOCATETLS
Locate TLS - button.
@ MID_HOTKEY_CTRL_Z_UNDO
Redo.
@ MID_LOCATEROUTE
Locate route - button.
@ MID_GNE_TOOLBAREDIT_COMPUTEPATHMANAGER
compute path manager
#define GUIDesignButtonToolbar
little button with icon placed in navigation toolbar
#define GUIDesignFrameArea
#define GUIDesignVerticalSeparator
vertical separator
#define GUIDesignSplitter
#define GUIDesignViewnArea
design for viewn area
#define GUIDesignFramesAreaDefaultWidth
define the default frames area width
FXString gCurrentFolder
The folder used as last.
#define WRITE_MESSAGE(msg)
@ GNE_TAG_TRIP_JUNCTIONS
a trip between junctions (used in NETEDIT)
@ SUMO_TAG_STOP_CONTAINERSTOP
stop placed over a containerStop (used in netedit)
@ SUMO_TAG_TAZ
a traffic assignment zone
@ SUMO_TAG_STOP_CHARGINGSTATION
stop placed over a charging station (used in netedit)
@ SUMO_TAG_STOP_LANE
stop placed over a lane (used in netedit)
@ SUMO_TAG_POI
begin/end of the description of a Point of interest
@ SUMO_TAG_VEHICLE
description of a vehicle
@ GNE_TAG_FLOW_ROUTE
a flow definition using a route instead of a from-to edges route (used in NETEDIT)
@ GNE_TAG_FLOW_JUNCTIONS
a flow between junctions (used in NETEDIT)
@ GNE_TAG_POIGEO
Point of interest over view with GEO attributes.
@ GNE_TAG_FLOW_WITHROUTE
description of a vehicle with an embedded route (used in NETEDIT)
@ SUMO_TAG_FLOW
a flow definitio nusing a from-to edges instead of a route (used by router)
@ SUMO_TAG_ROUTE
begin/end of the description of a route
@ SUMO_TAG_POLY
begin/end of the description of a polygon
@ SUMO_TAG_STOP_BUSSTOP
stop placed over a busStop (used in netedit)
@ GNE_TAG_VEHICLE_WITHROUTE
description of a vehicle with an embedded route (used in NETEDIT)
@ GNE_TAG_POILANE
Point of interest over Lane.
@ SUMO_TAG_STOP_PARKINGAREA
stop placed over a parking area (used in netedit)
@ SUMO_TAG_TRIP
a single trip definition (used by router)
The main window of the Netedit.
GNEUndoList * getUndoList()
get pointer to undoList
GNEApplicationWindowHelper::ToolbarsGrip & getToolbarsGrip()
get ToolbarsGrip
const std::map< SumoXMLTag, std::set< GNEDemandElement * > > & getDemandElements() const
get demand elements
const std::map< std::string, GNEEdge * > & getEdges() const
map with the ID and pointer to edges of net
const std::map< SumoXMLTag, std::set< GNEAdditional * > > & getAdditionals() const
get additionals
const std::map< std::string, GNEJunction * > & getJunctions() const
get junctions
const std::set< GNEWalkingArea * > & getWalkingAreas() const
get walkingAreas
A NBNetBuilder extended by visualisation and editing capabilities.
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
long onUpdUndo(FXObject *, FXSelector, void *)
event after Undo
long onUpdRedo(FXObject *, FXSelector, void *)
event after Redo
GNENet * getNet() const
get the net object
GNEDialogACChooser * ACChooserWalkingAreas
pointer to ACChooser dialog used for locate walkingareas
GNEDialogACChooser * ACChooserStops
pointer to ACChooser dialog used for locate stops
GNEDialogACChooser * ACChooserEdges
pointer to ACChooser dialog used for locate edges
GNEDialogACChooser * ACChooserPolygon
pointer to ACChooser dialog used for locate Polygons
GNEDialogACChooser * ACChooserPOI
pointer to ACChooser dialog used for locate POIs
GNEDialogACChooser * ACChooserRoutes
pointer to ACChooser dialog used for locate routes
GNEDialogACChooser * ACChooserJunction
pointer to ACChooser dialog used for locate junctions
GNEDialogACChooser * ACChooserWire
pointer to ACChooser dialog used for locate Wires
GNEDialogACChooser * ACChooserVehicles
pointer to ACChooser dialog used for locate vehicles
GNEDialogACChooser * ACChooserTLS
pointer to ACChooser dialog used for locate TLSs
GNEDialogACChooser * ACChooserProhibition
pointer to ACChooser dialog used for locate Prohibitions
GNEDialogACChooser * ACChooserPersons
pointer to ACChooser dialog used for locate persons
GNEDialogACChooser * ACChooserAdditional
pointer to ACChooser dialog used for locate additional
CommonFrames()
constructor
GNEMoveFrame * moveFrame
frame for move elements
GNEFrame * getCurrentShownFrame() const
get current common frame show
bool isCommonFrameShown() const
return true if at least there is a common frame shown
GNEDeleteFrame * deleteFrame
frame for delete elements
void buildCommonFrames(GNEViewParent *viewParent, GNEViewNet *viewNet)
build common frames
GNESelectorFrame * selectorFrame
frame for select elements
void hideCommonFrames()
hide common frames
GNEInspectorFrame * inspectorFrame
frame for inspect elements
void setCommonFramesWidth(int frameWidth)
set new width in all common frames
GNEEdgeDataFrame * edgeDataFrame
frame for DATA_EDGEDATA
void setDataFramesWidth(int frameWidth)
set new width in all data frames
GNEFrame * getCurrentShownFrame() const
get current data frame show
GNETAZRelDataFrame * TAZRelDataFrame
frame for DATA_TAZRELDATA
GNEEdgeRelDataFrame * edgeRelDataFrame
frame for DATA_EDGERELDATA
bool isDataFrameShown() const
return true if at least there is a data frame shown
void hideDataFrames()
hide data frames
void buildDataFrames(GNEViewParent *viewParent, GNEViewNet *viewNet)
build data frames
GNEPersonFrame * personFrame
frame for DEMAND_PERSON
DemandFrames()
constructor
GNEStopFrame * stopFrame
frame for DEMAND_STOP
GNERouteFrame * routeFrame
frame for DEMAND_ROUTE
GNEContainerFrame * containerFrame
frame for DEMAND_CONTAINER
GNEContainerPlanFrame * containerPlanFrame
frame for DEMAND_CONTAINERPLAN
GNEVehicleFrame * vehicleFrame
frame for DEMAND_VEHICLE
GNEFrame * getCurrentShownFrame() const
get current demand frame show
void setDemandFramesWidth(int frameWidth)
set new width in all demand frames
void buildDemandFrames(GNEViewParent *viewParent, GNEViewNet *viewNet)
build demand frames
GNEPersonPlanFrame * personPlanFrame
frame for DEMAND_PERSONPLAN
bool isDemandFrameShown() const
return true if at least there is a demand frame shown
GNETypeFrame * vehicleTypeFrame
frame for DEMAND_VEHICLETYPE
void hideDemandFrames()
hide demand frames
GNEAdditionalFrame * additionalFrame
frame for NETWORK_ADDITIONAL
NetworkFrames()
constructor
bool isNetworkFrameShown() const
return true if at least there is a network frame shown
GNECrossingFrame * crossingFrame
frame for NETWORK_CROSSING
GNEConnectorFrame * connectorFrame
frame for NETWORK_CONNECT
GNECreateEdgeFrame * createEdgeFrame
frame for NETWORK_CREATEDGE
GNEProhibitionFrame * prohibitionFrame
frame for NETWORK_PROHIBITION
GNEShapeFrame * polygonFrame
frame for NETWORK_SHAPE
GNETAZFrame * TAZFrame
frame for NETWORK_TAZ
GNETLSEditorFrame * TLSEditorFrame
frame for NETWORK_TLS
GNEFrame * getCurrentShownFrame() const
get current network frame show
GNEWireFrame * wireFrame
frame for NETWORK_WIRE
void hideNetworkFrames()
hide network frames
void setNetworkFramesWidth(int frameWidth)
set new width in all network frames
void buildNetworkFrames(GNEViewParent *viewParent, GNEViewNet *viewNet)
build network frames
A single child window which contains a view of the simulation area.
long onCmdMakeSnapshot(FXObject *sender, FXSelector, void *)
GNECrossingFrame * getCrossingFrame() const
get frame for NETWORK_CROSSING
GUIMainWindow * getGUIMainWindow() const
get GUIMainWindow App
GNEConnectorFrame * getConnectorFrame() const
get frame for NETWORK_CONNECT
GNEStopFrame * getStopFrame() const
get frame for DEMAND_STOP
void updateUndoRedoButtons()
update toolbar undo/redo buttons (called when user press Ctrl+Z/Y)
long onCmdUpdateFrameAreaWidth(FXObject *, FXSelector, void *)
Called when user change the splitter between FrameArea and ViewNet.
GNEProhibitionFrame * getProhibitionFrame() const
get frame for NETWORK_PROHIBITION
long onKeyPress(FXObject *o, FXSelector sel, void *data)
Called when user press a key.
GNEPersonPlanFrame * getPersonPlanFrame() const
get frame for DEMAND_PERSONFRAME
DemandFrames myDemandFrames
struct for demand frames
MFXButtonTooltip * myUndoButton
toolbar undo button
GNEShapeFrame * getShapeFrame() const
get frame for NETWORK_SHAPE
void setFrameAreaWidth(const int frameAreaWith)
set frame area width
GNETAZRelDataFrame * getTAZRelDataFrame() const
get frame for DATA_TAZRELDATA
GNEMoveFrame * getMoveFrame() const
get frame for move elements
long onCmdClose(FXObject *, FXSelector, void *)
Called when the user hits the close button (x)
GNESelectorFrame * getSelectorFrame() const
get frame for select elements
GNEContainerPlanFrame * getContainerPlanFrame() const
get frame for DEMAND_CONTAINERFRAME
void hideFramesArea()
hide frames area if all GNEFrames are hidden
GNEEdgeDataFrame * getEdgeDataFrame() const
get frame for DATA_EDGEDATA
GNEDeleteFrame * getDeleteFrame() const
get frame for delete elements
NetworkFrames myNetworkFrames
struct for network frames
ACChoosers myACChoosers
struct for ACChoosers
GNEVehicleFrame * getVehicleFrame() const
get frame for DEMAND_VEHICLE
void showFramesArea()
show frames area if at least a GNEFrame is showed
void hideAllFrames()
hide all frames
GNETypeFrame * getTypeFrame() const
get frame for DEMAND_VEHICLETYPE
FXVerticalFrame * myFramesArea
frame to hold GNEFrames
GNETAZFrame * getTAZFrame() const
get frame for NETWORK_TAZ
GNETLSEditorFrame * getTLSEditorFrame() const
get frame for NETWORK_TLS
CommonFrames myCommonFrames
struct for common frames
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows
DataFrames myDataFrames
struct for data frames
GNEContainerFrame * getContainerFrame() const
get frame for DEMAND_CONTAINER
GNEAdditionalFrame * getAdditionalFrame() const
get frame for NETWORK_ADDITIONAL
GNEWireFrame * getWireFrame() const
get frame for NETWORK_WIRE
FXVerticalFrame * getFramesArea() const
get frame area
GNEPersonFrame * getPersonFrame() const
get frame for DEMAND_PERSON
void eraseACChooserDialog(GNEDialogACChooser *chooserDialog)
remove created chooser dialog
GNEInspectorFrame * getInspectorFrame() const
get frame for inspect elements
GNEApplicationWindow * myGNEAppWindows
pointer to GNEApplicationWindow
GNEEdgeRelDataFrame * getEdgeRelDataFrame() const
get frame for DATA_EDGERELDATA
MFXButtonTooltip * myRedoButton
toolbar redo button
GNECreateEdgeFrame * getCreateEdgeFrame() const
get frame for NETWORK_CREATEEDGE
int getFrameAreaWidth() const
get frame area width
GNERouteFrame * getRouteFrame() const
get frame for DEMAND_ROUTE
GNEFrame * getCurrentShownFrame() const
get current frame (note: it can be null)
long onCmdLocate(FXObject *, FXSelector, void *)
locator-callback
~GNEViewParent()
Destructor.
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
Called when user releases a key.
virtual void create()
create GUIGlChildWindow
GUISUMOAbstractView * myView
The view.
FXPopup * myLocatorPopup
The locator menu.
MFXMenuButtonTooltip * myLocatorButton
The locator button.
GUIMainWindow * myParent
FOX needs this.
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
void removeGLChild(GUIGlChildWindow *child)
removes the given child window from the list (GUIGlChildWindow)
std::string makeSnapshot(const std::string &destFile, const int w=-1, const int h=-1)
Takes a snapshots and writes it into the given file.
virtual long onKeyPress(FXObject *o, FXSelector sel, void *data)
keyboard functions
virtual long onKeyRelease(FXObject *o, FXSelector sel, void *data)
static FXbool userPermitsOverwritingWhenFileExists(FXWindow *const parent, const FXString &file)
Returns true if either the file given by its name does not exist or the user allows overwriting it.
C++ TraCI client API implementation.