Eclipse SUMO - Simulation of Urban MObility
GNEFrameAttributesModuls::AttributesCreator Class Reference

#include <GNEFrameAttributesModuls.h>

Inheritance diagram for GNEFrameAttributesModuls::AttributesCreator:
[legend]
Collaboration diagram for GNEFrameAttributesModuls::AttributesCreator:
[legend]

Public Member Functions

bool areValuesValid () const
 check if parameters of attributes are valid More...
 
 AttributesCreator (GNEFrame *frameParent)
 constructor More...
 
std::map< SumoXMLAttr, std::string > getAttributesAndValues (bool includeAll) const
 get attributes and their values More...
 
GNETagProperties getCurrentTagProperties () const
 get current edited Tag Properties More...
 
GNEFrame * getFrameParent () const
 return frame parent More...
 
void hideAttributesCreatorModul ()
 hide group box More...
 
void refreshRows ()
 refresh rows (called after creating an element) More...
 
void showAttributesCreatorModul (const GNETagProperties &tagProperties, const std::vector< SumoXMLAttr > &hiddenAttributes)
 show AttributesCreator modul More...
 
void showWarningMessage (std::string extra="") const
 show warning message with information about non-valid attributes More...
 
 ~AttributesCreator ()
 destructor More...
 
FOX-callbacks

Called when help button is pressed

long onCmdHelp (FXObject *, FXSelector, void *)
 

Protected Member Functions

 FOX_CONSTRUCTOR (AttributesCreator)
 

Private Attributes

AttributesCreatorFlow * myAttributesCreatorFlow = nullptr
 pointer to myAttributesCreatorFlow More...
 
std::vector< AttributesCreatorRow * > myAttributesCreatorRows
 vector with the AttributesCreatorRow More...
 
GNEFrame * myFrameParent = nullptr
 pointer to Frame Parent More...
 
FXButton * myHelpButton = nullptr
 help button More...
 
GNETagProperties myTagProperties
 current edited Tag Properties More...
 

Friends

class Row
 FOX-declaration. More...
 

Detailed Description

Definition at line 148 of file GNEFrameAttributesModuls.h.

Constructor & Destructor Documentation

◆ AttributesCreator()

GNEFrameAttributesModuls::AttributesCreator::AttributesCreator ( GNEFrame *  frameParent)

◆ ~AttributesCreator()

GNEFrameAttributesModuls::AttributesCreator::~AttributesCreator ( )

destructor

Definition at line 604 of file GNEFrameAttributesModuls.cpp.

Member Function Documentation

◆ areValuesValid()

bool GNEFrameAttributesModuls::AttributesCreator::areValuesValid ( ) const

check if parameters of attributes are valid

Definition at line 744 of file GNEFrameAttributesModuls.cpp.

Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().

Here is the caller graph for this function:

◆ FOX_CONSTRUCTOR()

GNEFrameAttributesModuls::AttributesCreator::FOX_CONSTRUCTOR ( AttributesCreator  )
protected

◆ getAttributesAndValues()

std::map< SumoXMLAttr, std::string > GNEFrameAttributesModuls::AttributesCreator::getAttributesAndValues ( bool  includeAll) const

get attributes and their values

Definition at line 684 of file GNEFrameAttributesModuls.cpp.

References SUMO_ATTR_NOTHING.

Referenced by GNEAdditionalFrame::addAdditional(), GNEVehicleFrame::addVehicle(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().

Here is the caller graph for this function:

◆ getCurrentTagProperties()

GNETagProperties GNEFrameAttributesModuls::AttributesCreator::getCurrentTagProperties ( ) const

get current edited Tag Properties

Definition at line 711 of file GNEFrameAttributesModuls.cpp.

◆ getFrameParent()

GNEFrame * GNEFrameAttributesModuls::AttributesCreator::getFrameParent ( ) const

return frame parent

Definition at line 678 of file GNEFrameAttributesModuls.cpp.

◆ hideAttributesCreatorModul()

void GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul ( )

◆ onCmdHelp()

long GNEFrameAttributesModuls::AttributesCreator::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 765 of file GNEFrameAttributesModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ refreshRows()

void GNEFrameAttributesModuls::AttributesCreator::refreshRows ( )

◆ showAttributesCreatorModul()

void GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul ( const GNETagProperties &  tagProperties,
const std::vector< SumoXMLAttr > &  hiddenAttributes 
)

show AttributesCreator modul

Parameters
tagPropertiesGNETagProperties which contain all attributes
hiddenAttributeslist of attributes contained in tagProperties but not shown

Definition at line 608 of file GNEFrameAttributesModuls.cpp.

References DEMAND_VEHICLE, GNETagProperties::hasAttribute(), SUMO_ATTR_ID, SUMO_ATTR_PERSONSPERHOUR, SUMO_ATTR_TYPE, and SUMO_TAG_VAPORIZER.

Referenced by GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), and GNEPolygonFrame::tagSelected().

Here is the caller graph for this function:

◆ showWarningMessage()

void GNEFrameAttributesModuls::AttributesCreator::showWarningMessage ( std::string  extra = "") const

show warning message with information about non-valid attributes

Definition at line 717 of file GNEFrameAttributesModuls.cpp.

References WRITE_DEBUG.

Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalFrame::buildSlaveAdditional(), GNERouteFrame::createPath(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Row

friend class Row
friend

FOX-declaration.

Definition at line 153 of file GNEFrameAttributesModuls.h.

Field Documentation

◆ myAttributesCreatorFlow

AttributesCreatorFlow* GNEFrameAttributesModuls::AttributesCreator::myAttributesCreatorFlow = nullptr
private

pointer to myAttributesCreatorFlow

Definition at line 203 of file GNEFrameAttributesModuls.h.

Referenced by AttributesCreator().

◆ myAttributesCreatorRows

std::vector<AttributesCreatorRow*> GNEFrameAttributesModuls::AttributesCreator::myAttributesCreatorRows
private

vector with the AttributesCreatorRow

Definition at line 209 of file GNEFrameAttributesModuls.h.

Referenced by AttributesCreator().

◆ myFrameParent

GNEFrame* GNEFrameAttributesModuls::AttributesCreator::myFrameParent = nullptr
private

pointer to Frame Parent

Definition at line 200 of file GNEFrameAttributesModuls.h.

◆ myHelpButton

FXButton* GNEFrameAttributesModuls::AttributesCreator::myHelpButton = nullptr
private

help button

Definition at line 212 of file GNEFrameAttributesModuls.h.

Referenced by AttributesCreator().

◆ myTagProperties

GNETagProperties GNEFrameAttributesModuls::AttributesCreator::myTagProperties
private

current edited Tag Properties

Definition at line 206 of file GNEFrameAttributesModuls.h.


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