SUMO - Simulation of Urban MObility
GNEAdditionalFrame Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame:
Inheritance graph
Collaboration diagram for GNEAdditionalFrame:
Collaboration graph

Data Structures

class  SelectorAdditionalParent
 
class  SelectorEdgeChilds
 
class  SelectorLaneChilds
 
class  SelectorLaneParents
 

Public Member Functions

bool addAdditional (const GNEViewNet::ObjectsUnderCursor &objectsUnderCursor)
 add additional element More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNEAdditionalFrame::SelectorLaneParentsgetConsecutiveLaneSelector () const
 getConsecutive Lane Selector 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...
 
 GNEAdditionalFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
virtual void hide ()
 hide Frame More...
 
void removeAdditional (GNEAdditional *additional)
 remove an additional element previously added More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show Frame More...
 
void showSelectorLaneChildsModul ()
 show selector lane child and update use selected edges/lanes More...
 
 ~GNEAdditionalFrame ()
 Destructor. More...
 

Protected Member Functions

virtual bool buildShape ()
 build a shaped element using the drawed shape (can be reimplemented in frame childs) return true if was sucesfully created More...
 
void disableModuls ()
 disable moduls if element selected in itemSelector isn't valid More...
 
void enableModuls (const GNEAttributeCarrier::TagProperties &tagProperties)
 enable moduls depending of item selected in ItemSelector More...
 
const RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
void openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) const
 Open help attributes dialog. 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...
 
GNEViewNetmyViewNet
 View Net for changes. More...
 

Private Member Functions

bool buildAdditionalCommonAttributes (std::map< SumoXMLAttr, std::string > &valuesMap, const GNEAttributeCarrier::TagProperties &tagValues)
 build common additional attributes More...
 
