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 myTemporalShape
 current drawed shape More...
 

Detailed Description

Definition at line 298 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ DrawingShape()

GNEFrameModuls::DrawingShape::DrawingShape ( GNEFrame frameParent)

◆ ~DrawingShape()

GNEFrameModuls::DrawingShape::~DrawingShape ( )

destructor

Definition at line 1507 of file GNEFrameModuls.cpp.

Member Function Documentation

◆ abortDrawing()

void GNEFrameModuls::DrawingShape::abortDrawing ( )

abort drawing

Definition at line 1556 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::abortOperation().

Here is the caller graph for this function:

◆ addNewPoint()

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

add new point to temporal shape

Definition at line 1567 of file GNEFrameModuls.cpp.

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

Here is the caller graph for this function:

◆ getDeleteLastCreatedPoint()

bool GNEFrameModuls::DrawingShape::getDeleteLastCreatedPoint ( )

get flag delete last created point

Definition at line 1603 of file GNEFrameModuls.cpp.

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

Here is the caller graph for this function:

◆ getTemporalShape()

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

get Temporal shape

Definition at line 1585 of file GNEFrameModuls.cpp.

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

Here is the caller graph for this function:

◆ hideDrawingShape()

void GNEFrameModuls::DrawingShape::hideDrawingShape ( )

hide Drawing mode

Definition at line 1518 of file GNEFrameModuls.cpp.

Referenced by GNEPolygonFrame::tagSelected().

Here is the caller graph for this function:

◆ isDrawing()

bool GNEFrameModuls::DrawingShape::isDrawing ( ) const

◆ onCmdAbortDrawing()

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

Called when the user press abort drawing button.

Definition at line 1623 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdStartDrawing()

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

Definition at line 1609 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdStopDrawing()

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

Called when the user press stop drawing button.

Definition at line 1616 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ removeLastPoint()

void GNEFrameModuls::DrawingShape::removeLastPoint ( )

remove last added point

Definition at line 1577 of file GNEFrameModuls.cpp.

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

Here is the caller graph for this function:

◆ setDeleteLastCreatedPoint()

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

enable or disable delete last created point

Definition at line 1597 of file GNEFrameModuls.cpp.

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

Here is the caller graph for this function:

◆ showDrawingShape()

void GNEFrameModuls::DrawingShape::showDrawingShape ( )

show Drawing mode

Definition at line 1510 of file GNEFrameModuls.cpp.

Referenced by GNEPolygonFrame::tagSelected().

Here is the caller graph for this function:

◆ startDrawing()

void GNEFrameModuls::DrawingShape::startDrawing ( )

start drawing

Definition at line 1527 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ stopDrawing()

void GNEFrameModuls::DrawingShape::stopDrawing ( )

stop drawing and check if shape can be created

Definition at line 1539 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myAbortDrawingButton
private

button for abort drawing

Definition at line 374 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myDeleteLastCreatedPoint

bool GNEFrameModuls::DrawingShape::myDeleteLastCreatedPoint
private

flag to enable/disable delete point mode

Definition at line 362 of file GNEFrameModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameModuls::DrawingShape::myFrameParent
private

pointer to frame parent

Definition at line 359 of file GNEFrameModuls.h.

◆ myInformationLabel

FXLabel* GNEFrameModuls::DrawingShape::myInformationLabel
private

Label with information.

Definition at line 377 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myStartDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myStartDrawingButton
private

button for start drawing

Definition at line 368 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myStopDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myStopDrawingButton
private

button for stop drawing

Definition at line 371 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myTemporalShape

PositionVector GNEFrameModuls::DrawingShape::myTemporalShape
private

current drawed shape

Definition at line 365 of file GNEFrameModuls.h.


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