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

#include <GNENeteditAttributes.h>

Inheritance diagram for GNENeteditAttributes:
[legend]
Collaboration diagram for GNENeteditAttributes:
[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)
 
bool getNeteditAttributesAndValues (CommonXMLStructure::SumoBaseObject *baseObject, const GNELane *lane) const
 fill valuesMap with netedit attributes
 
 GNENeteditAttributes (GNEFrame *frameParent)
 FOX-declaration.
 
void hideNeteditAttributesModule ()
 hide Netedit attributes modul
 
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 MFXGroupBoxModule
 
long onUpdResetButton (FXObject *, FXSelector, void *)
 update reset GroupBoxModule
 
void setText (const std::string &text)
 set text
 
void showNeteditAttributesModule (GNEAttributeCarrier *templateAC)
 show Netedit attributes modul
 
 ~GNENeteditAttributes ()
 destructor
 
FOX-callbacks

Called when user changes some element of GNENeteditAttributes

long onCmdSetNeteditAttribute (FXObject *, FXSelector, void *)
 
long onCmdHelp (FXObject *, FXSelector, void *)
 Called when user press the help button.
 

Protected Member Functions

virtual bool loadContents () const
 load contents (can be reimplemented in children)
 
virtual bool saveContents () const
 save contents (can be reimplemented in children)
 
void toggleSaveButton (const bool value)
 enable or disable save buttons
 

Private Types

enum class  AdditionalReferencePoint { LEFT , RIGHT , CENTER , INVALID }
 list of the reference points More...
 

Private Member Functions

double setEndPosition (double positionOfTheMouseOverLane, double lengthOfAdditional) const
 obtain the End position values of StoppingPlaces and E2 detector over the lane
 
double setStartPosition (double positionOfTheMouseOverLane, double lengthOfAdditional) const
 obtain the Start position values of StoppingPlaces and E2 detector over the lane
 

Private Attributes

FXButton * helpReferencePoint
 Button for help about the reference point.
 
AdditionalReferencePoint myActualAdditionalReferencePoint
 actual additional reference point selected in the match Box
 
FXCheckButton * myCenterViewAfterCreationButton
 checkbox to enable/disable center element after creation
 
FXHorizontalFrame * myCenterViewAfterCreationFrame
 horizontal frame for center view after creation frame
 
FXCheckButton * myCloseShapeCheckButton
 checkbox to enable/disable close polygon
 
FXHorizontalFrame * myCloseShapeFrame
 horizontal frame for close polygon
 
FXVerticalFrame * myCollapsableFrame = nullptr
 vertical collapsable frame
 
FXButton * myCollapseButton = nullptr
 button for collapse elements
 
bool myCollapsed
 flag to check if this groupbox is collapsed
 
bool myCurrentLengthValid
 Flag to check if current length is valid.
 
FXButton * myExtendButton = nullptr
 button for extend elements
 
GNEFramemyFrameParent
 pointer to frame parent
 
FXLabel * myLabel = nullptr
 label used in non collapsable MFXGroupBoxModule
 
FXHorizontalFrame * myLengthFrame
 horizontal frame for length
 
FXTextField * myLengthTextField
 textField for length
 
FXButton * myLoadButton = nullptr
 button for load elements
 
const int myOptions
 GroupBoxModule options.
 
FXComboBox * myReferencePointMatchBox
 match box with the list of reference points
 
FXButton * myResetWidthButton = nullptr
 button for reset frame width
 
FXButton * mySaveButton = nullptr
 button for save elements
 

Detailed Description

Definition at line 38 of file GNENeteditAttributes.h.

Member Enumeration Documentation

◆ AdditionalReferencePoint

list of the reference points

Enumerator
LEFT 
RIGHT 
CENTER 
INVALID 

Definition at line 72 of file GNENeteditAttributes.h.

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 37 of file MFXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ GNENeteditAttributes()

◆ ~GNENeteditAttributes()

GNENeteditAttributes::~GNENeteditAttributes ( )

destructor

Definition at line 80 of file GNENeteditAttributes.cpp.

Member Function Documentation

◆ getCollapsableFrame()

FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame ( )
inherited

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

