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

#include <GNEFrameAttributesModuls.h>

Inheritance diagram for GNEFrameAttributesModuls::NeteditAttributes:
Collaboration diagram for GNEFrameAttributesModuls::NeteditAttributes:

Public Member Functions

bool getNeteditAttributesAndValues (std::map< SumoXMLAttr, std::string > &valuesMap, const GNELane *lane) const
 fill valuesMap with netedit attributes More...
 
void hideNeteditAttributesModul ()
 hide Netedit attributes modul More...
 
 NeteditAttributes (GNEFrame *frameParent)
 FOX-declaration. More...
 
void showNeteditAttributesModul (const GNEAttributeCarrier::TagProperties &tagValue)
 show Netedit attributes modul More...
 
 ~NeteditAttributes ()
 destructor More...
 
FOX-callbacks

Called when user changes some element of NeteditAttributes

long onCmdSetNeteditAttribute (FXObject *, FXSelector, void *)
 
long onCmdHelp (FXObject *, FXSelector, void *)
 Called when user press the help button. More...
 

Protected Member Functions

 NeteditAttributes ()
 FOX needs this. More...
 

Private Types

enum  AdditionalReferencePoint { GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, GNE_ADDITIONALREFERENCEPOINT_CENTER, GNE_ADDITIONALREFERENCEPOINT_INVALID }
 list of the reference points More...
 

Private Member Functions

double setEndPosition (double positionOfTheMouseOverLane, double lengthOfAdditional) const
 obtain the End position values of StoppingPlaces and E2 detector over the lane More...
 
double setStartPosition (double positionOfTheMouseOverLane, double lengthOfAdditional) const
 obtain the Start position values of StoppingPlaces and E2 detector over the lane 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...
 
FXCheckButton * myBlockMovementCheckButton
 checkBox for block movement More...
 
FXLabel * myBlockMovementLabel
 Label for block movement. More...
 
FXCheckButton * myBlockShapeCheckButton
 checkBox for block shape More...
 
FXLabel * myBlockShapeLabel
 Label for block shape. More...
 
FXLabel * myClosePolygonLabel
 Label for open/close polygon. More...
 
FXCheckButton * myCloseShapeCheckButton
 checkbox to enable/disable closing polygon More...
 
bool myCurrentLengthValid
 Flag to check if current length is valid. More...
 
GNEFramemyFrameParent
 pointer to frame parent More...
 
FXLabel * myLengthLabel
 Label for length. More...
 
FXTextField * myLengthTextField
 textField for length More...
 
FXComboBox * myReferencePointMatchBox
 match box with the list of reference points More...
 

Detailed Description

Definition at line 548 of file GNEFrameAttributesModuls.h.

Member Enumeration Documentation

◆ AdditionalReferencePoint

list of the reference points

Enumerator
GNE_ADDITIONALREFERENCEPOINT_LEFT 
GNE_ADDITIONALREFERENCEPOINT_RIGHT 
GNE_ADDITIONALREFERENCEPOINT_CENTER 
GNE_ADDITIONALREFERENCEPOINT_INVALID 

Definition at line 583 of file GNEFrameAttributesModuls.h.

Constructor & Destructor Documentation

◆ NeteditAttributes() [1/2]

◆ ~NeteditAttributes()

GNEFrameAttributesModuls::NeteditAttributes::~NeteditAttributes ( )

destructor

Definition at line 2032 of file GNEFrameAttributesModuls.cpp.

◆ NeteditAttributes() [2/2]

GNEFrameAttributesModuls::NeteditAttributes::NeteditAttributes ( )
inlineprotected

FOX needs this.

Definition at line 579 of file GNEFrameAttributesModuls.h.

Member Function Documentation

◆ getNeteditAttributesAndValues()

◆ hideNeteditAttributesModul()

◆ onCmdHelp()

long GNEFrameAttributesModuls::NeteditAttributes::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdSetNeteditAttribute()

◆ setEndPosition()

double GNEFrameAttributesModuls::NeteditAttributes::setEndPosition ( double  positionOfTheMouseOverLane,
double  lengthOfAdditional 
) const
private

obtain the End position values of StoppingPlaces and E2 detector over the lane

Definition at line 2278 of file GNEFrameAttributesModuls.cpp.