bool buildAdditionalOverEdge (std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional over an edge (parent of lane) More...
 
bool buildAdditionalOverLane (std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional over a single lane More...
 
bool buildAdditionalOverLanes (std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional over lanes More...
 
bool buildAdditionalOverView (std::map< SumoXMLAttr, std::string > &valuesMap, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional over view More...
 
bool buildAdditionalWithParent (std::map< SumoXMLAttr, std::string > &valuesMap, GNEAdditional *parent, const GNEAttributeCarrier::TagProperties &tagValues)
 build additional with Parent More...
 
std::string generateID (GNENetElement *netElement) const
 generate a ID for an additiona element More...
 

Private Attributes

ACAttributes * myAdditionalAttributes
 internal additional attributes More...
 
ItemSelectormyItemSelector
 item selector More...
 
NeteditAttributesmyNeteditAttributes
 Netedit parameter. More...
 
SelectorAdditionalParentmySelectorAdditionalParent
 Modul for select a single additional parent (Used only for first Additional parent) More...
 
SelectorEdgeChildsmySelectorEdgeChilds
 Modul for select edge childs. More...
 
SelectorLaneChildsmySelectorLaneChilds
 Modul for select lane childs. More...
 
SelectorLaneParentsmySelectorLaneParents
 Modul for select lane parents (currently only consecutives) More...
 

Detailed Description

The Widget for setting internal attributes of additional elements

Definition at line 34 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

◆ GNEAdditionalFrame()

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

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame

Create list for SelectorEdgeChilds

Create list for SelectorLaneChilds

Definition at line 684 of file GNEAdditionalFrame.cpp.

References myAdditionalAttributes, myItemSelector, myNeteditAttributes, mySelectorAdditionalParent, mySelectorEdgeChilds, mySelectorLaneChilds, mySelectorLaneParents, GNEFrame::ItemSelector::setCurrentTypeTag(), and SUMO_TAG_BUS_STOP.

◆ ~GNEAdditionalFrame()

GNEAdditionalFrame::~GNEAdditionalFrame ( )

Destructor.

Definition at line 713 of file GNEAdditionalFrame.cpp.

Member Function Documentation

◆ addAdditional()

◆ buildAdditionalCommonAttributes()

◆ buildAdditionalOverEdge()

◆ buildAdditionalOverLane()

◆ buildAdditionalOverLanes()

◆ buildAdditionalOverView()

◆ buildAdditionalWithParent()

◆ buildShape()

bool GNEFrame::buildShape ( )
protectedvirtualinherited

build a shaped element using the drawed shape (can be reimplemented in frame childs) return true if was sucesfully created

Note
called when user stop drawing shape

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 1738 of file GNEFrame.cpp.

Referenced by GNEFrame::GNEFrame(), and GNEFrame::DrawingShape::stopDrawing().

◆ disableModuls()

◆ enableModuls()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ generateID()

◆ getConsecutiveLaneSelector()

GNEAdditionalFrame::SelectorLaneParents * GNEAdditionalFrame::getConsecutiveLaneSelector ( ) const

◆ getEdgeCandidateColor()

const RGBColor & GNEFrame::getEdgeCandidateColor ( ) const
protectedinherited

◆ getEdgeCandidateSelectedColor()

const RGBColor & GNEFrame::getEdgeCandidateSelectedColor ( ) const
protectedinherited

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 1732 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 1726 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 1720 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrame::DrawingShape::abortDrawing(), GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::EdgesSelector::enableEdgeSelector(), GNEAdditionalFrame::SelectorEdgeChilds::getEdgeIdsSelected(), GNEAdditionalFrame::SelectorLaneChilds::getLaneIdsSelected(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEInspectorFrame::OverlappedInspection::onCmdNextElement(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorAdditionalParent::refreshSelectorAdditionalParentModul(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::EdgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorEdgeChilds::showSelectorEdgeChildsModul(), GNEAdditionalFrame::SelectorLaneChilds::showSelectorLaneChildsModul(), GNEFrame::ACAttributes::showWarningMessage(), GNEFrame::DrawingShape::stopDrawing(), GNEAdditionalFrame::SelectorEdgeChilds::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorLaneChilds::updateUseSelectedLanes().

◆ hide()

◆ openHelpAttributesDialog()

◆ removeAdditional()

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 1713 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

Referenced by GNEViewParent::Frames::setWidth().

◆ show()

◆ showSelectorLaneChildsModul()

void GNEAdditionalFrame::showSelectorLaneChildsModul ( )

Field Documentation

◆ myAdditionalAttributes

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 615 of file GNEFrame.h.

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

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 618 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 624 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myItemSelector

◆ myNeteditAttributes

NeteditAttributes* GNEAdditionalFrame::myNeteditAttributes
private

◆ mySelectorAdditionalParent

SelectorAdditionalParent* GNEAdditionalFrame::mySelectorAdditionalParent
private

Modul for select a single additional parent (Used only for first Additional parent)

Definition at line 374 of file GNEAdditionalFrame.h.

Referenced by buildAdditionalOverEdge(), buildAdditionalOverLane(), buildAdditionalOverLanes(), buildAdditionalOverView(), buildAdditionalWithParent(), disableModuls(), enableModuls(), and GNEAdditionalFrame().

◆ mySelectorEdgeChilds

◆ mySelectorLaneChilds

◆ mySelectorLaneParents

SelectorLaneParents* GNEAdditionalFrame::mySelectorLaneParents
private

Modul for select lane parents (currently only consecutives)

Definition at line 371 of file GNEAdditionalFrame.h.

Referenced by buildAdditionalOverLanes(), disableModuls(), enableModuls(), getConsecutiveLaneSelector(), and GNEAdditionalFrame().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net for changes.

Definition at line 612 of file GNEFrame.h.

Referenced by addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETAZFrame::TAZCurrent::addTAZChild(), buildAdditionalOverEdge(), buildAdditionalOverLane(), buildAdditionalOverLanes(), buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildShape(), GNETAZFrame::buildShape(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), generateID(), GNESelectorFrame::getMatches(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETAZFrame::TAZSaveChanges::onCmdCancelChanges(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processClick(), removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNETAZFrame::TAZCurrent::setTAZ(), GNEDeleteFrame::show(), GNEFrame::show(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), and GNETAZFrame::TAZEdgesGraphic::updateEdgeColors().


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