Eclipse SUMO - Simulation of Urban MObility
GNEProhibitionFrame Class Reference

#include <GNEProhibitionFrame.h>

Inheritance diagram for GNEProhibitionFrame:
Collaboration diagram for GNEProhibitionFrame:

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...
 
GNEViewNetgetViewNet () 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 std::vector< std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
void openHelpAttributesDialog (const GNETagProperties &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 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/ParametersEditor/... More...
 
virtual void attributesEditorExtendedDialogOpened ()
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 
virtual void selectedOverlappedElement (GNEAttributeCarrier *AC)
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 
virtual void createPath ()
 create path (can be reimplemented in frame children) More...
 

Protected Attributes

FXVerticalFrame * myContentFrame = nullptr
 Vertical frame that holds all widgets of frame. More...
 
FXHorizontalFrame * myHeaderFrame = nullptr
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame = nullptr
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame = nullptr
 fame for right header elements More...
 
GNEViewNetmyViewNet = nullptr
 View Net. More...
 

Private Attributes

std::set< GNEConnection * > myConcernedConns
 the set of connections which More...
 
GNEConnectionmyCurrentConn
 the connection which prohibits More...
 
FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header More...
 
ModificationsmyModifications
 Modifications. More...
 
std::vector< std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More...
 
ProhibitionLegendmyProhibitionLegend
 prohibition legend More...
 
RelativeToConnectionmyRelativeToConnection
 Relative To Connection. More...
 
FXScrollWindow * myScrollWindowsContents = nullptr
 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...
 

Detailed Description

The Widget for editing connection foes

Definition at line 36 of file GNEProhibitionFrame.h.

Member Enumeration Documentation

◆ ConnStatus

FOX-declaration.

the prohibition status of a connection

Enumerator
UNDEFINED 
PROHIBITED 
PROHIBITING 

Definition at line 43 of file GNEProhibitionFrame.h.

Constructor & Destructor Documentation

◆ GNEProhibitionFrame()

GNEProhibitionFrame::GNEProhibitionFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed

viewNet viewNet that uses this GNEFrame

Definition at line 168 of file GNEProhibitionFrame.cpp.

References GNEFrame::getFrameHeaderLabel(), myModifications, myProhibitionLegend, and myRelativeToConnection.

◆ ~GNEProhibitionFrame()

GNEProhibitionFrame::~GNEProhibitionFrame ( )

Destructor.

Definition at line 185 of file GNEProhibitionFrame.cpp.

Member Function Documentation

◆ attributesEditorExtendedDialogOpened()

void GNEFrame::attributesEditorExtendedDialogOpened ( )
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNEVehicleTypeFrame.

Definition at line 185 of file GNEFrame.cpp.

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( )
protectedvirtualinherited

function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...

Reimplemented in GNEVehicleTypeFrame, GNEPersonTypeFrame, and GNEInspectorFrame.

Definition at line 179 of file GNEFrame.cpp.

◆ buildProhibition()

◆ createPath()

void GNEFrame::createPath ( )
protectedvirtualinherited

create path (can be reimplemented in frame children)

Reimplemented in GNEVehicleFrame, GNERouteFrame, GNEPersonPlanFrame, GNEPersonFrame, GNEGenericDataFrame, and GNEEdgeRelDataFrame.

Definition at line 197 of file GNEFrame.cpp.

Referenced by GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdCreatePath().

Here is the caller graph for this function:

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
protectedvirtualinherited

selected demand element in DemandElementSelector

Reimplemented in GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.

Definition at line 166 of file GNEFrame.cpp.

◆ focusUpperElement()

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 145 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
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().

Here is the caller graph for this function:

◆ getPredefinedTagsMML()

const std::vector< std::string > & GNEFrame::getPredefinedTagsMML ( ) const
protectedinherited

◆ getViewNet()

◆ handleProhibitionClick()

void GNEProhibitionFrame::handleProhibitionClick ( const GNEViewNetHelper::ObjectsUnderCursor objectsUnderCursor)

handle prohibitions and set the relative colouring

Parameters
objectsUnderCursorcollection of objects under cursor after click over view

Definition at line 189 of file GNEProhibitionFrame.cpp.

References buildProhibition(), GNEViewNetHelper::MouseButtonKeyPressed::controlKeyPressed(), GNEViewNetHelper::ObjectsUnderCursor::getConnectionFront(), GNEViewNet::getMouseButtonKeyPressed(), GNEFrame::myViewNet, and GNEViewNetHelper::MouseButtonKeyPressed::shiftKeyPressed().

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ hide()

void GNEProhibitionFrame::hide ( )
virtual

hide prohibition frame

Reimplemented from GNEFrame.

Definition at line 202 of file GNEProhibitionFrame.cpp.

References GNEFrame::hide().

◆ onCmdCancel()

long GNEProhibitionFrame::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user presses the Cancel-button discards any prohibition modifications.

Definition at line 208 of file GNEProhibitionFrame.cpp.

References myConcernedConns, myCurrentConn, myRelativeToConnection, GNEFrame::myViewNet, GNEConnection::setSpecialColor(), GNEProhibitionFrame::RelativeToConnection::updateDescription(), and GNEViewNet::updateViewNet().

Referenced by GNEViewNet::abortOperation(), and FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOK()

long GNEProhibitionFrame::onCmdOK ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 224 of file GNEProhibitionFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openHelpAttributesDialog()

◆ selectedOverlappedElement()

void GNEFrame::selectedOverlappedElement ( GNEAttributeCarrier AC)
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNETLSEditorFrame, and GNEInspectorFrame.

Definition at line 191 of file GNEFrame.cpp.

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 126 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
protectedvirtualinherited

build a shaped element using the drawed shape (can be reimplemented in frame children)

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 172 of file GNEFrame.cpp.

◆ show()

void GNEProhibitionFrame::show ( )
virtual

show prohibition frame

Reimplemented from GNEFrame.

Definition at line 196 of file GNEProhibitionFrame.cpp.

References GNEFrame::show().

Referenced by GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

◆ tagSelected()

void GNEFrame::tagSelected ( )
protectedvirtualinherited

Tag selected in TagSelector.

Reimplemented in GNEPolygonFrame, GNEAdditionalFrame, GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.

Definition at line 160 of file GNEFrame.cpp.

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
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().

Here is the caller graph for this function:

Field Documentation

◆ myConcernedConns

std::set<GNEConnection*> GNEProhibitionFrame::myConcernedConns
private

the set of connections which

Definition at line 189 of file GNEProhibitionFrame.h.

Referenced by buildProhibition(), and onCmdCancel().

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame = nullptr
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 116 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNESelectorFrame::GNESelectorFrame(), and GNEInspectorFrame::inspectMultisection().

◆ myCurrentConn

GNEConnection* GNEProhibitionFrame::myCurrentConn
private

the connection which prohibits

Definition at line 186 of file GNEProhibitionFrame.h.

Referenced by buildProhibition(), and onCmdCancel().

◆ myFrameHeaderFont

FXFont * GNEFrame::myFrameHeaderFont = nullptr
staticprivateinherited

static Font for the Header (it's common for all headers, then create only one time)

Definition at line 132 of file GNEFrame.h.

Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel = nullptr
privateinherited

the label for the frame's header

Definition at line 135 of file GNEFrame.h.

Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame = nullptr
protectedinherited

fame for header elements

Definition at line 119 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame = nullptr
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame = nullptr
protectedinherited

fame for right header elements

Definition at line 125 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myModifications

Modifications* GNEProhibitionFrame::myModifications
private

Modifications.

Definition at line 183 of file GNEProhibitionFrame.h.

Referenced by GNEProhibitionFrame().

◆ myPredefinedTagsMML

std::vector<std::string> GNEFrame::myPredefinedTagsMML
privateinherited

Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)

Definition at line 138 of file GNEFrame.h.

Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().

◆ myProhibitionLegend

ProhibitionLegend* GNEProhibitionFrame::myProhibitionLegend
private

prohibition legend

Definition at line 180 of file GNEProhibitionFrame.h.

Referenced by buildProhibition(), and GNEProhibitionFrame().

◆ myRelativeToConnection

RelativeToConnection* GNEProhibitionFrame::myRelativeToConnection
private

Relative To Connection.

Definition at line 177 of file GNEProhibitionFrame.h.

Referenced by buildProhibition(), GNEProhibitionFrame(), and onCmdCancel().

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents = nullptr
privateinherited

scroll windows that holds the content frame

Definition at line 129 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

View Net.

Definition at line 113 of file GNEFrame.h.

Referenced by GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNETAZRelDataFrame::addTAZRelationData(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildInternalLanes(), GNEPersonFrame::buildPerson(), buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), handleProhibitionClick(), GNEInspectorFrame::hide(), GNEGenericDataFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectMultisection(), GNEInspectorFrame::inspectSingleElement(), onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEDeleteFrame::SubordinatedElements::openWarningDialog(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), and GNEFrame::show().


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