Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEGeometryPointDialog Class Reference

Dialog to edit geometry points. More...

#include <GNEGeometryPointDialog.h>

Inheritance diagram for GNEGeometryPointDialog:
[legend]
Collaboration diagram for GNEGeometryPointDialog:
[legend]

Public Member Functions

 GNEGeometryPointDialog (GNEViewNet *viewNet, Position *pos)
 FOX-declaration abstract.
 
 ~GNEGeometryPointDialog ()
 destructor
 
FOX-callbacks

event after change position in TextFields

long onCmdChangeGeometryPoint (FXObject *sender, FXSelector sel, void *ptr)
 
long onCmdAccept (FXObject *sender, FXSelector sel, void *ptr)
 event after press accept button
 
long onCmdCancel (FXObject *sender, FXSelector sel, void *ptr)
 event after press cancel button
 
long onCmdReset (FXObject *, FXSelector, void *)
 event after press cancel button
 

Protected Member Functions

 GNEGeometryPointDialog ()
 FOX need this.
 

Protected Attributes

const bool myGeo
 flag for geo
 
const Position myOriginalPos
 original position (used for reset)
 
PositionmyPos = nullptr
 position to be edited
 
FXTextField * myTextFieldLonLat = nullptr
 text field for lon, Lat
 
FXTextField * myTextFieldXY = nullptr
 text field for X, Y
 
GNEViewNetmyViewNet
 viewNet
 

Private Member Functions

 GNEGeometryPointDialog (const GNEGeometryPointDialog &)=delete
 Invalidated copy constructor.
 
GNEGeometryPointDialogoperator= (const GNEGeometryPointDialog &)=delete
 Invalidated assignment operator.
 

Private Attributes

FXButton * myCancelButton = nullptr
 cancel button
 
FXButton * myKeepOldButton = nullptr
 accept button
 
FXButton * myResetButton = nullptr
 cancel button
 

Detailed Description

Dialog to edit geometry points.

This is a modal dialog which blocks in its constructor so it is save to delete it directly after construction

Definition at line 44 of file GNEGeometryPointDialog.h.

Constructor & Destructor Documentation

◆ GNEGeometryPointDialog() [1/3]

◆ ~GNEGeometryPointDialog()

GNEGeometryPointDialog::~GNEGeometryPointDialog ( )

destructor

Definition at line 88 of file GNEGeometryPointDialog.cpp.

◆ GNEGeometryPointDialog() [2/3]

GNEGeometryPointDialog::GNEGeometryPointDialog ( )
protected

FOX need this.

Definition at line 182 of file GNEGeometryPointDialog.cpp.

◆ GNEGeometryPointDialog() [3/3]

GNEGeometryPointDialog::GNEGeometryPointDialog ( const GNEGeometryPointDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ onCmdAccept()

long GNEGeometryPointDialog::onCmdAccept ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

event after press accept button

Definition at line 142 of file GNEGeometryPointDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

long GNEGeometryPointDialog::onCmdCancel ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

event after press cancel button

Definition at line 150 of file GNEGeometryPointDialog.cpp.

References myOriginalPos, and myPos.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdChangeGeometryPoint()

long GNEGeometryPointDialog::onCmdChangeGeometryPoint ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 95 of file GNEGeometryPointDialog.cpp.

References GeoConvHelper::cartesian2geo(), GeoConvHelper::getFinal(), myGeo, myPos, myTextFieldLonLat, myTextFieldXY, toString(), and GeoConvHelper::x2cartesian_const().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

long GNEGeometryPointDialog::onCmdReset ( FXObject *  ,
FXSelector  ,
void *   
)

event after press cancel button

Definition at line 160 of file GNEGeometryPointDialog.cpp.

References GeoConvHelper::cartesian2geo(), GeoConvHelper::getFinal(), myGeo, myOriginalPos, myPos, myTextFieldLonLat, myTextFieldXY, and toString().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GNEGeometryPointDialog & GNEGeometryPointDialog::operator= ( const GNEGeometryPointDialog )
privatedelete

Invalidated assignment operator.

Field Documentation

◆ myCancelButton

FXButton* GNEGeometryPointDialog::myCancelButton = nullptr
private

cancel button

Definition at line 98 of file GNEGeometryPointDialog.h.

◆ myGeo

const bool GNEGeometryPointDialog::myGeo
protected

flag for geo

Definition at line 91 of file GNEGeometryPointDialog.h.

Referenced by onCmdChangeGeometryPoint(), and onCmdReset().

◆ myKeepOldButton

FXButton* GNEGeometryPointDialog::myKeepOldButton = nullptr
private

accept button

Definition at line 95 of file GNEGeometryPointDialog.h.

◆ myOriginalPos

const Position GNEGeometryPointDialog::myOriginalPos
protected

original position (used for reset)

Definition at line 88 of file GNEGeometryPointDialog.h.

Referenced by onCmdCancel(), and onCmdReset().

◆ myPos

Position* GNEGeometryPointDialog::myPos = nullptr
protected

position to be edited

Definition at line 85 of file GNEGeometryPointDialog.h.

Referenced by onCmdCancel(), onCmdChangeGeometryPoint(), and onCmdReset().

◆ myResetButton

FXButton* GNEGeometryPointDialog::myResetButton = nullptr
private

cancel button

Definition at line 101 of file GNEGeometryPointDialog.h.

◆ myTextFieldLonLat

FXTextField* GNEGeometryPointDialog::myTextFieldLonLat = nullptr
protected

text field for lon, Lat

Definition at line 82 of file GNEGeometryPointDialog.h.

Referenced by onCmdChangeGeometryPoint(), and onCmdReset().

◆ myTextFieldXY

FXTextField* GNEGeometryPointDialog::myTextFieldXY = nullptr
protected

text field for X, Y

Definition at line 79 of file GNEGeometryPointDialog.h.

Referenced by onCmdChangeGeometryPoint(), and onCmdReset().

◆ myViewNet

GNEViewNet* GNEGeometryPointDialog::myViewNet
protected

viewNet

Definition at line 76 of file GNEGeometryPointDialog.h.


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