Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEElementTree Class Reference

#include <GNEElementTree.h>

Inheritance diagram for GNEElementTree:
[legend]
Collaboration diagram for GNEElementTree:
[legend]

Public Types

enum  Options {
  NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 ,
  LOAD = 1 << 4
}
 GroupBoxModule options. More...
 

Public Member Functions

FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled)
 
 GNEElementTree (GNEFrame *frameParent)
 FOX-declaration.
 
void hideHierarchicalElementTree ()
 hide GNEElementTree
 
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule
 
long onCmdExtendButton (FXObject *, FXSelector, void *)
 extends GroupBoxModule
 
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents
 
long onCmdResetButton (FXObject *, FXSelector, void *)
 reset GroupBoxModule
 
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents
 
long onPaint (FXObject *, FXSelector, void *)
 draw GNEGroupBoxModule
 
long onUpdResetButton (FXObject *, FXSelector, void *)
 update reset GroupBoxModule
 
void refreshHierarchicalElementTree ()
 refresh GNEElementTree
 
void removeCurrentEditedAttributeCarrier (const GNEAttributeCarrier *HE)
 if given AttributeCarrier is the same of myHE, set it as nullptr
 
void setText (const std::string &text)
 set text
 
void showHierarchicalElementTree (GNEAttributeCarrier *AC)
 show GNEElementTree
 
 ~GNEElementTree ()
 destructor
 
FOX-callbacks

called when user press right click over an item of list of children

long onCmdShowChildMenu (FXObject *, FXSelector, void *data)
 
long onKeyPressItem (FXObject *, FXSelector, void *data)
 called when user press a key over the list of children (Enter: inspect, Ctrl+Enter: center)
 
long onCmdCenterItem (FXObject *, FXSelector, void *)
 called when user click over option "center" of child Menu
 
long onCmdInspectItem (FXObject *, FXSelector, void *)
 called when user click over option "inspect" of child menu
 
long onCmdDeleteItem (FXObject *, FXSelector, void *)
 called when user click over option "delete" of child menu
 
long onCmdMoveItemUp (FXObject *, FXSelector, void *)
 called when user click over option "Move up" of child menu
 
long onCmdMoveItemDown (FXObject *, FXSelector, void *)
 called when user click over option "Move down" of child menu
 

Protected Member Functions

FXTreeItem * addListItem (FXTreeItem *itemParent, const std::string &text, FXIcon *icon, bool expanded)
 add item into list
 
FXTreeItem * addListItem (GNEAttributeCarrier *AC, FXTreeItem *itemParent=nullptr, std::string prefix="", std::string sufix="")
 add item into list
 
bool canBeCentered (const GNEAttributeCarrier *AC) const
 check if the given AC can be centered in the view
 
void createPopUpMenu (int X, int Y, GNEAttributeCarrier *clickedAC)
 
bool isSupermodeValid (const GNEAttributeCarrier *AC) const
 check if current supermode is valid for select/remove the given AC
 
virtual bool loadContents () const
 load contents (can be reimplemented in children)
 
virtual bool saveContents () const
 save contents (can be reimplemented in children)
 
void setClickedAC (GNEAttributeCarrier *clickedAC)
 set myClickedAC and cast it to all myClicked* elements
 
FXTreeItem * showAttributeCarrierParents ()
 show child of current attributeCarrier
 
void showHierarchicalElementChildren (GNEAttributeCarrier *hierarchicalElement, FXTreeItem *itemParent)
 show children of given hierarchical element
 
void toggleSaveButton (const bool value)
 enable or disable save buttons
 

Private Attributes

GNEAttributeCarrier * myClickedAC = nullptr
 pointer to current clicked Attribute Carrier
 
GNEAdditional * myClickedAdditional = nullptr
 additional (casted from myClickedAC)
 
GNEConnection * myClickedConnection = nullptr
 junction (casted from myClickedAC)
 
GNECrossing * myClickedCrossing = nullptr
 crossing (casted from myClickedAC)
 
GNEDataInterval * myClickedDataInterval = nullptr
 data interval element (casted from myClickedAC)
 
GNEDataSet * myClickedDataSet = nullptr
 data set element (casted from myClickedAC)
 
