Eclipse SUMO - Simulation of Urban MObility
GNEFrameModules::OverlappedInspection Class Reference

#include <GNEFrameModules.h>

Inheritance diagram for GNEFrameModules::OverlappedInspection:
[legend]
Collaboration diagram for GNEFrameModules::OverlappedInspection:
[legend]

Public Types

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

Public Member Functions

bool checkSavedPosition (const Position &clickedPosition) const
 check if given position is near to saved position More...
 
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toogled) More...
 
int getNumberOfOverlappedACs () const
 get number of overlapped ACSs More...
 
void hideOverlappedInspection ()
 hide template editor More...
 
bool nextElement (const Position &clickedPosition)
 try to go to next element if clicked position is near to saved position More...
 
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule More...
 
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents More...
 
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents More...
 
long onPaint (FXObject *, FXSelector, void *)
 draw FXGroupBoxModule More...
 
 OverlappedInspection (GNEFrame *frameParent)
 FOX-declaration. More...
 
 OverlappedInspection (GNEFrame *frameParent, const SumoXMLTag filteredTag)
 constructor (used for filter objects under cusor More...
 
bool overlappedInspectionShown () const
 check if overlappedInspection modul is shown More...
 
bool previousElement (const Position &clickedPosition)
 try to go to previous element if clicked position is near to saved position More...
 
void setText (const std::string &text)
 set text More...
 
void showOverlappedInspection (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const Position &clickedPosition)
 show template editor More...
 
 ~OverlappedInspection ()
 destructor More...
 
FOX-callbacks
long onCmdNextElement (FXObject *, FXSelector, void *)
 Inspect next Element (from top to bot) More...
 
long onCmdPreviousElement (FXObject *, FXSelector, void *)
 Inspect previous element (from top to bot) More...
 
long onCmdShowList (FXObject *, FXSelector, void *)
 show list of overlapped elements More...
 
long onCmdListItemSelected (FXObject *, FXSelector, void *)
 called when a list item is selected More...
 
long onCmdOverlappingHelp (FXObject *, FXSelector, void *)
 Called when user press the help button. More...
 

Protected Member Functions

void buildFXElements ()
 build Fox Toolkit elemements More...
 
virtual bool loadContents () const
 load contents (can be reimplemented in children) More...
 
 OverlappedInspection ()
 FOX needs this. More...
 
virtual bool saveContents () const
 save contents (can be reimplemented in children) More...
 
void toogleSaveButton (const bool value)
 enable or disable save buttons More...
 

Private Attributes

FXVerticalFrame * myCollapsableFrame = nullptr
 vertical collapsable frame More...
 
FXButton * myCollapseButton = nullptr
 button for collapse elements More...
 
bool myCollapsed
 flag to check if this groupbox is collapsed More...
 
FXButton * myCurrentIndexButton
 Button for current index. More...
 
const SumoXMLTag myFilteredTag
 filtered tag More...
 
GNEFramemyFrameParent
 current frame parent More...
 
FXButton * myHelpButton
 button for help More...
 
size_t myItemIndex
 current index item More...
 
FXLabel * myLabel = nullptr
 label used in non collapsable FXGroupBoxModule More...
 
FXButton * myLoadButton = nullptr
 button for load elements More...
 
FXButton * myNextElement
 Next element button. More...
 
const int myOptions
 GroupBoxModule options. More...
 
std::vector< GNEAttributeCarrier * > myOverlappedACs
 objects under cursor More...
 
FXList * myOverlappedElementList
 list of overlapped elements More...
 
FXButton * myPreviousElement
 Previous element button. More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 
Position mySavedClickedPosition
 saved clicked position More...
 

Detailed Description

Definition at line 445 of file GNEFrameModules.h.

Member Enumeration Documentation

◆ Options

enum FXGroupBoxModule::Options
inherited

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
SAVE 
LOAD 

Definition at line 32 of file FXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ OverlappedInspection() [1/3]

GNEFrameModules::OverlappedInspection::OverlappedInspection ( GNEFrame frameParent)

FOX-declaration.

constructor

Definition at line 1966 of file GNEFrameModules.cpp.

References buildFXElements().

◆ OverlappedInspection() [2/3]

GNEFrameModules::OverlappedInspection::OverlappedInspection ( GNEFrame frameParent,
const SumoXMLTag  filteredTag 
)

constructor (used for filter objects under cusor

Definition at line 1976 of file GNEFrameModules.cpp.

References buildFXElements().

◆ ~OverlappedInspection()

GNEFrameModules::OverlappedInspection::~OverlappedInspection ( )

destructor

Definition at line 1986 of file GNEFrameModules.cpp.

◆ OverlappedInspection() [3/3]

GNEFrameModules::OverlappedInspection::OverlappedInspection ( )
protected

FOX needs this.

Definition at line 2207 of file GNEFrameModules.cpp.

Member Function Documentation

◆ buildFXElements()

void GNEFrameModules::OverlappedInspection::buildFXElements ( )
protected

build Fox Toolkit elemements

Definition at line 2220 of file GNEFrameModules.cpp.

References BIGARROWLEFT, BIGARROWRIGHT, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButton, GUIDesignButtonIconRectangular, GUIDesignButtonRectangular, GUIDesignListFixedHeight, MID_GNE_OVERLAPPED_ITEMSELECTED, MID_GNE_OVERLAPPED_NEXT, MID_GNE_OVERLAPPED_PREVIOUS, MID_GNE_OVERLAPPED_SHOWLIST, and MID_HELP.

Referenced by OverlappedInspection().

Here is the caller graph for this function:

◆ checkSavedPosition()

bool GNEFrameModules::OverlappedInspection::checkSavedPosition ( const Position clickedPosition) const

check if given position is near to saved position

Definition at line 2062 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::openObjectDialogAtCursor().

Here is the caller graph for this function:

◆ getCollapsableFrame()

FXVerticalFrame * FXGroupBoxModule::getCollapsableFrame ( )
inherited

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

Definition at line 82 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myCollapsableFrame.

Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesCreator::AttributesCreator(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECommonNetworkModules::ConsecutiveLaneSelector::ConsecutiveLaneSelector(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEFrameModules::DrawingShape::DrawingShape(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::FlowEditor::FlowEditor(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEFrameModules::HierarchicalElementTree::HierarchicalElementTree(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNETAZRelDataFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEProhibitionFrame::Modifications::Modifications(), GNEFrameAttributeModules::NeteditAttributes::NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEFrameModules::PathCreator::PathCreator(), GNEFrameModules::PathLegend::PathLegend(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEFrameModules::SelectorParent::SelectorParent(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getNumberOfOverlappedACs()

int GNEFrameModules::OverlappedInspection::getNumberOfOverlappedACs ( ) const

get number of overlapped ACSs

Definition at line 2056 of file GNEFrameModules.cpp.

Referenced by GNETLSEditorFrame::editTLS().

Here is the caller graph for this function:

◆ hideOverlappedInspection()

void GNEFrameModules::OverlappedInspection::hideOverlappedInspection ( )

hide template editor

Definition at line 2042 of file GNEFrameModules.cpp.

Referenced by GNETLSEditorFrame::editTLS(), GNEInspectorFrame::inspectMultisection(), and GNETLSEditorFrame::show().

Here is the caller graph for this function:

◆ loadContents()

bool FXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 142 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ nextElement()

bool GNEFrameModules::OverlappedInspection::nextElement ( const Position clickedPosition)

try to go to next element if clicked position is near to saved position

Definition at line 2068 of file GNEFrameModules.cpp.

Referenced by GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), and GNEInspectorFrame::processNetworkSupermodeClick().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

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

◆ onCmdListItemSelected()

long GNEFrameModules::OverlappedInspection::onCmdListItemSelected ( FXObject *  ,
FXSelector  ,
void *   
)

called when a list item is selected

Definition at line 2171 of file GNEFrameModules.cpp.

References toString().

◆ onCmdLoadButton()

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

load contents

Definition at line 123 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::loadContents().

◆ onCmdNextElement()

long GNEFrameModules::OverlappedInspection::onCmdNextElement ( FXObject *  ,
FXSelector  ,
void *   
)

Inspect next Element (from top to bot)

Definition at line 2130 of file GNEFrameModules.cpp.

References toString().

◆ onCmdOverlappingHelp()

long GNEFrameModules::OverlappedInspection::onCmdOverlappingHelp ( FXObject *  ,
FXSelector  ,
void *   
)

Called when user press the help button.

Definition at line 2189 of file GNEFrameModules.cpp.

References ACCEPT, GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, and GUIDesignLabelFrameInformation.

◆ onCmdPreviousElement()

long GNEFrameModules::OverlappedInspection::onCmdPreviousElement ( FXObject *  ,
FXSelector  ,
void *   
)

Inspect previous element (from top to bot)

Definition at line 2104 of file GNEFrameModules.cpp.

References toString().

◆ onCmdSaveButton()

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

save contents

Definition at line 117 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::saveContents().

◆ onCmdShowList()

long GNEFrameModules::OverlappedInspection::onCmdShowList ( FXObject *  ,
FXSelector  ,
void *   
)

show list of overlapped elements

Definition at line 2152 of file GNEFrameModules.cpp.

◆ onPaint()

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

draw FXGroupBoxModule

Definition at line 88 of file FXGroupBoxModule.cpp.

◆ overlappedInspectionShown()

bool GNEFrameModules::OverlappedInspection::overlappedInspectionShown ( ) const

check if overlappedInspection modul is shown

Definition at line 2049 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::openObjectDialogAtCursor().

Here is the caller graph for this function:

◆ previousElement()

bool GNEFrameModules::OverlappedInspection::previousElement ( const Position clickedPosition)

try to go to previous element if clicked position is near to saved position

Definition at line 2086 of file GNEFrameModules.cpp.

Referenced by GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), and GNEInspectorFrame::processNetworkSupermodeClick().

Here is the caller graph for this function:

◆ saveContents()

bool FXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixDemandElements::FixOptions.

Definition at line 135 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 76 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myLabel.

Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ showOverlappedInspection()

void GNEFrameModules::OverlappedInspection::showOverlappedInspection ( const GNEViewNetHelper::ObjectsUnderCursor objectsUnderCursor,
const Position clickedPosition 
)

show template editor

Definition at line 1990 of file GNEFrameModules.cpp.

References GNEViewNetHelper::ObjectsUnderCursor::getClickedAttributeCarriers(), SUMO_TAG_NOTHING, and toString().

Referenced by GNETLSEditorFrame::editTLS(), and GNEInspectorFrame::inspectClickedElement().

Here is the caller graph for this function:

◆ toogleSaveButton()

void FXGroupBoxModule::toogleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 149 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::mySaveButton.

Field Documentation

◆ myCollapsableFrame

FXVerticalFrame* FXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 81 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapseButton

FXButton* FXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 87 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapsed

bool FXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 96 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myCurrentIndexButton

FXButton* GNEFrameModules::OverlappedInspection::myCurrentIndexButton
private

Button for current index.

Definition at line 514 of file GNEFrameModules.h.

◆ myFilteredTag

const SumoXMLTag GNEFrameModules::OverlappedInspection::myFilteredTag
private

filtered tag

Definition at line 526 of file GNEFrameModules.h.

◆ myFrameParent

GNEFrame* GNEFrameModules::OverlappedInspection::myFrameParent
private

current frame parent

Definition at line 508 of file GNEFrameModules.h.

◆ myHelpButton

FXButton* GNEFrameModules::OverlappedInspection::myHelpButton
private

button for help

Definition at line 523 of file GNEFrameModules.h.

◆ myItemIndex

size_t GNEFrameModules::OverlappedInspection::myItemIndex
private

current index item

Definition at line 532 of file GNEFrameModules.h.

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable FXGroupBoxModule

Definition at line 84 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::setText().

◆ myLoadButton

FXButton* FXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 93 of file FXGroupBoxModule.h.

◆ myNextElement

FXButton* GNEFrameModules::OverlappedInspection::myNextElement
private

Next element button.

Definition at line 517 of file GNEFrameModules.h.

◆ myOptions

const int FXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 78 of file FXGroupBoxModule.h.

◆ myOverlappedACs

std::vector<GNEAttributeCarrier*> GNEFrameModules::OverlappedInspection::myOverlappedACs
private

objects under cursor

Definition at line 529 of file GNEFrameModules.h.

◆ myOverlappedElementList

FXList* GNEFrameModules::OverlappedInspection::myOverlappedElementList
private

list of overlapped elements

Definition at line 520 of file GNEFrameModules.h.

◆ myPreviousElement

FXButton* GNEFrameModules::OverlappedInspection::myPreviousElement
private

Previous element button.

Definition at line 511 of file GNEFrameModules.h.

◆ mySaveButton

FXButton* FXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 90 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::toogleSaveButton().

◆ mySavedClickedPosition

Position GNEFrameModules::OverlappedInspection::mySavedClickedPosition
private

saved clicked position

Definition at line 535 of file GNEFrameModules.h.


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