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 additionalTag, 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 additional tag More...
 
std::vector< ShapeAttributeSingle * > myVectorOfsingleShapeParameter
 vector with the additional parameters More...
 
GNEViewNet * myViewNet
 pointer to viewNet More...
 

Detailed Description

Definition at line 158 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

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

FOX-declaration.

constructor

Definition at line 746 of file GNEPolygonFrame.cpp.

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

GNEPolygonFrame::ShapeAttributes::~ShapeAttributes ( )

destructor

Definition at line 764 of file GNEPolygonFrame.cpp.

GNEPolygonFrame::ShapeAttributes::ShapeAttributes ( )
inlineprotected

FOX needs this.

Definition at line 201 of file GNEPolygonFrame.h.

Member Function Documentation

bool GNEPolygonFrame::ShapeAttributes::areValuesValid ( ) const

check if parameters of attributes are valid

Definition at line 861 of file GNEPolygonFrame.cpp.

References myIndexParameter, and myVectorOfsingleShapeParameter.

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

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

get attributes and their values

Definition at line 823 of file GNEPolygonFrame.cpp.

References myIndexParameter, and myVectorOfsingleShapeParameter.

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

int GNEPolygonFrame::ShapeAttributes::getNumberOfAddedAttributes ( ) const

get number of added attributes

Definition at line 874 of file GNEPolygonFrame.cpp.

References myIndexParameter, and myIndexParameterList.

Referenced by GNEPolygonFrame::setParametersOfShape().

void GNEPolygonFrame::ShapeAttributes::hideShapeParameters ( )

hide group box

Definition at line 817 of file GNEPolygonFrame.cpp.

References GNEFrame::hide().

Referenced by GNEPolygonFrame::setParametersOfShape().

void GNEPolygonFrame::ShapeAttributes::showShapeParameters ( )

show group box

Definition at line 810 of file GNEPolygonFrame.cpp.

References GNEPolygonFrame::show().

Referenced by GNEPolygonFrame::setParametersOfShape().

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

Field Documentation

FXButton* GNEPolygonFrame::ShapeAttributes::helpShape
private

button for help

Definition at line 226 of file GNEPolygonFrame.h.

Referenced by ShapeAttributes().

int GNEPolygonFrame::ShapeAttributes::maxNumberOfListParameters
private

max number of parameters (Defined in constructor)

Definition at line 223 of file GNEPolygonFrame.h.

int GNEPolygonFrame::ShapeAttributes::maxNumberOfParameters
private

max number of parameters (Defined in constructor)

Definition at line 220 of file GNEPolygonFrame.h.

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

int GNEPolygonFrame::ShapeAttributes::myIndexParameter
private

Index for myVectorOfsingleShapeParameter.

Definition at line 214 of file GNEPolygonFrame.h.

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

int GNEPolygonFrame::ShapeAttributes::myIndexParameterList
private

index for myIndexParameterList

Definition at line 217 of file GNEPolygonFrame.h.

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

SumoXMLTag GNEPolygonFrame::ShapeAttributes::myShapeTag
private

current additional tag

Definition at line 208 of file GNEPolygonFrame.h.

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

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

vector with the additional parameters

Definition at line 211 of file GNEPolygonFrame.h.

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

GNEViewNet* GNEPolygonFrame::ShapeAttributes::myViewNet
private

pointer to viewNet

Definition at line 205 of file GNEPolygonFrame.h.

Referenced by showWarningMessage().


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