GNEDemandElement * myClickedDemandElement = nullptr
 demand element (casted from myClickedAC)
 
GNEEdge * myClickedEdge = nullptr
 edge (casted from myClickedAC)
 
GNEGenericData * myClickedGenericData = nullptr
 generic data element (casted from myClickedAC)
 
GNEJunction * myClickedJunction = nullptr
 junction (casted from myClickedAC)
 
GNELane * myClickedLane = nullptr
 lane (casted from myClickedAC)
 
GNETAZSourceSink * myClickedTAZSourceSink = nullptr
 sourceSink (casted from myClickedAC)
 
FXVerticalFrame * myCollapsableFrame = nullptr
 vertical collapsable frame
 
FXButton * myCollapseButton = nullptr
 button for collapse elements
 
bool myCollapsed
 flag to check if this groupbox is collapsed
 
MFXButtonTooltip * myExtendButton = nullptr
 button for extend elements
 
GNEFrame * myFrameParent
 frame Parent
 
GNEAttributeCarrier * myHierarchicalElement = nullptr
 hierarchical element
 
FXLabel * myLabel = nullptr
 label used in non collapsable GNEGroupBoxModule
 
FXButton * myLoadButton = nullptr
 button for load elements
 
const int myOptions
 GroupBoxModule options.
 
FXButton * myResetWidthButton = nullptr
 button for reset frame width
 
FXButton * mySaveButton = nullptr
 button for save elements
 
std::set< FXTreeItem * > myTreeItemsConnections
 set used to save tree items without AC assigned, the Incoming/Outcoming connections
 
std::map< FXTreeItem *, GNEAttributeCarrier * > myTreeItemToACMap
 map used to save the FXTreeItems items with their vinculated AC
 
MFXTreeListDynamic * myTreeListDynamic = nullptr
 tree list dynamic to show the children of the element to erase
 

Detailed Description

Definition at line 48 of file GNEElementTree.h.

Member Enumeration Documentation

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 43 of file GNEGroupBoxModule.h.

Constructor & Destructor Documentation

◆ GNEElementTree()

GNEElementTree::GNEElementTree ( GNEFrame *  frameParent)

FOX-declaration.

constructor

Definition at line 61 of file GNEElementTree.cpp.

References GUIDesignTreeListFixedHeight, and MID_GNE_ACHIERARCHY_SHOWCHILDMENU.

◆ ~GNEElementTree()

GNEElementTree::~GNEElementTree ( )

destructor

Definition at line 70 of file GNEElementTree.cpp.

Member Function Documentation

◆ addListItem() [1/2]

FXTreeItem * GNEElementTree::addListItem ( FXTreeItem *  itemParent,
const std::string &  text,
FXIcon *  icon,
bool  expanded 
)
protected

add item into list

Definition at line 982 of file GNEElementTree.cpp.

References MFXTreeListDynamic::appendItem(), and myTreeListDynamic.

◆ addListItem() [2/2]

FXTreeItem * GNEElementTree::addListItem ( GNEAttributeCarrier *  AC,
FXTreeItem *  itemParent = nullptr,
std::string  prefix = "",
std::string  sufix = "" 
)
protected

add item into list

Definition at line 965 of file GNEElementTree.cpp.

References MFXTreeListDynamic::appendItem(), GNEAttributeCarrier::getACIcon(), GNEAttributeCarrier::getHierarchyName(), myTreeItemToACMap, and myTreeListDynamic.

Referenced by showAttributeCarrierParents(), and showHierarchicalElementChildren().

Here is the caller graph for this function:

◆ canBeCentered()

bool GNEElementTree::canBeCentered ( const GNEAttributeCarrier *  AC) const
protected

check if the given AC can be centered in the view

Definition at line 330 of file GNEElementTree.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isDistribution(), GNETagProperties::isDistributionReference(), GNETagProperties::isType(), SUMO_TAG_DATAINTERVAL, and SUMO_TAG_DATASET.

Referenced by createPopUpMenu(), and onKeyPressItem().

Here is the caller graph for this function:

◆ createPopUpMenu()

◆ getCollapsableFrame()

FXVerticalFrame * GNEGroupBoxModule::getCollapsableFrame ( )
inherited

