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 (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...
 
GNEPolygonFrame * getPolygonFrameParent () const
 get PolygonFrame parent More...
 
void hideShapeParameters ()
 hide group box More...
 
 ShapeAttributes (GNEPolygonFrame *polygonFrameParent)
 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

GNEPolygonFrame * myPolygonFrameParent
 pointer to Polygon Frame Parent More...
 
std::vector< ShapeAttributeSingle * > myVectorOfsingleShapeParameter
 vector with the shape parameters More...
 

Detailed Description

Definition at line 181 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

◆ ShapeAttributes() [1/2]

GNEPolygonFrame::ShapeAttributes::ShapeAttributes ( GNEPolygonFrame *  polygonFrameParent)

◆ ~ShapeAttributes()

GNEPolygonFrame::ShapeAttributes::~ShapeAttributes ( )

destructor

Definition at line 421 of file GNEPolygonFrame.cpp.

◆ ShapeAttributes() [2/2]

GNEPolygonFrame::ShapeAttributes::ShapeAttributes ( )
inlineprotected

FOX needs this.

Definition at line 227 of file GNEPolygonFrame.h.

Member Function Documentation

◆ addAttribute()

◆ areValuesValid()

bool GNEPolygonFrame::ShapeAttributes::areValuesValid ( ) const

◆ clearAttributes()

void GNEPolygonFrame::ShapeAttributes::clearAttributes ( )

clear attributes

Definition at line 426 of file GNEPolygonFrame.cpp.

References myVectorOfsingleShapeParameter.

Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().

◆ getAttributesAndValues()

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

get attributes and their values

Definition at line 456 of file GNEPolygonFrame.cpp.

References myVectorOfsingleShapeParameter, and SUMO_ATTR_NOTHING.

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

◆ getNumberOfAddedAttributes()

int GNEPolygonFrame::ShapeAttributes::getNumberOfAddedAttributes ( ) const

get number of added attributes

Definition at line 509 of file GNEPolygonFrame.cpp.

Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().

◆ getPolygonFrameParent()

◆ hideShapeParameters()

void GNEPolygonFrame::ShapeAttributes::hideShapeParameters ( )

hide group box

Definition at line 450 of file GNEPolygonFrame.cpp.

References GNEFrame::hide().

Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().

◆ onCmdHelp()

long GNEPolygonFrame::ShapeAttributes::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

◆ showShapeParameters()

void GNEPolygonFrame::ShapeAttributes::showShapeParameters ( )

show group box

Definition at line 443 of file GNEPolygonFrame.cpp.

References GNEPolygonFrame::show().

Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().

◆ showWarningMessage()

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

Field Documentation

◆ myPolygonFrameParent

GNEPolygonFrame* GNEPolygonFrame::ShapeAttributes::myPolygonFrameParent
private

pointer to Polygon Frame Parent

Definition at line 231 of file GNEPolygonFrame.h.

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

◆ myVectorOfsingleShapeParameter

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

vector with the shape parameters

Definition at line 234 of file GNEPolygonFrame.h.

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


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