194 long onCmdReset(FXObject*, FXSelector,
void*);
197 long onCmdHelp(FXObject*, FXSelector,
void*);
246 void showAttributesCreatorFlowModule();
249 void hideAttributesCreatorFlowModule();
252 bool shownAttributesCreatorFlowModule()
const;
255 void refreshAttributesCreatorFlow();
269 long onCmdSetFlowAttribute(FXObject*, FXSelector,
void*);
272 long onCmdSelectFlowRadioButton(FXObject*, FXSelector,
void*);
283 FXRadioButton* myAttributeEndRadioButton =
nullptr;
286 FXTextField* myValueEndTextField =
nullptr;
289 FXRadioButton* myAttributeNumberRadioButton =
nullptr;
292 FXTextField* myValueNumberTextField =
nullptr;
295 FXRadioButton* myAttributeVehsPerHourRadioButton =
nullptr;
298 FXTextField* myValueVehsPerHourTextField =
nullptr;
301 FXRadioButton* myAttributePeriodRadioButton =
nullptr;
304 FXTextField* myValuePeriodTextField =
nullptr;
307 FXRadioButton* myAttributeProbabilityRadioButton =
nullptr;
310 FXTextField* myValueProbabilityTextField =
nullptr;
327 const bool attributeEnabled,
const bool computed);
333 void refreshAttributesEditorRow(
const std::string& value,
const bool forceRefresh,
const bool attributeEnabled,
const bool computed);
336 bool isAttributesEditorRowValid()
const;
342 long onCmdSetAttribute(FXObject*, FXSelector,
void*);
345 long onCmdSelectCheckButton(FXObject*, FXSelector,
void*);
348 long onCmdOpenAttributeDialog(FXObject*, FXSelector,
void*);
356 std::string stripWhitespaceAfterComma(
const std::string& stringValue);
359 bool mergeJunction(
SumoXMLAttr attr,
const std::vector<GNEAttributeCarrier*>& inspectedACs,
const std::string& newVal)
const;
372 FXLabel* myAttributeLabel =
nullptr;
375 FXCheckButton* myAttributeCheckButton =
nullptr;
378 FXButton* myAttributeButtonCombinableChoices =
nullptr;
381 FXButton* myAttributeColorButton =
nullptr;
384 FXTextField* myValueTextField =
nullptr;
387 FXComboBox* myValueComboBoxChoices =
nullptr;
390 FXCheckButton* myValueCheckButton =
nullptr;
406 void showAttributeEditorModule(
bool includeExtended,
bool forceAttributeEnabled);
409 void hideAttributesEditorModule();
412 void refreshAttributeEditor(
bool forceRefreshShape,
bool forceRefreshPosition);
420 long onCmdAttributesEditorHelp(FXObject*, FXSelector,
void*);
438 FXButton* myHelpButton =
nullptr;
457 void showAttributeEditorFlowModule();
460 void hideAttributesEditorFlowModule();
463 bool isAttributesEditorFlowModuleShown()
const;
466 void refreshAttributeEditorFlow();
471 long onCmdSetFlowAttribute(FXObject*, FXSelector,
void*);
474 long onCmdSelectFlowRadioButton(FXObject*, FXSelector,
void*);
484 void refreshNumber();
487 void refreshVehsPerHour();
490 void refreshPeriod();
493 void refreshProbability();
500 FXRadioButton* myAttributeEndRadioButton =
nullptr;
503 FXTextField* myValueEndTextField =
nullptr;
506 FXRadioButton* myAttributeNumberRadioButton =
nullptr;
509 FXTextField* myValueNumberTextField =
nullptr;
512 FXRadioButton* myAttributeVehsPerHourRadioButton =
nullptr;
515 FXTextField* myValueVehsPerHourTextField =
nullptr;
518 FXRadioButton* myAttributePeriodRadioButton =
nullptr;
521 FXTextField* myValuePeriodTextField =
nullptr;
524 FXRadioButton* myAttributeProbabilityRadioButton =
nullptr;
527 FXTextField* myValueProbabilityTextField =
nullptr;
546 void showAttributesEditorExtendedModule();
549 void hideAttributesEditorExtendedModule();
554 long onCmdOpenDialog(FXObject*, FXSelector,
void*);
581 void showGenericDataAttributes();
584 void hideGenericDataAttributes();
587 void refreshGenericDataAttributes();
590 const std::map<std::string, std::string>& getParametersMap()
const;
593 std::string getParametersStr()
const;
596 std::vector<std::pair<std::string, std::string> > getParameters()
const;
599 void setParameters(
const std::vector<std::pair<std::string, std::string> >& parameters);
607 long onCmdEditParameters(FXObject*, FXSelector,
void*);
610 long onCmdSetParameters(FXObject*, FXSelector,
void*);
624 FXTextField* myTextFieldParameters =
nullptr;
627 FXButton* myButtonEditParameters =
nullptr;
646 void showDrawingShape();
649 void hideDrawingShape();
661 void addNewPoint(
const Position& P);
664 void removeLastPoint();
670 bool isDrawing()
const;
673 void setDeleteLastCreatedPoint(
bool value);
676 bool getDeleteLastCreatedPoint();
681 long onCmdStartDrawing(FXObject*, FXSelector,
void*);
684 long onCmdStopDrawing(FXObject*, FXSelector,
void*);
687 long onCmdAbortDrawing(FXObject*, FXSelector,
void*);
735 void hideNeteditAttributesModule();
743 long onCmdSetNeteditAttribute(FXObject*, FXSelector,
void*);
746 long onCmdHelp(FXObject*, FXSelector,
void*);
762 double setStartPosition(
double positionOfTheMouseOverLane,
double lengthOfAdditional)
const;
765 double setEndPosition(
double positionOfTheMouseOverLane,
double lengthOfAdditional)
const;
@ RIGHT
At the rightmost side of the lane.
@ LEFT
At the leftmost side of the lane.
@ CENTER
At the center of the lane.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
@ SUMO_ATTR_NOTHING
invalid attribute
FXGroupBoxModule (based on FXGroupBox)
AttributesCreator * myAttributesCreatorParent
pointer to Attributes Creator Parent
FOX_CONSTRUCTOR(AttributesCreatorFlow)
FXButton * myResetButton
reset button
GNEAttributeCarrier * getCurrentTemplateAC() const
get current template AC
void showWarningMessage(std::string extra="") const
show warning message with information about non-valid attributes
AttributesCreatorFlow * myAttributesCreatorFlow
pointer to myAttributesCreatorFlow
bool areValuesValid() const
check if parameters of attributes are valid
void refreshAttributesCreator()
refresh attribute creator
GNEAttributeCarrier * myTemplateAC
current templateAC
void showAttributesCreatorModule(GNEAttributeCarrier *templateAC, const std::vector< SumoXMLAttr > &hiddenAttributes)
show AttributesCreator modul
GNEFrame * myFrameParent
pointer to Frame Parent
friend class Row
FOX-declaration.
void getAttributesAndValues(CommonXMLStructure::SumoBaseObject *baseObject, bool includeAll) const
get attributes and their values
GNEFrame * getFrameParent() const
return frame parent
void disableAttributesCreator()
disable AttributesCreator
std::vector< AttributesCreatorRow * > myAttributesCreatorRows
vector with the AttributesCreatorRow
FOX_CONSTRUCTOR(AttributesCreator)
long onCmdHelp(FXObject *, FXSelector, void *)
Called when help button is pressed.
std::vector< SumoXMLAttr > myHiddenAttributes
hidden attributes
FXHorizontalFrame * myFrameButtons
frame buttons
void refreshRows(const bool createRows)
refresh rows
long onCmdReset(FXObject *, FXSelector, void *)
void hideAttributesCreatorModule()
hide group box
long onCmdOpenAttributeDialog(FXObject *, FXSelector, void *)
called when user press the open dialog button
AttributesCreator * myAttributesCreatorParent
pointer to AttributesCreator
std::string myInvalidValue
string which indicates the reason due current value is invalid
bool isAttributesCreatorRowEnabled() const
check if row is enabled
void enableAttributesCreatorRow()
enable row
const GNEAttributeProperties & getAttrProperties() const
return Attr
long onCmdSetAttribute(FXObject *, FXSelector, void *)
AttributesCreator * getAttributesCreatorParent() const
get AttributesCreator parent
void refreshRow()
refresh row
FXTextField * myValueTextField
textField to modify the default value of string parameters
void disableRow()
disable Rows
void setAttributeCheckButtonCheck(bool value)
enable or disable label checkbox button for optional attributes
void destroy()
destroy AttributesCreatorRow (but don't delete)
FXButton * myAttributeButton
Button for open color or allow/disallow editor.
std::string getValue() const
return value
bool isAttributeValid() const
check if current attribute is valid
AttributesCreatorRow(AttributesCreator *AttributesCreatorParent, const GNEAttributeProperties &attrProperties)
FOX-declaration.
FXCheckButton * myValueCheckButton
check button to enable/disable the value of boolean parameters
bool isValidID() const
check if current ID placed in myValueTextField is valid
const GNEAttributeProperties myAttrProperties
attribute properties
void disableAttributesCreatorRow()
disable row
FXComboBox * myValueComboBox
comboBox for discrete vaues
FXLabel * myAttributeLabel
Label with the name of the attribute.
bool getAttributeCheckButtonCheck() const
return status of label checkbox button
std::string generateID() const
generate ID
FXCheckButton * myEnableAttributeCheckButton
check button to enable/disable Label attribute
bool myIncludeExtended
flag used to mark if current edited ACs are bein edited including extended attribute
GNEFrame * myFrameParent
fox need this
std::vector< AttributesEditorRow * > myAttributesEditorRows
list of Attribute editor rows
const GNEAttributeProperties myACAttr
current AC Attribute
const bool myMultiple
flag to check if input element contains multiple values
AttributesEditor * myAttributesEditorParent
pointer to AttributesEditor parent
FXButton * myStartDrawingButton
button for start drawing
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
PositionVector myTemporalShapeShape
current drawed shape
FXButton * myStopDrawingButton
button for stop drawing
FXButton * myAbortDrawingButton
button for abort drawing
GNEFrame * myFrameParent
pointer to frame parent
FXLabel * myInformationLabel
Label with information.
std::map< std::string, std::string > myParameters
pointer to current map of parameters
FXButton * helpReferencePoint
Button for help about the reference point.
FXHorizontalFrame * myCenterViewAfterCreationFrame
horizontal frame for center view after creation frame
AdditionalReferencePoint myActualAdditionalReferencePoint
actual additional reference point selected in the match Box
FXHorizontalFrame * myCloseShapeFrame
horizontal frame for close polygon
FXHorizontalFrame * myLengthFrame
horizontal frame for length
GNEFrame * myFrameParent
pointer to frame parent
FXComboBox * myReferencePointMatchBox
match box with the list of reference points
FXCheckButton * myCenterViewAfterCreationButton
checkbox to enable/disable center element after creation
bool myCurrentLengthValid
Flag to check if current length is valid.
FXTextField * myLengthTextField
textField for length
AdditionalReferencePoint
list of the reference points
FXCheckButton * myCloseShapeCheckButton
checkbox to enable/disable close polygon
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.
A point in 2D or 3D with translation and scaling methods.