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

#include <GNEFrameAttributesModuls.h>

Inheritance diagram for GNEFrameAttributesModuls::DrawingShape:
Collaboration diagram for GNEFrameAttributesModuls::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 461 of file GNEFrameAttributesModuls.h.

Constructor & Destructor Documentation

◆ DrawingShape() [1/2]

GNEFrameAttributesModuls::DrawingShape::DrawingShape ( GNEFrame frameParent)

◆ ~DrawingShape()

GNEFrameAttributesModuls::DrawingShape::~DrawingShape ( )

destructor

Definition at line 1871 of file GNEFrameAttributesModuls.cpp.

◆ DrawingShape() [2/2]

GNEFrameAttributesModuls::DrawingShape::DrawingShape ( )
inlineprotected

FOX needs this.

Definition at line 519 of file GNEFrameAttributesModuls.h.

Member Function Documentation

◆ abortDrawing()

void GNEFrameAttributesModuls::DrawingShape::abortDrawing ( )

◆ addNewPoint()

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

add new point to temporal shape

Definition at line 1933 of file GNEFrameAttributesModuls.cpp.

References myStopDrawingButton, and myTemporalShapeShape.

◆ getDeleteLastCreatedPoint()

bool GNEFrameAttributesModuls::DrawingShape::getDeleteLastCreatedPoint ( )

get flag delete last created point

Definition at line 1967 of file GNEFrameAttributesModuls.cpp.

References myDeleteLastCreatedPoint.

◆ getTemporalShape()

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

get Temporal shape

Definition at line 1949 of file GNEFrameAttributesModuls.cpp.

References myTemporalShapeShape.

◆ hideDrawingShape()

void GNEFrameAttributesModuls::DrawingShape::hideDrawingShape ( )

hide Drawing mode

Definition at line 1882 of file GNEFrameAttributesModuls.cpp.

References abortDrawing().

◆ isDrawing()

bool GNEFrameAttributesModuls::DrawingShape::isDrawing ( ) const

return true if currently a shape is drawed

Definition at line 1955 of file GNEFrameAttributesModuls.cpp.

References myStopDrawingButton.

◆ onCmdAbortDrawing()

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

Called when the user press abort drawing button.

Definition at line 1987 of file GNEFrameAttributesModuls.cpp.

References abortDrawing().

◆ onCmdStartDrawing()

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

Definition at line 1973 of file GNEFrameAttributesModuls.cpp.

References startDrawing().

◆ onCmdStopDrawing()

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

Called when the user press stop drawing button.

Definition at line 1980 of file GNEFrameAttributesModuls.cpp.

References stopDrawing().

◆ removeLastPoint()

void GNEFrameAttributesModuls::DrawingShape::removeLastPoint ( )

remove last added point

Definition at line 1943 of file GNEFrameAttributesModuls.cpp.

◆ setDeleteLastCreatedPoint()

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

enable or disable delete last created point

Definition at line 1961 of file GNEFrameAttributesModuls.cpp.

References myDeleteLastCreatedPoint.

◆ showDrawingShape()

void GNEFrameAttributesModuls::DrawingShape::showDrawingShape ( )

show Drawing mode

Definition at line 1874 of file GNEFrameAttributesModuls.cpp.

References abortDrawing().

◆ startDrawing()

void GNEFrameAttributesModuls::DrawingShape::startDrawing ( )

start drawing

Definition at line 1891 of file GNEFrameAttributesModuls.cpp.

References myAbortDrawingButton, myStartDrawingButton, and myStopDrawingButton.

Referenced by onCmdStartDrawing().

◆ stopDrawing()

void GNEFrameAttributesModuls::DrawingShape::stopDrawing ( )

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myAbortDrawingButton
private

button for abort drawing

Definition at line 538 of file GNEFrameAttributesModuls.h.

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

◆ myDeleteLastCreatedPoint

bool GNEFrameAttributesModuls::DrawingShape::myDeleteLastCreatedPoint
private

flag to enable/disable delete point mode

Definition at line 526 of file GNEFrameAttributesModuls.h.

Referenced by getDeleteLastCreatedPoint(), and setDeleteLastCreatedPoint().

◆ myFrameParent

GNEFrame* GNEFrameAttributesModuls::DrawingShape::myFrameParent
private

pointer to frame parent

Definition at line 523 of file GNEFrameAttributesModuls.h.

Referenced by abortDrawing(), and stopDrawing().

◆ myInformationLabel

FXLabel* GNEFrameAttributesModuls::DrawingShape::myInformationLabel
private

Label with information.

Definition at line 541 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myStartDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myStartDrawingButton
private

button for start drawing

Definition at line 532 of file GNEFrameAttributesModuls.h.

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

◆ myStopDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myStopDrawingButton
private

button for stop drawing

Definition at line 535 of file GNEFrameAttributesModuls.h.

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

◆ myTemporalShapeShape

PositionVector GNEFrameAttributesModuls::DrawingShape::myTemporalShapeShape
private

current drawed shape

Definition at line 529 of file GNEFrameAttributesModuls.h.

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


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