20 #ifndef GNEAdditionalFrame_h 21 #define GNEAdditionalFrame_h 149 void showListParameter(
SumoXMLTag additionalTag,
SumoXMLAttr additionalAttr, std::vector<int> value);
152 void showListParameter(
SumoXMLTag additionalTag,
SumoXMLAttr additionalAttr, std::vector<SUMOReal> value,
bool isTime =
false);
155 void showListParameter(
SumoXMLTag additionalTag,
SumoXMLAttr additionalAttr, std::vector<bool> value);
158 void showListParameter(
SumoXMLTag additionalTag,
SumoXMLAttr additionalAttr, std::vector<std::string> value);
170 std::string getListValues();
173 bool isCurrentListValid()
const;
178 long onCmdAddRow(FXObject*, FXSelector,
void*);
181 long onCmdRemoveRow(FXObject*, FXSelector,
void*);
230 void clearAttributes();
236 void showAdditionalParameters();
239 void hideAdditionalParameters();
242 std::map<SumoXMLAttr, std::string> getAttributesAndValues()
const;
245 bool isValuesValid()
const;
248 int getNumberOfAddedAttributes()
const;
253 long onCmdHelp(FXObject*, FXSelector,
void*);
299 GNE_ADDITIONALREFERENCEPOINT_CENTER
309 void showLengthField();
312 void hideLengthField();
315 void showReferencePoint();
318 void hideReferencePoint();
327 bool isBlockEnabled();
330 bool isForcePositionEnabled();
333 bool isCurrentLenghtValid()
const;
338 long onCmdSetLength(FXObject*, FXSelector,
void*);
341 long onCmdSelectReferencePoint(FXObject*, FXSelector,
void*);
344 long onCmdHelp(FXObject*, FXSelector,
void*);
393 std::string getIdSelected()
const;
396 void showListOfAdditionals(
SumoXMLTag type,
bool uniqueSelection);
399 void hideListOfAdditionals();
404 long onCmdSelectAdditionalParent(FXObject*, FXSelector,
void*);
407 long onCmdHelp(FXObject*, FXSelector,
void*);
451 void showList(std::string search =
"");
457 void updateUseSelectedEdges();
460 bool isUseSelectedEdgesEnable()
const;
465 long onCmdUseSelectedEdges(FXObject*, FXSelector,
void*);
468 long onCmdTypeInSearchBox(FXObject*, FXSelector,
void*);
471 long onCmdSelectEdge(FXObject*, FXSelector,
void*);
474 long onCmdClearSelection(FXObject*, FXSelector,
void*);
477 long onCmdInvertSelection(FXObject*, FXSelector,
void*);
480 long onCmdHelp(FXObject*, FXSelector,
void*);
529 void showList(std::string search =
"");
535 void updateUseSelectedLanes();
538 bool isUseSelectedLanesEnable()
const;
543 long onCmdUseSelectedLanes(FXObject*, FXSelector,
void*);
546 long onCmdTypeInSearchBox(FXObject*, FXSelector,
void*);
549 long onCmdSelectLane(FXObject*, FXSelector,
void*);
552 long onCmdClearSelection(FXObject*, FXSelector,
void*);
555 long onCmdInvertSelection(FXObject*, FXSelector,
void*);
558 long onCmdHelp(FXObject*, FXSelector,
void*);
SumoXMLTag myAdditionalTag
current XML tag
additionalParentSelector()
FOX needs this.
bool isCurrentValueValid() const
check if the current value is valid
SumoXMLTag
Numbers representing SUMO-XML - element names.
FXMenuCheck * myCheckForcePosition
checkBox for the option "force position"
int maxNumberOfListParameters
max number of parameters (Defined in constructor)
SumoXMLTag myAdditionalTag
current XML attribute
FXList * myList
List of additional sets.
FXLabel * mySetLabel
Label with the name of additional.
int myMaxNumberOfValuesInParameterList
Number max of values in a parameter of type list.
FXButton * myHelpAdditionalParentSelector
button for help
int myIndexParameterList
index for myIndexParameterList
FXList * myList
List of laneParentsSelector.
GNEAdditionalFrame::laneParentsSelector * mylaneParentsSelector
list of laneParentsSelector
FXTextField * myTextField
textField to modify the value of int/float/string parameters
FXTextField * myLengthTextField
textField for lenght
bool myUniqueSelection
flag to check if only a single parent is allowed
long onCmdSetBooleanAttribute(FXObject *, FXSelector, void *)
called when user change the value of myMenuCheck
long onCmdSelectAdditional(FXObject *, FXSelector, void *)
additionalReferencePoint
FOX-declaration.
std::vector< FXLabel * > myLabels
vector with with the name of every parameter
bool addAdditional(GNENetElement *netElement, GUISUMOAbstractView *parent)
add additional element
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEAdditionalFrame::edgeParentsSelector * myedgeParentsSelector
list of edgeParentsSelector
edgeParentsSelector()
FOX needs this.
int myIndexParameter
Index for myVectorOfsingleAdditionalParameter.
void setParametersOfAdditional(SumoXMLTag actualAdditionalType)
set parameters depending of the new additionalType
int numberOfVisibleTextfields
number of visible text fields
std::vector< FXTextField * > myTextFields
vector textField to modify the value of parameter
~singleAdditionalParameter()
destructor
FXButton * helpAdditional
button for help
SumoXMLTag getTag() const
return tag
SumoXMLTag myAdditionalTag
current additional tag
FXButton * myInvertEdgesSelection
button for invert selection
additionalParameters()
FOX needs this.
FXMenuCheck * myMenuCheck
menuCheck to enable/disable the value of boolean parameters
GNEAdditionalFrame::editorParameters * myEditorParameters
editor parameter
SUMOReal setEndPosition(SUMOReal laneLenght, SUMOReal positionOfTheMouseOverLane, SUMOReal lenghtOfAdditional)
obtain the End position values of StoppingPlaces and E2 detector over the lane
void showParameter(SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, std::string value)
show name and value of attribute of type string
FXButton * invertLanesSelection
button for invert selection
GNEAdditionalFrame::additionalParameters * myadditionalParameters
additional default parameters
laneParentsSelector()
FOX needs this.
void hideParameter()
hide all parameters
FXButton * add
Button to increase the number of textFields.
FXButton * myClearEdgesSelection
button for clear selection
SumoXMLTag myActualAdditionalType
actual additional type selected in the match Box
void removeAdditional(GNEAdditional *additional)
remove an additional element previously added
long onCmdSetAttribute(FXObject *, FXSelector, void *)
FXMenuCheck * myUseSelectedLanes
CheckBox for selected lanes.
~GNEAdditionalFrame()
Destructor.
FXButton * helpReferencePoint
Button for help about the reference point.
FXComboBox * myAdditionalMatchBox
combo box with the list of additional elements
GNEViewNet * myViewNet
viewNet associated to GNEAdditionalFrame
bool myCurrentLengthValid
Flag to check if current lenght is valid.
SUMOReal setStartPosition(SUMOReal positionOfTheMouseOverLane, SUMOReal lenghtOfAdditional)
obtain the Start position values of StoppingPlaces and E2 detector over the lane
FXLabel * myLabel
lael with the name of the parameter
SumoXMLAttr myAdditionalAttr
current XML attribute
GNEAdditionalFrame::additionalParentSelector * myAdditionalParentSelector
list of additional Set
FXLabel * myLengthLabel
Label for lenght.
SumoXMLAttr getAttr() const
return Attr
FXMenuCheck * myCheckBlock
checkBox for blocking movement
FXGroupBox * myGroupBoxForMyAdditionalMatchBox
groupBox for Match Box of additionals
bool myCurrentValueValid
Flag which indicates that the current value is correct.
FXList * myList
List of edgeParentsSelector.
GNEViewNet * myViewNet
viewNet associated to GNEAdditionalFrame
std::string generateID(GNENetElement *netElement) const
generate a ID for an additiona element
singleAdditionalParameterList()
FOX needs this.
GNEAdditionalFrame()
FOX needs this.
editorParameters()
FOX needs this.
void show()
show additional frame and update use selected edges/lanes
An Element which don't belongs to GNENet but has influency in the simulation.
std::vector< singleAdditionalParameter * > myVectorOfsingleAdditionalParameter
vector with the additional parameters
std::string getValue() const
return value
FXTextField * myLanesSearch
text field for search lane IDs
SumoXMLAttr myAdditionalAttr
current XML attribute
FXSpinner * myTimeSpinDial
spindial to modify the value of time parameters
FXButton * clearLanesSelection
button for clear selection
singleAdditionalParameter()
FOX needs this.
std::vector< singleAdditionalParameterList * > myVectorOfsingleAdditionalParameterList
vector with the additional parameters of type list
additionalReferencePoint myActualAdditionalReferencePoint
actual additional reference point selected in the match Box
FXMenuCheck * myUseSelectedEdges
CheckBox for selected edges.
static std::string getIdsSelected(const FXList *list)
get list of selecte id's in string format
FXTextField * myEdgesSearch
text field for search edge IDs
int maxNumberOfParameters
max number of parameters (Defined in constructor)
FXButton * myHelpedgeParentsSelector
button for help
FXButton * helpLanes
button for help
GNEViewNet * myViewNet
viewNet associated to GNEAdditionalFrame
FXComboBox * myReferencePointMatchBox
match box with the list of reference points