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

#include <GNEFrameAttributesModuls.h>

Inheritance diagram for GNEFrameAttributesModuls::DrawingShape:
[legend]
Collaboration diagram for GNEFrameAttributesModuls::DrawingShape:
[legend]

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 616 of file GNEFrameAttributesModuls.h.

Constructor & Destructor Documentation

◆ DrawingShape()

GNEFrameAttributesModuls::DrawingShape::DrawingShape ( GNEFrame frameParent)

◆ ~DrawingShape()

GNEFrameAttributesModuls::DrawingShape::~DrawingShape ( )

destructor

Definition at line 2269 of file GNEFrameAttributesModuls.cpp.

Member Function Documentation

◆ abortDrawing()

void GNEFrameAttributesModuls::DrawingShape::abortDrawing ( )

abort drawing

Definition at line 2319 of file GNEFrameAttributesModuls.cpp.

◆ addNewPoint()

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

add new point to temporal shape

Definition at line 2331 of file GNEFrameAttributesModuls.cpp.

◆ getDeleteLastCreatedPoint()

bool GNEFrameAttributesModuls::DrawingShape::getDeleteLastCreatedPoint ( )

get flag delete last created point

Definition at line 2365 of file GNEFrameAttributesModuls.cpp.

◆ getTemporalShape()

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

get Temporal shape

Definition at line 2347 of file GNEFrameAttributesModuls.cpp.

◆ hideDrawingShape()

void GNEFrameAttributesModuls::DrawingShape::hideDrawingShape ( )

hide Drawing mode

Definition at line 2280 of file GNEFrameAttributesModuls.cpp.

◆ isDrawing()

bool GNEFrameAttributesModuls::DrawingShape::isDrawing ( ) const

return true if currently a shape is drawed

Definition at line 2353 of file GNEFrameAttributesModuls.cpp.

◆ onCmdAbortDrawing()

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

Called when the user press abort drawing button.

Definition at line 2385 of file GNEFrameAttributesModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdStartDrawing()

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

Definition at line 2371 of file GNEFrameAttributesModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdStopDrawing()

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

Called when the user press stop drawing button.

Definition at line 2378 of file GNEFrameAttributesModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ removeLastPoint()

void GNEFrameAttributesModuls::DrawingShape::removeLastPoint ( )

remove last added point

Definition at line 2341 of file GNEFrameAttributesModuls.cpp.

◆ setDeleteLastCreatedPoint()

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

enable or disable delete last created point

Definition at line 2359 of file GNEFrameAttributesModuls.cpp.

◆ showDrawingShape()

void GNEFrameAttributesModuls::DrawingShape::showDrawingShape ( )

show Drawing mode

Definition at line 2272 of file GNEFrameAttributesModuls.cpp.

◆ startDrawing()

void GNEFrameAttributesModuls::DrawingShape::startDrawing ( )

start drawing

Definition at line 2289 of file GNEFrameAttributesModuls.cpp.

◆ stopDrawing()

void GNEFrameAttributesModuls::DrawingShape::stopDrawing ( )

stop drawing and check if shape can be created

Definition at line 2301 of file GNEFrameAttributesModuls.cpp.

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myAbortDrawingButton
private

button for abort drawing

Definition at line 692 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myDeleteLastCreatedPoint

bool GNEFrameAttributesModuls::DrawingShape::myDeleteLastCreatedPoint
private

flag to enable/disable delete point mode

Definition at line 680 of file GNEFrameAttributesModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameAttributesModuls::DrawingShape::myFrameParent
private

pointer to frame parent

Definition at line 677 of file GNEFrameAttributesModuls.h.

◆ myInformationLabel

FXLabel* GNEFrameAttributesModuls::DrawingShape::myInformationLabel
private

Label with information.

Definition at line 695 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myStartDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myStartDrawingButton
private

button for start drawing

Definition at line 686 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myStopDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myStopDrawingButton
private

button for stop drawing

Definition at line 689 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myTemporalShapeShape

PositionVector GNEFrameAttributesModuls::DrawingShape::myTemporalShapeShape
private

current drawed shape

Definition at line 683 of file GNEFrameAttributesModuls.h.


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