SUMO - Simulation of Urban MObility
GNEAdditionalFrame::editorParameters Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::editorParameters:
Inheritance graph
Collaboration diagram for GNEAdditionalFrame::editorParameters:
Collaboration graph

Public Types

enum  additionalReferencePoint { GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, GNE_ADDITIONALREFERENCEPOINT_CENTER }
 FOX-declaration. More...
 

Public Member Functions

 editorParameters (FXComposite *parent)
 constructor More...
 
additionalReferencePoint getActualReferencePoint ()
 get actual reference point More...
 
SUMOReal getLenght ()
 get value of lenght More...
 
void hideLengthField ()
 hide length field More...
 
void hideReferencePoint ()
 hide refence point comboBox More...
 
bool isBlockEnabled ()
 check if block is enabled More...
 
bool isCurrentLenghtValid () const
 check if current lenght is valid More...
 
bool isForcePositionEnabled ()
 check if force position is enabled More...
 
void showLengthField ()
 show length field More...
 
void showReferencePoint ()
 show refence point comboBox More...
 
 ~editorParameters ()
 destructor More...
 
FOX-callbacks

Called when the user enters a new lenght

long onCmdSetLength (FXObject *, FXSelector, void *)
 
long onCmdSelectReferencePoint (FXObject *, FXSelector, void *)
 Called when the user enters another reference point. More...
 
long onCmdHelp (FXObject *, FXSelector, void *)
 Called when help button is pressed. More...
 

Protected Member Functions

 editorParameters ()
 FOX needs this. More...
 

Private Attributes

FXButton * helpReferencePoint
 Button for help about the reference point. More...
 
additionalReferencePoint myActualAdditionalReferencePoint
 actual additional reference point selected in the match Box More...
 
FXMenuCheck * myCheckBlock
 checkBox for blocking movement More...
 
FXMenuCheck * myCheckForcePosition
 checkBox for the option "force position" More...
 
bool myCurrentLengthValid
 Flag to check if current lenght is valid. More...
 
FXLabel * myLengthLabel
 Label for lenght. More...
 
FXTextField * myLengthTextField
 textField for lenght More...
 
FXComboBox * myReferencePointMatchBox
 match box with the list of reference points More...
 

Detailed Description

Definition at line 290 of file GNEAdditionalFrame.h.

Member Enumeration Documentation

FOX-declaration.

list of the reference points

Enumerator
GNE_ADDITIONALREFERENCEPOINT_LEFT 
GNE_ADDITIONALREFERENCEPOINT_RIGHT 
GNE_ADDITIONALREFERENCEPOINT_CENTER 

Definition at line 296 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

GNEAdditionalFrame::editorParameters::~editorParameters ( )

destructor

Definition at line 1155 of file GNEAdditionalFrame.cpp.

GNEAdditionalFrame::editorParameters::editorParameters ( )
inlineprotected

FOX needs this.

Definition at line 349 of file GNEAdditionalFrame.h.

Member Function Documentation

GNEAdditionalFrame::editorParameters::additionalReferencePoint GNEAdditionalFrame::editorParameters::getActualReferencePoint ( )

get actual reference point

Definition at line 1187 of file GNEAdditionalFrame.cpp.

References myActualAdditionalReferencePoint, and SUMOReal.

Referenced by GNEAdditionalFrame::setEndPosition(), and GNEAdditionalFrame::setStartPosition().

SUMOReal GNEAdditionalFrame::editorParameters::getLenght ( )

get value of lenght

Definition at line 1193 of file GNEAdditionalFrame.cpp.

References myLengthTextField.

Referenced by GNEAdditionalFrame::addAdditional().

void GNEAdditionalFrame::editorParameters::hideLengthField ( )

hide length field

Definition at line 1166 of file GNEAdditionalFrame.cpp.

References myLengthLabel, and myLengthTextField.

Referenced by GNEAdditionalFrame::setParametersOfAdditional().

void GNEAdditionalFrame::editorParameters::hideReferencePoint ( )

hide refence point comboBox

Definition at line 1180 of file GNEAdditionalFrame.cpp.

References myCheckForcePosition, and myReferencePointMatchBox.

Referenced by GNEAdditionalFrame::setParametersOfAdditional().

