20 #ifndef GNEAdditionalFrame_h 21 #define GNEAdditionalFrame_h 120 void showListParameter(
SumoXMLAttr attr, std::vector<int> value);
123 void showListParameter(
SumoXMLAttr attr, std::vector<SUMOReal> value);
126 void showListParameter(
SumoXMLAttr attr, std::vector<bool> value);
129 void showListParameter(
SumoXMLAttr attr, std::vector<std::string> value);
138 std::string getListValues();
143 long onCmdAddRow(FXObject*, FXSelector,
void*);
146 long onCmdRemoveRow(FXObject*, FXSelector,
void*);
192 void clearAttributes();
198 void showAdditionalParameters();
201 void hideAdditionalParameters();
204 std::map<SumoXMLAttr, std::string> getAttributes()
const;
207 int getNumberOfAddedAttributes()
const;
212 long onCmdHelp(FXObject*, FXSelector,
void*);
258 GNE_ADDITIONALREFERENCEPOINT_CENTER
268 void showLengthField();
271 void hideLengthField();
274 void showReferencePoint();
277 void hideReferencePoint();
286 bool isBlockEnabled();
289 bool isForcePositionEnabled();
294 long onCmdSelectReferencePoint(FXObject*, FXSelector,
void*);
299 long onCmdHelp(FXObject*, FXSelector,
void*);
345 std::string getIdSelected()
const;
359 long onCmdSelectAdditionalSet(FXObject*, FXSelector,
void*);
362 long onCmdHelp(FXObject*, FXSelector,
void*);
405 void showList(std::string search =
"");
411 void updateUseSelectedEdges();
414 bool isUseSelectedEdgesEnable()
const;
419 long onCmdUseSelectedEdges(FXObject*, FXSelector,
void*);
422 long onCmdTypeInSearchBox(FXObject*, FXSelector,
void*);
425 long onCmdSelectEdge(FXObject*, FXSelector,
void*);
428 long onCmdClearSelection(FXObject*, FXSelector,
void*);
431 long onCmdInvertSelection(FXObject*, FXSelector,
void*);
434 long onCmdHelp(FXObject*, FXSelector,
void*);
483 void showList(std::string search =
"");
489 void updateUseSelectedLanes();
492 bool isUseSelectedLanesEnable()
const;
497 long onCmdUseSelectedLanes(FXObject*, FXSelector,
void*);
500 long onCmdTypeInSearchBox(FXObject*, FXSelector,
void*);
503 long onCmdSelectLane(FXObject*, FXSelector,
void*);
506 long onCmdClearSelection(FXObject*, FXSelector,
void*);
509 long onCmdInvertSelection(FXObject*, FXSelector,
void*);
512 long onCmdHelp(FXObject*, FXSelector,
void*);
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::vector< additionalParameterList * > myVectorOfAdditionalParameterList
vector with the additional parameters of type list
FXMenuCheck * myCheckForcePosition
checkBox for the option "force position"
int maxNumberOfListParameters
max number of parameters (Defined in constructor)
SumoXMLAttr getAttr() const
return Attr
FXLabel * myLabel
lael with the name of the parameter
SumoXMLTag myAdditional
current additional
SumoXMLTag myType
current type
int myIndexParameterList
index for myIndexParameterList
edgesSelector()
FOX needs this.
FXButton * add
Button to increase the number of textFields.
GNEViewNet * myViewNet
viewNet associated to GNEAdditionalFrame
FXButton * clearEdgesSelection
button for clear selection
FXMenuCheck * myUseSelectedEdges
CheckBox for selected edges.
FXTextField * myLengthTextField
textField for lenght
FXButton * helpAdditionalSet
button for help
FXButton * invertEdgesSelection
button for invert selection
GNEAdditionalFrame::lanesSelector * myLanesSelector
list of lanesSelector
void hideParameter()
hide all parameters
additionalParameterList()
FOX needs this.
long onCmdSelectAdditional(FXObject *, FXSelector, void *)
additionalReferencePoint
FOX-declaration.
bool addAdditional(GNENetElement *netElement, GUISUMOAbstractView *parent)
add additional element
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
~additionalParameter()
destructor
An Element wich group additionalSet elements.
int myIndexParameter
Index for myVectorOfAdditionalParameter.
GNEAdditionalFrame::additionalParameters * myAdditionalParameters
additional default parameters
void setParametersOfAdditional(SumoXMLTag actualAdditionalType)
set parameters depending of the new additionalType
FXTextField * myLanesSearch
text field for search lane IDs
std::vector< FXLabel * > myLabels
vector with with the name of every parameter
SumoXMLAttr myAttr
XML attribute.
FXButton * helpAdditional
button for help
void hide()
hidde additional frame
GNEViewNet * myViewNet
viewNet associated to GNEAdditionalFrame
FXList * myList
List of lanesSelector.
additionalParameters()
FOX needs this.
FXTextField * myTextField
textField to modify the value of parameter
GNEAdditionalFrame::editorParameters * myEditorParameters
editor parameter
GNEViewNet * myViewNet
viewNet associated to GNEAdditionalFrame
SUMOReal setEndPosition(SUMOReal laneLenght, SUMOReal positionOfTheMouseOverLane, SUMOReal lenghtOfAdditional)
obtain the End position values of StoppingPlaces and E2 detector over the lane
SumoXMLAttr myAttr
XML attribute.
lanesSelector()
FOX needs this.
FXList * myList
List of edgesSelector.
SumoXMLTag myActualAdditionalType
actual additional type selected in the match Box
int numberOfVisibleTextfields
number of visible text fields
void removeAdditional(GNEAdditional *additional)
remove an additional element previously added
~GNEAdditionalFrame()
Destructor.
FXButton * helpReferencePoint
Button for help about the reference point.
FXComboBox * myAdditionalMatchBox
combo box with the list of additional elements
std::string getValue() const
return value
GNEAdditionalFrame::additionalSet * myAdditionalSet
list of additional Set
SUMOReal setStartPosition(SUMOReal positionOfTheMouseOverLane, SUMOReal lenghtOfAdditional)
obtain the Start position values of StoppingPlaces and E2 detector over the lane
FXLabel * myLengthLabel
Label for lenght.
FXMenuCheck * myCheckBlock
checkBox for blocking movement
FXGroupBox * myGroupBoxForMyAdditionalMatchBox
groupBox for Match Box of additionals
std::vector< FXTextField * > myTextFields
vector textField to modify the value of parameter
FXTextField * myEdgesSearch
text field for search edge IDs
FXButton * helpEdges
button for help
FXButton * clearLanesSelection
button for clear selection
int myMaxNumberOfValuesInParameterList
Number max of values in a parameter of type list.
GNEAdditionalFrame()
FOX needs this.
editorParameters()
FOX needs this.
void show()
show additional frame
FXList * myList
List of additional sets.
An Element which don't belongs to GNENet but has influency in the simulation.
additionalParameter(FXComposite *parent, FXObject *tgt)
constructor
std::vector< additionalParameter * > myVectorOfAdditionalParameter
vector with the additional parameters
std::string generateID(GNENetElement *netElement) const
generate a ID for an additiona element
FXMenuCheck * myMenuCheck
menuCheck to enable/disable the value of parameter
additionalReferencePoint myActualAdditionalReferencePoint
actual additional reference point selected in the match Box
FXMenuCheck * myUseSelectedLanes
CheckBox for selected lanes.
additionalSet()
FOX needs this.
static std::string getIdsSelected(const FXList *list)
get list of selecte id's in string format
int maxNumberOfParameters
max number of parameters (Defined in constructor)
void showParameter(SumoXMLAttr attr, std::string value)
show name and value of attribute of type string
FXLabel * mySetLabel
Label with the name of Set.
FXButton * invertLanesSelection
button for invert selection
GNEAdditionalFrame::edgesSelector * myEdgesSelector
list of edgesSelector
FXButton * helpLanes
button for help
FXComboBox * myReferencePointMatchBox
match box with the list of reference points