![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributesModuls.h>
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... | |
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... | |
| FXHorizontalFrame * | myBlockMovementFrame |
| horizontal frame for block movement More... | |
| FXCheckButton * | myBlockShapeCheckButton |
| checkBox for block shape More... | |
| FXHorizontalFrame * | myBlockShapeFrame |
| horizontal frame for block shape More... | |
| FXCheckButton * | myCenterViewAfterCreationButton |
| checkbox to enable/disable center element after creation More... | |
| FXHorizontalFrame * | myCenterViewAfterCreationFrame |
| horizontal frame for center view after creation frame More... | |
| FXCheckButton * | myCloseShapeCheckButton |
| checkbox to enable/disable close polygon More... | |
| FXHorizontalFrame * | myCloseShapeFrame |
| horizontal frame for close polygon More... | |
| bool | myCurrentLengthValid |
| Flag to check if current length is valid. More... | |
| GNEFrame * | myFrameParent |
| pointer to frame parent More... | |
| FXHorizontalFrame * | myLengthFrame |
| horizontal frame for length More... | |
| FXTextField * | myLengthTextField |
| textField for length More... | |
| FXComboBox * | myReferencePointMatchBox |
| match box with the list of reference points More... | |
Definition at line 714 of file GNEFrameAttributesModuls.h.
list of the reference points
| Enumerator | |
|---|---|
| GNE_ADDITIONALREFERENCEPOINT_LEFT | |
| GNE_ADDITIONALREFERENCEPOINT_RIGHT | |
| GNE_ADDITIONALREFERENCEPOINT_CENTER | |
| GNE_ADDITIONALREFERENCEPOINT_INVALID | |
Definition at line 748 of file GNEFrameAttributesModuls.h.
| GNEFrameAttributesModuls::NeteditAttributes::NeteditAttributes | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 2492 of file GNEFrameAttributesModuls.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButton, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, helpReferencePoint, MID_GNE_SET_ATTRIBUTE, MID_HELP, myBlockMovementCheckButton, myBlockMovementFrame, myBlockShapeCheckButton, myBlockShapeFrame, myCenterViewAfterCreationButton, myCenterViewAfterCreationFrame, myCloseShapeCheckButton, myCloseShapeFrame, myLengthFrame, myLengthTextField, myReferencePointMatchBox, SUMO_ATTR_LENGTH, and toString().
| GNEFrameAttributesModuls::NeteditAttributes::~NeteditAttributes | ( | ) |
destructor
Definition at line 2533 of file GNEFrameAttributesModuls.cpp.
| bool GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues | ( | std::map< SumoXMLAttr, std::string > & | valuesMap, |
| const GNELane * | lane | ||
| ) | const |
fill valuesMap with netedit attributes
Definition at line 2594 of file GNEFrameAttributesModuls.cpp.
References GNELane::getLaneShape(), GNELane::getLengthGeometryFactor(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_BLOCK_SHAPE, GNE_ATTR_CENTER_AFTER_CREATION, GNE_ATTR_CLOSE_SHAPE, PositionVector::nearest_offset_to_point2D(), SUMO_ATTR_ENDPOS, SUMO_ATTR_STARTPOS, toString(), and WRITE_DEBUG.
Referenced by GNEAdditionalFrame::addAdditional(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::processClick(), GNEPolygonFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().
| void GNEFrameAttributesModuls::NeteditAttributes::hideNeteditAttributesModul | ( | ) |
hide Netedit attributes modul
Definition at line 2588 of file GNEFrameAttributesModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEStopFrame::show(), GNEPersonFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEPolygonFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().
| long GNEFrameAttributesModuls::NeteditAttributes::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user press the help button.
Definition at line 2720 of file GNEFrameAttributesModuls.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignHorizontalSeparator, GUIDesignLabelFrameInformation, ICON_ACCEPT, ICON_MODEADDITIONAL, and WRITE_DEBUG.
| long GNEFrameAttributesModuls::NeteditAttributes::onCmdSetNeteditAttribute | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 2655 of file GNEFrameAttributesModuls.cpp.
|
private |
obtain the End position values of StoppingPlaces and E2 detector over the lane
Definition at line 2789 of file GNEFrameAttributesModuls.cpp.
|
private |
obtain the Start position values of StoppingPlaces and E2 detector over the lane
Definition at line 2774 of file GNEFrameAttributesModuls.cpp.
| void GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul | ( | const GNEAttributeCarrier::TagProperties & | tagValue | ) |
show Netedit attributes modul
Definition at line 2537 of file GNEFrameAttributesModuls.cpp.
References GNEAttributeCarrier::TagProperties::canBlockMovement(), GNEAttributeCarrier::TagProperties::canBlockShape(), GNEAttributeCarrier::TagProperties::canCenterCameraAfterCreation(), GNEAttributeCarrier::TagProperties::canCloseShape(), and GNEAttributeCarrier::TagProperties::canMaskStartEndPos().
Referenced by GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEPolygonFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().
|
private |
Button for help about the reference point.
Definition at line 798 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
actual additional reference point selected in the match Box
Definition at line 804 of file GNEFrameAttributesModuls.h.
|
private |
checkBox for block movement
Definition at line 777 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
horizontal frame for block movement
Definition at line 774 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
checkBox for block shape
Definition at line 783 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
horizontal frame for block shape
Definition at line 780 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
checkbox to enable/disable center element after creation
Definition at line 795 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
horizontal frame for center view after creation frame
Definition at line 792 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
checkbox to enable/disable close polygon
Definition at line 789 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
horizontal frame for close polygon
Definition at line 786 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
Flag to check if current length is valid.
Definition at line 801 of file GNEFrameAttributesModuls.h.
|
private |
pointer to frame parent
Definition at line 762 of file GNEFrameAttributesModuls.h.
|
private |
horizontal frame for length
Definition at line 768 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
textField for length
Definition at line 771 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
private |
match box with the list of reference points
Definition at line 765 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().