SUMO - Simulation of Urban MObility
GNEPolygonFrame::ShapeAttributes Class Reference

#include <GNEPolygonFrame.h>

Inheritance diagram for GNEPolygonFrame::ShapeAttributes:
Inheritance graph
Collaboration diagram for GNEPolygonFrame::ShapeAttributes:
Collaboration graph

Public Member Functions

void addAttribute (SumoXMLTag shapeTag, SumoXMLAttr ShapeAttributeSingle)
 add attribute More...
 
bool areValuesValid () const
 check if parameters of attributes are valid More...
 
void clearAttributes ()
 clear attributes More...
 
std::map< SumoXMLAttr, std::string > getAttributesAndValues () const
 get attributes and their values More...
 
int getNumberOfAddedAttributes () const
 get number of added attributes More...
 
void hideShapeParameters ()
 hide group box More...
 
 ShapeAttributes (GNEViewNet *viewNet, FXComposite *parent)
 FOX-declaration. More...
 
void showShapeParameters ()
 show group box More...
 
void showWarningMessage (std::string extra="") const
 show warning message with information about non-valid attributes More...
 
 ~ShapeAttributes ()
 destructor More...
 
FOX-callbacks

Called when help button is pressed

long onCmdHelp (FXObject *, FXSelector, void *)
 

Protected Member Functions

 ShapeAttributes ()
 FOX needs this. More...
 

Private Attributes

FXButton * helpShape
 button for help More...
 
int maxNumberOfListParameters
 max number of parameters (Defined in constructor) More...
 
int maxNumberOfParameters
 max number of parameters (Defined in constructor) More...
 
int myIndexParameter
 Index for myVectorOfsingleShapeParameter. More...
 
int myIndexParameterList
 index for myIndexParameterList More...
 
SumoXMLTag myShapeTag
 current shape tag More...
 
std::vector< ShapeAttributeSingle * > myVectorOfsingleShapeParameter
 vector with the shape parameters More...
 
GNEViewNetmyViewNet
 pointer to viewNet More...
 

Detailed Description

Definition at line 157 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

◆ ShapeAttributes() [1/2]

GNEPolygonFrame::ShapeAttributes::ShapeAttributes ( GNEViewNet viewNet,
FXComposite *  parent 
)

FOX-declaration.

constructor

Definition at line 642 of file GNEPolygonFrame.cpp.

References GUIDesignButtonRectangular, helpShape, maxNumberOfParameters, MID_HELP, and myVectorOfsingleShapeParameter.

◆ ~ShapeAttributes()

GNEPolygonFrame::ShapeAttributes::~ShapeAttributes ( )

destructor

Definition at line 660 of file GNEPolygonFrame.cpp.

◆ ShapeAttributes() [2/2]

GNEPolygonFrame::ShapeAttributes::ShapeAttributes ( )
inlineprotected

FOX needs this.

Definition at line 200 of file GNEPolygonFrame.h.

Member Function Documentation

◆ addAttribute()

◆ areValuesValid()

bool GNEPolygonFrame::ShapeAttributes::areValuesValid ( ) const

check if parameters of attributes are valid

Definition at line 757 of file GNEPolygonFrame.cpp.

References myIndexParameter, and myVectorOfsingleShapeParameter.

Referenced by GNEPolygonFrame::buildPoly(), and GNEPolygonFrame::processClick().

◆ clearAttributes()

void GNEPolygonFrame::ShapeAttributes::clearAttributes ( )

◆ getAttributesAndValues()

std::map< SumoXMLAttr, std::string > GNEPolygonFrame::ShapeAttributes::getAttributesAndValues ( ) const

get attributes and their values

Definition at line 719 of file GNEPolygonFrame.cpp.

References myIndexParameter, and myVectorOfsingleShapeParameter.

Referenced by GNEPolygonFrame::buildPoly(), and GNEPolygonFrame::processClick().

◆ getNumberOfAddedAttributes()

int GNEPolygonFrame::ShapeAttributes::getNumberOfAddedAttributes ( ) const

get number of added attributes

Definition at line 770 of file GNEPolygonFrame.cpp.

References myIndexParameter, and myIndexParameterList.

Referenced by GNEPolygonFrame::setParametersOfShape().

◆ hideShapeParameters()

void GNEPolygonFrame::ShapeAttributes::hideShapeParameters ( )

hide group box

Definition at line 713 of file GNEPolygonFrame.cpp.

References GNEFrame::hide().

Referenced by GNEPolygonFrame::setParametersOfShape().

◆ onCmdHelp()

◆ showShapeParameters()

void GNEPolygonFrame::ShapeAttributes::showShapeParameters ( )

show group box

Definition at line 706 of file GNEPolygonFrame.cpp.

References GNEPolygonFrame::show().

Referenced by GNEPolygonFrame::setParametersOfShape().

◆ showWarningMessage()

void GNEPolygonFrame::ShapeAttributes::showWarningMessage ( std::string  extra = "") const

Field Documentation

◆ helpShape

FXButton* GNEPolygonFrame::ShapeAttributes::helpShape
private

button for help

Definition at line 225 of file GNEPolygonFrame.h.

Referenced by ShapeAttributes().

◆ maxNumberOfListParameters

int GNEPolygonFrame::ShapeAttributes::maxNumberOfListParameters
private

max number of parameters (Defined in constructor)

Definition at line 222 of file GNEPolygonFrame.h.

◆ maxNumberOfParameters

int GNEPolygonFrame::ShapeAttributes::maxNumberOfParameters
private

max number of parameters (Defined in constructor)

Definition at line 219 of file GNEPolygonFrame.h.

Referenced by addAttribute(), clearAttributes(), and ShapeAttributes().

◆ myIndexParameter

int GNEPolygonFrame::ShapeAttributes::myIndexParameter
private

Index for myVectorOfsingleShapeParameter.

Definition at line 213 of file GNEPolygonFrame.h.

Referenced by addAttribute(), areValuesValid(), clearAttributes(), getAttributesAndValues(), getNumberOfAddedAttributes(), onCmdHelp(), and showWarningMessage().

◆ myIndexParameterList

int GNEPolygonFrame::ShapeAttributes::myIndexParameterList
private

index for myIndexParameterList

Definition at line 216 of file GNEPolygonFrame.h.

Referenced by clearAttributes(), getNumberOfAddedAttributes(), and onCmdHelp().

◆ myShapeTag

SumoXMLTag GNEPolygonFrame::ShapeAttributes::myShapeTag
private

current shape tag

Definition at line 207 of file GNEPolygonFrame.h.

Referenced by addAttribute(), onCmdHelp(), and showWarningMessage().

◆ myVectorOfsingleShapeParameter

std::vector<ShapeAttributeSingle*> GNEPolygonFrame::ShapeAttributes::myVectorOfsingleShapeParameter
private

vector with the shape parameters

Definition at line 210 of file GNEPolygonFrame.h.

Referenced by addAttribute(), areValuesValid(), clearAttributes(), getAttributesAndValues(), onCmdHelp(), ShapeAttributes(), and showWarningMessage().

◆ myViewNet

GNEViewNet* GNEPolygonFrame::ShapeAttributes::myViewNet
private

pointer to viewNet

Definition at line 204 of file GNEPolygonFrame.h.

Referenced by showWarningMessage().


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