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

#include <GNEPolygonFrame.h>

Inheritance diagram for GNEPolygonFrame::ShapeAttributeSingle:
Inheritance graph
Collaboration diagram for GNEPolygonFrame::ShapeAttributeSingle:
Collaboration graph

Public Member Functions

SumoXMLAttr getAttr () const
 return Attr More...
 
ShapeAttributes * getShapeAttributesParent () const
 get shape attributes parent More...
 
std::string getValue () const
 return value More...
 
void hideParameter ()
 hide all parameters More...
 
const std::string & isAttributeValid () const
 returns a empty string if current value is valid, a string with information about invalid value in other case More...
 
 ShapeAttributeSingle (ShapeAttributes *shapeAttributesParent)
 FOX-declaration. More...
 
void showParameter (SumoXMLAttr shapeAttr, std::string value)
 show name and value of attribute of type string More...
 
 ~ShapeAttributeSingle ()
 destructor More...
 
FOX-callbacks

called when user set the value of an attribute of type int/float/string

long onCmdSetAttribute (FXObject *, FXSelector, void *)
 
long onCmdSetBooleanAttribute (FXObject *, FXSelector, void *)
 called when user change the value of myBoolCheckButton More...
 
long onCmdSetColorAttribute (FXObject *, FXSelector, void *)
 called when user press the "Color" button More...
 

Protected Member Functions

 ShapeAttributeSingle ()
 FOX needs this. More...
 

Private Attributes

FXCheckButton * myBoolCheckButton
 check button to enable/disable the value of boolean parameters More...
 
FXButton * myColorEditor
 Button for open color editor. More...
 
std::string myInvalidValue
 string which indicates the reason due current value is invalid More...
 
FXLabel * myLabel
 lael with the name of the parameter More...
 
SumoXMLAttr myShapeAttr
 current XML attribute More...
 
ShapeAttributes * myShapeAttributesParent
 pointer to ShapeAttributes More...
 
FXTextField * myTextFieldInt
 textField to modify the default value of int/float/string parameters More...
 
FXTextField * myTextFieldReal
 textField to modify the default value of real/times parameters More...
 
FXTextField * myTextFieldStrings
 textField to modify the default value of string parameters More...
 

Detailed Description

Definition at line 103 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

◆ ShapeAttributeSingle() [1/2]

◆ ~ShapeAttributeSingle()

GNEPolygonFrame::ShapeAttributeSingle::~ShapeAttributeSingle ( )

destructor

Definition at line 200 of file GNEPolygonFrame.cpp.

◆ ShapeAttributeSingle() [2/2]

GNEPolygonFrame::ShapeAttributeSingle::ShapeAttributeSingle ( )
inlineprotected

FOX needs this.

Definition at line 146 of file GNEPolygonFrame.h.

Member Function Documentation

◆ getAttr()

SumoXMLAttr GNEPolygonFrame::ShapeAttributeSingle::getAttr ( ) const

return Attr

Definition at line 258 of file GNEPolygonFrame.cpp.

References myShapeAttr.

◆ getShapeAttributesParent()

GNEPolygonFrame::ShapeAttributes * GNEPolygonFrame::ShapeAttributeSingle::getShapeAttributesParent ( ) const

get shape attributes parent

Definition at line 286 of file GNEPolygonFrame.cpp.

References myShapeAttributesParent.

◆ getValue()

◆ hideParameter()

void GNEPolygonFrame::ShapeAttributeSingle::hideParameter ( )

◆ isAttributeValid()

const std::string & GNEPolygonFrame::ShapeAttributeSingle::isAttributeValid ( ) const

returns a empty string if current value is valid, a string with information about invalid value in other case

Definition at line 280 of file GNEPolygonFrame.cpp.

References myInvalidValue.

◆ onCmdSetAttribute()

◆ onCmdSetBooleanAttribute()

long GNEPolygonFrame::ShapeAttributeSingle::onCmdSetBooleanAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

called when user change the value of myBoolCheckButton

Definition at line 375 of file GNEPolygonFrame.cpp.

References myBoolCheckButton.

◆ onCmdSetColorAttribute()

◆ showParameter()

Field Documentation

◆ myBoolCheckButton

FXCheckButton* GNEPolygonFrame::ShapeAttributeSingle::myBoolCheckButton
private

check button to enable/disable the value of boolean parameters

Definition at line 168 of file GNEPolygonFrame.h.

Referenced by getValue(), hideParameter(), onCmdSetBooleanAttribute(), ShapeAttributeSingle(), and showParameter().

◆ myColorEditor

FXButton* GNEPolygonFrame::ShapeAttributeSingle::myColorEditor
private

Button for open color editor.

Definition at line 171 of file GNEPolygonFrame.h.

Referenced by hideParameter(), ShapeAttributeSingle(), and showParameter().

◆ myInvalidValue

std::string GNEPolygonFrame::ShapeAttributeSingle::myInvalidValue
private

string which indicates the reason due current value is invalid

Definition at line 174 of file GNEPolygonFrame.h.

Referenced by isAttributeValid(), onCmdSetAttribute(), and showParameter().

◆ myLabel

FXLabel* GNEPolygonFrame::ShapeAttributeSingle::myLabel
private

lael with the name of the parameter

Definition at line 156 of file GNEPolygonFrame.h.

Referenced by hideParameter(), ShapeAttributeSingle(), and showParameter().

◆ myShapeAttr

SumoXMLAttr GNEPolygonFrame::ShapeAttributeSingle::myShapeAttr
private

current XML attribute

Definition at line 153 of file GNEPolygonFrame.h.

Referenced by getAttr(), getValue(), hideParameter(), onCmdSetAttribute(), onCmdSetColorAttribute(), and showParameter().

◆ myShapeAttributesParent

ShapeAttributes* GNEPolygonFrame::ShapeAttributeSingle::myShapeAttributesParent
private

◆ myTextFieldInt

FXTextField* GNEPolygonFrame::ShapeAttributeSingle::myTextFieldInt
private

textField to modify the default value of int/float/string parameters

Definition at line 159 of file GNEPolygonFrame.h.

Referenced by getValue(), hideParameter(), onCmdSetAttribute(), ShapeAttributeSingle(), and showParameter().

◆ myTextFieldReal

FXTextField* GNEPolygonFrame::ShapeAttributeSingle::myTextFieldReal
private

textField to modify the default value of real/times parameters

Definition at line 162 of file GNEPolygonFrame.h.

Referenced by getValue(), hideParameter(), onCmdSetAttribute(), ShapeAttributeSingle(), and showParameter().

◆ myTextFieldStrings

FXTextField* GNEPolygonFrame::ShapeAttributeSingle::myTextFieldStrings
private

textField to modify the default value of string parameters

Definition at line 165 of file GNEPolygonFrame.h.

Referenced by getValue(), hideParameter(), onCmdSetAttribute(), onCmdSetColorAttribute(), ShapeAttributeSingle(), and showParameter().


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