References GNE_ADDITIONALREFERENCEPOINT_CENTER, GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, and myActualAdditionalReferencePoint.

Referenced by getNeteditAttributesAndValues().

◆ setStartPosition()

double GNEFrameAttributesModuls::NeteditAttributes::setStartPosition ( double  positionOfTheMouseOverLane,
double  lengthOfAdditional 
) const
private

obtain the Start position values of StoppingPlaces and E2 detector over the lane

Definition at line 2263 of file GNEFrameAttributesModuls.cpp.

References GNE_ADDITIONALREFERENCEPOINT_CENTER, GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, and myActualAdditionalReferencePoint.

Referenced by getNeteditAttributesAndValues().

◆ showNeteditAttributesModul()

Field Documentation

◆ helpReferencePoint

FXButton* GNEFrameAttributesModuls::NeteditAttributes::helpReferencePoint
private

Button for help about the reference point.

Definition at line 627 of file GNEFrameAttributesModuls.h.

Referenced by NeteditAttributes().

◆ myActualAdditionalReferencePoint

AdditionalReferencePoint GNEFrameAttributesModuls::NeteditAttributes::myActualAdditionalReferencePoint
private

actual additional reference point selected in the match Box

Definition at line 633 of file GNEFrameAttributesModuls.h.

Referenced by getNeteditAttributesAndValues(), onCmdSetNeteditAttribute(), setEndPosition(), and setStartPosition().

◆ myBlockMovementCheckButton

FXCheckButton* GNEFrameAttributesModuls::NeteditAttributes::myBlockMovementCheckButton
private

◆ myBlockMovementLabel

FXLabel* GNEFrameAttributesModuls::NeteditAttributes::myBlockMovementLabel
private

Label for block movement.

Definition at line 609 of file GNEFrameAttributesModuls.h.

Referenced by NeteditAttributes(), and showNeteditAttributesModul().

◆ myBlockShapeCheckButton

FXCheckButton* GNEFrameAttributesModuls::NeteditAttributes::myBlockShapeCheckButton
private

◆ myBlockShapeLabel

FXLabel* GNEFrameAttributesModuls::NeteditAttributes::myBlockShapeLabel
private

Label for block shape.

Definition at line 615 of file GNEFrameAttributesModuls.h.

Referenced by NeteditAttributes(), and showNeteditAttributesModul().

◆ myClosePolygonLabel

FXLabel* GNEFrameAttributesModuls::NeteditAttributes::myClosePolygonLabel
private

Label for open/close polygon.

Definition at line 621 of file GNEFrameAttributesModuls.h.

Referenced by NeteditAttributes(), and showNeteditAttributesModul().

◆ myCloseShapeCheckButton

FXCheckButton* GNEFrameAttributesModuls::NeteditAttributes::myCloseShapeCheckButton
private

checkbox to enable/disable closing polygon

Definition at line 624 of file GNEFrameAttributesModuls.h.

Referenced by getNeteditAttributesAndValues(), NeteditAttributes(), onCmdSetNeteditAttribute(), and showNeteditAttributesModul().

◆ myCurrentLengthValid

bool GNEFrameAttributesModuls::NeteditAttributes::myCurrentLengthValid
private

Flag to check if current length is valid.

Definition at line 630 of file GNEFrameAttributesModuls.h.

Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().

◆ myFrameParent

GNEFrame* GNEFrameAttributesModuls::NeteditAttributes::myFrameParent
private

pointer to frame parent

Definition at line 597 of file GNEFrameAttributesModuls.h.

Referenced by getNeteditAttributesAndValues().

◆ myLengthLabel

FXLabel* GNEFrameAttributesModuls::NeteditAttributes::myLengthLabel
private

Label for length.

Definition at line 603 of file GNEFrameAttributesModuls.h.

Referenced by NeteditAttributes(), and showNeteditAttributesModul().

◆ myLengthTextField

FXTextField* GNEFrameAttributesModuls::NeteditAttributes::myLengthTextField
private

◆ myReferencePointMatchBox

FXComboBox* GNEFrameAttributesModuls::NeteditAttributes::myReferencePointMatchBox
private

match box with the list of reference points

Definition at line 600 of file GNEFrameAttributesModuls.h.

Referenced by getNeteditAttributesAndValues(), NeteditAttributes(), onCmdSetNeteditAttribute(), and showNeteditAttributesModul().


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