 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNEFrameModuls_h
17 #define GNEFrameModuls_h
344 FXTreeItem*
addListItem(FXTreeItem* itemParent,
const std::string& text, FXIcon* icon,
bool expanded);
int getNumberOfOverlappedACs() const
get number of overlapped ACSs
FXButton * myFinishCreationButton
button for finish route creation
SumoXMLTag myParentTag
current parent additional tag
GNEDemandElement * myClickedDemandElement
demand element (casted from myClickedAC)
bool showSelectorParentModul(SumoXMLTag additionalTypeParent)
Show list of SelectorParent Modul.
void hideAttributeCarrierHierarchy()
hide AttributeCarrierHierarchy
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
GNEAttributeCarrier * myClickedAC
pointer to current clicked Attribute Carrier
void showAttributeCarrierHierarchy(GNEAttributeCarrier *AC)
show AttributeCarrierHierarchy
DrawingShape(GNEFrame *frameParent)
FOX-declaration.
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
~EdgePathCreator()
destructor
void finishEdgePathCreation()
finish edge path creation
FXTreeItem * addListItem(GNEAttributeCarrier *AC, FXTreeItem *itemParent=nullptr, std::string prefix="", std::string sufix="")
add item into list
GNEFrame * myFrameParent
pointer to Frame Parent
struct with the attribute Properties
void showDrawingShape()
show Drawing mode
void setVClass(SUMOVehicleClass vClass)
set SUMOVehicleClass
void setDeleteLastCreatedPoint(bool value)
enable or disable delete last created point
long onCmdShowChildMenu(FXObject *, FXSelector, void *data)
long onCmdAbortRouteCreation(FXObject *, FXSelector, void *)
void stopDrawing()
stop drawing and check if shape can be created
void setDemandElement(GNEDemandElement *demandElement)
set current demand element
bool isDemandElementSelectorShown() const
check if demand element selector is shown
std::vector< GNEEdge * > myClickedEdges
current clicked edges
void showEdgePathCreator()
show EdgePathCreator
void setIDSelected(const std::string &id)
select manually a element of the list
long onCmdInspectItem(FXObject *, FXSelector, void *)
called when user click over option "inspect" of child menu
void addNewPoint(const Position &P)
add new point to temporal shape
FXButton * myStopDrawingButton
button for stop drawing
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
void showAttributeCarrierChildren(GNEAttributeCarrier *AC, FXTreeItem *itemParent)
show child of current attributeCarrier
void refreshDemandElementSelector()
refresh demand element selector
FXLabel * myInformationLabel
Label with information.
void showDemandElementSelector()
show demand element selector
bool addBusStop(GNEAdditional *busStop)
add busStop to route
@ GNE_EDGEPATHCREATOR_FROM_TO_VIA
PositionVector myTemporalShapeShape
current drawed shape
long onCmdOverlappingHelp(FXObject *, FXSelector, void *)
Called when user press the help button.
GNEFrame * myFrameParent
pointer to Frame Parent
size_t myItemIndex
current index item
~DemandElementSelector()
destructor
GNEJunction * myClickedJunction
junction (casted from myClickedAC)
void hideDrawingShape()
hide Drawing mode
long onCmdListItemSelected(FXObject *, FXSelector, void *)
called when a list item is selected
long onCmdMoveItemUp(FXObject *, FXSelector, void *)
called when user click over option "Move up" of child menu
OverlappedInspection()
FOX needs this.
void removeLastPoint()
remove last added point
bool getDeleteLastCreatedPoint()
get flag delete last created point
void setCurrentTagType(GNEAttributeCarrier::TagType tagType)
set current type manually
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ GNE_EDGEPATHCREATOR_TO_BUSSTOP
bool addEdge(GNEEdge *edge)
add edge to route
std::vector< GNEAttributeCarrier * > myOverlappedACs
objects under cursor
FXButton * myStartDrawingButton
button for start drawing
A road/street connecting two junctions (netedit-version)
@ GNE_EDGEPATHCREATOR_CONSECUTIVE
std::map< FXTreeItem *, GNEAttributeCarrier * > myTreeItemToACMap
map used to save the Tree items with their AC
FXTreeList * myTreelist
tree list to show the children of the element to erase
AttributeCarrierHierarchy(GNEFrame *frameParent)
FOX-declaration.
bool overlappedInspectionShown() const
check if overlappedInspection modul is shown
long onCmdCenterItem(FXObject *, FXSelector, void *)
called when user click over option "center" of child Menu
bool nextElement(const Position &clickedPosition)
try to go to next element if clicked position is near to saved position
EdgePathCreatorModes
FOX-declaration.
FXComboBox * myTagTypesMatchBox
comboBox with tag type
std::vector< SumoXMLTag > myListOfTags
list of tags that will be shown in Match Box
void createPopUpMenu(int X, int Y, GNEAttributeCarrier *clickedAC)
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
EdgePathCreator(GNEFrame *frameParent, int edgePathCreatorModes)
default constructor
~AttributeCarrierHierarchy()
destructor
void hideEdgePathCreator()
show EdgePathCreator
class used to group all variables related with objects under cursor after a click over view
void edgePathCreatorName(const std::string &name)
update EdgePathCreator name
std::vector< std::pair< std::string, GNEAttributeCarrier::TagType > > myListOfTagTypes
list of tags types that will be shown in Match Box
GNEDemandElement * myCurrentDemandElement
current demand element
GNEFrame * myFrameParent
Frame Parent.
FXButton * myHelpButton
button for help
void buildFXElements()
build Fox Toolkit elemements
GNEDemandElement * getCurrentDemandElement() const
get current demand element
long onCmdDeleteItem(FXObject *, FXSelector, void *)
called when user click over option "delete" of child menu
TagSelector(GNEFrame *frameParent, GNEAttributeCarrier::TagType type, bool onlyDrawables=true)
FOX-declaration.
void setEdgePathCreatorModes(int edgePathCreatorModes)
set EdgePathCreatorModes
#define FOX_CONSTRUCTOR(classname)
void startDrawing()
start drawing
const std::vector< SumoXMLTag > & getAllowedTags() const
A point in 2D or 3D with translation and scaling methods.
const SumoXMLTag myFilteredTag
filtered tag
long onCmdStartDrawing(FXObject *, FXSelector, void *)
GNECrossing * myClickedCrossing
crossing (casted from myClickedAC)
void showOverlappedInspection(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const Position &clickedPosition)
show template editor
FXButton * myPreviousElement
Previous element button.
const GNEAttributeCarrier::TagProperties & getCurrentTagProperties() const
get current type tag
void drawTemporalRoute() const
draw temporal route
void restoreEdgeColor(const GNEEdge *edge)
restore colors of given edge
long onCmdMoveItemDown(FXObject *, FXSelector, void *)
called when user click over option "Move down" of child menu
GNEFrame * myFrameParent
pointer to GNEFrame Parent
GNEFrame * myFrameParent
pointer to frame parent
std::string getIdSelected() const
get currently parent additional selected
GNEShape * myClickedShape
shape (casted from myClickedAC)
long onCmdSelectDemandElement(FXObject *, FXSelector, void *)
FXButton * myRemoveLastInsertedEdge
button for removing last inserted edge
long onCmdPreviousElement(FXObject *, FXSelector, void *)
Inspect previous element (from top to bot)
FXList * myOverlappedElementList
list of overlapped elements
long onCmdAbortDrawing(FXObject *, FXSelector, void *)
Called when the user press abort drawing button.
void clearEdges()
clear edges (and restore colors)
void hideTagSelector()
hide item selector
~DrawingShape()
destructor
SelectorParent(GNEFrame *frameParent)
constructor
@ GNE_EDGEPATHCREATOR_FROM_BUSSTOP
void setCurrentTag(SumoXMLTag newTag)
set current type manually
long onCmdSelectTag(FXObject *, FXSelector, void *)
Called when the user select an elementin ComboBox.
FXTreeItem * showAttributeCarrierParents()
show child of current attributeCarrier
SUMOVehicleClass myVClass
VClass used for this trip.
GNEEdge * myClickedEdge
edge (casted from myClickedAC)
void abortDrawing()
abort drawing
void refreshTagProperties()
due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show
FXButton * myNextElement
Next element button.
long onCmdNextElement(FXObject *, FXSelector, void *)
Inspect next Element (from top to bot)
GNEAttributeCarrier::TagProperties myCurrentTagProperties
current tag properties
long onCmdSelectTagType(FXObject *, FXSelector, void *)
GNEAdditional * mySelectedBusStop
pointer to selected busStop
void hideOverlappedInspection()
hide template editor
bool checkSavedPosition(const Position &clickedPosition) const
check if given position is near to saved position
std::vector< GNEEdge * > myTemporalRoute
vector with temporal route edges
FXComboBox * myTagsMatchBox
comboBox with the list of tags
GNEFrame * myFrameParent
current frame parent
bool isDrawing() const
return true if currently a shape is drawed
GNEAttributeCarrier * myAC
Attribute carrier.
GNEAdditional * myClickedAdditional
additional (casted from myClickedAC)
void hideDemandElementSelector()
hide demand element selector
void abortEdgePathCreation()
abort edge path creation
long onCmdStopDrawing(FXObject *, FXSelector, void *)
Called when the user press stop drawing button.
DemandElementSelector(GNEFrame *frameParent, SumoXMLTag demandElementTag)
FOX-declaration.
FXButton * myAbortCreationButton
button for abort route creation
GNELane * myClickedLane
lane (casted from myClickedAC)
GNEConnection * myClickedConnection
junction (casted from myClickedAC)
~SelectorParent()
destructor
bool previousElement(const Position &clickedPosition)
try to go to previous element if clicked position is near to saved position
GNEAttributeCarrier::TagProperties myInvalidTagProperty
dummy tag properties used if user select an invalid tag
std::vector< GNEEdge * > getClickedEdges() const
get current clicked edges
void refreshAttributeCarrierHierarchy()
refresh AttributeCarrierHierarchy
void showTagSelector()
show item selector
FXList * myParentsList
List of parents.
FXLabel * myParentsLabel
Label with parent name.
std::vector< SumoXMLTag > myDemandElementTags
demand element tags
long onCmdFinishRouteCreation(FXObject *, FXSelector, void *)
Called when the user click over button "Finish route creation".
std::set< FXTreeItem * > myTreeItemsConnections
set used to save tree items without AC assigned, the Incoming/Outcoming connections
Position mySavedClickedPosition
saved clicked position
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
int myEdgePathCreatorModes
current edge path creator modes
GNEAdditional * getClickedBusStop() const
get current clicked edges
long onCmdRemoveLastInsertedElement(FXObject *, FXSelector, void *)
Called when the user click over button "Remove las inserted edge/busStop".
void refreshSelectorParentModul()
Refresh list of Additional Parents Modul.
FXButton * myCurrentIndexButton
Button for current index.
void hideSelectorParentModul()
hide SelectorParent Modul
const PositionVector & getTemporalShape() const
get Temporal shape
~OverlappedInspection()
destructor
void removeLastInsertedElement()
remove last added element (either a BusStop or an edge)
FXButton * myAbortDrawingButton
button for abort drawing
GNEFrame * myFrameParent
pointer to frame Parent
FXComboBox * myDemandElementsMatchBox
comboBox with the list of elements type
long onCmdShowList(FXObject *, FXSelector, void *)
show list of overlapped elements