![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEPolygonFrame.h>


Public Member Functions | |
| void | abortDrawing () |
| abort drawing More... | |
| void | addNewPoint (const Position &P) |
| add new point to temporal shape More... | |
| DrawingMode (GNEPolygonFrame *polygonFrameParent) | |
| FOX-declaration. More... | |
| bool | getDeleteLastCreatedPoint () |
| get flag delete last created point More... | |
| const PositionVector & | getTemporalShape () const |
| get Temporal shape More... | |
| void | hideDrawingMode () |
| hide Drawing mode More... | |
| bool | isDrawing () const |
| return true if currently a shape is drawed More... | |
| void | removeLastPoint () |
| remove last added point More... | |
| void | setDeleteLastCreatedPoint (bool value) |
| enable or disable delete last created point More... | |
| void | showDrawingMode () |
| show Drawing mode More... | |
| void | startDrawing () |
| start drawing More... | |
| void | stopDrawing () |
| stop drawing and create polygon or More... | |
| ~DrawingMode () | |
| destructor More... | |
FOX-callbacks | |
Called when the user press start drawing button | |
| long | onCmdStartDrawing (FXObject *, FXSelector, void *) |
| long | onCmdStopDrawing (FXObject *, FXSelector, void *) |
| Called when the user press stop drawing button. More... | |
| long | onCmdAbortDrawing (FXObject *, FXSelector, void *) |
| Called when the user press abort drawing button. More... | |
Protected Member Functions | |
| DrawingMode () | |
| FOX needs this. More... | |
Private Attributes | |
| FXButton * | myAbortDrawingButton |
| button for abort drawing More... | |
| bool | myDeleteLastCreatedPoint |
| flag to enable/disable delete point mode More... | |
| FXLabel * | myInformationLabel |
| Label with information. More... | |
| GNEPolygonFrame * | myPolygonFrameParent |
| frame frame parent More... | |
| FXButton * | myStartDrawingButton |
| button for start drawing More... | |
| FXButton * | myStopDrawingButton |
| button for stop drawing More... | |
| PositionVector | myTemporalShapeShape |
| current drawed shape More... | |
Definition at line 310 of file GNEPolygonFrame.h.
| GNEPolygonFrame::DrawingMode::DrawingMode | ( | GNEPolygonFrame * | polygonFrameParent | ) |
FOX-declaration.
constructor
Definition at line 663 of file GNEPolygonFrame.cpp.
References GUIDesignButton, GUIDesignLabelFrameInformation, MID_GNE_POLYGONFRAME_ABORTDRAWING, MID_GNE_POLYGONFRAME_STARTDRAWING, MID_GNE_POLYGONFRAME_STOPDRAWING, myAbortDrawingButton, myInformationLabel, myStartDrawingButton, and myStopDrawingButton.
| GNEPolygonFrame::DrawingMode::~DrawingMode | ( | ) |
destructor
Definition at line 690 of file GNEPolygonFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 368 of file GNEPolygonFrame.h.
| void GNEPolygonFrame::DrawingMode::abortDrawing | ( | ) |
abort drawing
Definition at line 744 of file GNEPolygonFrame.cpp.
References GNEFrame::getViewNet(), myAbortDrawingButton, myPolygonFrameParent, myStartDrawingButton, myStopDrawingButton, and myTemporalShapeShape.
Referenced by GNEViewNet::abortOperation(), hideDrawingMode(), onCmdAbortDrawing(), showDrawingMode(), and stopDrawing().
| void GNEPolygonFrame::DrawingMode::addNewPoint | ( | const Position & | P | ) |
add new point to temporal shape
Definition at line 756 of file GNEPolygonFrame.cpp.
References myStopDrawingButton, and myTemporalShapeShape.
Referenced by GNEPolygonFrame::processClick().
| bool GNEPolygonFrame::DrawingMode::getDeleteLastCreatedPoint | ( | ) |
get flag delete last created point
Definition at line 790 of file GNEPolygonFrame.cpp.
References myDeleteLastCreatedPoint.
Referenced by GNEViewNet::doPaintGL(), and GNEPolygonFrame::processClick().
| const PositionVector & GNEPolygonFrame::DrawingMode::getTemporalShape | ( | ) | const |
get Temporal shape
Definition at line 772 of file GNEPolygonFrame.cpp.
References myTemporalShapeShape.
Referenced by GNEViewNet::doPaintGL().
| void GNEPolygonFrame::DrawingMode::hideDrawingMode | ( | ) |
hide Drawing mode
Definition at line 701 of file GNEPolygonFrame.cpp.
References abortDrawing().
Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().
| bool GNEPolygonFrame::DrawingMode::isDrawing | ( | ) | const |
return true if currently a shape is drawed
Definition at line 778 of file GNEPolygonFrame.cpp.
References myStopDrawingButton.
Referenced by GNEViewNet::doPaintGL(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onMouseMove(), GNEViewNet::onRightBtnPress(), GNEViewNet::onRightBtnRelease(), and GNEPolygonFrame::processClick().
| long GNEPolygonFrame::DrawingMode::onCmdAbortDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user press abort drawing button.
Definition at line 810 of file GNEPolygonFrame.cpp.
References abortDrawing().
| long GNEPolygonFrame::DrawingMode::onCmdStartDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 796 of file GNEPolygonFrame.cpp.
References startDrawing().
| long GNEPolygonFrame::DrawingMode::onCmdStopDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user press stop drawing button.
Definition at line 803 of file GNEPolygonFrame.cpp.
References stopDrawing().
| void GNEPolygonFrame::DrawingMode::removeLastPoint | ( | ) |
remove last added point
Definition at line 766 of file GNEPolygonFrame.cpp.
Referenced by GNEPolygonFrame::processClick().
| void GNEPolygonFrame::DrawingMode::setDeleteLastCreatedPoint | ( | bool | value | ) |
enable or disable delete last created point
Definition at line 784 of file GNEPolygonFrame.cpp.
References myDeleteLastCreatedPoint.
Referenced by GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), and GNEViewNet::onMouseMove().
| void GNEPolygonFrame::DrawingMode::showDrawingMode | ( | ) |
show Drawing mode
Definition at line 693 of file GNEPolygonFrame.cpp.
References abortDrawing().
Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().
| void GNEPolygonFrame::DrawingMode::startDrawing | ( | ) |
start drawing
Definition at line 710 of file GNEPolygonFrame.cpp.
References myAbortDrawingButton, myStartDrawingButton, and myStopDrawingButton.
Referenced by GNEViewNet::hotkeyEnter(), and onCmdStartDrawing().
| void GNEPolygonFrame::DrawingMode::stopDrawing | ( | ) |
stop drawing and create polygon or
Definition at line 722 of file GNEPolygonFrame.cpp.
References abortDrawing(), GNEPolygonFrame::buildPoly(), PositionVector::closePolygon(), GNEPolygonFrame::getNeteditAttributes(), GNEFrame::getViewNet(), GNEPolygonFrame::NeteditAttributes::isCloseShapeEnabled(), myAbortDrawingButton, myPolygonFrameParent, myStartDrawingButton, myStopDrawingButton, and myTemporalShapeShape.
Referenced by GNEViewNet::hotkeyEnter(), and onCmdStopDrawing().
|
private |
button for abort drawing
Definition at line 384 of file GNEPolygonFrame.h.
Referenced by abortDrawing(), DrawingMode(), startDrawing(), and stopDrawing().
|
private |
flag to enable/disable delete point mode
Definition at line 375 of file GNEPolygonFrame.h.
Referenced by getDeleteLastCreatedPoint(), and setDeleteLastCreatedPoint().
|
private |
Label with information.
Definition at line 387 of file GNEPolygonFrame.h.
Referenced by DrawingMode().
|
private |
frame frame parent
Definition at line 372 of file GNEPolygonFrame.h.
Referenced by abortDrawing(), and stopDrawing().
|
private |
button for start drawing
Definition at line 378 of file GNEPolygonFrame.h.
Referenced by abortDrawing(), DrawingMode(), startDrawing(), and stopDrawing().
|
private |
button for stop drawing
Definition at line 381 of file GNEPolygonFrame.h.
Referenced by abortDrawing(), addNewPoint(), DrawingMode(), isDrawing(), startDrawing(), and stopDrawing().
|
private |
current drawed shape
Definition at line 390 of file GNEPolygonFrame.h.
Referenced by abortDrawing(), addNewPoint(), getTemporalShape(), and stopDrawing().