Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GNEAttributesEditor Class Reference

#include <GNEAttributesEditor.h>

Collaboration diagram for GNEAttributesEditor:
[legend]

Public Member Functions

bool checkAttributes (const bool showWarning)
 check if current edited attributes are valid
 
void disableAttributesEditor ()
 disable attribute editor
 
SumoXMLAttr fillSumoBaseObject (CommonXMLStructure::SumoBaseObject *baseObject) const
 fill sumo Base object
 
 GNEAttributesEditor (GNEFrame *frameParent, GNEAttributesEditorType::EditorType editorType)
 constructor
 
void hideAttributesEditor ()
 hide attribute editor
 
void refreshAttributesEditor ()
 refresh attribute editor
 
void showAttributesEditor (const std::unordered_set< GNEAttributeCarrier * > &ACs, const bool primaryAttributeEditor)
 edit attributes of the given hash of ACs (usually the inspected ACs)
 
void showAttributesEditor (GNEAttributeCarrier *AC, const bool primaryAttributeEditor)
 edit attributes of the given AC (usually the edited template AC)
 
Functions related with selecting parents (only affect the Netedit Attributes editor)

check if we're selecting a parent clicking over view

bool isReparenting () const
 
bool checkNewParent (const GNEAttributeCarrier *AC) const
 check if the given AC can be a new parent
 
void setNewParent (const GNEAttributeCarrier *AC)
 set new parent
 
void abortReparenting ()
 abort selecting parent
 

Protected Attributes

GNEAttributesEditorTypemyBasicAttributesEditor = nullptr
 basic attributes editor
 
GNEAttributesEditorTypemyExtendedAttributesEditor = nullptr
 extended attributes editor
 
GNEAttributesEditorTypemyFlowAttributesEditor = nullptr
 flow attributes editor
 
GNEAttributesEditorTypemyGeoAttributesEditor = nullptr
 geo attributes editor
 
GNEAttributesEditorTypemyNeteditAttributesEditor = nullptr
 netedit attributes editor
 
GNEAttributesEditorTypemyParametersAttributesEditor = nullptr
 parameteres attributes editor
 

Private Member Functions

 GNEAttributesEditor (GNEAttributesEditor *)=delete
 Invalidated copy constructor.
 
GNEAttributesEditoroperator= (GNEAttributesEditor *)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 29 of file GNEAttributesEditor.h.

Constructor & Destructor Documentation

◆ GNEAttributesEditor() [1/2]

◆ GNEAttributesEditor() [2/2]

GNEAttributesEditor::GNEAttributesEditor ( GNEAttributesEditor )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ abortReparenting()

void GNEAttributesEditor::abortReparenting ( )

abort selecting parent

Definition at line 176 of file GNEAttributesEditor.cpp.

References GNEAttributesEditorType::abortReparenting(), and myNeteditAttributesEditor.

Referenced by GNEApplicationWindow::onCmdAbort(), and GNEInspectorFrame::show().

Here is the caller graph for this function:

◆ checkAttributes()

◆ checkNewParent()

bool GNEAttributesEditor::checkNewParent ( const GNEAttributeCarrier AC) const

check if the given AC can be a new parent

Definition at line 164 of file GNEAttributesEditor.cpp.

References GNEAttributesEditorType::checkNewParent(), and myNeteditAttributesEditor.

Referenced by GNEAdditional::checkDrawRelatedContour().

Here is the caller graph for this function:

◆ disableAttributesEditor()

◆ fillSumoBaseObject()

◆ hideAttributesEditor()

◆ isReparenting()

bool GNEAttributesEditor::isReparenting ( ) const

Definition at line 158 of file GNEAttributesEditor.cpp.

References GNEAttributesEditorType::isReparenting(), and myNeteditAttributesEditor.

Referenced by GNEAdditional::checkDrawToContour(), GNEApplicationWindow::onCmdAbort(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ operator=()

GNEAttributesEditor & GNEAttributesEditor::operator= ( GNEAttributesEditor )
privatedelete

Invalidated assignment operator.

◆ refreshAttributesEditor()

◆ setNewParent()

void GNEAttributesEditor::setNewParent ( const GNEAttributeCarrier AC)

set new parent

Definition at line 170 of file GNEAttributesEditor.cpp.

References myNeteditAttributesEditor, and GNEAttributesEditorType::setNewParent().

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ showAttributesEditor() [1/2]

void GNEAttributesEditor::showAttributesEditor ( const std::unordered_set< GNEAttributeCarrier * > &  ACs,
const bool  primaryAttributeEditor 
)

◆ showAttributesEditor() [2/2]

Field Documentation

◆ myBasicAttributesEditor

GNEAttributesEditorType* GNEAttributesEditor::myBasicAttributesEditor = nullptr
protected

◆ myExtendedAttributesEditor

GNEAttributesEditorType* GNEAttributesEditor::myExtendedAttributesEditor = nullptr
protected

◆ myFlowAttributesEditor

GNEAttributesEditorType* GNEAttributesEditor::myFlowAttributesEditor = nullptr
protected

◆ myGeoAttributesEditor

GNEAttributesEditorType* GNEAttributesEditor::myGeoAttributesEditor = nullptr
protected

◆ myNeteditAttributesEditor

◆ myParametersAttributesEditor

GNEAttributesEditorType* GNEAttributesEditor::myParametersAttributesEditor = nullptr
protected

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