SUMO - Simulation of Urban MObility
GNEInspectorFrame Class Reference

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame:
Inheritance graph
Collaboration diagram for GNEInspectorFrame:
Collaboration graph

Data Structures

class  AttributesEditor
 
class  GEOAttributesEditor
 
class  NeteditAttributesEditor
 
class  OverlappedInspection
 FOX-declaration. More...
 
class  TemplateEditor
 

Public Member Functions

void clearInspectedAC ()
 Clear all current inspected ACs. More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNEFrame::ACHierarchygetACHierarchy () const
 get ACHierarchy More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
const std::vector< GNEAttributeCarrier * > & getInspectedACs () const
 get current list of inspected ACs More...
 
OverlappedInspectiongetOverlappedInspection () const
 get OverlappedInspection modul More...
 
TemplateEditorgetTemplateEditor () const
 get template editor More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNEInspectorFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
void hide ()
 hide inspector frame More...
 
void inspectChild (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement)
 inspect child of already inspected element More...
 
void inspectFromDeleteFrame (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement, bool previousElementWasMarked)
 inspect called from DeleteFrame More...
 
void inspectMultisection (const std::vector< GNEAttributeCarrier *> &ACs)
 Inspect the given multi-selection. More...
 
void inspectSingleElement (GNEAttributeCarrier *AC)
 Inspect a single element. More...
 
bool processClick (const Position &clickedPosition, GNEViewNet::ObjectsUnderCursor &objectsUnderCursor)
 process click over Viewnet More...
 
void removeInspectedAC (GNEAttributeCarrier *ac)
 remove AC from current inspected ACs More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show inspector frame More...
 
 ~GNEInspectorFrame ()
 Destructor. More...
 
FOX-callbacks
long onCmdGoBack (FXObject *, FXSelector, void *)
 called when user toogle the go back button 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...
 
virtual void disableModuls ()
 disable moduls if element selected in itemSelector isn't valid (can be reimplemented in frame childs) More...
 
virtual void enableModuls (const GNEAttributeCarrier::TagProperties &tagProperties)
 enable moduls depending of item selected in ItemSelector (can be reimplemented in frame childs) More...
 
const RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
 GNEInspectorFrame ()
 FOX needs this. More...
 
