![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEPolygonFrame.h>
Public Member Functions | |
GEOPOICreator (GNEPolygonFrame *polygonFrameParent) | |
FOX-declaration. More... | |
void | hideGEOPOICreatorModul () |
hide GEOPOICreator Modul More... | |
void | showGEOPOICreatorModul () |
Show list of GEOPOICreator Modul. More... | |
~GEOPOICreator () | |
destructor More... | |
FOX-callbacks | |
called when user change the coordinates TextField | |
long | onCmdSetCoordinates (FXObject *, FXSelector, void *) |
long | onCmdSetFormat (FXObject *, FXSelector, void *) |
called when user select a format radio button More... | |
long | onCmdCreateGEOPOI (FXObject *, FXSelector, void *) |
called when user type in search box More... | |
Protected Member Functions | |
GEOPOICreator () | |
FOX needs this. More... | |
Private Attributes | |
FXCheckButton * | myCenterViewAfterCreationCheckButton |
button for enable or disable certer view after creation of GEO POI More... | |
FXTextField * | myCoordinatesTextField |
text field for given geo coordinates More... | |
FXButton * | myCreateGEOPOIButton |
button for create GEO Coordinates More... | |
FXLabel * | myLabelCartesianPosition |
FXLabel for the equivalent position of GEO Position in Cartesian Position. More... | |
FXRadioButton * | myLatLonRadioButton |
radio button for the configuration lat-lon More... | |
FXRadioButton * | myLonLatRadioButton |
radio button for the configuration lon-lat More... | |
GNEPolygonFrame * | myPolygonFrameParent |
pointer to Shape frame parent More... | |
Definition at line 50 of file GNEPolygonFrame.h.
GNEPolygonFrame::GEOPOICreator::GEOPOICreator | ( | GNEPolygonFrame * | polygonFrameParent | ) |
FOX-declaration.
constructor
Definition at line 59 of file GNEPolygonFrame.cpp.
References GUIDesignButton, GUIDesignCheckButton, GUIDesignLabelFrameInformation, GUIDesignRadioButton, GUIDesignTextField, GUIDesignTextFieldNCol, MID_CHOOSEN_OPERATION, MID_GNE_CREATE, and MID_GNE_SET_ATTRIBUTE.
GNEPolygonFrame::GEOPOICreator::~GEOPOICreator | ( | ) |
destructor
Definition at line 78 of file GNEPolygonFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 81 of file GNEPolygonFrame.h.
void GNEPolygonFrame::GEOPOICreator::hideGEOPOICreatorModul | ( | ) |
hide GEOPOICreator Modul
Definition at line 99 of file GNEPolygonFrame.cpp.
References GNEFrame::hide().
Referenced by GNEPolygonFrame::tagSelected().
long GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user type in search box
Definition at line 161 of file GNEPolygonFrame.cpp.
References Boundary::add(), GNEPolygonFrame::addPOI(), GNEFrameAttributesModuls::AttributesCreator::areValuesValid(), GUISUMOAbstractView::centerTo(), GUIUserIO::copyFromClipboard(), GNENet::generateShapeID(), GNEFrameAttributesModuls::AttributesCreator::getAttributesAndValues(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GeoConvHelper::getFinal(), GNEViewNet::getNet(), GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues(), GNEAttributeCarrier::TagProperties::getTag(), GUIGlChildWindow::getView(), GNEViewNet::getViewParent(), Boundary::grow(), myCenterViewAfterCreationCheckButton, myCoordinatesTextField, myCreateGEOPOIButton, myLatLonRadioButton, GNEPolygonFrame::myNeteditAttributes, myPolygonFrameParent, GNEPolygonFrame::myShapeAttributes, GNEPolygonFrame::myShapeTagSelector, GNEFrame::myViewNet, onCmdSetCoordinates(), SUMO_ATTR_GEO, SUMO_ATTR_ID, SUMO_ATTR_POSITION, Position::swapXY(), toString(), WRITE_WARNING, and GeoConvHelper::x2cartesian_const().
long GNEPolygonFrame::GEOPOICreator::onCmdSetCoordinates | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 105 of file GNEPolygonFrame.cpp.
References GeoConvHelper::getFinal(), myCoordinatesTextField, myCreateGEOPOIButton, myLabelCartesianPosition, myLatLonRadioButton, Position::swapXY(), toString(), Position::x(), GeoConvHelper::x2cartesian_const(), and Position::y().
Referenced by onCmdCreateGEOPOI(), and onCmdSetFormat().
long GNEPolygonFrame::GEOPOICreator::onCmdSetFormat | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
called when user select a format radio button
Definition at line 145 of file GNEPolygonFrame.cpp.
References myLatLonRadioButton, myLonLatRadioButton, and onCmdSetCoordinates().
void GNEPolygonFrame::GEOPOICreator::showGEOPOICreatorModul | ( | ) |
Show list of GEOPOICreator Modul.
Definition at line 82 of file GNEPolygonFrame.cpp.
References GeoConvHelper::getFinal(), myCoordinatesTextField, myCreateGEOPOIButton, and GNEPolygonFrame::show().
Referenced by GNEPolygonFrame::tagSelected().
|
private |
button for enable or disable certer view after creation of GEO POI
Definition at line 97 of file GNEPolygonFrame.h.
Referenced by onCmdCreateGEOPOI().
|
private |
text field for given geo coordinates
Definition at line 94 of file GNEPolygonFrame.h.
Referenced by onCmdCreateGEOPOI(), onCmdSetCoordinates(), and showGEOPOICreatorModul().
|
private |
button for create GEO Coordinates
Definition at line 100 of file GNEPolygonFrame.h.
Referenced by onCmdCreateGEOPOI(), onCmdSetCoordinates(), and showGEOPOICreatorModul().
|
private |
FXLabel for the equivalent position of GEO Position in Cartesian Position.
Definition at line 103 of file GNEPolygonFrame.h.
Referenced by onCmdSetCoordinates().
|
private |
radio button for the configuration lat-lon
Definition at line 91 of file GNEPolygonFrame.h.
Referenced by onCmdCreateGEOPOI(), onCmdSetCoordinates(), and onCmdSetFormat().
|
private |
radio button for the configuration lon-lat
Definition at line 88 of file GNEPolygonFrame.h.
Referenced by onCmdSetFormat().
|
private |
pointer to Shape frame parent
Definition at line 85 of file GNEPolygonFrame.h.
Referenced by onCmdCreateGEOPOI().