![]() |
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... | |
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... | |
GNEFrame * | myFrameParent |
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... | |
Definition at line 548 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 583 of file GNEFrameAttributesModuls.h.
GNEFrameAttributesModuls::NeteditAttributes::NeteditAttributes | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 1996 of file GNEFrameAttributesModuls.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButton, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, helpReferencePoint, MID_GNE_SET_ATTRIBUTE, MID_HELP, myBlockMovementCheckButton, myBlockMovementLabel, myBlockShapeCheckButton, myBlockShapeLabel, myClosePolygonLabel, myCloseShapeCheckButton, myLengthLabel, myLengthTextField, myReferencePointMatchBox, SUMO_ATTR_LENGTH, and toString().
GNEFrameAttributesModuls::NeteditAttributes::~NeteditAttributes | ( | ) |
destructor
Definition at line 2032 of file GNEFrameAttributesModuls.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 579 of file GNEFrameAttributesModuls.h.
bool GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues | ( | std::map< SumoXMLAttr, std::string > & | valuesMap, |
const GNELane * | lane | ||
) | const |
fill valuesMap with netedit attributes
Definition at line 2093 of file GNEFrameAttributesModuls.cpp.
References GNENetElement::getGeometry(), GNELane::getLengthGeometryFactor(), GUISUMOAbstractView::getPositionInformation(), GNE_ADDITIONALREFERENCEPOINT_INVALID, GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_BLOCK_SHAPE, GNE_ATTR_CLOSE_SHAPE, myActualAdditionalReferencePoint, myBlockMovementCheckButton, myBlockShapeCheckButton, myCloseShapeCheckButton, myCurrentLengthValid, myFrameParent, myLengthTextField, myReferencePointMatchBox, GNEFrame::myViewNet, PositionVector::nearest_offset_to_point2D(), setEndPosition(), setStartPosition(), GNEViewNet::setStatusBarText(), GNENetElement::NetElementGeometry::shape, GUISUMOAbstractView::snapToActiveGrid(), SUMO_ATTR_ENDPOS, SUMO_ATTR_STARTPOS, toString(), and WRITE_DEBUG.
Referenced by GNEAdditionalFrame::addAdditional(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEPolygonFrame::processClick(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), and GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector().
void GNEFrameAttributesModuls::NeteditAttributes::hideNeteditAttributesModul | ( | ) |
hide Netedit attributes modul
Definition at line 2087 of file GNEFrameAttributesModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNETAZFrame::TAZCurrent::setTAZ(), 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 2209 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 2150 of file GNEFrameAttributesModuls.cpp.
References GNE_ADDITIONALREFERENCEPOINT_CENTER, GNE_ADDITIONALREFERENCEPOINT_INVALID, GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, myActualAdditionalReferencePoint, myBlockMovementCheckButton, myBlockShapeCheckButton, myCloseShapeCheckButton, myCurrentLengthValid, myLengthTextField, and myReferencePointMatchBox.
|
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().
|
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().
void GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul | ( | const GNEAttributeCarrier::TagProperties & | tagValue | ) |
show Netedit attributes modul
Definition at line 2036 of file GNEFrameAttributesModuls.cpp.
References GNEAttributeCarrier::TagProperties::canBlockMovement(), GNEAttributeCarrier::TagProperties::canBlockShape(), GNEAttributeCarrier::TagProperties::canCloseShape(), GNEAttributeCarrier::TagProperties::canMaskStartEndPos(), myBlockMovementCheckButton, myBlockMovementLabel, myBlockShapeCheckButton, myBlockShapeLabel, myClosePolygonLabel, myCloseShapeCheckButton, myLengthLabel, myLengthTextField, and myReferencePointMatchBox.
Referenced by GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNETAZFrame::TAZCurrent::setTAZ(), GNEPersonFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEPolygonFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().
|
private |
Button for help about the reference point.
Definition at line 627 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes().
|
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().
|
private |
checkBox for block movement
Definition at line 612 of file GNEFrameAttributesModuls.h.
Referenced by getNeteditAttributesAndValues(), NeteditAttributes(), onCmdSetNeteditAttribute(), and showNeteditAttributesModul().
|
private |
Label for block movement.
Definition at line 609 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes(), and showNeteditAttributesModul().
|
private |
checkBox for block shape
Definition at line 618 of file GNEFrameAttributesModuls.h.
Referenced by getNeteditAttributesAndValues(), NeteditAttributes(), onCmdSetNeteditAttribute(), and showNeteditAttributesModul().
|
private |
Label for block shape.
Definition at line 615 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes(), and showNeteditAttributesModul().
|
private |
Label for open/close polygon.
Definition at line 621 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes(), and showNeteditAttributesModul().
|
private |
checkbox to enable/disable closing polygon
Definition at line 624 of file GNEFrameAttributesModuls.h.
Referenced by getNeteditAttributesAndValues(), NeteditAttributes(), onCmdSetNeteditAttribute(), and showNeteditAttributesModul().
|
private |
Flag to check if current length is valid.
Definition at line 630 of file GNEFrameAttributesModuls.h.
Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().
|
private |
pointer to frame parent
Definition at line 597 of file GNEFrameAttributesModuls.h.
Referenced by getNeteditAttributesAndValues().
|
private |
Label for length.
Definition at line 603 of file GNEFrameAttributesModuls.h.
Referenced by NeteditAttributes(), and showNeteditAttributesModul().
|
private |
textField for length
Definition at line 606 of file GNEFrameAttributesModuls.h.
Referenced by getNeteditAttributesAndValues(), NeteditAttributes(), onCmdSetNeteditAttribute(), and showNeteditAttributesModul().
|
private |
match box with the list of reference points
Definition at line 600 of file GNEFrameAttributesModuls.h.
Referenced by getNeteditAttributesAndValues(), NeteditAttributes(), onCmdSetNeteditAttribute(), and showNeteditAttributesModul().