17 #ifndef GNEAdditionalFrame_h 18 #define GNEAdditionalFrame_h 140 std::string getEdgeIdsSelected()
const;
143 void showSelectorEdgeChildrenModul(std::string search =
"");
146 void hideSelectorEdgeChildrenModul();
149 void updateUseSelectedEdges();
154 long onCmdUseSelectedEdges(FXObject*, FXSelector,
void*);
157 long onCmdTypeInSearchBox(FXObject*, FXSelector,
void*);
160 long onCmdSelectEdge(FXObject*, FXSelector,
void*);
163 long onCmdClearSelection(FXObject*, FXSelector,
void*);
166 long onCmdInvertSelection(FXObject*, FXSelector,
void*);
209 std::string getLaneIdsSelected()
const;
215 void hideSelectorLaneChildrenModul();
218 void updateUseSelectedLanes();
223 long onCmdUseSelectedLanes(FXObject*, FXSelector,
void*);
226 long onCmdTypeInSearchBox(FXObject*, FXSelector,
void*);
229 long onCmdSelectLane(FXObject*, FXSelector,
void*);
232 long onCmdClearSelection(FXObject*, FXSelector,
void*);
235 long onCmdInvertSelection(FXObject*, FXSelector,
void*);
FXTextField * myEdgesSearch
text field for search edge IDs
FXButton * invertLanesSelection
button for invert selection
const RGBColor & getSelectedLaneColor() const
get selected lane color
FXTextField * myLanesSearch
text field for search lane IDs
GNEFrameAttributesModuls::AttributesCreator * myAdditionalAttributes
internal additional attributes
void showSelectorLaneParentsModul()
show SelectorLaneParents modul
bool addAdditional(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add additional element
GNEFrameModuls::TagSelector * myAdditionalTagSelector
item selector
FXCheckButton * myUseSelectedLanesCheckButton
CheckBox for selected lanes.
SelectorEdgeChildren()
FOX needs this.
bool buildAdditionalCommonAttributes(std::map< SumoXMLAttr, std::string > &valuesMap, const GNEAttributeCarrier::TagProperties &tagValues)
build common additional attributes
struct with the attribute Properties
FXCheckButton * myUseSelectedEdgesCheckButton
CheckBox for selected edges.
bool isShown() const
return true if modul is shown
long onCmdAbortSelection(FXObject *, FXSelector, void *)
Called when the user press abort selection button.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
bool stopConsecutiveLaneSelector()
stop selection of consecutive lanes
SelectorLaneChildren()
FOX needs this.
long onCmdStopSelection(FXObject *, FXSelector, void *)
std::vector< GNELane * > myCandidateLanes
Vector with the colored lanes.
const std::vector< std::pair< GNELane *, double > > & getSelectedLanes() const
get current selected lanes
GNEAdditionalFrame * myAdditionalFrameParent
pointer to additional frame parent
RGBColor myCandidateLaneColor
color for candidate lanes
bool buildAdditionalOverEdge(std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
build additional over an edge (parent of lane)
FXButton * clearLanesSelection
button for clear selection
GNEAdditionalFrame * myAdditionalFrameParent
pointer to additional frame parent
bool isLaneSelected(GNELane *lane) const
check if certain lane is selected
GNEAdditionalFrame::SelectorLaneParents * getConsecutiveLaneSelector() const
getConsecutive Lane Selector
void removeLastSelectedLane()
remove last added point
A point in 2D or 3D with translation and scaling methods.
GNEAdditionalFrame * myAdditionalFrameParent
pointer to additionalFrameParent
FXButton * myStopSelectingButton
button for stop selecting
bool buildAdditionalOverLane(std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
build additional over a single lane
SelectorLaneParents()
FOX needs this.
FXButton * myClearEdgesSelection
button for clear selection
~GNEAdditionalFrame()
Destructor.
class used to group all variables related with objects under cursor after a click over view ...
FXButton * myAbortSelectingButton
button for abort selecting
std::vector< std::pair< GNELane *, double > > mySelectedLanes
Vector with the selected lanes and the clicked position.
GNEFrameModuls::SelectorParent * myAdditionalParent
Modul for select a single additional parent.
FXButton * myInvertEdgesSelection
button for invert selection
SelectorLaneChildren * mySelectorLaneChildren
Modul for select lane children.
void tagSelected()
Tag selected in TagSelector.
FXList * myList
List of SelectorLaneChildren.
FXList * myList
List of SelectorEdgeChildren.
void showSelectorLaneChildrenModul()
show selector lane child and update use selected edges/lanes
bool addSelectedLane(GNELane *lane, const Position &clickedPosition)
return true if lane can be selected as consecutive lane
An Element which don't belongs to GNENet but has influency in the simulation.
SelectorLaneParents * mySelectorLaneParents
Modul for select lane parents (currently only consecutives)
SelectorEdgeChildren * mySelectorEdgeChildren
Modul for select edge children.
RGBColor mySelectedLaneColor
color for selected lanes
bool buildAdditionalOverView(std::map< SumoXMLAttr, std::string > &valuesMap, const GNEAttributeCarrier::TagProperties &tagValues)
build additional over view
void hideSelectorLaneParentsModul()
hide SelectorLaneParents
std::string generateID(GNENetElement *netElement) const
generate a ID for an additiona element
bool buildAdditionalWithParent(std::map< SumoXMLAttr, std::string > &valuesMap, GNEAdditional *parent, const GNEAttributeCarrier::TagProperties &tagValues)
build additional with Parent
bool isSelectingLanes() const
return true if modul is selecting lane
void startConsecutiveLaneSelector(GNELane *lane, const Position &clickedPosition)
start selection of consecutive lanes
bool buildAdditionalOverLanes(std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
build additional over lanes
GNEAdditionalFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
void abortConsecutiveLaneSelector()
abort selection of consecutive lanes
~SelectorLaneParents()
destructor