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...
 

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...
 
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 398 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ DrawingShape() [1/2]

GNEFrameModuls::DrawingShape::DrawingShape ( GNEFrame frameParent)

◆ ~DrawingShape()

GNEFrameModuls::DrawingShape::~DrawingShape ( )

destructor

Definition at line 1559 of file GNEFrameModuls.cpp.

◆ DrawingShape() [2/2]

GNEFrameModuls::DrawingShape::DrawingShape ( )
inlineprotected

FOX needs this.

Definition at line 456 of file GNEFrameModuls.h.

Member Function Documentation

◆ abortDrawing()

void GNEFrameModuls::DrawingShape::abortDrawing ( )

abort drawing

Definition at line 1609 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 1621 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 1655 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 1570 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 1675 of file GNEFrameModuls.cpp.

◆ onCmdStartDrawing()

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

Definition at line 1661 of file GNEFrameModuls.cpp.

◆ onCmdStopDrawing()

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

Called when the user press stop drawing button.

Definition at line 1668 of file GNEFrameModuls.cpp.

◆ removeLastPoint()

void GNEFrameModuls::DrawingShape::removeLastPoint ( )

remove last added point

Definition at line 1631 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 1649 of file GNEFrameModuls.cpp.

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

◆ showDrawingShape()

void GNEFrameModuls::DrawingShape::showDrawingShape ( )

show Drawing mode

Definition at line 1562 of file GNEFrameModuls.cpp.

Referenced by GNEPolygonFrame::tagSelected().

◆ startDrawing()

void GNEFrameModuls::DrawingShape::startDrawing ( )

start drawing

Definition at line 1579 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 1591 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyEnter().

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myAbortDrawingButton
private

button for abort drawing

Definition at line 475 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myDeleteLastCreatedPoint

bool GNEFrameModuls::DrawingShape::myDeleteLastCreatedPoint
private

flag to enable/disable delete point mode

Definition at line 463 of file GNEFrameModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameModuls::DrawingShape::myFrameParent
private

pointer to frame parent

Definition at line 460 of file GNEFrameModuls.h.

◆ myInformationLabel

FXLabel* GNEFrameModuls::DrawingShape::myInformationLabel
private

Label with information.

Definition at line 478 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myStartDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myStartDrawingButton
private

button for start drawing

Definition at line 469 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myStopDrawingButton

FXButton* GNEFrameModuls::DrawingShape::myStopDrawingButton
private

button for stop drawing

Definition at line 472 of file GNEFrameModuls.h.

Referenced by DrawingShape().

◆ myTemporalShapeShape

PositionVector GNEFrameModuls::DrawingShape::myTemporalShapeShape
private

current drawed shape

Definition at line 466 of file GNEFrameModuls.h.


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