 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNEAdditionalFrame_h
17 #define GNEAdditionalFrame_h
const std::vector< std::pair< GNELane *, double > > & getSelectedLanes() const
get current selected lanes
SelectorParentLanes(GNEAdditionalFrame *additionalFrameParent)
FOX-declaration.
GNEFrameAttributesModuls::AttributesCreator * myAdditionalAttributes
internal additional attributes
An Element which don't belongs to GNENet but has influency in the simulation.
const RGBColor & getSelectedLaneColor() const
get selected lane color
FXCheckButton * myUseSelectedEdgesCheckButton
CheckBox for selected edges.
void showSelectorParentLanesModul()
show SelectorParentLanes modul
struct with the attribute Properties
RGBColor myCandidateLaneColor
color for candidate lanes
long onCmdStopSelection(FXObject *, FXSelector, void *)
SelectorChildEdges(GNEAdditionalFrame *additionalFrameParent)
FOX-declaration.
bool buildAdditionalCommonAttributes(std::map< SumoXMLAttr, std::string > &valuesMap, const GNEAttributeCarrier::TagProperties &tagValues)
build common additional attributes
void hideSelectorChildEdgesModul()
hide SelectorChildEdges Modul
long onCmdAbortSelection(FXObject *, FXSelector, void *)
Called when the user press abort selection button.
GNEFrameModuls::TagSelector * myAdditionalTagSelector
item selector
bool addAdditional(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add additional element
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
FXButton * invertLanesSelection
button for invert selection
void showSelectorChildLanesModul()
show selector child lane and update use selected edges/lanes
FXButton * clearLanesSelection
button for clear selection
long onCmdClearSelection(FXObject *, FXSelector, void *)
called when clear selection button is pressed
FXButton * myClearEdgesSelection
button for clear selection
GNEAdditionalFrame * myAdditionalFrameParent
pointer to additional frame parent
SelectorParentLanes * mySelectorParentLanes
Modul for select parent lanes (currently only consecutives)
RGBColor mySelectedLaneColor
color for selected lanes
bool buildAdditionalOverEdge(std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
build additional over an edge (parent of lane)
long onCmdClearSelection(FXObject *, FXSelector, void *)
called when clear selection button is pressed
long onCmdTypeInSearchBox(FXObject *, FXSelector, void *)
called when user type in search box
std::string getEdgeIdsSelected() const
get list of selecte id's in string format
bool isShown() const
return true if modul is shown
bool stopConsecutiveLaneSelector()
stop selection of consecutive lanes
GNEAdditionalFrame * myAdditionalFrameParent
pointer to additionalFrameParent
FXButton * myStopSelectingButton
button for stop selecting
long onCmdTypeInSearchBox(FXObject *, FXSelector, void *)
called when user type in search box
bool isLaneSelected(GNELane *lane) const
check if certain lane is selected
long onCmdSelectEdge(FXObject *, FXSelector, void *)
called when user select a edge of the list
~SelectorChildLanes()
destructor
void abortConsecutiveLaneSelector()
abort selection of consecutive lanes
FXList * myList
List of SelectorChildEdges.
class used to group all variables related with objects under cursor after a click over view
bool buildAdditionalOverLane(std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
build additional over a single lane
void updateUseSelectedLanes()
GNEAdditionalFrame * myAdditionalFrameParent
pointer to additional frame parent
~GNEAdditionalFrame()
Destructor.
#define FOX_CONSTRUCTOR(classname)
A point in 2D or 3D with translation and scaling methods.
long onCmdUseSelectedEdges(FXObject *, FXSelector, void *)
SelectorChildLanes * mySelectorChildLanes
Modul for select child lanes.
void updateUseSelectedEdges()
Update use selectedEdges.
std::vector< GNELane * > myCandidateLanes
Vector with the colored lanes.
void showSelectorChildEdgesModul(std::string search="")
Show SelectorChildEdges Modul.
void hideSelectorChildLanesModul()
hide SelectorChildLanes Modul
FXTextField * myLanesSearch
text field for search lane IDs
FXCheckButton * myUseSelectedLanesCheckButton
CheckBox for selected lanes.
SelectorChildEdges * mySelectorChildEdges
Modul for select child edges.
std::vector< std::pair< GNELane *, double > > mySelectedLanes
Vector with the selected lanes and the clicked position.
void tagSelected()
Tag selected in TagSelector.
FXList * myList
List of SelectorChildLanes.
FXButton * myAbortSelectingButton
button for abort selecting
bool buildAdditionalOverView(std::map< SumoXMLAttr, std::string > &valuesMap, const GNEAttributeCarrier::TagProperties &tagValues)
build additional over view
FXTextField * myEdgesSearch
text field for search edge IDs
std::string generateID(GNENetElement *netElement) const
generate a ID for an additiona element
GNEAdditionalFrame::SelectorParentLanes * getConsecutiveLaneSelector() const
getConsecutive Lane Selector
void hideSelectorParentLanesModul()
hide SelectorParentLanes
void removeLastSelectedLane()
remove last added point
void showSelectorChildLanesModul(std::string search="")
Show list of SelectorChildLanes Modul.
GNEFrameModuls::SelectorParent * myParentAdditional
Modul for select a single parent additional.
bool buildAdditionalOverLanes(std::map< SumoXMLAttr, std::string > &valuesMap, GNELane *lane, const GNEAttributeCarrier::TagProperties &tagValues)
build additional over lanes
void startConsecutiveLaneSelector(GNELane *lane, const Position &clickedPosition)
start selection of consecutive lanes
SelectorChildLanes(GNEAdditionalFrame *additionalFrameParent)
FOX-declaration.
~SelectorParentLanes()
destructor
long onCmdInvertSelection(FXObject *, FXSelector, void *)
called when invert selection button is pressed
long onCmdUseSelectedLanes(FXObject *, FXSelector, void *)
long onCmdSelectLane(FXObject *, FXSelector, void *)
called when user select a lane of the list
GNEAdditionalFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
bool buildAdditionalWithParent(std::map< SumoXMLAttr, std::string > &valuesMap, GNEAdditional *parent, const GNEAttributeCarrier::TagProperties &tagValues)
build additional with Parent
FXButton * myInvertEdgesSelection
button for invert selection
std::string getLaneIdsSelected() const
get list of selecte lane ids in string format
~SelectorChildEdges()
destructor
bool isSelectingLanes() const
return true if modul is selecting lane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
bool addSelectedLane(GNELane *lane, const Position &clickedPosition)
return true if lane can be selected as consecutive lane
long onCmdInvertSelection(FXObject *, FXSelector, void *)
called when invert selection button is pressed