![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEProhibitionFrame.h>
Data Structures | |
class | Modifications |
class | ProhibitionLegend |
class | RelativeToConnection |
Public Types | |
enum | ConnStatus { UNDEFINED, PROHIBITED, PROHIBITING } |
FOX-declaration. More... | |
Public Member Functions | |
void | focusUpperElement () |
focus upper element of frame More... | |
FXFont * | getFrameHeaderFont () const |
get font of the header's frame More... | |
FXLabel * | getFrameHeaderLabel () const |
get the label for the frame's header More... | |
GNEViewNet * | getViewNet () const |
get view net More... | |
GNEProhibitionFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
Constructor. More... | |
void | handleProhibitionClick (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor) |
handle prohibitions and set the relative colouring More... | |
void | hide () |
hide prohibition frame More... | |
void | setFrameWidth (int newWidth) |
set width of GNEFrame More... | |
void | show () |
show prohibition frame More... | |
virtual void | updateFrameAfterUndoRedo () |
function called after undo/redo in the current frame (can be reimplemented in frame children) More... | |
~GNEProhibitionFrame () | |
Destructor. More... | |
FOX-callbacks | |
Called when the user presses the OK-Button saves any prohibition modifications | |
long | onCmdOK (FXObject *, FXSelector, void *) |
long | onCmdCancel (FXObject *, FXSelector, void *) |
Called when the user presses the Cancel-button discards any prohibition modifications. More... | |
Protected Member Functions | |
void | buildProhibition (GNEConnection *conn, bool mayDefinitelyPass, bool allowConflict, bool toggle) |
build prohibition More... | |
const RGBColor & | getEdgeCandidateColor () const |
get edge candidate color More... | |
const RGBColor & | getEdgeCandidateSelectedColor () const |
get selected color More... | |
const std::map< int, std::string > & | getPredefinedTagsMML () const |
get predefinedTagsMML More... | |
GNEProhibitionFrame () | |
FOX needs this. More... | |
void | openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) const |
Open help attributes dialog. More... | |
functions called by moduls that can be reimplemented in frame children | |
virtual void | tagSelected () |
Tag selected in TagSelector. More... | |
virtual void | demandElementSelected () |
selected demand element in DemandElementSelector More... | |
virtual void | edgePathCreated () |
finish edge path creation More... | |
virtual bool | shapeDrawed () |
build a shaped element using the drawed shape (can be reimplemented in frame children) More... | |
virtual void | attributeUpdated () |
function called after set a valid attribute in AttributeCreator/AttributeEditor/GenericParametersEditor/... More... | |
virtual void | attributesEditorExtendedDialogOpened () |
open AttributesCreator extended dialog (can be reimplemented in frame children) More... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame |
Vertical frame that holds all widgets of frame. More... | |
FXHorizontalFrame * | myHeaderFrame |
fame for header elements More... | |
FXHorizontalFrame * | myHeaderLeftFrame |
fame for left header elements More... | |
FXHorizontalFrame * | myHeaderRightFrame |
fame for right header elements More... | |
GNEViewNet * | myViewNet |
View Net. More... | |
Private Attributes | |
std::set< GNEConnection * > | myConcernedConns |
the set of connections which More... | |
GNEConnection * | myCurrentConn |
the connection which prohibits More... | |
RGBColor | myEdgeCandidateColor |
edge candidate color (used by some modulds to mark edges) More... | |
RGBColor | myEdgeCandidateSelectedColor |
selected edge candidate color (used by some modulds to selected mark edges) More... | |
FXLabel * | myFrameHeaderLabel |
the label for the frame's header More... | |
Modifications * | myModifications |
Modifications. More... | |
std::map< int, std::string > | myPredefinedTagsMML |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More... | |
ProhibitionLegend * | myProhibitionLegend |
prohibition legend More... | |
RelativeToConnection * | myRelativeToConnection |
Relative To Connection. More... | |
FXScrollWindow * | myScrollWindowsContents |
scroll windows that holds the content frame More... | |
Static Private Attributes | |
static FXFont * | myFrameHeaderFont = nullptr |
static Font for the Header (it's common for all headers, then create only one time) More... | |
The Widget for editing connection foes
Definition at line 39 of file GNEProhibitionFrame.h.
FOX-declaration.
the prohibition status of a connection
Enumerator | |
---|---|
UNDEFINED | |
PROHIBITED | |
PROHIBITING |
Definition at line 46 of file GNEProhibitionFrame.h.
GNEProhibitionFrame::GNEProhibitionFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
GNEViewNet * | viewNet | ||
) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 170 of file GNEProhibitionFrame.cpp.
References GNEFrame::getFrameHeaderLabel(), myModifications, myProhibitionLegend, and myRelativeToConnection.
GNEProhibitionFrame::~GNEProhibitionFrame | ( | ) |
Destructor.
Definition at line 187 of file GNEProhibitionFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 174 of file GNEProhibitionFrame.h.
|
protectedvirtualinherited |
open AttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented in GNEVehicleTypeFrame.
Definition at line 191 of file GNEFrame.cpp.
|
protectedvirtualinherited |
function called after set a valid attribute in AttributeCreator/AttributeEditor/GenericParametersEditor/...
Reimplemented in GNEInspectorFrame, GNEVehicleTypeFrame, and GNEPersonTypeFrame.
Definition at line 185 of file GNEFrame.cpp.
|
protected |
build prohibition
Definition at line 235 of file GNEProhibitionFrame.cpp.
References GUIVisualizationSettings::colorSettings, NBNode::getConnectionIndex(), GNEConnection::getEdgeFrom(), NBNode::getFoes(), GNEJunction::getGNEConnections(), GNEEdge::getGNEJunctionDestiny(), GNEProhibitionFrame::ProhibitionLegend::getMutualConflictColor(), GNEEdge::getNBEdge(), GNEConnection::getNBEdgeConnection(), GNEJunction::getNBNode(), GNEProhibitionFrame::ProhibitionLegend::getProhibitedColor(), GNEProhibitionFrame::ProhibitionLegend::getProhibitingColor(), NBNode::getResponse(), GNEProhibitionFrame::ProhibitionLegend::getUndefinedColor(), GNEProhibitionFrame::ProhibitionLegend::getUnregulatedConflictColor(), GUISUMOAbstractView::getVisualisationSettings(), myConcernedConns, myCurrentConn, myProhibitionLegend, myRelativeToConnection, GNEFrame::myViewNet, GUIVisualizationColorSettings::selectedProhibitionColor, GNEConnection::setSpecialColor(), and GNEProhibitionFrame::RelativeToConnection::updateDescription().
Referenced by handleProhibitionClick().
|
protectedvirtualinherited |
selected demand element in DemandElementSelector
Reimplemented in GNEPersonPlanFrame, GNEStopFrame, GNEVehicleFrame, and GNEPersonFrame.
Definition at line 166 of file GNEFrame.cpp.
|
protectedvirtualinherited |
finish edge path creation
Reimplemented in GNEVehicleFrame, and GNEPersonFrame.
Definition at line 172 of file GNEFrame.cpp.
|
inherited |
focus upper element of frame
Definition at line 102 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
protectedinherited |
get edge candidate color
Definition at line 264 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
|
protectedinherited |
get selected color
Definition at line 270 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateSelectedColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
|
inherited |
get font of the header's frame
Definition at line 145 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 139 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
get predefinedTagsMML
Definition at line 276 of file GNEFrame.cpp.
References GNEFrame::myPredefinedTagsMML.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::edgePathCreated(), and GNETAZFrame::shapeDrawed().
|
inherited |
get view net
Definition at line 133 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEDeleteFrame::removeAttributeCarrier().
void GNEProhibitionFrame::handleProhibitionClick | ( | const GNEViewNetHelper::ObjectsUnderCursor & | objectsUnderCursor | ) |
handle prohibitions and set the relative colouring
objectsUnderCursor | collection of objects under cursor after click over view |
Definition at line 191 of file GNEProhibitionFrame.cpp.
References buildProhibition(), GNEViewNetHelper::KeyPressed::controlKeyPressed(), GNEViewNetHelper::ObjectsUnderCursor::getConnectionFront(), GNEViewNet::getKeyPressed(), GNEFrame::myViewNet, and GNEViewNetHelper::KeyPressed::shiftKeyPressed().
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
virtual |
hide prohibition frame
Reimplemented from GNEFrame.
Definition at line 204 of file GNEProhibitionFrame.cpp.
References GNEFrame::hide().
long GNEProhibitionFrame::onCmdCancel | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Cancel-button discards any prohibition modifications.
Definition at line 210 of file GNEProhibitionFrame.cpp.
References myConcernedConns, myCurrentConn, myRelativeToConnection, GNEFrame::myViewNet, GNEConnection::setSpecialColor(), GNEViewNet::update(), and GNEProhibitionFrame::RelativeToConnection::updateDescription().
Referenced by GNEViewNet::abortOperation().
long GNEProhibitionFrame::onCmdOK | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 226 of file GNEProhibitionFrame.cpp.
|
protectedinherited |
Open help attributes dialog.
Definition at line 197 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::TagProperties::getNumberOfAttributes(), GNEAttributeCarrier::TagProperties::getTagStr(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, ICON_ACCEPT, ICON_MODEINSPECT, MAX2(), MID_TABLE, GNEFrame::myScrollWindowsContents, toString(), and WRITE_DEBUG.
|
inherited |
set width of GNEFrame
Definition at line 126 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
protectedvirtualinherited |
build a shaped element using the drawed shape (can be reimplemented in frame children)
Reimplemented in GNETAZFrame, and GNEPolygonFrame.
Definition at line 178 of file GNEFrame.cpp.
|
virtual |
show prohibition frame
Reimplemented from GNEFrame.
Definition at line 198 of file GNEProhibitionFrame.cpp.
References GNEFrame::show().
Referenced by GNEViewNet::updateNetworkModeSpecificControls().
|
protectedvirtualinherited |
Tag selected in TagSelector.
Reimplemented in GNEAdditionalFrame, GNEPersonPlanFrame, GNEPolygonFrame, GNEStopFrame, GNEVehicleFrame, and GNEPersonFrame.
Definition at line 160 of file GNEFrame.cpp.
|
virtualinherited |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented in GNEInspectorFrame.
Definition at line 151 of file GNEFrame.cpp.
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
|
private |
the set of connections which
Definition at line 193 of file GNEProhibitionFrame.h.
Referenced by buildProhibition(), and onCmdCancel().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 123 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
the connection which prohibits
Definition at line 190 of file GNEProhibitionFrame.h.
Referenced by buildProhibition(), and onCmdCancel().
|
privateinherited |
edge candidate color (used by some modulds to mark edges)
Definition at line 145 of file GNEFrame.h.
Referenced by GNEFrame::getEdgeCandidateColor().
|
privateinherited |
selected edge candidate color (used by some modulds to selected mark edges)
Definition at line 148 of file GNEFrame.h.
Referenced by GNEFrame::getEdgeCandidateSelectedColor().
|
staticprivateinherited |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 139 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 142 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().
|
protectedinherited |
fame for header elements
Definition at line 126 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 129 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 132 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
Definition at line 187 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame().
|
privateinherited |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)
Definition at line 151 of file GNEFrame.h.
Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().
|
private |
prohibition legend
Definition at line 184 of file GNEProhibitionFrame.h.
Referenced by buildProhibition(), and GNEProhibitionFrame().
|
private |
Relative To Connection.
Definition at line 181 of file GNEProhibitionFrame.h.
Referenced by buildProhibition(), GNEProhibitionFrame(), and onCmdCancel().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 136 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().
|
protectedinherited |
View Net.
Definition at line 120 of file GNEFrame.h.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), handleProhibitionClick(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), and GNEPersonPlanFrame::show().