bool GNEAdditionalFrame::editorParameters::isBlockEnabled ( )

check if block is enabled

Definition at line 1199 of file GNEAdditionalFrame.cpp.

References myCheckBlock.

Referenced by GNEAdditionalFrame::addAdditional().

bool GNEAdditionalFrame::editorParameters::isCurrentLenghtValid ( ) const

check if current lenght is valid

Definition at line 1210 of file GNEAdditionalFrame.cpp.

References myCurrentLengthValid.

Referenced by GNEAdditionalFrame::addAdditional().

bool GNEAdditionalFrame::editorParameters::isForcePositionEnabled ( )

check if force position is enabled

Definition at line 1205 of file GNEAdditionalFrame.cpp.

References myCheckForcePosition.

Referenced by GNEAdditionalFrame::setEndPosition(), and GNEAdditionalFrame::setStartPosition().

long GNEAdditionalFrame::editorParameters::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

Called when help button is pressed.

Definition at line 1242 of file GNEAdditionalFrame.cpp.

References GUIIconSubSys::getIcon(), GUIDesignButtonDialog, GUIDesignDialogBox, GUIDesignLabelLeft, and ICON_ACCEPT.

long GNEAdditionalFrame::editorParameters::onCmdSelectReferencePoint ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user enters another reference point.

Definition at line 1234 of file GNEAdditionalFrame.cpp.

References myActualAdditionalReferencePoint, and myReferencePointMatchBox.

long GNEAdditionalFrame::editorParameters::onCmdSetLength ( FXObject *  ,
FXSelector  ,
void *   
)
void GNEAdditionalFrame::editorParameters::showLengthField ( )

show length field

Definition at line 1159 of file GNEAdditionalFrame.cpp.

References myLengthLabel, and myLengthTextField.

Referenced by GNEAdditionalFrame::setParametersOfAdditional().

void GNEAdditionalFrame::editorParameters::showReferencePoint ( )

show refence point comboBox

Definition at line 1173 of file GNEAdditionalFrame.cpp.

References myCheckForcePosition, and myReferencePointMatchBox.

Referenced by GNEAdditionalFrame::setParametersOfAdditional().

Field Documentation

FXButton* GNEAdditionalFrame::editorParameters::helpReferencePoint
private

Button for help about the reference point.

Definition at line 356 of file GNEAdditionalFrame.h.

Referenced by editorParameters().

additionalReferencePoint GNEAdditionalFrame::editorParameters::myActualAdditionalReferencePoint
private

actual additional reference point selected in the match Box

Definition at line 359 of file GNEAdditionalFrame.h.

Referenced by getActualReferencePoint(), and onCmdSelectReferencePoint().

FXMenuCheck* GNEAdditionalFrame::editorParameters::myCheckBlock
private

checkBox for blocking movement

Definition at line 371 of file GNEAdditionalFrame.h.

Referenced by editorParameters(), and isBlockEnabled().

FXMenuCheck* GNEAdditionalFrame::editorParameters::myCheckForcePosition
private

checkBox for the option "force position"

Definition at line 368 of file GNEAdditionalFrame.h.

Referenced by editorParameters(), hideReferencePoint(), isForcePositionEnabled(), and showReferencePoint().

bool GNEAdditionalFrame::editorParameters::myCurrentLengthValid
private

Flag to check if current lenght is valid.

Definition at line 374 of file GNEAdditionalFrame.h.

Referenced by isCurrentLenghtValid(), and onCmdSetLength().

FXLabel* GNEAdditionalFrame::editorParameters::myLengthLabel
private

Label for lenght.

Definition at line 362 of file GNEAdditionalFrame.h.

Referenced by editorParameters(), hideLengthField(), and showLengthField().

FXTextField* GNEAdditionalFrame::editorParameters::myLengthTextField
private

textField for lenght

Definition at line 365 of file GNEAdditionalFrame.h.

Referenced by editorParameters(), getLenght(), hideLengthField(), onCmdSetLength(), and showLengthField().

FXComboBox* GNEAdditionalFrame::editorParameters::myReferencePointMatchBox
private

match box with the list of reference points

Definition at line 353 of file GNEAdditionalFrame.h.

Referenced by editorParameters(), hideReferencePoint(), onCmdSelectReferencePoint(), and showReferencePoint().


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