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

void drawLaneReference (const GNELane *lane) const
 draw lane reference
 
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
long onCmdSetNeteditAttribute (FXObject *, FXSelector, void *)
 Called when user changes some element of GNENeteditAttributes.
 
long onCmdHelp (FXObject *, FXSelector, void *)
 Called when user press the help button.
 

Protected Types

enum class  ReferencePoint {
  LEFT , RIGHT , CENTER , EXTENDEDLEFT ,
  EXTENDEDRIGHT , EXTENDED , INVALID
}
 FOX needs this. More...
 

Protected Member Functions

double getElementLength () const
 get element length
 
virtual bool loadContents () const
 load contents (can be reimplemented in children)
 
virtual bool saveContents () const
 save contents (can be reimplemented in children)
 
double setEndPosition (const double mouseOverLanePos, double elementLength, const double laneLength) const
 return the end position
 
double setStartPosition (const double mouseOverLanePos, double elementLength) const
 return the start position
 
void toggleSaveButton (const bool value)
 enable or disable save buttons
 

Protected Attributes

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
 
FXCheckButton * myForceLengthCheckButton
 checkbox to enable/disable force length
 
FXHorizontalFrame * myForceLengthFrame
 horizontal frame for force length
 
GNEFramemyFrameParent
 pointer to frame parent
 
FXHorizontalFrame * myLengthFrame
 horizontal frame for length
 
FXTextField * myLengthTextField
 textField for length
 
ReferencePoint myReferencePoint
 current reference point
 
MFXComboBoxIconmyReferencePointComboBox
 match box with the list of reference points
 
std::vector< std::pair< std::string, ReferencePoint > > myReferencePoints
 map with all references
 

Private Member Functions

 GNENeteditAttributes (GNENeteditAttributes *)=delete
 Invalidated copy constructor.
 
GNENeteditAttributesoperator= (GNENeteditAttributes *)=delete
 Invalidated assignment operator.
 

Private Attributes

FXVerticalFrame * myCollapsableFrame = nullptr
 vertical collapsable frame
 
FXButton * myCollapseButton = nullptr
 button for collapse elements
 
bool myCollapsed
 flag to check if this groupbox is collapsed
 
MFXButtonTooltipmyExtendButton = nullptr
 button for extend elements
 
FXLabel * myLabel = nullptr
 label used in non collapsable MFXGroupBoxModule
 
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
 

Detailed Description

Definition at line 38 of file GNENeteditAttributes.h.

Member Enumeration Documentation

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 38 of file MFXGroupBoxModule.h.

◆ ReferencePoint

FOX needs this.

list of the reference points

Enumerator
LEFT 
RIGHT 
CENTER 
EXTENDEDLEFT 
EXTENDEDRIGHT 
EXTENDED 
INVALID 

Definition at line 77 of file GNENeteditAttributes.h.

Constructor & Destructor Documentation

◆ GNENeteditAttributes() [1/2]

◆ ~GNENeteditAttributes()

GNENeteditAttributes::~GNENeteditAttributes ( )

destructor

Definition at line 91 of file GNENeteditAttributes.cpp.

◆ GNENeteditAttributes() [2/2]

GNENeteditAttributes::GNENeteditAttributes ( GNENeteditAttributes )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ drawLaneReference()

◆ getCollapsableFrame()

FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame ( )
inherited

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

Definition at line 123 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myCollapsableFrame.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEOptionsDialog::GNEOptionsDialog(), 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::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(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getElementLength()

double GNENeteditAttributes::getElementLength ( ) const
protected

get element length

Definition at line 421 of file GNENeteditAttributes.cpp.

References INVALID_DOUBLE, and myLengthTextField.

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

Here is the caller graph for this function:

◆ getNeteditAttributesAndValues()

bool GNENeteditAttributes::getNeteditAttributesAndValues ( CommonXMLStructure::SumoBaseObject baseObject,
const GNELane lane 
) const

◆ hideNeteditAttributesModule()

void GNENeteditAttributes::hideNeteditAttributesModule ( )

hide Netedit attributes modul

Definition at line 134 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 231 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 142 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 158 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 373 of file GNENeteditAttributes.cpp.

References ACCEPT, GUIDesigns::buildFXButton(), 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 212 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 184 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 206 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 *   
)

Called when user changes some element of GNENeteditAttributes.

Definition at line 291 of file GNENeteditAttributes.cpp.