get collapsable frame (used by all elements that will be collapsed if button is toggled)

Definition at line 126 of file GNEGroupBoxModule.cpp.

References GNEGroupBoxModule::myCollapsableFrame.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNEConnectorFrame::ConnectionVisualization::ConnectionVisualization(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandMoveOptions::DemandMoveOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFixElementsDialog< T >::FixOptions::FixOptions(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEOptionsEditor::GNEOptionsEditor(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkMoveOptions::NetworkMoveOptions(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNEAttributesEditorRow::showAttributeRow(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ hideHierarchicalElementTree()

◆ isSupermodeValid()

bool GNEElementTree::isSupermodeValid ( const GNEAttributeCarrier *  AC) const
protected

check if current supermode is valid for select/remove the given AC

Definition at line 997 of file GNEElementTree.cpp.

References GNEViewNet::getEditModes(), GNEAttributeCarrier::getTagProperty(), GNEFrame::getViewNet(), myFrameParent, SUMO_TAG_TAZSINK, and SUMO_TAG_TAZSOURCE.

Referenced by createPopUpMenu(), and onKeyPressItem().

Here is the caller graph for this function:

◆ loadContents()

bool GNEGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 234 of file GNEGroupBoxModule.cpp.

Referenced by GNEGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdCenterItem()

long GNEElementTree::onCmdCenterItem ( FXObject *  ,
FXSelector  ,
void *   
)

called when user click over option "center" of child Menu

Definition at line 173 of file GNEElementTree.cpp.

References GUISUMOAbstractView::centerTo(), GUIGlObject::getGlID(), GNEHierarchicalElement::getParentEdges(), GNEFrame::getViewNet(), myClickedAdditional, myClickedConnection, myClickedCrossing, myClickedDemandElement, myClickedEdge, myClickedGenericData, myClickedJunction, myClickedLane, myClickedTAZSourceSink, myFrameParent, and GNEViewNet::updateViewNet().

Referenced by FXDEFMAP(), and onKeyPressItem().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

long GNEGroupBoxModule::onCmdCollapseButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

collapse GroupBoxModule

Definition at line 145 of file GNEGroupBoxModule.cpp.

References COLLAPSE, GUIIconSubSys::getIcon(), GNEGroupBoxModule::myCollapsableFrame, GNEGroupBoxModule::myCollapseButton, GNEGroupBoxModule::myCollapsed, and UNCOLLAPSE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDeleteItem()

long GNEElementTree::onCmdDeleteItem ( FXObject *  ,
FXSelector  ,
void *   
)

called when user click over option "delete" of child menu

Definition at line 208 of file GNEElementTree.cpp.

References GNEInspectorFrame::clearInspection(), GNENet::deleteAdditional(), GNENet::deleteConnection(), GNENet::deleteCrossing(), GNENet::deleteDataInterval(), GNENet::deleteDataSet(), GNENet::deleteDemandElement(), GNENet::deleteEdge(), GNENet::deleteGenericData(), GNENet::deleteJunction(), GNENet::deleteLane(), GNENet::deleteTAZSourceSink(), GNEAttributeCarrier::getAttribute(), GNEDataSet::getDataIntervalChildren(), GNEGenericData::getDataIntervalParent(), GNEDataInterval::getDataSetParent(), GNEDataInterval::getGenericDataChildren(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEViewNet::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_DEFAULT_VTYPE, GNEInspectorFrame::inspectElement(), GNETagProperties::isPlan(), myClickedAC, myClickedAdditional, myClickedConnection, myClickedCrossing, myClickedDataInterval, myClickedDataSet, myClickedDemandElement, myClickedEdge, myClickedGenericData, myClickedJunction, myClickedLane, myClickedTAZSourceSink, myFrameParent, refreshHierarchicalElementTree(), SUMO_ATTR_ID, SUMO_TAG_VTYPE, TL, and WRITE_WARNINGF.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdExtendButton()

long GNEGroupBoxModule::onCmdExtendButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

extends GroupBoxModule

Definition at line 161 of file GNEGroupBoxModule.cpp.

References GNEFrame::getScrollBarWidth(), GNETLSEditorFrame::TLSPhases::getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNEGroupBoxModule::myCollapsableFrame, GNEGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdInspectItem()

long GNEElementTree::onCmdInspectItem ( FXObject *  ,
FXSelector  ,
void *   
)

called when user click over option "inspect" of child menu

Definition at line 201 of file GNEElementTree.cpp.

References GNEViewParent::getInspectorFrame(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNEInspectorFrame::inspectElement(), myClickedAC, myFrameParent, and myHierarchicalElement.

Referenced by FXDEFMAP(), and onKeyPressItem().

Here is the caller graph for this function:

◆ onCmdLoadButton()

long GNEGroupBoxModule::onCmdLoadButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

load contents

Definition at line 215 of file GNEGroupBoxModule.cpp.

References GNEGroupBoxModule::loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdMoveItemDown()

long GNEElementTree::onCmdMoveItemDown ( FXObject *  ,
FXSelector  ,
void *   
)

called when user click over option "Move down" of child menu

Definition at line 293 of file GNEElementTree.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), GNEUndoList::end(), GNEHierarchicalElement::getParentDemandElements(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEChange_Children::MOVE_FRONT, myClickedDemandElement, myFrameParent, and refreshHierarchicalElementTree().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdMoveItemUp()

long GNEElementTree::onCmdMoveItemUp ( FXObject *  ,
FXSelector  ,
void *   
)

called when user click over option "Move up" of child menu

Definition at line 277 of file GNEElementTree.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), GNEUndoList::end(), GNEHierarchicalElement::getParentDemandElements(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEChange_Children::MOVE_BACK, myClickedDemandElement, myFrameParent, and refreshHierarchicalElementTree().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetButton()

long GNEGroupBoxModule::onCmdResetButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

reset GroupBoxModule

Definition at line 187 of file GNEGroupBoxModule.cpp.

References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNEGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

long GNEGroupBoxModule::onCmdSaveButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

save contents

Definition at line 209 of file GNEGroupBoxModule.cpp.

References GNEGroupBoxModule::saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowChildMenu()

long GNEElementTree::onCmdShowChildMenu ( FXObject *  ,
FXSelector  ,
void *  data 
)

Definition at line 134 of file GNEElementTree.cpp.

References createPopUpMenu(), MFXTreeListDynamic::getItemAt(), myTreeItemsConnections, myTreeItemToACMap, and myTreeListDynamic.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyPressItem()

long GNEElementTree::onKeyPressItem ( FXObject *  obj,
FXSelector  sel,
void *  data 
)

called when user press a key over the list of children (Enter: inspect, Ctrl+Enter: center)

Definition at line 148 of file GNEElementTree.cpp.

References canBeCentered(), MFXTreeListDynamic::getCurrentItem(), isSupermodeValid(), myClickedAC, myTreeItemsConnections, myTreeItemToACMap, myTreeListDynamic, onCmdCenterItem(), onCmdInspectItem(), and setClickedAC().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long GNEGroupBoxModule::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
inherited

draw GNEGroupBoxModule

Definition at line 132 of file GNEGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetButton()

long GNEGroupBoxModule::onUpdResetButton ( FXObject *  sender,
FXSelector  ,
void *   
)
inherited

update reset GroupBoxModule

Definition at line 196 of file GNEGroupBoxModule.cpp.

References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and GNEGroupBoxModule::myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ refreshHierarchicalElementTree()

void GNEElementTree::refreshHierarchicalElementTree ( )

refresh GNEElementTree

Definition at line 112 of file GNEElementTree.cpp.

References MFXTreeListDynamic::clearItems(), myHierarchicalElement, myTreeItemsConnections, myTreeItemToACMap, myTreeListDynamic, showAttributeCarrierParents(), and showHierarchicalElementChildren().

Referenced by GNEContainerPlanFrame::createPath(), GNEPersonPlanFrame::createPath(), onCmdDeleteItem(), onCmdMoveItemDown(), onCmdMoveItemUp(), and showHierarchicalElementTree().

Here is the caller graph for this function:

◆ removeCurrentEditedAttributeCarrier()

void GNEElementTree::removeCurrentEditedAttributeCarrier ( const GNEAttributeCarrier *  HE)

if given AttributeCarrier is the same of myHE, set it as nullptr

Definition at line 125 of file GNEElementTree.cpp.

References myHierarchicalElement.

Referenced by GNEEdge::removeConnection(), GNEDataSet::removeDataIntervalChild(), GNEDataInterval::removeGenericDataChild(), and GNEEdge::removeLane().

Here is the caller graph for this function:

◆ saveContents()

bool GNEGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixElementsDialog< T >::FixOptions.

Definition at line 227 of file GNEGroupBoxModule.cpp.

Referenced by GNEGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setClickedAC()

void GNEElementTree::setClickedAC ( GNEAttributeCarrier *  clickedAC)
protected

set myClickedAC and cast it to all myClicked* elements

Definition at line 309 of file GNEElementTree.cpp.

References GNENet::getAttributeCarriers(), GNEAttributeCarrier::getGUIGlObject(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myClickedAC, myClickedAdditional, myClickedConnection, myClickedCrossing, myClickedDataInterval, myClickedDataSet, myClickedDemandElement, myClickedEdge, myClickedGenericData, myClickedJunction, myClickedLane, myClickedTAZSourceSink, and myFrameParent.

Referenced by createPopUpMenu(), and onKeyPressItem().

Here is the caller graph for this function:

◆ setText()

void GNEGroupBoxModule::setText ( const std::string &  text)
inherited

set text

Definition at line 120 of file GNEGroupBoxModule.cpp.

References GNEGroupBoxModule::myLabel.

Referenced by GNETLSEditorFrame::TLSPrograms::onCmdDefSwitchTLSProgram(), GNEViewObjectSelector::showNetworkElementsSelector(), GNESelectorFrame::SelectionInformation::updateInformationLabel(), and GNETagSelector::updateTagTypes().

Here is the caller graph for this function:

◆ showAttributeCarrierParents()

FXTreeItem * GNEElementTree::showAttributeCarrierParents ( )
protected

show child of current attributeCarrier

Definition at line 424 of file GNEElementTree.cpp.

References addListItem(), MFXTreeListDynamic::appendItem(), GNEAttributeCarrier::getACIcon(), GNENet::getAttributeCarriers(), GNEGenericData::getDataIntervalParent(), GNEDataInterval::getDataSetParent(), GNEConnection::getEdgeFrom(), GNEConnection::getEdgeTo(), GNEEdge::getFromJunction(), GNEAttributeCarrier::getGUIGlObject(), GNENetworkElement::getHierarchyName(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentDemandElements(), GNELane::getParentEdge(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentLanes(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEEdge::getToJunction(), GNEFrame::getViewNet(), GNE_TAG_POILANE, GNETagProperties::isAdditionalElement(), GNETagProperties::isDataElement(), GNETagProperties::isDemandElement(), GNETagProperties::isNetworkElement(), GNETagProperties::isTAZElement(), myFrameParent, myHierarchicalElement, myTreeItemToACMap, myTreeListDynamic, SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_DATAINTERVAL, SUMO_TAG_DATASET, SUMO_TAG_EDGE, SUMO_TAG_EDGEREL, SUMO_TAG_LANE, TL, and toString().

Referenced by refreshHierarchicalElementTree().

Here is the caller graph for this function:

◆ showHierarchicalElementChildren()

◆ showHierarchicalElementTree()

void GNEElementTree::showHierarchicalElementTree ( GNEAttributeCarrier *  AC)

show GNEElementTree

Definition at line 74 of file GNEElementTree.cpp.

References myHierarchicalElement, myTreeListDynamic, refreshHierarchicalElementTree(), and MFXTreeListDynamic::show().

Referenced by GNEInspectorFrame::refreshInspection(), GNEContainerPlanFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().

Here is the caller graph for this function:

◆ toggleSaveButton()

void GNEGroupBoxModule::toggleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 241 of file GNEGroupBoxModule.cpp.

References GNEGroupBoxModule::mySaveButton.

Field Documentation

◆ myClickedAC

GNEAttributeCarrier* GNEElementTree::myClickedAC = nullptr
private

pointer to current clicked Attribute Carrier

Definition at line 130 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdDeleteItem(), onCmdInspectItem(), onKeyPressItem(), and setClickedAC().

◆ myClickedAdditional

GNEAdditional* GNEElementTree::myClickedAdditional = nullptr
private

additional (casted from myClickedAC)

Definition at line 148 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedConnection

GNEConnection* GNEElementTree::myClickedConnection = nullptr
private

junction (casted from myClickedAC)

Definition at line 145 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedCrossing

GNECrossing* GNEElementTree::myClickedCrossing = nullptr
private

crossing (casted from myClickedAC)

Definition at line 142 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedDataInterval

GNEDataInterval* GNEElementTree::myClickedDataInterval = nullptr
private

data interval element (casted from myClickedAC)

Definition at line 160 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedDataSet

GNEDataSet* GNEElementTree::myClickedDataSet = nullptr
private

data set element (casted from myClickedAC)

Definition at line 157 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedDemandElement

GNEDemandElement* GNEElementTree::myClickedDemandElement = nullptr
private

demand element (casted from myClickedAC)

Definition at line 154 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), onCmdMoveItemDown(), onCmdMoveItemUp(), and setClickedAC().

◆ myClickedEdge

GNEEdge* GNEElementTree::myClickedEdge = nullptr
private

edge (casted from myClickedAC)

Definition at line 136 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedGenericData

GNEGenericData* GNEElementTree::myClickedGenericData = nullptr
private

generic data element (casted from myClickedAC)

Definition at line 163 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedJunction

GNEJunction* GNEElementTree::myClickedJunction = nullptr
private

junction (casted from myClickedAC)

Definition at line 133 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedLane

GNELane* GNEElementTree::myClickedLane = nullptr
private

lane (casted from myClickedAC)

Definition at line 139 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), and setClickedAC().

◆ myClickedTAZSourceSink

GNETAZSourceSink* GNEElementTree::myClickedTAZSourceSink = nullptr
private

sourceSink (casted from myClickedAC)

Definition at line 151 of file GNEElementTree.h.

Referenced by createPopUpMenu(), hideHierarchicalElementTree(), onCmdCenterItem(), onCmdDeleteItem(), and setClickedAC().

◆ myCollapsableFrame

FXVerticalFrame* GNEGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

◆ myCollapseButton

FXButton* GNEGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 114 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule::GNEGroupBoxModule(), and GNEGroupBoxModule::onCmdCollapseButton().

◆ myCollapsed

bool GNEGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 129 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule::onCmdCollapseButton().

◆ myExtendButton

MFXButtonTooltip* GNEGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 117 of file GNEGroupBoxModule.h.

◆ myFrameParent

◆ myHierarchicalElement

◆ myLabel

FXLabel* GNEGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable GNEGroupBoxModule

Definition at line 111 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule::GNEGroupBoxModule(), and GNEGroupBoxModule::setText().

◆ myLoadButton

FXButton* GNEGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 126 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule::GNEGroupBoxModule().

◆ myOptions

const int GNEGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 102 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule::GNEGroupBoxModule().

◆ myResetWidthButton

FXButton* GNEGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 120 of file GNEGroupBoxModule.h.

◆ mySaveButton

FXButton* GNEGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 123 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule::GNEGroupBoxModule(), and GNEGroupBoxModule::toggleSaveButton().

◆ myTreeItemsConnections

std::set<FXTreeItem*> GNEElementTree::myTreeItemsConnections
private

set used to save tree items without AC assigned, the Incoming/Outcoming connections

Definition at line 172 of file GNEElementTree.h.

Referenced by onCmdShowChildMenu(), onKeyPressItem(), and refreshHierarchicalElementTree().

◆ myTreeItemToACMap

std::map<FXTreeItem*, GNEAttributeCarrier*> GNEElementTree::myTreeItemToACMap
private

map used to save the FXTreeItems items with their vinculated AC

Definition at line 169 of file GNEElementTree.h.

Referenced by addListItem(), onCmdShowChildMenu(), onKeyPressItem(), refreshHierarchicalElementTree(), and showAttributeCarrierParents().

◆ myTreeListDynamic

MFXTreeListDynamic* GNEElementTree::myTreeListDynamic = nullptr
private

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