Definition at line 118 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myCollapsableFrame.

Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEOverlappedInspection::buildFXElements(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEE2DetectorLegendModule::GNEE2DetectorLegendModule(), GNEOptionsDialog::GNEOptionsDialog(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), 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::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), 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::TLSPhases::TLSPhases(), GNETypeDistributionFrame::TypeAttributesEditor::TypeAttributesEditor(), GNETypeDistributionFrame::TypeDistributionSelector::TypeDistributionSelector(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getNeteditAttributesAndValues()

◆ hideNeteditAttributesModule()

void GNENeteditAttributes::hideNeteditAttributesModule ( )

hide Netedit attributes modul

Definition at line 121 of file GNENeteditAttributes.cpp.

Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEStopFrame::show(), GNEContainerFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNEShapeFrame::tagSelected(), and GNEWireFrame::tagSelected().

Here is the caller graph for this function:

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 226 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

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

collapse GroupBoxModule

Definition at line 137 of file MFXGroupBoxModule.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdExtendButton()

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

extends GroupBoxModule

Definition at line 153 of file MFXGroupBoxModule.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdHelp()

long GNENeteditAttributes::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

Called when user press the help button.

Definition at line 224 of file GNENeteditAttributes.cpp.

References ACCEPT, MFXGroupBoxModule::getCollapsableFrame(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignHorizontalSeparator, GUIDesignLabelFrameInformation, MODEADDITIONAL, TL, and WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

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

load contents

Definition at line 207 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetButton()

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

reset GroupBoxModule

Definition at line 179 of file MFXGroupBoxModule.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

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

save contents

Definition at line 201 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetNeteditAttribute()

long GNENeteditAttributes::onCmdSetNeteditAttribute ( FXObject *  obj,
FXSelector  ,
void *   
)

Definition at line 168 of file GNENeteditAttributes.cpp.

References CENTER, INVALID, LEFT, myActualAdditionalReferencePoint, myCenterViewAfterCreationButton, myCloseShapeCheckButton, myCurrentLengthValid, myLengthTextField, myReferencePointMatchBox, RIGHT, and TL.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

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

draw MFXGroupBoxModule

Definition at line 124 of file MFXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetButton()

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

update reset GroupBoxModule

Definition at line 188 of file MFXGroupBoxModule.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.

Definition at line 219 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setEndPosition()

double GNENeteditAttributes::setEndPosition ( double  positionOfTheMouseOverLane,
double  lengthOfAdditional 
) const
private

obtain the End position values of StoppingPlaces and E2 detector over the lane

Definition at line 281 of file GNENeteditAttributes.cpp.

References CENTER, LEFT, myActualAdditionalReferencePoint, and RIGHT.

Referenced by getNeteditAttributesAndValues().

Here is the caller graph for this function:

◆ setStartPosition()

double GNENeteditAttributes::setStartPosition ( double  positionOfTheMouseOverLane,
double  lengthOfAdditional 
) const
private

obtain the Start position values of StoppingPlaces and E2 detector over the lane

Definition at line 266 of file GNENeteditAttributes.cpp.

References CENTER, LEFT, myActualAdditionalReferencePoint, and RIGHT.

Referenced by getNeteditAttributesAndValues().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 112 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myLabel.

Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ showNeteditAttributesModule()

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 233 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::mySaveButton.

Field Documentation

◆ helpReferencePoint

FXButton* GNENeteditAttributes::helpReferencePoint
private

Button for help about the reference point.

Definition at line 110 of file GNENeteditAttributes.h.

◆ myActualAdditionalReferencePoint

AdditionalReferencePoint GNENeteditAttributes::myActualAdditionalReferencePoint
private

actual additional reference point selected in the match Box

Definition at line 116 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), onCmdSetNeteditAttribute(), setEndPosition(), and setStartPosition().

◆ myCenterViewAfterCreationButton

FXCheckButton* GNENeteditAttributes::myCenterViewAfterCreationButton
private

checkbox to enable/disable center element after creation

Definition at line 107 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().

◆ myCenterViewAfterCreationFrame

FXHorizontalFrame* GNENeteditAttributes::myCenterViewAfterCreationFrame
private

horizontal frame for center view after creation frame

Definition at line 104 of file GNENeteditAttributes.h.

Referenced by showNeteditAttributesModule().

◆ myCloseShapeCheckButton

FXCheckButton* GNENeteditAttributes::myCloseShapeCheckButton
private

checkbox to enable/disable close polygon

Definition at line 101 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().

◆ myCloseShapeFrame

FXHorizontalFrame* GNENeteditAttributes::myCloseShapeFrame
private

horizontal frame for close polygon

Definition at line 98 of file GNENeteditAttributes.h.

Referenced by showNeteditAttributesModule().

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 108 of file MFXGroupBoxModule.h.

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

◆ myCollapsed

bool MFXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 123 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::onCmdCollapseButton().

◆ myCurrentLengthValid

bool GNENeteditAttributes::myCurrentLengthValid
private

Flag to check if current length is valid.

Definition at line 113 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().

◆ myExtendButton

FXButton* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 111 of file MFXGroupBoxModule.h.

◆ myFrameParent

GNEFrame* GNENeteditAttributes::myFrameParent
private

pointer to frame parent

Definition at line 86 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues().

◆ myLabel

FXLabel* MFXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable MFXGroupBoxModule

Definition at line 105 of file MFXGroupBoxModule.h.

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

◆ myLengthFrame

FXHorizontalFrame* GNENeteditAttributes::myLengthFrame
private

horizontal frame for length

Definition at line 92 of file GNENeteditAttributes.h.

Referenced by showNeteditAttributesModule().

◆ myLengthTextField

FXTextField* GNENeteditAttributes::myLengthTextField
private

textField for length

Definition at line 95 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 120 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 96 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myReferencePointMatchBox

FXComboBox* GNENeteditAttributes::myReferencePointMatchBox
private

match box with the list of reference points

Definition at line 89 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), onCmdSetNeteditAttribute(), and showNeteditAttributesModule().

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 114 of file MFXGroupBoxModule.h.

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 117 of file MFXGroupBoxModule.h.

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


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