 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef GNEFrameAttributesModuls_h
18 #define GNEFrameAttributesModuls_h
192 long onCmdHelp(FXObject*, FXSelector,
void*);
326 const std::vector<GNEAttributeCarrier*>&
getEditedACs()
const;
445 std::vector<GNEAttributeCarrier*>
myACs;
574 long onCmdHelp(FXObject*, FXSelector,
void*);
591 double setStartPosition(
double positionOfTheMouseOverLane,
double lengthOfAdditional)
const;
594 double setEndPosition(
double positionOfTheMouseOverLane,
double lengthOfAdditional)
const;
~AttributesEditorExtended()
destructor
AttributesCreator * getAttributesCreatorParent() const
get AttributesCreator parent
FXTextField * myValueTextFieldStrings
textField to modify the default value of string parameters
bool getAttributeRadioButtonCheck() const
return status of radio button
AdditionalReferencePoint
list of the reference points
FXCheckButton * myAttributeCheckButton
pointer to attribute menu check
AttributesCreatorRow()
FOX needs this.
long onCmdOpenDialog(FXObject *, FXSelector, void *)
struct with the attribute Properties
GenericParametersEditor()
FOX needs this.
std::string checkComplexAttribute(const std::string &value)
check if given complex attribute is valid
void refreshGenericParametersEditor()
refresh netedit attributes
const std::vector< GNEAttributeCarrier * > & getEditedACs() const
get current edited ACs
void updateDisjointAttributes(AttributesCreatorRow *row)
update disjoint attributes
FXButton * myHelpButton
help button
NeteditAttributes()
FOX needs this.
void addNewPoint(const Position &P)
add new point to temporal shape
FXCheckButton * myCloseShapeCheckButton
checkbox to enable/disable closing polygon
long onCmdSelectCheckButton(FXObject *, FXSelector, void *)
called when user press a check button
void removeEditedAC(GNEAttributeCarrier *AC)
remove edited ACs
GNEAttributeCarrier::TagProperties getCurrentTagProperties() const
get current edited Tag Properties
void enableAttributesCreatorRow()
enable row
FXButton * myAttributeButtonCombinableChoices
pointer to buttonCombinableChoices
std::vector< AttributesEditorRow * > myAttributesEditorRows
list of Attribute editor rows
bool areValuesValid() const
check if parameters of attributes are valid
~GenericParametersEditor()
destructor
FXLabel * myAttributeLabel
pointer to attribute label
std::vector< GNEAttributeCarrier * > myEditedACs
the multi-selection currently being inspected
std::vector< GNEAttributeCarrier * > myACs
list of edited ACs
FXComboBox * myValueComboBoxChoices
pointer to combo box choices
const std::string & isAttributeValid() const
returns a empty string if current value is valid, a string with information about invalid value in ot...
void showGenericParametersEditor(GNEAttributeCarrier *AC)
show netedit attributes editor (used for edit generic parameters of an existent AC)
GNEAttributeCarrier::TagProperties myTagProperties
current edited Tag Properties
FXButton * myEditGenericParameterButton
button for add generic parameter
long onCmdOpenAttributeDialog(FXObject *, FXSelector, void *)
open model dialog for more comfortable attribute editing
void refreshAttributesEditorRow(const std::string &value, bool forceRefresh, bool disjointAttributeEnabled)
refresh current row
FXCheckButton * myAttributeCheckButton
check button to enable/disable Label attribute
long onCmdSelectRadioButton(FXObject *, FXSelector, void *)
called when user press a radio button
GNEFrame * myFrameParent
pointer to frame parent
bool isDrawing() const
return true if currently a shape is drawed
long onCmdStartDrawing(FXObject *, FXSelector, void *)
PositionVector myTemporalShapeShape
current drawed shape
FXButton * helpReferencePoint
Button for help about the reference point.
const PositionVector & getTemporalShape() const
get Temporal shape
std::vector< std::pair< std::string, std::string > > * myGenericParameters
pointer to current vector of generic parameters
FXButton * myStopDrawingButton
button for stop drawing
FXRadioButton * myAttributeRadioButton
Radio button for disjoint attributes.
~NeteditAttributes()
destructor
void showAttributesCreatorModul(const GNEAttributeCarrier::TagProperties &myTagProperties)
show AttributesCreator modul
void hideAttributesCreatorModul()
hide group box
AdditionalReferencePoint myActualAdditionalReferencePoint
actual additional reference point selected in the match Box
friend class Row
FOX-declaration.
std::map< SumoXMLAttr, std::string > getAttributesAndValues(bool includeAll) const
get attributes and their values
double setStartPosition(double positionOfTheMouseOverLane, double lengthOfAdditional) const
obtain the Start position values of StoppingPlaces and E2 detector over the lane
FXTextField * myValueTextFieldInt
textField to modify the default value of int/float/string parameters
FXButton * myAbortDrawingButton
button for abort drawing
bool getAttributeCheckButtonCheck() const
return status of label checkbox button
FXLabel * myClosePolygonLabel
Label for open/close polygon.
FXLabel * myBlockShapeLabel
Label for block shape.
FXTextField * myValueTextFieldInt
textField to modify the value of int attributes
FXLabel * myLengthLabel
Label for length.
void removeLastPoint()
remove last added point
void destroy()
destroy AttributesCreatorRow (but don't delete)
FXLabel * myAttributeLabel
Label with the name of the attribute.
struct with the attribute Properties
FXButton * myAttributeColorButton
Button for open color editor.
void hideDrawingShape()
hide Drawing mode
const bool myMultiple
flag to check if input element contains multiple values
FXButton * myHelpButton
button for help
FXComboBox * myReferencePointMatchBox
match box with the list of reference points
FXTextField * myValueTextFieldReal
textField to modify the default value of real/times parameters
FXLabel * myInformationLabel
Label with information.
GNEFrame * myFrameParent
pointer to Frame Parent
void setAttributeCheckButtonCheck(bool value)
enable or disable label checkbox button for optional attributes
FXLabel * myBlockMovementLabel
Label for block movement.
FXRadioButton * myAttributeRadioButton
Radio button for disjoint attributes.
AttributesCreator * myAttributesCreatorParent
pointer to AttributesCreator
std::string getValue() const
return value
A point in 2D or 3D with translation and scaling methods.
void setAttributeRadioButtonCheck(bool value)
enable or disable radio button for disjoint attributes
void abortDrawing()
abort drawing
void showNeteditAttributesModul(const GNEAttributeCarrier::TagProperties &tagValue)
show Netedit attributes modul
void hideAttributesEditorModul()
hide attribute editor
long onCmdSelectColorButton(FXObject *, FXSelector, void *)
called when user press the "Color" button
long onCmdSetAttribute(FXObject *, FXSelector, void *)
bool getDeleteLastCreatedPoint()
get flag delete last created point
void setDeleteLastCreatedPoint(bool value)
enable or disable delete last created point
bool getNeteditAttributesAndValues(std::map< SumoXMLAttr, std::string > &valuesMap, const GNELane *lane) const
fill valuesMap with netedit attributes
GNEAttributeCarrier * myAC
edited Attribute Carrier
bool myCurrentLengthValid
Flag to check if current length is valid.
long onCmdSelectRadioButton(FXObject *, FXSelector, void *)
set new disjoint attribute
DrawingShape()
FOX needs this.
std::string myInvalidValue
string which indicates the reason due current value is invalid
GNEFrame * myFrameParent
pointer to inspector frame parent
FXCheckButton * myBlockMovementCheckButton
checkBox for block movement
FXTextField * myLengthTextField
textField for length
long onCmdHelp(FXObject *, FXSelector, void *)
FXCheckButton * myValueCheckButton
pointer to menu check
bool isAttributesCreatorRowEnabled() const
check if row is enabled
FXButton * myAttributeColorButton
Button for open color editor.
void destroy()
destroy AttributesCreatorRow (but don't delete)
void showAttributesEditorExtendedModul()
show AttributesEditorExtended modul
void startDrawing()
start drawing
FXTextField * myValueTextFieldReal
textField to modify the value of real/Time attributes
const GNEAttributeCarrier::AttributeProperties & getAttrProperties() const
return Attr
~DrawingShape()
destructor
const GNEAttributeCarrier::AttributeProperties myAttrProperties
attribute properties
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
std::string getGenericParametersStr() const
get generic parameters as string
void refreshAttributeEditor(bool forceRefreshShape, bool forceRefreshPosition)
refresh attribute editor (only the valid values will be refresh)
long onCmdStopDrawing(FXObject *, FXSelector, void *)
Called when the user press stop drawing button.
long onCmdAttributesEditorHelp(FXObject *, FXSelector, void *)
FXTextField * myValueTextFieldStrings
textField to modify the value of string attributes
long onCmdAbortDrawing(FXObject *, FXSelector, void *)
Called when the user press abort drawing button.
const GNEAttributeCarrier::AttributeProperties myACAttr
current AC Attribute
GNEFrame * myFrameParent
pointer to GNEFrame parent
void showDrawingShape()
show Drawing mode
long onCmdHelp(FXObject *, FXSelector, void *)
Called when user press the help button.
AttributesEditor * myAttributesEditorParent
pointer to AttributesEditor parent
void hideGenericParametersEditor()
hide netedit attributes editor
FXTextField * myTextFieldGenericParameter
text field for write generic parameter
void stopDrawing()
stop drawing and check if shape can be created
long onCmdSelectCheckButton(FXObject *, FXSelector, void *)
called when user press a check button
FXCheckButton * myBlockShapeCheckButton
checkBox for block shape
void hideAttributesEditorExtendedModul()
hide group box
AttributesEditorExtended()
FOX needs this.
bool myIncludeExtended
flag used to mark if current edited ACs are bein edited including extended attribute
AttributesEditorRow()
FOX needs this.
long onCmdSetNeteditAttribute(FXObject *, FXSelector, void *)
GNEFrame * myFrameParent
pointer to Frame Parent
long onCmdSetAttribute(FXObject *, FXSelector, void *)
try to set new attribute value
void hideNeteditAttributesModul()
hide Netedit attributes modul
double setEndPosition(double positionOfTheMouseOverLane, double lengthOfAdditional) const
obtain the End position values of StoppingPlaces and E2 detector over the lane
std::string stripWhitespaceAfterComma(const std::string &stringValue)
removed invalid spaces of Positions and shapes
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void disableAttributesCreatorRow()
disable row
GNEFrame * getFrameParent() const
pointer to GNEFrame parent
long onCmdEditGenericParameter(FXObject *, FXSelector, void *)
FXButton * myStartDrawingButton
button for start drawing
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
AttributesEditor()
FOX needs this.
FXCheckButton * myValueCheckButton
check button to enable/disable the value of boolean parameters
bool isAttributesEditorRowValid() const
check if current attribute of TextField/ComboBox is valid
void showWarningMessage(std::string extra="") const
show warning message with information about non-valid attributes
std::vector< AttributesCreatorRow * > myAttributesCreatorRows
vector with the AttributesCreatorRow
long onCmdSetGenericParameter(FXObject *, FXSelector, void *)
Called when user udpate the generic parameter text field.
void showAttributeEditorModul(const std::vector< GNEAttributeCarrier * > &ACs, bool includeExtended)
show attributes of multiple ACs
GNEFrame * myFrameParent
pointer to frame parent