![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModuls.h>
Public Member Functions | |
void | abortDrawing () |
abort drawing More... | |
void | addNewPoint (const Position &P) |
add new point to temporal shape More... | |
DrawingShape (GNEFrame *frameParent) | |
FOX-declaration. More... | |
bool | getDeleteLastCreatedPoint () |
get flag delete last created point More... | |
const PositionVector & | getTemporalShape () const |
get Temporal shape More... | |
void | hideDrawingShape () |
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 | showDrawingShape () |
show Drawing mode More... | |
void | startDrawing () |
start drawing More... | |
void | stopDrawing () |
stop drawing and check if shape can be created More... | |
~DrawingShape () | |
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 | |
DrawingShape () | |
FOX needs this. More... | |
Private Attributes | |
FXButton * | myAbortDrawingButton |
button for abort drawing More... | |
bool | myDeleteLastCreatedPoint |
flag to enable/disable delete point mode More... | |
GNEFrame * | myFrameParent |
pointer to frame parent More... | |
FXLabel * | myInformationLabel |
Label with information. More... | |
FXButton * | myStartDrawingButton |
button for start drawing More... | |
FXButton * | myStopDrawingButton |
button for stop drawing More... | |
PositionVector | myTemporalShapeShape |
current drawed shape More... | |
Definition at line 398 of file GNEFrameModuls.h.
GNEFrameModuls::DrawingShape::DrawingShape | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 1532 of file GNEFrameModuls.cpp.
References GUIDesignButton, GUIDesignLabelFrameInformation, MID_GNE_ABORTDRAWING, MID_GNE_STARTDRAWING, MID_GNE_STOPDRAWING, myAbortDrawingButton, myInformationLabel, myStartDrawingButton, and myStopDrawingButton.
GNEFrameModuls::DrawingShape::~DrawingShape | ( | ) |
destructor
Definition at line 1559 of file GNEFrameModuls.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 456 of file GNEFrameModuls.h.
void GNEFrameModuls::DrawingShape::abortDrawing | ( | ) |
abort drawing
Definition at line 1609 of file GNEFrameModuls.cpp.
References myAbortDrawingButton, myFrameParent, myStartDrawingButton, myStopDrawingButton, myTemporalShapeShape, GNEFrame::myViewNet, and GNEViewNet::update().
Referenced by GNEViewNet::abortOperation(), hideDrawingShape(), onCmdAbortDrawing(), showDrawingShape(), and stopDrawing().
void GNEFrameModuls::DrawingShape::addNewPoint | ( | const Position & | P | ) |
add new point to temporal shape
Definition at line 1621 of file GNEFrameModuls.cpp.
References myStopDrawingButton, and myTemporalShapeShape.
Referenced by GNEPolygonFrame::processClick(), and GNETAZFrame::processClick().
bool GNEFrameModuls::DrawingShape::getDeleteLastCreatedPoint | ( | ) |
get flag delete last created point
Definition at line 1655 of file GNEFrameModuls.cpp.
References myDeleteLastCreatedPoint.
Referenced by GNEViewNet::drawTemporalDrawShape(), GNEPolygonFrame::processClick(), and GNETAZFrame::processClick().
const PositionVector & GNEFrameModuls::DrawingShape::getTemporalShape | ( | ) | const |
get Temporal shape
Definition at line 1637 of file GNEFrameModuls.cpp.
References myTemporalShapeShape.
Referenced by GNEViewNet::drawTemporalDrawShape(), GNEPolygonFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().
void GNEFrameModuls::DrawingShape::hideDrawingShape | ( | ) |
hide Drawing mode
Definition at line 1570 of file GNEFrameModuls.cpp.
References abortDrawing().
Referenced by GNETAZFrame::TAZCurrent::setTAZ(), and GNEPolygonFrame::tagSelected().
bool GNEFrameModuls::DrawingShape::isDrawing | ( | ) | const |
return true if currently a shape is drawed
Definition at line 1643 of file GNEFrameModuls.cpp.
References myStopDrawingButton.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalDrawShape(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onRightBtnPress(), GNEViewNet::onRightBtnRelease(), GNEPolygonFrame::processClick(), GNETAZFrame::processClick(), and GNEViewNet::processMoveMouseNetwork().
long GNEFrameModuls::DrawingShape::onCmdAbortDrawing | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user press abort drawing button.
Definition at line 1675 of file GNEFrameModuls.cpp.
References abortDrawing().
long GNEFrameModuls::DrawingShape::onCmdStartDrawing | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1661 of file GNEFrameModuls.cpp.
References startDrawing().
long GNEFrameModuls::DrawingShape::onCmdStopDrawing | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user press stop drawing button.
Definition at line 1668 of file GNEFrameModuls.cpp.
References stopDrawing().
void GNEFrameModuls::DrawingShape::removeLastPoint | ( | ) |
remove last added point
Definition at line 1631 of file GNEFrameModuls.cpp.
Referenced by GNEPolygonFrame::processClick(), and GNETAZFrame::processClick().
void GNEFrameModuls::DrawingShape::setDeleteLastCreatedPoint | ( | bool | value | ) |
enable or disable delete last created point
Definition at line 1649 of file GNEFrameModuls.cpp.
References myDeleteLastCreatedPoint.
Referenced by GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), and GNEViewNet::processMoveMouseNetwork().
void GNEFrameModuls::DrawingShape::showDrawingShape | ( | ) |
show Drawing mode
Definition at line 1562 of file GNEFrameModuls.cpp.
References abortDrawing().
Referenced by GNETAZFrame::TAZCurrent::setTAZ(), and GNEPolygonFrame::tagSelected().
void GNEFrameModuls::DrawingShape::startDrawing | ( | ) |
start drawing
Definition at line 1579 of file GNEFrameModuls.cpp.
References myAbortDrawingButton, myStartDrawingButton, and myStopDrawingButton.
Referenced by GNEViewNet::hotkeyEnter(), and onCmdStartDrawing().
void GNEFrameModuls::DrawingShape::stopDrawing | ( | ) |
stop drawing and check if shape can be created
Definition at line 1591 of file GNEFrameModuls.cpp.
References abortDrawing(), myAbortDrawingButton, myFrameParent, myStartDrawingButton, myStopDrawingButton, myTemporalShapeShape, GNEFrame::myViewNet, GNEFrame::shapeDrawed(), and GNEViewNet::update().
Referenced by GNEViewNet::hotkeyEnter(), and onCmdStopDrawing().
|
private |
button for abort drawing
Definition at line 475 of file GNEFrameModuls.h.
Referenced by abortDrawing(), DrawingShape(), startDrawing(), and stopDrawing().
|
private |
flag to enable/disable delete point mode
Definition at line 463 of file GNEFrameModuls.h.
Referenced by getDeleteLastCreatedPoint(), and setDeleteLastCreatedPoint().
|
private |
pointer to frame parent
Definition at line 460 of file GNEFrameModuls.h.
Referenced by abortDrawing(), and stopDrawing().
|
private |
Label with information.
Definition at line 478 of file GNEFrameModuls.h.
Referenced by DrawingShape().
|
private |
button for start drawing
Definition at line 469 of file GNEFrameModuls.h.
Referenced by abortDrawing(), DrawingShape(), startDrawing(), and stopDrawing().
|
private |
button for stop drawing
Definition at line 472 of file GNEFrameModuls.h.
Referenced by abortDrawing(), addNewPoint(), DrawingShape(), isDrawing(), startDrawing(), and stopDrawing().
|
private |
current drawed shape
Definition at line 466 of file GNEFrameModuls.h.
Referenced by abortDrawing(), addNewPoint(), getTemporalShape(), and stopDrawing().