void inspectClickedElement (const GNEViewNet::ObjectsUnderCursor &objectsUnderCursor, const Position &clickedPosition)
 Inspect a singe element (the front of AC AttributeCarriers of ObjectUnderCursor. 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 Attributes

GNEFrame::ACHierarchymyACHierarchy
 Attribute Carrier Hierarchy. More...
 
AttributesEditormyAttributesEditor
 Attribute editor. More...
 
FXButton * myBackButton
 back Button More...
 
GenericParametersEditormyGenericParametersEditor
 Generic parameters editor. More...
 
GEOAttributesEditormyGEOAttributesEditor
 GEO Attributes editor. More...
 
std::vector< GNEAttributeCarrier * > myInspectedACs
 the multi-selection currently being inspected More...
 
NeteditAttributesEditormyNeteditAttributesEditor
 Netedit Attributes editor. More...
 
OverlappedInspectionmyOverlappedInspection
 Overlapped Inspection. More...
 
GNEAttributeCarriermyPreviousElementDelete
 pointer to previous element called by Delete Frame More...
 
bool myPreviousElementDeleteWasMarked
 flag to ckec if myPreviousElementDelete was marked in Delete Frame More...
 
GNEAttributeCarriermyPreviousElementInspect
 pointer to previous element called by Inspector Frame More...
 
TemplateEditormyTemplateEditor
 Template editor. More...
 

Detailed Description

The Widget for modifying network-element attributes (i.e. lane speed)

Definition at line 34 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ GNEInspectorFrame() [1/2]

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

Constructor.

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

Definition at line 98 of file GNEInspectorFrame.cpp.

References GUIIconSubSys::getIcon(), GUIDesignButtonIconRectangular, ICON_NETEDITARROWLEFT, and MID_GNE_INSPECTORFRAME_GOBACK.

◆ ~GNEInspectorFrame()

GNEInspectorFrame::~GNEInspectorFrame ( )

Destructor.

Definition at line 131 of file GNEInspectorFrame.cpp.

◆ GNEInspectorFrame() [2/2]

GNEInspectorFrame::GNEInspectorFrame ( )
inlineprotected

FOX needs this.

Definition at line 512 of file GNEInspectorFrame.h.

References inspectClickedElement().

Member Function Documentation

◆ 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().

◆ clearInspectedAC()

void GNEInspectorFrame::clearInspectedAC ( )

Clear all current inspected ACs.

Definition at line 324 of file GNEInspectorFrame.cpp.

References inspectMultisection(), myInspectedACs, GNEFrame::myViewNet, and GNEViewNet::setDottedAC().

Referenced by GNENet::computeAndUpdate().

◆ disableModuls()

void GNEFrame::disableModuls ( )
protectedvirtualinherited

disable moduls if element selected in itemSelector isn't valid (can be reimplemented in frame childs)

Reimplemented in GNEAdditionalFrame, and GNEPolygonFrame.

Definition at line 1751 of file GNEFrame.cpp.

Referenced by GNEFrame::GNEFrame(), GNEFrame::ItemSelector::onCmdSelectItem(), and GNEFrame::ItemSelector::setCurrentTypeTag().

◆ enableModuls()

void GNEFrame::enableModuls ( const GNEAttributeCarrier::TagProperties tagProperties)
protectedvirtualinherited

enable moduls depending of item selected in ItemSelector (can be reimplemented in frame childs)

Reimplemented in GNEAdditionalFrame, and GNEPolygonFrame.

Definition at line 1745 of file GNEFrame.cpp.

Referenced by GNEFrame::GNEFrame(), GNEFrame::ItemSelector::onCmdSelectItem(), and GNEFrame::ItemSelector::setCurrentTypeTag().

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getACHierarchy()

◆ 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 inspectMultisection().

◆ getInspectedACs()

◆ getOverlappedInspection()

GNEInspectorFrame::OverlappedInspection * GNEInspectorFrame::getOverlappedInspection ( ) const

get OverlappedInspection modul

Definition at line 349 of file GNEInspectorFrame.cpp.

References myOverlappedInspection.

Referenced by GNEViewNet::openObjectDialog().

◆ getTemplateEditor()

GNEInspectorFrame::TemplateEditor * GNEInspectorFrame::getTemplateEditor ( ) const

get template editor

Definition at line 343 of file GNEInspectorFrame.cpp.

References myTemplateEditor.

Referenced by GNEViewNet::onLeftBtnPress().

◆ 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()

◆ inspectChild()

void GNEInspectorFrame::inspectChild ( GNEAttributeCarrier AC,
GNEAttributeCarrier previousElement 
)

◆ inspectClickedElement()

void GNEInspectorFrame::inspectClickedElement ( const GNEViewNet::ObjectsUnderCursor objectsUnderCursor,
const Position clickedPosition 
)
protected

◆ inspectFromDeleteFrame()

void GNEInspectorFrame::inspectFromDeleteFrame ( GNEAttributeCarrier AC,
GNEAttributeCarrier previousElement,
bool  previousElementWasMarked 
)

◆ inspectMultisection()

◆ inspectSingleElement()

◆ onCmdGoBack()

long GNEInspectorFrame::onCmdGoBack ( FXObject *  ,
FXSelector  ,
void *   
)

◆ openHelpAttributesDialog()

◆ processClick()

◆ removeInspectedAC()

void GNEInspectorFrame::removeInspectedAC ( GNEAttributeCarrier ac)

◆ 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()

Field Documentation

◆ myACHierarchy

GNEFrame::ACHierarchy* GNEInspectorFrame::myACHierarchy
private

Attribute Carrier Hierarchy.

Definition at line 537 of file GNEInspectorFrame.h.

Referenced by getACHierarchy(), and inspectMultisection().

◆ myAttributesEditor

◆ myBackButton

FXButton* GNEInspectorFrame::myBackButton
private

back Button

Definition at line 540 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().

◆ 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 inspectMultisection().

◆ myGenericParametersEditor

GenericParametersEditor* GNEInspectorFrame::myGenericParametersEditor
private

Generic parameters editor.

Definition at line 531 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

◆ myGEOAttributesEditor

◆ 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

fame for left header elements

Definition at line 621 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 624 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myInspectedACs

std::vector<GNEAttributeCarrier*> GNEInspectorFrame::myInspectedACs
private

the multi-selection currently being inspected

Definition at line 552 of file GNEInspectorFrame.h.

Referenced by clearInspectedAC(), getInspectedACs(), hide(), inspectMultisection(), and removeInspectedAC().

◆ myNeteditAttributesEditor

NeteditAttributesEditor* GNEInspectorFrame::myNeteditAttributesEditor
private

◆ myOverlappedInspection

OverlappedInspection* GNEInspectorFrame::myOverlappedInspection
private

Overlapped Inspection.

Definition at line 519 of file GNEInspectorFrame.h.

Referenced by getOverlappedInspection(), inspectClickedElement(), inspectMultisection(), and processClick().

◆ myPreviousElementDelete

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElementDelete
private

pointer to previous element called by Delete Frame

Definition at line 546 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().

◆ myPreviousElementDeleteWasMarked

bool GNEInspectorFrame::myPreviousElementDeleteWasMarked
private

flag to ckec if myPreviousElementDelete was marked in Delete Frame

Definition at line 549 of file GNEInspectorFrame.h.

Referenced by inspectFromDeleteFrame().

◆ myPreviousElementInspect

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElementInspect
private

pointer to previous element called by Inspector Frame

Definition at line 543 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().

◆ myTemplateEditor

TemplateEditor* GNEInspectorFrame::myTemplateEditor
private

Template editor.

Definition at line 534 of file GNEInspectorFrame.h.

Referenced by getTemplateEditor(), and inspectMultisection().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net for changes.

Definition at line 612 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildShape(), GNETAZFrame::buildShape(), GNESelectorFrame::clearCurrentSelection(), clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), hide(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETAZFrame::TAZSaveChanges::onCmdCancelChanges(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), 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(), processClick(), GNEAdditionalFrame::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: