107 planTemplate.second->resetDefaultValues(
false);
108 myPlansComboBox->appendIconItem(planTemplate.first->getTooltipText().c_str(),
110 planTemplate.second->getTagProperty()->getBackGroundColor());
124 delete planTemplate.first;
125 delete planTemplate.second;
238 for (
const auto& junction :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getJunctions()) {
239 junction.second->setInvalidCandidate(
true);
242 for (
const auto& edge :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getEdges()) {
243 for (
int i = 0; i < (int)edge.second->getChildLanes().size(); i++) {
244 if (edge.second->getNBEdge()->getLanes().at(i).permissions &
SVC_PEDESTRIAN) {
245 edge.second->getFromJunction()->setPossibleCandidate(
true);
246 edge.second->getToJunction()->setPossibleCandidate(
true);
260 for (
const auto& edge :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getEdges()) {
261 bool allowPedestrian =
false;
262 for (
int i = 0; i < (int)edge.second->getChildLanes().size(); i++) {
263 if (edge.second->getNBEdge()->getLanes().at(i).permissions &
SVC_PEDESTRIAN) {
264 allowPedestrian =
true;
267 if (allowPedestrian) {
268 edge.second->setPossibleCandidate(
true);
270 edge.second->setInvalidCandidate(
true);
281 for (
const auto& junction :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getJunctions()) {
282 junction.second->resetCandidateFlags();
290 for (
const auto& edge :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getEdges()) {
291 edge.second->resetCandidateFlags();
300 if (planTemplate.first->getTooltipText().c_str() ==
myPlansComboBox->getText()) {
FXDEFMAP(GNEPlanSelector) TagSelectorMap[]
@ MID_GNE_TAG_SELECTED
tag selected in ComboBox
#define GUIDesignTextColorRed
red color (for invalid text)
#define GUIDesignComboBox
#define GUIDesignComboBoxVisibleItems
#define GUIDesignTextColorBlack
black color (for correct text)
@ GLO_TRANSHIP
a container tranship
@ GLO_CONTAINER_STOP
a containerStop
@ GLO_PERSONTRIP
a person trip
@ GLO_TRANSPORT
a container transport
@ SVC_PEDESTRIAN
pedestrian
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
A NBNetBuilder extended by visualisation and editing capabilities.
void updateJunctionColors()
update junction colors
GNEDemandElement * getCurrentPlanTemplate() const
get current plan template
bool markJunctions() const
check if mark junctions with dotted contours
std::pair< GNETagProperties *, GNEDemandElement * > myCurrentPlanTemplate
current plan template;
void showPlanSelector()
show plan selector
void fillPersonPlanTemplates(GNENet *net)
fill person templates
bool markRoutes() const
check if mark routes with dotted contours
void hidePlanSelector()
plan item selector
void updateEdgeColors()
update edge colors
GNEPlanSelector(GNEFrame *frameParent, SumoXMLTag planType)
FOX-declaration.
bool markTAZs() const
check if mark TAZs with dotted contours
~GNEPlanSelector()
destructor
GNEFrame * myFrameParent
pointer to Frame Parent
const GNETagProperties * getCurrentPlanTagProperties() const
get current plan tag properties
void clearEdgeColors()
clear edge colors
bool markStoppingPlaces() const
check if mark stoppingPlaces with dotted contours
std::vector< std::pair< GNETagProperties *, GNEDemandElement * > > myPlanTemplates
list with demand templates
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
void clearJunctionColors()
clear junction colors
bool isPlanValid() const
FOX need this.
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
MFXGroupBoxModule (based on FXGroupBox).
FXVerticalFrame * getCollapsableFrame()
get collapsable frame (used by all elements that will be collapsed if button is toggled)
MFXGroupBoxModule(GNEFrame *frame, const std::string &text, const int options=Options::COLLAPSIBLE)
constructor for frames