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

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

Constructor & Destructor Documentation

◆ DrawingShape()

GNEFrameAttributesModuls::DrawingShape::DrawingShape ( GNEFrame frameParent)

◆ ~DrawingShape()

GNEFrameAttributesModuls::DrawingShape::~DrawingShape ( )

destructor

Definition at line 2367 of file GNEFrameAttributesModuls.cpp.

Member Function Documentation

◆ abortDrawing()

void GNEFrameAttributesModuls::DrawingShape::abortDrawing ( )

abort drawing

Definition at line 2417 of file GNEFrameAttributesModuls.cpp.

◆ addNewPoint()

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

add new point to temporal shape

Definition at line 2429 of file GNEFrameAttributesModuls.cpp.

◆ getDeleteLastCreatedPoint()

bool GNEFrameAttributesModuls::DrawingShape::getDeleteLastCreatedPoint ( )

get flag delete last created point

Definition at line 2463 of file GNEFrameAttributesModuls.cpp.

◆ getTemporalShape()

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

get Temporal shape

Definition at line 2445 of file GNEFrameAttributesModuls.cpp.

◆ hideDrawingShape()

void GNEFrameAttributesModuls::DrawingShape::hideDrawingShape ( )

hide Drawing mode

Definition at line 2378 of file GNEFrameAttributesModuls.cpp.

◆ isDrawing()

bool GNEFrameAttributesModuls::DrawingShape::isDrawing ( ) const

return true if currently a shape is drawed

Definition at line 2451 of file GNEFrameAttributesModuls.cpp.

◆ onCmdAbortDrawing()

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

Called when the user press abort drawing button.

Definition at line 2483 of file GNEFrameAttributesModuls.cpp.

◆ onCmdStartDrawing()

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

Definition at line 2469 of file GNEFrameAttributesModuls.cpp.

◆ onCmdStopDrawing()

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

Called when the user press stop drawing button.

Definition at line 2476 of file GNEFrameAttributesModuls.cpp.

◆ removeLastPoint()

void GNEFrameAttributesModuls::DrawingShape::removeLastPoint ( )

remove last added point

Definition at line 2439 of file GNEFrameAttributesModuls.cpp.

◆ setDeleteLastCreatedPoint()

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

enable or disable delete last created point

Definition at line 2457 of file GNEFrameAttributesModuls.cpp.

◆ showDrawingShape()

void GNEFrameAttributesModuls::DrawingShape::showDrawingShape ( )

show Drawing mode

Definition at line 2370 of file GNEFrameAttributesModuls.cpp.

◆ startDrawing()

void GNEFrameAttributesModuls::DrawingShape::startDrawing ( )

start drawing

Definition at line 2387 of file GNEFrameAttributesModuls.cpp.

◆ stopDrawing()

void GNEFrameAttributesModuls::DrawingShape::stopDrawing ( )

stop drawing and check if shape can be created

Definition at line 2399 of file GNEFrameAttributesModuls.cpp.

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myAbortDrawingButton
private

button for abort drawing

Definition at line 704 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myDeleteLastCreatedPoint

bool GNEFrameAttributesModuls::DrawingShape::myDeleteLastCreatedPoint
private

flag to enable/disable delete point mode

Definition at line 692 of file GNEFrameAttributesModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameAttributesModuls::DrawingShape::myFrameParent
private

pointer to frame parent

Definition at line 689 of file GNEFrameAttributesModuls.h.

◆ myInformationLabel

FXLabel* GNEFrameAttributesModuls::DrawingShape::myInformationLabel
private

Label with information.

Definition at line 707 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myStartDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myStartDrawingButton
private

button for start drawing

Definition at line 698 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myStopDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myStopDrawingButton
private

button for stop drawing

Definition at line 701 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myTemporalShapeShape

PositionVector GNEFrameAttributesModuls::DrawingShape::myTemporalShapeShape
private

current drawed shape

Definition at line 695 of file GNEFrameAttributesModuls.h.


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