Eclipse SUMO - Simulation of Urban MObility
GNEFrameModuls::DrawingShape Class Reference

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::DrawingShape:
Collaboration diagram for GNEFrameModuls::DrawingShape:

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 PositionVectorgetTemporalShape () 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...
 

Private Attributes

FXButton * myAbortDrawingButton
 button for abort drawing More...
 
bool myDeleteLastCreatedPoint
 flag to enable/disable delete point mode More...
 
GNEFramemyFrameParent
 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...
 

Detailed Description

Definition at line 393 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ DrawingShape()

GNEFrameModuls::DrawingShape::DrawingShape ( GNEFrame frameParent)

◆ ~DrawingShape()

GNEFrameModuls::DrawingShape::~DrawingShape ( )

destructor

Definition at line 1594 of file GNEFrameModuls.cpp.

Member Function Documentation

◆ abortDrawing()

void GNEFrameModuls::DrawingShape::abortDrawing ( )

abort drawing

Definition at line 1644 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::abortOperation().

◆ addNewPoint()

void GNEFrameModuls::DrawingShape::addNewPoint ( const Position P)

add new point to temporal shape

Definition at line 1656 of file GNEFrameModuls.cpp.

Referenced by GNEPolygonFrame::processClick(), and GNETAZFrame::processClick().

◆ getDeleteLastCreatedPoint()

bool GNEFrameModuls::DrawingShape::getDeleteLastCreatedPoint ( )

get flag delete last created point

Definition at line 1690 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::drawTemporalDrawShape(), GNEPolygonFrame::processClick(), and GNETAZFrame::processClick().

◆ getTemporalShape()

const PositionVector & GNEFrameModuls::DrawingShape::getTemporalShape ( ) const

◆ hideDrawingShape()

void GNEFrameModuls::DrawingShape::hideDrawingShape ( )

hide Drawing mode

Definition at line 1605 of file GNEFrameModuls.cpp.

Referenced by GNEPolygonFrame::tagSelected().

◆ isDrawing()

◆ onCmdAbortDrawing()

long GNEFrameModuls::DrawingShape::onCmdAbortDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user press abort drawing button.

Definition at line 1710 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

◆ onCmdStartDrawing()

long GNEFrameModuls::DrawingShape::onCmdStartDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1696 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

◆ onCmdStopDrawing()

long GNEFrameModuls::DrawingShape::onCmdStopDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user press stop drawing button.

Definition at line 1703 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

◆ removeLastPoint()

void GNEFrameModuls::DrawingShape::removeLastPoint ( )

remove last added point

Definition at line 1666 of file GNEFrameModuls.cpp.

Referenced by GNEPolygonFrame::processClick(), and GNETAZFrame::processClick().

◆ setDeleteLastCreatedPoint()

void GNEFrameModuls::DrawingShape::setDeleteLastCreatedPoint ( bool  value)

enable or disable delete last created point

Definition at line 1684 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), and GNEViewNet::processMoveMouseNetwork().

◆ showDrawingShape()

void GNEFrameModuls::DrawingShape::showDrawingShape ( )

show Drawing mode

Definition at line 1597 of file GNEFrameModuls.cpp.

Referenced by GNEPolygonFrame::tagSelected().

◆ startDrawing()

void GNEFrameModuls::DrawingShape::startDrawing ( )

start drawing

Definition at line 1614 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyEnter().

◆ stopDrawing()

void GNEFrameModuls::DrawingShape::stopDrawing ( )

stop drawing and check if shape can be created

Definition at line 1626 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyEnter().

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myAbortDrawingButton
private

button for abort drawing

Definition at line 469 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myDeleteLastCreatedPoint

bool GNEFrameModuls::DrawingShape::myDeleteLastCreatedPoint
private

flag to enable/disable delete point mode

Definition at line 457 of file GNEFrameModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameModuls::DrawingShape::myFrameParent
private

pointer to frame parent

Definition at line 454 of file GNEFrameModuls.h.

◆ myInformationLabel

FXLabel* GNEFrameModuls::DrawingShape::myInformationLabel
private

Label with information.

Definition at line 472 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myStartDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myStartDrawingButton
private

button for start drawing

Definition at line 463 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myStopDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myStopDrawingButton
private

button for stop drawing

Definition at line 466 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myTemporalShapeShape

PositionVector GNEFrameModuls::DrawingShape::myTemporalShapeShape
private

current drawed shape

Definition at line 460 of file GNEFrameModuls.h.


The documentation for this class was generated from the following files: