![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEAttributesEditor.h>
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 | |
GNEAttributesEditorType * | myBasicAttributesEditor = nullptr |
basic attributes editor | |
GNEAttributesEditorType * | myExtendedAttributesEditor = nullptr |
extended attributes editor | |
GNEAttributesEditorType * | myFlowAttributesEditor = nullptr |
flow attributes editor | |
GNEAttributesEditorType * | myGeoAttributesEditor = nullptr |
geo attributes editor | |
GNEAttributesEditorType * | myNeteditAttributesEditor = nullptr |
netedit attributes editor | |
GNEAttributesEditorType * | myParametersAttributesEditor = nullptr |
parameteres attributes editor | |
Private Member Functions | |
GNEAttributesEditor (GNEAttributesEditor *)=delete | |
Invalidated copy constructor. | |
GNEAttributesEditor & | operator= (GNEAttributesEditor *)=delete |
Invalidated assignment operator. | |
Definition at line 29 of file GNEAttributesEditor.h.
GNEAttributesEditor::GNEAttributesEditor | ( | GNEFrame * | frameParent, |
GNEAttributesEditorType::EditorType | editorType | ||
) |
constructor
Definition at line 30 of file GNEAttributesEditor.cpp.
References GNEAttributesEditorType::BASIC, GNEAttributesEditorType::EXTENDED, GNEAttributesEditorType::FLOW, GNEAttributesEditorType::GEO, myBasicAttributesEditor, myExtendedAttributesEditor, myFlowAttributesEditor, myGeoAttributesEditor, myNeteditAttributesEditor, myParametersAttributesEditor, GNEAttributesEditorType::NETEDIT, GNEAttributesEditorType::PARAMETERS, and TL.
|
privatedelete |
Invalidated copy constructor.
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().
bool GNEAttributesEditor::checkAttributes | ( | const bool | showWarning | ) |
check if current edited attributes are valid
Definition at line 96 of file GNEAttributesEditor.cpp.
References GNEAttributesEditorType::checkAttributes(), myBasicAttributesEditor, myExtendedAttributesEditor, myFlowAttributesEditor, myGeoAttributesEditor, myNeteditAttributesEditor, and myParametersAttributesEditor.
Referenced by GNEAdditionalFrame::addAdditional(), GNEEdgeDataFrame::addEdgeData(), GNEWireFrame::addWire(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNEEdgeRelDataFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEStopFrame::getStopParameter(), GNECreateEdgeFrame::processClick(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().
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().
void GNEAttributesEditor::disableAttributesEditor | ( | ) |
disable attribute editor
Definition at line 85 of file GNEAttributesEditor.cpp.
References GNEAttributesEditorType::disableAttributesEditor(), myBasicAttributesEditor, myExtendedAttributesEditor, myFlowAttributesEditor, myGeoAttributesEditor, myNeteditAttributesEditor, and myParametersAttributesEditor.
SumoXMLAttr GNEAttributesEditor::fillSumoBaseObject | ( | CommonXMLStructure::SumoBaseObject * | baseObject | ) | const |
fill sumo Base object
Definition at line 116 of file GNEAttributesEditor.cpp.
References GNEAttributesEditorType::fillSumoBaseObject(), GNEAttributesEditorType::getEditedAttributeCarriers(), myBasicAttributesEditor, myExtendedAttributesEditor, myFlowAttributesEditor, myGeoAttributesEditor, myNeteditAttributesEditor, myParametersAttributesEditor, SUMO_ATTR_DEFAULT, and SUMO_ATTR_NOTHING.
Referenced by GNEAdditionalFrame::addAdditional(), GNEEdgeDataFrame::addEdgeData(), GNEWireFrame::addWire(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEStopFrame::getStopParameter(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().
void GNEAttributesEditor::hideAttributesEditor | ( | ) |
hide attribute editor
Definition at line 63 of file GNEAttributesEditor.cpp.
References GNEAttributesEditorType::hideAttributesEditor(), myBasicAttributesEditor, myExtendedAttributesEditor, myFlowAttributesEditor, myGeoAttributesEditor, myNeteditAttributesEditor, and myParametersAttributesEditor.
Referenced by GNEContainerFrame::demandElementSelected(), GNEContainerPlanFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEContainerFrame::tagSelected(), GNEContainerPlanFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNEShapeFrame::tagSelected(), and GNEWireFrame::tagSelected().
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().
|
privatedelete |
Invalidated assignment operator.
void GNEAttributesEditor::refreshAttributesEditor | ( | ) |
refresh attribute editor
Definition at line 74 of file GNEAttributesEditor.cpp.
References myBasicAttributesEditor, myExtendedAttributesEditor, myFlowAttributesEditor, myGeoAttributesEditor, myNeteditAttributesEditor, myParametersAttributesEditor, and GNEAttributesEditorType::refreshAttributesEditor().
Referenced by GNEAdditionalFrame::addAdditional(), GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEWireFrame::createPath(), GNEStopFrame::getStopParameter(), GNEAttributesEditorType::onCmdAttributesEditorReset(), GNEApplicationWindow::onCmdToggleTimeFormat(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEEdgeType::setAttribute(), GNELaneType::setAttribute(), and GNEShapeFrame::shapeDrawed().
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().
void GNEAttributesEditor::showAttributesEditor | ( | const std::unordered_set< GNEAttributeCarrier * > & | ACs, |
const bool | primaryAttributeEditor | ||
) |
edit attributes of the given hash of ACs (usually the inspected ACs)
Definition at line 52 of file GNEAttributesEditor.cpp.
References myBasicAttributesEditor, myExtendedAttributesEditor, myFlowAttributesEditor, myGeoAttributesEditor, myNeteditAttributesEditor, myParametersAttributesEditor, and GNEAttributesEditorType::showAttributesEditor().
void GNEAttributesEditor::showAttributesEditor | ( | GNEAttributeCarrier * | AC, |
const bool | primaryAttributeEditor | ||
) |
edit attributes of the given AC (usually the edited template AC)
Definition at line 41 of file GNEAttributesEditor.cpp.
References myBasicAttributesEditor, myExtendedAttributesEditor, myFlowAttributesEditor, myGeoAttributesEditor, myNeteditAttributesEditor, myParametersAttributesEditor, and GNEAttributesEditorType::showAttributesEditor().
Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEInspectorFrame::refreshInspection(), GNETypeFrame::show(), GNEContainerFrame::tagSelected(), GNEContainerPlanFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNEShapeFrame::tagSelected(), and GNEWireFrame::tagSelected().
|
protected |
basic attributes editor
Definition at line 74 of file GNEAttributesEditor.h.
Referenced by checkAttributes(), disableAttributesEditor(), fillSumoBaseObject(), GNEAttributesEditor(), hideAttributesEditor(), refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().
|
protected |
extended attributes editor
Definition at line 77 of file GNEAttributesEditor.h.
Referenced by checkAttributes(), disableAttributesEditor(), fillSumoBaseObject(), GNEAttributesEditor(), hideAttributesEditor(), refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().
|
protected |
flow attributes editor
Definition at line 80 of file GNEAttributesEditor.h.
Referenced by checkAttributes(), disableAttributesEditor(), fillSumoBaseObject(), GNEAttributesEditor(), hideAttributesEditor(), refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().
|
protected |
geo attributes editor
Definition at line 83 of file GNEAttributesEditor.h.
Referenced by checkAttributes(), disableAttributesEditor(), fillSumoBaseObject(), GNEAttributesEditor(), hideAttributesEditor(), refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().
|
protected |
netedit attributes editor
Definition at line 89 of file GNEAttributesEditor.h.
Referenced by abortReparenting(), checkAttributes(), checkNewParent(), disableAttributesEditor(), fillSumoBaseObject(), GNEAttributesEditor(), hideAttributesEditor(), isReparenting(), refreshAttributesEditor(), setNewParent(), showAttributesEditor(), and showAttributesEditor().
|
protected |
parameteres attributes editor
Definition at line 86 of file GNEAttributesEditor.h.
Referenced by checkAttributes(), disableAttributesEditor(), fillSumoBaseObject(), GNEAttributesEditor(), hideAttributesEditor(), refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().