References CENTER, getElementLength(), MFXComboBoxIcon::getText(), INVALID, INVALID_DOUBLE, LEFT, myCenterViewAfterCreationButton, myCloseShapeCheckButton, myForceLengthCheckButton, myForceLengthFrame, myLengthTextField, myReferencePoint, myReferencePointComboBox, myReferencePoints, RIGHT, MFXComboBoxIcon::setBackColor(), MFXComboBoxIcon::setTextColor(), 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 129 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 193 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:

◆ operator=()

GNENeteditAttributes & GNENeteditAttributes::operator= ( GNENeteditAttributes )
privatedelete

Invalidated assignment operator.

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

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

Definition at line 224 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setEndPosition()

double GNENeteditAttributes::setEndPosition ( const double  mouseOverLanePos,
double  elementLength,
const double  laneLength 
) const
protected

return the end position

Definition at line 465 of file GNENeteditAttributes.cpp.

References CENTER, EXTENDED, EXTENDEDLEFT, EXTENDEDRIGHT, INVALID_DOUBLE, LEFT, myReferencePoint, and RIGHT.

Referenced by drawLaneReference(), and getNeteditAttributesAndValues().

Here is the caller graph for this function:

◆ setStartPosition()

double GNENeteditAttributes::setStartPosition ( const double  mouseOverLanePos,
double  elementLength 
) const
protected

return the start position

Definition at line 436 of file GNENeteditAttributes.cpp.

References CENTER, EXTENDED, EXTENDEDLEFT, EXTENDEDRIGHT, INVALID_DOUBLE, LEFT, myReferencePoint, and RIGHT.

Referenced by drawLaneReference(), and getNeteditAttributesAndValues().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 117 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myLabel.

Referenced by GNETLSEditorFrame::TLSDefinition::onCmdDefSwitchTLSProgram(), 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 238 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::mySaveButton.

Field Documentation

◆ myCenterViewAfterCreationButton

FXCheckButton* GNENeteditAttributes::myCenterViewAfterCreationButton
protected

checkbox to enable/disable center element after creation

Definition at line 115 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().

◆ myCenterViewAfterCreationFrame

FXHorizontalFrame* GNENeteditAttributes::myCenterViewAfterCreationFrame
protected

horizontal frame for center view after creation frame

Definition at line 112 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), and showNeteditAttributesModule().

◆ myCloseShapeCheckButton

FXCheckButton* GNENeteditAttributes::myCloseShapeCheckButton
protected

checkbox to enable/disable close polygon

Definition at line 109 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().

◆ myCloseShapeFrame

FXHorizontalFrame* GNENeteditAttributes::myCloseShapeFrame
protected

horizontal frame for close polygon

Definition at line 106 of file GNENeteditAttributes.h.

Referenced by getNeteditAttributesAndValues(), and showNeteditAttributesModule().

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 109 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 124 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::onCmdCollapseButton().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

◆ myForceLengthCheckButton

FXCheckButton* GNENeteditAttributes::myForceLengthCheckButton
protected

checkbox to enable/disable force length

Definition at line 103 of file GNENeteditAttributes.h.

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

◆ myForceLengthFrame

FXHorizontalFrame* GNENeteditAttributes::myForceLengthFrame
protected

horizontal frame for force length

Definition at line 100 of file GNENeteditAttributes.h.

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

◆ myFrameParent

GNEFrame* GNENeteditAttributes::myFrameParent
protected

pointer to frame parent

Definition at line 88 of file GNENeteditAttributes.h.

Referenced by drawLaneReference(), and getNeteditAttributesAndValues().

◆ myLabel

FXLabel* MFXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable MFXGroupBoxModule

Definition at line 106 of file MFXGroupBoxModule.h.

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

◆ myLengthFrame

FXHorizontalFrame* GNENeteditAttributes::myLengthFrame
protected

horizontal frame for length

Definition at line 94 of file GNENeteditAttributes.h.

Referenced by showNeteditAttributesModule().

◆ myLengthTextField

FXTextField* GNENeteditAttributes::myLengthTextField
protected

textField for length

Definition at line 97 of file GNENeteditAttributes.h.

Referenced by getElementLength(), and onCmdSetNeteditAttribute().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myReferencePoint

ReferencePoint GNENeteditAttributes::myReferencePoint
protected

◆ myReferencePointComboBox

MFXComboBoxIcon* GNENeteditAttributes::myReferencePointComboBox
protected

match box with the list of reference points

Definition at line 91 of file GNENeteditAttributes.h.

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

◆ myReferencePoints

std::vector<std::pair<std::string, ReferencePoint> > GNENeteditAttributes::myReferencePoints
protected

map with all references

Definition at line 121 of file GNENeteditAttributes.h.

Referenced by onCmdSetNeteditAttribute().

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

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


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