 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
262 FXTreeItem*
addListItem(FXTreeItem* itemParent,
const std::string& text, FXIcon* icon,
bool expanded);
558 const std::vector<GNEEdge*>&
getSubPath()
const;
621 bool addEdge(
GNEEdge* edge,
const bool shiftKeyPressed,
const bool controlKeyPressed);
645 const std::vector<Path>&
getPath()
const;
long onCmdCreatePath(FXObject *, FXSelector, void *)
GNEEdge * myClickedEdge
edge (casted from myClickedAC)
void hideDrawingShape()
hide Drawing mode
Path()
default constructor
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
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.
GNECrossing * myClickedCrossing
crossing (casted from myClickedAC)
~OverlappedInspection()
destructor
void hideSelectorParentModule()
hide SelectorParent Module
std::vector< ACTemplate * > myACTemplates
list with ACTemplates
void hideOverlappedInspection()
hide template editor
void showHierarchicalElementTree(GNEAttributeCarrier *AC)
show HierarchicalElementTree
void addNewPoint(const Position &P)
add new point to temporal shape
void showSelectorParentModule(const std::vector< SumoXMLTag > &parentTags)
Show list of SelectorParent Module.
std::vector< GNEJunction * > mySelectedJunctions
vector with selected junctions
void abortDrawing()
abort drawing
long onCmdMoveItemDown(FXObject *, FXSelector, void *)
called when user click over option "Move down" of child menu
void showPathLegendModule()
show Legend modul
GNEGenericData * myClickedGenericData
generic data element (casted from myClickedAC)
long onCmdShowCandidateEdges(FXObject *, FXSelector, void *)
Called when the user click over check button "show candidate edges".
A NBNetBuilder extended by visualisation and editing capabilities.
FXLabel * myShiftLabel
label for shift information
void refreshSelectorParentModule()
Refresh list of Additional Parents Module.
GNEFrame * myFrameParent
pointer to frame Parent
bool previousElement(const Position &clickedPosition)
try to go to previous element if clicked position is near to saved position
const std::vector< GNEEdge * > & getSubPath() const
get sub path
const std::vector< SumoXMLTag > & getAllowedTags() const
FXButton * myPreviousElement
Previous element button.
FXLabel * myControlLabel
label for control information
GNEFrame * myFrameParent
current frame parent
void showTagSelector()
show item selector
FXCheckButton * myShowCandidateEdges
CheckBox for show candidate edges.
~HierarchicalElementTree()
destructor
void showPathCreatorModule(SumoXMLTag element, const bool firstElement, const bool consecutives)
show PathCreator for the given tag
GNEAdditional * getToBusStop() const
to additional
GNEAttributeCarrier * myCurrentTemplateAC
current templateAC;
GNEHierarchicalElement * myHE
hierarchical element
An Element which don't belongs to GNENet but has influency in the simulation.
Path & operator=(Path *)=delete
Invalidated assignment operator.
GNEEdge * getContainerPlanPreviousEdge() const
get previous edge for the current container plan
PathCreator(GNEFrame *frameParent)
default constructor
long onCmdOverlappingHelp(FXObject *, FXSelector, void *)
Called when user press the help button.
void removeRoute()
remove route
FXButton * myStopDrawingButton
button for stop drawing
FXLabel * myInfoRouteLabel
label with route info
GNEDemandElement * myCurrentDemandElement
current demand element
GNEFrame * myFrameParent
current frame parent
PathCreator & operator=(PathCreator *)=delete
Invalidated assignment operator.
int getNumberOfOverlappedACs() const
get number of overlapped ACSs
void refreshTagSelector()
refresh tagSelector (used when frameParent is show)
void showDrawingShape()
show Drawing mode
bool drawCandidateEdgesWithSpecialColor() const
draw candidate edges with special color (Only for candidates, special and conflicted)
GNEAttributeCarrier * myClickedAC
pointer to current clicked Attribute Carrier
void showHierarchicalElementChildren(GNEHierarchicalElement *HE, FXTreeItem *itemParent)
show children of given hierarchical element
GNEAdditional * myClickedAdditional
additional (casted from myClickedAC)
DemandElementSelector(GNEFrame *frameParent, SumoXMLTag demandElementTag, GNEDemandElement *defaultElement=nullptr)
FOX-declaration.
GNEFrame * myFrameParent
frame Parent
SumoXMLTag
Numbers representing SUMO-XML - element names.
void updateEdgeColors()
update edge colors
SUMOVehicleClass getVClass() const
get vClass
GNEAdditional * getFromBusStop() const
get from additional
void removeLastPoint()
remove last added point
~DemandElementSelector()
destructor
void clearJunctionColors()
clear junction colors
void updateJunctionColors()
update junction colors
~SelectorParent()
destructor
void setCurrentTag(SumoXMLTag newTag, const bool notifyFrameParent=true)
set current type manually
A road/street connecting two junctions (netedit-version)
void setVClass(SUMOVehicleClass vClass)
set vClass
long onCmdAbortPathCreation(FXObject *, FXSelector, void *)
Called when the user click over button "Abort route creation".
std::vector< SumoXMLTag > myDemandElementTags
demand element tags
GNEDataSet * myClickedDataSet
data set element (casted from myClickedAC)
void removeLastElement()
remove path element
SelectorParent(GNEFrame *frameParent)
constructor
void refreshDemandElementSelector()
refresh demand element selector
void clearEdgeColors()
clear edge colors
FXTreeItem * addListItem(GNEAttributeCarrier *AC, FXTreeItem *itemParent=nullptr, std::string prefix="", std::string sufix="")
add item into list
void hideDemandElementSelector()
hide demand element selector
ACTemplate(GNENet *net, const GNETagProperties tagProperty)
constructor
GNEConnection * myClickedConnection
junction (casted from myClickedAC)
GNEDemandElement * getRoute() const
get route
bool addRoute(GNEDemandElement *route, const bool shiftKeyPressed, const bool controlKeyPressed)
add route
int myCreationMode
current creation mode
void showOverlappedInspection(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const Position &clickedPosition)
show template editor
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
void hidePathLegendModule()
hide Legend modul
long onCmdSelectTag(FXObject *, FXSelector, void *)
GNEAdditional * myFromBusStop
from additional (usually a busStop)
long onCmdRemoveLastElement(FXObject *, FXSelector, void *)
Called when the user click over button "Remove las inserted edge".
std::vector< GNEEdge * > mySubPath
sub path
PositionVector myTemporalShape
current drawed shape
void setPossibleCandidates(GNEEdge *originEdge, const SUMOVehicleClass vClass)
set edgereachability (This function will be called recursively)
class used to group all variables related with objects under cursor after a click over view
void buildFXElements()
build Fox Toolkit elemements
void clearPath()
clear edges (and restore colors)
FXTreeItem * showAttributeCarrierParents()
show child of current attributeCarrier
FXButton * myNextElement
Next element button.
void hidePathCreatorModule()
show PathCreator
FXButton * myRemoveLastInsertedElement
button for removing last inserted element
bool addJunction(GNEJunction *junction, const bool shiftKeyPressed, const bool controlKeyPressed)
add junction
bool overlappedInspectionShown() const
check if overlappedInspection modul is shown
const std::vector< Path > & getPath() const
get path route
void showDemandElementSelector()
show demand element selector
void refreshHierarchicalElementTree()
refresh HierarchicalElementTree
GNETagProperties::TagType myTagType
current tagType
void setSpecialCandidates(GNEEdge *originEdge)
set special candidates (This function will be called recursively)
FXTreeListDinamic * myTreeListDinamic
tree list dinamic to show the children of the element to erase
OverlappedInspection()
FOX needs this.
GNEJunction * myClickedJunction
junction (casted from myClickedAC)
FXButton * myCurrentIndexButton
Button for current index.
long onCmdMoveItemUp(FXObject *, FXSelector, void *)
called when user click over option "Move up" of child menu
A point in 2D or 3D with translation and scaling methods.
std::vector< SumoXMLTag > myParentTags
current parent additional tag
MFXIconComboBox * myDemandElementsMatchBox
comboBox with the list of elements type
GNEDataInterval * myClickedDataInterval
data interval element (casted from myClickedAC)
std::set< FXTreeItem * > myTreeItemsConnections
set used to save tree items without AC assigned, the Incoming/Outcoming connections
FXLabel * myParentsLabel
Label with parent name.
long onCmdInspectItem(FXObject *, FXSelector, void *)
called when user click over option "inspect" of child menu
ACTemplate & operator=(const ACTemplate &src)=delete
Invalidated assignment operator.
void startDrawing()
start drawing
@ SHOW_CANDIDATE_JUNCTIONS
GNEDemandElement * myClickedDemandElement
demand element (casted from myClickedAC)
bool checkSavedPosition(const Position &clickedPosition) const
check if given position is near to saved position
long onCmdAbortDrawing(FXObject *, FXSelector, void *)
Called when the user press abort drawing button.
bool myConflictVClass
flag to mark this path as conflicted
bool myConflictDisconnected
flag to mark this path as disconnected
SUMOVehicleClass myVClass
current vClass
Position mySavedClickedPosition
saved clicked position
long onCmdStartDrawing(FXObject *, FXSelector, void *)
~DrawingShape()
destructor
const std::vector< GNEJunction * > & getSelectedJunctions() const
get current selected junctions
An Element which don't belongs to GNENet but has influency in the simulation.
GNEAdditional * getToStoppingPlace(SumoXMLTag expectedTag) const
get to stoppingPlace
TagSelector(GNEFrame *frameParent, GNETagProperties::TagType type, SumoXMLTag tag, bool onlyDrawables=true)
FOX-declaration.
void updateInfoRouteLabel()
update InfoRouteLabel
void drawTemporalRoute(const GUIVisualizationSettings &s) const
draw temporal route
long onCmdSelectDemandElement(FXObject *, FXSelector, void *)
std::vector< GNEAttributeCarrier * > myOverlappedACs
objects under cursor
GNEAdditional * myToStoppingPlace
to additional (usually a busStop)
FXLabel * myInformationLabel
Label with information.
DrawingShape(GNEFrame *frameParent)
FOX-declaration.
long onCmdCenterItem(FXObject *, FXSelector, void *)
called when user click over option "center" of child Menu
void createPath()
create path
void abortPathCreation()
abort path creation
bool getDeleteLastCreatedPoint()
get flag delete last created point
GNEAttributeCarrier * getTemplateAC(SumoXMLTag ACTag) const
get templateAC
GNELane * myClickedLane
lane (casted from myClickedAC)
FXButton * myStartDrawingButton
button for start drawing
bool isDrawing() const
return true if currently a shape is drawed
PathLegend(GNEFrame *frameParent)
constructor
void hideTagSelector()
hide item selector
long onCmdStopDrawing(FXObject *, FXSelector, void *)
Called when the user press stop drawing button.
FXButton * myFinishCreationButton
button for finish route creation
bool addStoppingPlace(GNEAdditional *stoppingPlace, const bool shiftKeyPressed, const bool controlKeyPressed)
add stoppingPlace
GNEAdditional * myToBusStop
to additional (usually a busStop)
void recalculatePath()
recalculate path
GNEDemandElement * myRoute
route (usually a busStop)
std::vector< GNEEdge * > mySelectedEdges
vector with selected edges
GNEAttributeCarrier * myAC
editedAC
GNEFrame * myFrameParent
pointer to frame parent
std::string getIdSelected() const
get currently parent additional selected
HierarchicalElementTree(GNEFrame *frameParent)
FOX-declaration.
GNEFrame * myFrameParent
pointer to Frame Parent
FXGroupBoxModule (based on FXGroupBox)
const std::vector< GNEEdge * > & getSelectedEdges() const
get current selected edges
FXButton * myAbortDrawingButton
button for abort drawing
long onCmdShowList(FXObject *, FXSelector, void *)
show list of overlapped elements
GNEAttributeCarrier * getAC() const
get template AC
std::map< FXTreeItem *, GNEAttributeCarrier * > myTreeItemToACMap
map used to save the FXTreeItems items with their vinculated AC
bool isDemandElementSelectorShown() const
check if demand element selector is shown
bool isConflictDisconnected() const
check if current path is conflict due is disconnected
long onCmdNextElement(FXObject *, FXSelector, void *)
Inspect next Element (from top to bot)
void setCurrentTagType(GNETagProperties::TagType tagType, const bool onlyDrawables, const bool notifyFrameParent=true)
set current type manually
FXButton * myHelpButton
button for help
GNEEdge * getPersonPlanPreviousEdge() const
get previous edge for the current person plan
long onCmdShowChildMenu(FXObject *, FXSelector, void *data)
FXList * myParentsList
List of parents.
void setIDSelected(const std::string &id)
select manually a element of the list
void setDeleteLastCreatedPoint(bool value)
enable or disable delete last created point
void removeCurrentEditedAttributeCarrier(const GNEAttributeCarrier *HE)
if given AttributeCarrier is the same of myHE, set it as nullptr
const SumoXMLTag myFilteredTag
filtered tag
bool isConflictVClass() const
check if current path is conflict due vClass
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
FXList * myOverlappedElementList
list of overlapped elements
void setDemandElement(GNEDemandElement *demandElement)
set current demand element
long onCmdPreviousElement(FXObject *, FXSelector, void *)
Inspect previous element (from top to bot)
void createPopUpMenu(int X, int Y, GNEAttributeCarrier *clickedAC)
GNEFrame * myFrameParent
pointer to Frame Parent
Stores the information about how to visualize structures.
bool addEdge(GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed)
add edge
GNEAttributeCarrier * getCurrentTemplateAC() const
get current templateAC
long onCmdListItemSelected(FXObject *, FXSelector, void *)
called when a list item is selected
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
bool nextElement(const Position &clickedPosition)
try to go to next element if clicked position is near to saved position
void hideHierarchicalElementTree()
hide HierarchicalElementTree
size_t myItemIndex
current index item
long onCmdDeleteItem(FXObject *, FXSelector, void *)
called when user click over option "delete" of child menu
MFXIconComboBox * myTagsMatchBox
comboBox with the tags
const PositionVector & getTemporalShape() const
get Temporal shape
FXButton * myAbortCreationButton
button for abort route creation
std::vector< Path > myPath
vector with current path
static FXLabel * buildRainbow(FXComposite *parent)
build rainbow in frame modul
GNEDemandElement * getCurrentDemandElement() const
get current demand element
void stopDrawing()
stop drawing and check if shape can be created