189 long onCmdHelp(FXObject*, FXSelector,
void*);
231 void showAttributesCreatorFlowModul(
const bool persons);
234 void hideAttributesCreatorFlowModul();
237 void refreshAttributesCreatorFlow();
240 void setFlowParameters(std::map<SumoXMLAttr, std::string>& parameters);
251 long onCmdSetFlowAttribute(FXObject*, FXSelector,
void*);
254 long onCmdSelectFlowRadioButton(FXObject*, FXSelector,
void*);
265 FXRadioButton* myAttributeEndRadioButton =
nullptr;
268 FXTextField* myValueEndTextField =
nullptr;
271 FXRadioButton* myAttributeNumberRadioButton =
nullptr;
274 FXTextField* myValueNumberTextField =
nullptr;
277 FXRadioButton* myAttributeVehsPerHourRadioButton =
nullptr;
280 FXTextField* myValueVehsPerHourTextField =
nullptr;
283 FXRadioButton* myAttributePeriodRadioButton =
nullptr;
286 FXTextField* myValuePeriodTextField =
nullptr;
289 FXRadioButton* myAttributeProbabilityRadioButton =
nullptr;
292 FXTextField* myValueProbabilityTextField =
nullptr;
314 void refreshAttributesEditorRow(
const std::string& value,
bool forceRefresh,
bool attributeEnabled);
317 bool isAttributesEditorRowValid()
const;
323 long onCmdSetAttribute(FXObject*, FXSelector,
void*);
326 long onCmdSelectCheckButton(FXObject*, FXSelector,
void*);
329 long onCmdOpenAttributeDialog(FXObject*, FXSelector,
void*);
336 std::string stripWhitespaceAfterComma(
const std::string& stringValue);
349 FXLabel* myAttributeLabel =
nullptr;
352 FXCheckButton* myAttributeCheckButton =
nullptr;
355 FXButton* myAttributeButtonCombinableChoices =
nullptr;
358 FXButton* myAttributeColorButton =
nullptr;
361 FXTextField* myValueTextField =
nullptr;
364 FXComboBox* myValueComboBoxChoices =
nullptr;
367 FXCheckButton* myValueCheckButton =
nullptr;
383 void showAttributeEditorModul(
bool includeExtended,
bool forceAttributeEnabled);
386 void hideAttributesEditorModul();
389 void refreshAttributeEditor(
bool forceRefreshShape,
bool forceRefreshPosition);
397 long onCmdAttributesEditorHelp(FXObject*, FXSelector,
void*);
433 void showAttributeEditorFlowModul();
436 void hideAttributesEditorFlowModul();
439 bool isAttributesEditorFlowModulShown()
const;
442 void refreshAttributeEditorFlow();
447 long onCmdSetFlowAttribute(FXObject*, FXSelector,
void*);
450 long onCmdSelectFlowRadioButton(FXObject*, FXSelector,
void*);
460 void refreshNumber();
463 void refreshVehsPerHour();
466 void refreshPeriod();
469 void refreshProbability();
476 FXRadioButton* myAttributeEndRadioButton =
nullptr;
479 FXTextField* myValueEndTextField =
nullptr;
482 FXRadioButton* myAttributeNumberRadioButton =
nullptr;
485 FXTextField* myValueNumberTextField =
nullptr;
488 FXRadioButton* myAttributeVehsPerHourRadioButton =
nullptr;
491 FXTextField* myValueVehsPerHourTextField =
nullptr;
494 FXRadioButton* myAttributePeriodRadioButton =
nullptr;
497 FXTextField* myValuePeriodTextField =
nullptr;
500 FXRadioButton* myAttributeProbabilityRadioButton =
nullptr;
503 FXTextField* myValueProbabilityTextField =
nullptr;
522 void showAttributesEditorExtendedModul();
525 void hideAttributesEditorExtendedModul();
530 long onCmdOpenDialog(FXObject*, FXSelector,
void*);
557 void showParametersEditorCreator();
560 void hideParametersEditorCreator();
563 void refreshParametersEditorCreator();
566 const std::map<std::string, std::string>& getParametersMap()
const;
569 std::string getParametersStr()
const;
572 std::vector<std::pair<std::string, std::string> > getParameters()
const;
575 void setParameters(
const std::vector<std::pair<std::string, std::string> >& parameters);
586 long onCmdEditParameters(FXObject*, FXSelector,
void*);
589 long onCmdSetParameters(FXObject*, FXSelector,
void*);
606 FXTextField* myTextFieldParameters =
nullptr;
609 FXButton* myButtonEditParameters =
nullptr;
628 void showDrawingShape();
631 void hideDrawingShape();
643 void addNewPoint(
const Position& P);
646 void removeLastPoint();
652 bool isDrawing()
const;
655 void setDeleteLastCreatedPoint(
bool value);
658 bool getDeleteLastCreatedPoint();
663 long onCmdStartDrawing(FXObject*, FXSelector,
void*);
666 long onCmdStopDrawing(FXObject*, FXSelector,
void*);
669 long onCmdAbortDrawing(FXObject*, FXSelector,
void*);
717 void hideNeteditAttributesModul();
720 bool getNeteditAttributesAndValues(std::map<SumoXMLAttr, std::string>& valuesMap,
const GNELane* lane)
const;
725 long onCmdSetNeteditAttribute(FXObject*, FXSelector,
void*);
728 long onCmdHelp(FXObject*, FXSelector,
void*);
740 GNE_ADDITIONALREFERENCEPOINT_INVALID
744 double setStartPosition(
double positionOfTheMouseOverLane,
double lengthOfAdditional)
const;
747 double setEndPosition(
double positionOfTheMouseOverLane,
double lengthOfAdditional)
const;
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
AttributesCreator * myAttributesCreatorParent
pointer to Attributes Creator Parent
FOX_CONSTRUCTOR(AttributesCreatorFlow)
int myFlowParameters
variable used to save current flow configuration
void hideAttributesCreatorModul()
hide group box
long onCmdHelp(FXObject *, FXSelector, void *)
GNEFrame * getFrameParent() const
return frame parent
void refreshRows()
refresh rows (called after creating an element)
void showAttributesCreatorModul(const GNETagProperties &tagProperties, const std::vector< SumoXMLAttr > &hiddenAttributes)
show AttributesCreator modul
FOX_CONSTRUCTOR(AttributesCreator)
std::map< SumoXMLAttr, std::string > getAttributesAndValues(bool includeAll) const
get attributes and their values
std::vector< AttributesCreatorRow * > myAttributesCreatorRows
vector with the AttributesCreatorRow
GNEFrame * myFrameParent
pointer to Frame Parent
AttributesCreatorFlow * myAttributesCreatorFlow
pointer to myAttributesCreatorFlow
bool areValuesValid() const
check if parameters of attributes are valid
void showWarningMessage(std::string extra="") const
show warning message with information about non-valid attributes
FXButton * myHelpButton
help button
friend class Row
FOX-declaration.
GNETagProperties getCurrentTagProperties() const
get current edited Tag Properties
GNETagProperties myTagProperties
current edited Tag Properties
AttributesCreator * getAttributesCreatorParent() const
get AttributesCreator parent
AttributesCreatorRow(AttributesCreator *AttributesCreatorParent, const GNEAttributeProperties &attrProperties)
FOX-declaration.
void enableAttributesCreatorRow()
enable row
std::string generateID() const
generate ID
long onCmdSelectCheckButton(FXObject *, FXSelector, void *)
called when user press a check button
FXTextField * myValueTextField
textField to modify the default value of string parameters
bool isAttributesCreatorRowEnabled() const
check if row is enabled
std::string getValue() const
return value
std::string myInvalidValue
string which indicates the reason due current value is invalid
FXCheckButton * myAttributeCheckButton
check button to enable/disable Label attribute
long onCmdSelectColorButton(FXObject *, FXSelector, void *)
called when user press the "Color" button
bool isValidID() const
check if current ID placed in myValueTextField is valid
FXButton * myAttributeColorButton
Button for open color editor.
void setAttributeCheckButtonCheck(bool value)
enable or disable label checkbox button for optional attributes
void refreshRow() const
refresh row
const std::string & isAttributeValid() const
returns a empty string if current value is valid, a string with information about invalid value in ot...
FXCheckButton * myValueCheckButton
check button to enable/disable the value of boolean parameters
const GNEAttributeProperties & getAttrProperties() const
return Attr
long onCmdSetAttribute(FXObject *, FXSelector, void *)
std::string checkComplexAttribute(const std::string &value)
check if given complex attribute is valid
FXLabel * myAttributeLabel
Label with the name of the attribute.
AttributesCreator * myAttributesCreatorParent
pointer to AttributesCreator
const GNEAttributeProperties myAttrProperties
attribute properties
void destroy()
destroy AttributesCreatorRow (but don't delete)
void disableAttributesCreatorRow()
disable row
bool getAttributeCheckButtonCheck() const
return status of label checkbox button
std::vector< AttributesEditorRow * > myAttributesEditorRows
list of Attribute editor rows
bool myIncludeExtended
flag used to mark if current edited ACs are bein edited including extended attribute
const GNEAttributeProperties myACAttr
current AC Attribute
const bool myMultiple
flag to check if input element contains multiple values
FXButton * myStartDrawingButton
button for start drawing
PositionVector myTemporalShapeShape
current drawed shape
FXLabel * myInformationLabel
Label with information.
FXButton * myAbortDrawingButton
button for abort drawing
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
GNEFrame * myFrameParent
pointer to frame parent
FXButton * myStopDrawingButton
button for stop drawing
FXCheckButton * myBlockShapeCheckButton
checkBox for block shape
FXTextField * myLengthTextField
textField for length
FXHorizontalFrame * myBlockShapeFrame
horizontal frame for block shape
FXCheckButton * myCenterViewAfterCreationButton
checkbox to enable/disable center element after creation
FXHorizontalFrame * myCenterViewAfterCreationFrame
horizontal frame for center view after creation frame
GNEFrame * myFrameParent
pointer to frame parent
FXHorizontalFrame * myBlockMovementFrame
horizontal frame for block movement
bool myCurrentLengthValid
Flag to check if current length is valid.
FXCheckButton * myBlockMovementCheckButton
checkBox for block movement
FXHorizontalFrame * myLengthFrame
horizontal frame for length
FXComboBox * myReferencePointMatchBox
match box with the list of reference points
AdditionalReferencePoint
list of the reference points
@ GNE_ADDITIONALREFERENCEPOINT_RIGHT
@ GNE_ADDITIONALREFERENCEPOINT_CENTER
@ GNE_ADDITIONALREFERENCEPOINT_LEFT
FXHorizontalFrame * myCloseShapeFrame
horizontal frame for close polygon
AdditionalReferencePoint myActualAdditionalReferencePoint
actual additional reference point selected in the match Box
FXButton * helpReferencePoint
Button for help about the reference point.
FXCheckButton * myCloseShapeCheckButton
checkbox to enable/disable close polygon
Parameterised::ParameterisedAttrType myAttrType
flag for parameters type
std::map< std::string, std::string > myParameters
pointer to current map of parameters
static bool isSupermodeValid(const GNEViewNet *viewNet, const GNEAttributeCarrier *AC)
return true if AC can be edited in the current supermode
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
ParameterisedAttrType
@brie enum for Parameterised type
A point in 2D or 3D with translation and scaling methods.