SUMO - Simulation of Urban MObility
GNEFrame::GEOAttributes Class Reference

#include <GNEFrame.h>

Inheritance diagram for GNEFrame::GEOAttributes:
Inheritance graph
Collaboration diagram for GNEFrame::GEOAttributes:
Collaboration graph

Public Member Functions

 GEOAttributes (GNEFrame *frameParent)
 FOX-declaration. More...
 
std::map< SumoXMLAttr, std::string > getGEOAttributes () const
 get GEO Attributes More...
 
void hideGEOAttributes ()
 hide GEOAttributes More...
 
void refreshGEOAttributes ()
 refresh TextFields with the new GEO Attributes More...
 
void showGEOAttributes (const std::vector< GNEAttributeCarrier *> &ACs)
 show GEOAttribute for the current AttributeCarriers More...
 
 ~GEOAttributes ()
 destructor More...
 
FOX-callbacks
long onCmdSetGEOAttribute (FXObject *, FXSelector, void *)
 Called when user change the current GEO Attribute. More...
 
long onCmdUseGEOParameters (FXObject *, FXSelector, void *)
 Called when user enters a new length. More...
 
long onCmdHelp (FXObject *, FXSelector, void *)
 Called when user press the help button. More...
 

Protected Member Functions

 GEOAttributes ()
 FOX needs this. More...
 

Private Attributes

std::vector< GNEAttributeCarrier * > myACs
 current edited ACs More...
 
GNEFramemyFrameParent
 current GNEFrame parent More...
 
SumoXMLAttr myGEOAttribute
 type of GEO Attribute More...
 
FXHorizontalFrame * myGEOAttributeFrame
 horizontal frame for GEOAttribute More...
 
FXLabel * myGEOAttributeLabel
 Label for GEOAttribute. More...
 
FXTextField * myGEOAttributeTextField
 textField for GEOAttribute More...
 
FXButton * myHelpButton
 button for help More...
 
FXCheckButton * myUseGEOCheckButton
 checkBox for use GEO More...
 
FXHorizontalFrame * myUseGEOFrame
 horizontal frame for use GEO More...
 
FXLabel * myUseGEOLabel
 Label for use GEO. More...
 

Detailed Description

Definition at line 137 of file GNEFrame.h.

Constructor & Destructor Documentation

◆ GEOAttributes() [1/2]

◆ ~GEOAttributes()

GNEFrame::GEOAttributes::~GEOAttributes ( )

destructor

Definition at line 200 of file GNEFrame.cpp.

◆ GEOAttributes() [2/2]

GNEFrame::GEOAttributes::GEOAttributes ( )
inlineprotected

FOX needs this.

Definition at line 175 of file GNEFrame.h.

Member Function Documentation

◆ getGEOAttributes()

std::map< SumoXMLAttr, std::string > GNEFrame::GEOAttributes::getGEOAttributes ( ) const

get GEO Attributes

Definition at line 277 of file GNEFrame.cpp.

References myGEOAttribute, myGEOAttributeTextField, myUseGEOCheckButton, and SUMO_ATTR_GEO.

◆ hideGEOAttributes()

void GNEFrame::GEOAttributes::hideGEOAttributes ( )

◆ onCmdHelp()

long GNEFrame::GEOAttributes::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

Called when user press the help button.

Definition at line 320 of file GNEFrame.cpp.

References GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignLabelFrameInformation, and ICON_ACCEPT.

◆ onCmdSetGEOAttribute()

long GNEFrame::GEOAttributes::onCmdSetGEOAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdUseGEOParameters()

long GNEFrame::GEOAttributes::onCmdUseGEOParameters ( FXObject *  ,
FXSelector  ,
void *   
)

Called when user enters a new length.

Definition at line 304 of file GNEFrame.cpp.

References GNEViewNet::getUndoList(), GNEFrame::getViewNet(), myACs, myFrameParent, myUseGEOCheckButton, and SUMO_ATTR_GEO.

◆ refreshGEOAttributes()

void GNEFrame::GEOAttributes::refreshGEOAttributes ( )

refresh TextFields with the new GEO Attributes

Definition at line 246 of file GNEFrame.cpp.

References myACs, myGEOAttribute, myGEOAttributeFrame, myGEOAttributeTextField, myUseGEOCheckButton, and SUMO_ATTR_GEO.

Referenced by GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), and showGEOAttributes().

◆ showGEOAttributes()

void GNEFrame::GEOAttributes::showGEOAttributes ( const std::vector< GNEAttributeCarrier *> &  ACs)

Field Documentation

◆ myACs

std::vector<GNEAttributeCarrier*> GNEFrame::GEOAttributes::myACs
private

◆ myFrameParent

GNEFrame* GNEFrame::GEOAttributes::myFrameParent
private

current GNEFrame parent

Definition at line 179 of file GNEFrame.h.

Referenced by onCmdSetGEOAttribute(), and onCmdUseGEOParameters().

◆ myGEOAttribute

SumoXMLAttr GNEFrame::GEOAttributes::myGEOAttribute
private

type of GEO Attribute

Definition at line 182 of file GNEFrame.h.

Referenced by getGEOAttributes(), hideGEOAttributes(), onCmdSetGEOAttribute(), refreshGEOAttributes(), and showGEOAttributes().

◆ myGEOAttributeFrame

FXHorizontalFrame* GNEFrame::GEOAttributes::myGEOAttributeFrame
private

horizontal frame for GEOAttribute

Definition at line 188 of file GNEFrame.h.

Referenced by GEOAttributes(), and refreshGEOAttributes().

◆ myGEOAttributeLabel

FXLabel* GNEFrame::GEOAttributes::myGEOAttributeLabel
private

Label for GEOAttribute.

Definition at line 191 of file GNEFrame.h.

Referenced by GEOAttributes(), and showGEOAttributes().

◆ myGEOAttributeTextField

FXTextField* GNEFrame::GEOAttributes::myGEOAttributeTextField
private

textField for GEOAttribute

Definition at line 194 of file GNEFrame.h.

Referenced by GEOAttributes(), getGEOAttributes(), onCmdSetGEOAttribute(), and refreshGEOAttributes().

◆ myHelpButton

FXButton* GNEFrame::GEOAttributes::myHelpButton
private

button for help

Definition at line 206 of file GNEFrame.h.

Referenced by GEOAttributes().

◆ myUseGEOCheckButton

FXCheckButton* GNEFrame::GEOAttributes::myUseGEOCheckButton
private

checkBox for use GEO

Definition at line 203 of file GNEFrame.h.

Referenced by GEOAttributes(), getGEOAttributes(), onCmdUseGEOParameters(), and refreshGEOAttributes().

◆ myUseGEOFrame

FXHorizontalFrame* GNEFrame::GEOAttributes::myUseGEOFrame
private

horizontal frame for use GEO

Definition at line 197 of file GNEFrame.h.

Referenced by GEOAttributes().

◆ myUseGEOLabel

FXLabel* GNEFrame::GEOAttributes::myUseGEOLabel
private

Label for use GEO.

Definition at line 200 of file GNEFrame.h.

Referenced by GEOAttributes().


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