SUMO - Simulation of Urban MObility
GNEPolygonFrame::DrawingMode Class Reference

#include <GNEPolygonFrame.h>

Inheritance diagram for GNEPolygonFrame::DrawingMode:
Inheritance graph
Collaboration diagram for GNEPolygonFrame::DrawingMode:
Collaboration graph

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

Detailed Description

Definition at line 310 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

◆ DrawingMode() [1/2]

◆ ~DrawingMode()

GNEPolygonFrame::DrawingMode::~DrawingMode ( )

destructor

Definition at line 687 of file GNEPolygonFrame.cpp.

◆ DrawingMode() [2/2]

GNEPolygonFrame::DrawingMode::DrawingMode ( )
inlineprotected

FOX needs this.

Definition at line 362 of file GNEPolygonFrame.h.

Member Function Documentation

◆ abortDrawing()

◆ addNewPoint()

void GNEPolygonFrame::DrawingMode::addNewPoint ( const Position &  P)

add new point to temporal shape

Definition at line 753 of file GNEPolygonFrame.cpp.

References myStopDrawingButton, and myTemporalShapeShape.

Referenced by GNEPolygonFrame::processClick().

◆ getTemporalShape()

const PositionVector & GNEPolygonFrame::DrawingMode::getTemporalShape ( ) const

get Temporal shape

Definition at line 775 of file GNEPolygonFrame.cpp.

References myTemporalShapeShape.

Referenced by GNEViewNet::doPaintGL().

◆ hideDrawingMode()

void GNEPolygonFrame::DrawingMode::hideDrawingMode ( )

hide Drawing mode

Definition at line 698 of file GNEPolygonFrame.cpp.

References abortDrawing().

Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().

◆ isDrawing()

bool GNEPolygonFrame::DrawingMode::isDrawing ( ) const

◆ onCmdAbortDrawing()

long GNEPolygonFrame::DrawingMode::onCmdAbortDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user press abort drawing button.

Definition at line 801 of file GNEPolygonFrame.cpp.

References abortDrawing().

◆ onCmdStartDrawing()

long GNEPolygonFrame::DrawingMode::onCmdStartDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 787 of file GNEPolygonFrame.cpp.

References startDrawing().

◆ onCmdStopDrawing()

long GNEPolygonFrame::DrawingMode::onCmdStopDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user press stop drawing button.

Definition at line 794 of file GNEPolygonFrame.cpp.

References stopDrawing().

◆ removeLastPoint()

void GNEPolygonFrame::DrawingMode::removeLastPoint ( )

remove last added point

Definition at line 763 of file GNEPolygonFrame.cpp.

References myStopDrawingButton, and myTemporalShapeShape.

Referenced by GNEViewNet::onRightBtnPress().

◆ showDrawingMode()

void GNEPolygonFrame::DrawingMode::showDrawingMode ( )

show Drawing mode

Definition at line 690 of file GNEPolygonFrame.cpp.

References abortDrawing().

Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().

◆ startDrawing()

void GNEPolygonFrame::DrawingMode::startDrawing ( )

start drawing

Definition at line 707 of file GNEPolygonFrame.cpp.

References myAbortDrawingButton, myStartDrawingButton, and myStopDrawingButton.

Referenced by GNEViewNet::hotkeyEnter(), and onCmdStartDrawing().

◆ stopDrawing()

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEPolygonFrame::DrawingMode::myAbortDrawingButton
private

button for abort drawing

Definition at line 375 of file GNEPolygonFrame.h.

Referenced by abortDrawing(), DrawingMode(), startDrawing(), and stopDrawing().

◆ myInformationLabel

FXLabel* GNEPolygonFrame::DrawingMode::myInformationLabel
private

Label with information.

Definition at line 378 of file GNEPolygonFrame.h.

Referenced by DrawingMode().

◆ myPolygonFrameParent

GNEPolygonFrame* GNEPolygonFrame::DrawingMode::myPolygonFrameParent
private

frame frame parent

Definition at line 366 of file GNEPolygonFrame.h.

Referenced by abortDrawing(), and stopDrawing().

◆ myStartDrawingButton

FXButton* GNEPolygonFrame::DrawingMode::myStartDrawingButton
private

button for start drawing

Definition at line 369 of file GNEPolygonFrame.h.

Referenced by abortDrawing(), DrawingMode(), startDrawing(), and stopDrawing().

◆ myStopDrawingButton

FXButton* GNEPolygonFrame::DrawingMode::myStopDrawingButton
private

button for stop drawing

Definition at line 372 of file GNEPolygonFrame.h.

Referenced by abortDrawing(), addNewPoint(), DrawingMode(), isDrawing(), removeLastPoint(), startDrawing(), and stopDrawing().

◆ myTemporalShapeShape

PositionVector GNEPolygonFrame::DrawingMode::myTemporalShapeShape
private

current drawed shape

Definition at line 381 of file GNEPolygonFrame.h.

Referenced by abortDrawing(), addNewPoint(), getTemporalShape(), removeLastPoint(), and stopDrawing().


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