92 myFrameParent(frameParent) {
97 const auto net = myFrameParent->getViewNet()->getNet();
100 fillPersonPlanTemplates(net);
102 fillContainerPlanTemplates(net);
107 for (
const auto& planTemplate : myPlanTemplates) {
108 myPlansComboBox->appendIconItem(planTemplate.first.getTooltipText().c_str(),
110 planTemplate.second->getTagProperty().getBackGroundColor());
113 myCurrentPlanTemplate = myPlanTemplates.front();
115 myPlansComboBox->setTextColor(FXRGB(0, 0, 0));
116 myPlansComboBox->killFocus();
124 delete planTemplate.second;
250 WRITE_DEBUG(
"Selected invalid item in TemplatePlanSelector");
272 GNETagProperties::TagType::PERSONPLAN,
273 GNETagProperties::TagProperty::NO_PROPERTY,
274 GNETagProperties::TagParents::PLAN_FROM_EDGE | GNETagProperties::TagParents::PLAN_TO_EDGE |
275 GNETagProperties::TagParents::PLAN_FROM_TAZ | GNETagProperties::TagParents::PLAN_TO_TAZ |
276 GNETagProperties::TagParents::PLAN_FROM_JUNCTION | GNETagProperties::TagParents::PLAN_TO_JUNCTION |
277 GNETagProperties::TagParents::PLAN_FROM_BUSSTOP | GNETagProperties::TagParents::PLAN_TO_BUSSTOP |
278 GNETagProperties::TagParents::PLAN_FROM_TRAINSTOP | GNETagProperties::TagParents::PLAN_TO_TRAINSTOP |
279 GNETagProperties::TagParents::PLAN_FROM_CONTAINERSTOP | GNETagProperties::TagParents::PLAN_TO_CONTAINERSTOP |
280 GNETagProperties::TagParents::PLAN_FROM_CHARGINGSTATION | GNETagProperties::TagParents::PLAN_TO_CHARGINGSTATION |
281 GNETagProperties::TagParents::PLAN_FROM_PARKINGAREA | GNETagProperties::TagParents::PLAN_TO_PARKINGAREA,
282 GNETagProperties::Conflicts::NO_CONFLICTS,
287 GNETagProperties::TagType::PERSONPLAN,
288 GNETagProperties::TagProperty::NO_PROPERTY,
289 GNETagProperties::TagParents::PLAN_FROM_EDGE | GNETagProperties::TagParents::PLAN_TO_EDGE |
290 GNETagProperties::TagParents::PLAN_FROM_TAZ | GNETagProperties::TagParents::PLAN_TO_TAZ |
291 GNETagProperties::TagParents::PLAN_FROM_JUNCTION | GNETagProperties::TagParents::PLAN_TO_JUNCTION |
292 GNETagProperties::TagParents::PLAN_FROM_BUSSTOP | GNETagProperties::TagParents::PLAN_TO_BUSSTOP |
293 GNETagProperties::TagParents::PLAN_FROM_TRAINSTOP | GNETagProperties::TagParents::PLAN_TO_TRAINSTOP |
294 GNETagProperties::TagParents::PLAN_FROM_CONTAINERSTOP | GNETagProperties::TagParents::PLAN_TO_CONTAINERSTOP |
295 GNETagProperties::TagParents::PLAN_FROM_CHARGINGSTATION | GNETagProperties::TagParents::PLAN_TO_CHARGINGSTATION |
296 GNETagProperties::TagParents::PLAN_FROM_PARKINGAREA | GNETagProperties::TagParents::PLAN_TO_PARKINGAREA,
297 GNETagProperties::Conflicts::NO_CONFLICTS,
302 GNETagProperties::TagType::PERSONPLAN,
303 GNETagProperties::TagProperty::NO_PROPERTY,
304 GNETagProperties::TagParents::PLAN_FROM_EDGE | GNETagProperties::TagParents::PLAN_TO_EDGE |
305 GNETagProperties::TagParents::PLAN_FROM_TAZ | GNETagProperties::TagParents::PLAN_TO_TAZ |
306 GNETagProperties::TagParents::PLAN_FROM_JUNCTION | GNETagProperties::TagParents::PLAN_TO_JUNCTION |
307 GNETagProperties::TagParents::PLAN_FROM_BUSSTOP | GNETagProperties::TagParents::PLAN_TO_BUSSTOP |
308 GNETagProperties::TagParents::PLAN_FROM_TRAINSTOP | GNETagProperties::TagParents::PLAN_TO_TRAINSTOP |
309 GNETagProperties::TagParents::PLAN_FROM_CONTAINERSTOP | GNETagProperties::TagParents::PLAN_TO_CONTAINERSTOP |
310 GNETagProperties::TagParents::PLAN_FROM_CHARGINGSTATION | GNETagProperties::TagParents::PLAN_TO_CHARGINGSTATION |
311 GNETagProperties::TagParents::PLAN_FROM_PARKINGAREA | GNETagProperties::TagParents::PLAN_TO_PARKINGAREA,
312 GNETagProperties::Conflicts::NO_CONFLICTS,
317 GNETagProperties::TagType::PERSONPLAN,
318 GNETagProperties::TagProperty::NO_PROPERTY,
319 GNETagProperties::TagParents::PLAN_CONSECUTIVE_EDGES,
320 GNETagProperties::Conflicts::NO_CONFLICTS,
325 GNETagProperties::TagType::PERSONPLAN,
326 GNETagProperties::TagProperty::NO_PROPERTY,
327 GNETagProperties::TagParents::PLAN_ROUTE,
328 GNETagProperties::Conflicts::NO_CONFLICTS,
333 GNETagProperties::TagType::PERSONPLAN,
334 GNETagProperties::TagProperty::NO_PROPERTY,
335 GNETagProperties::TagParents::PLAN_EDGE | GNETagProperties::TagParents::PLAN_BUSSTOP |
336 GNETagProperties::TagParents::PLAN_TRAINSTOP | GNETagProperties::TagParents::PLAN_CONTAINERSTOP |
337 GNETagProperties::TagParents::PLAN_CHARGINGSTATION | GNETagProperties::TagParents::PLAN_PARKINGAREA,
338 GNETagProperties::Conflicts::NO_CONFLICTS,
349 GNETagProperties::TagParents::PLAN_FROM_EDGE | GNETagProperties::TagParents::PLAN_TO_EDGE |
354 GNETagProperties::TagParents::PLAN_FROM_CONTAINERSTOP | GNETagProperties::TagParents::PLAN_TO_CONTAINERSTOP,
357 GNETagProperties::Conflicts::NO_CONFLICTS,
362 GNETagProperties::TagParents::PLAN_FROM_EDGE | GNETagProperties::TagParents::PLAN_TO_EDGE |
367 GNETagProperties::TagParents::PLAN_FROM_CONTAINERSTOP | GNETagProperties::TagParents::PLAN_TO_CONTAINERSTOP,
370 GNETagProperties::Conflicts::NO_CONFLICTS,
375 GNETagProperties::TagParents::PLAN_CONSECUTIVE_EDGES,
376 GNETagProperties::Conflicts::NO_CONFLICTS,
381 GNETagProperties::TagParents::PLAN_EDGE | GNETagProperties::TagParents::PLAN_BUSSTOP |
382 GNETagProperties::TagParents::PLAN_TRAINSTOP | GNETagProperties::TagParents::PLAN_CONTAINERSTOP |
383 GNETagProperties::TagParents::PLAN_CHARGINGSTATION | GNETagProperties::TagParents::PLAN_PARKINGAREA,
384 GNETagProperties::Conflicts::NO_CONFLICTS,
FXDEFMAP(GNEPlanSelector) TagSelectorMap[]
@ MID_GNE_TAG_SELECTED
tag selected in ComboBox
#define GUIDesignComboBox
#define GUIDesignComboBoxNCol
number of column of every combo box
#define GUIDesignComboBoxVisibleItemsLarge
combo box large small
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ GNE_TAG_PERSONTRIP_EDGE_EDGE
@ GNE_TAG_TRANSHIP_EDGE_EDGE
@ GNE_TAG_STOPCONTAINER_EDGE
@ SUMO_TAG_STOP
stop for vehicles
@ GNE_TAG_TRANSPORT_EDGE_EDGE
@ GNE_TAG_STOPPERSON_EDGE
virtual void tagSelected()
Tag selected in GNETagSelector.
A NBNetBuilder extended by visualisation and editing capabilities.
std::vector< std::pair< GNETagProperties, GNEDemandElement * > > myPlanTemplates
list with demand templates
GNEDemandElement * getCurrentPlanTemplate() const
get current plan template
bool markJunctions() const
check if mark junctions with dotted contours
void showPlanSelector()
show plan selector
void fillPersonPlanTemplates(GNENet *net)
fill person templates
bool markRoutes() const
check if mark routes with dotted contours
const GNETagProperties & getCurrentPlanTagProperties() const
get current plan tag properties
void hidePlanSelector()
plan item selector
bool markTAZs() const
check if mark TAZs with dotted contours
~GNEPlanSelector()
destructor
GNEFrame * myFrameParent
pointer to Frame Parent
std::pair< GNETagProperties, GNEDemandElement * > myCurrentPlanTemplate
current plan template;
bool markStoppingPlaces() const
check if mark stoppingPlaces with dotted contours
MFXComboBoxIcon * myPlansComboBox
comboBox with the tags
long onCmdSelectPlan(FXObject *, FXSelector, void *)
Called when the user select an element in ComboBox.
bool markEdges() const
check if mark edges with dotted contours
void refreshPlanSelector()
refresh plan selector (used when frameParent is show)
void fillContainerPlanTemplates(GNENet *net)
fill container templates
bool isPlanValid() const
FOX need this.
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
long setCurrentItem(const FXint index, FXbool notify=FALSE)
Set the current item (index is zero-based)
FXString getText() const
Get the text.
void setTextColor(FXColor clr)
Change text color.
FXColor getTextColor() const
Return text color.
MFXGroupBoxModule (based on FXGroupBox)