97 for (
const auto& planTemplate :
myFrameParent->getViewNet()->getNet()->getACTemplates()->getPlanTemplates(
myPlanType)) {
98 planTemplate.second->resetDefaultValues(
false);
99 myPlansComboBox->appendIconItem(planTemplate.first->getTooltipText().c_str(),
101 planTemplate.second->getTagProperty()->getBackGroundColor());
224 for (
const auto& junction :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getJunctions()) {
225 junction.second->setInvalidCandidate(
true);
228 for (
const auto& edge :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getEdges()) {
229 for (
int i = 0; i < (int)edge.second->getChildLanes().size(); i++) {
230 if (edge.second->getNBEdge()->getLanes().at(i).permissions &
SVC_PEDESTRIAN) {
231 edge.second->getFromJunction()->setPossibleCandidate(
true);
232 edge.second->getToJunction()->setPossibleCandidate(
true);
246 for (
const auto& edge :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getEdges()) {
247 bool allowPedestrian =
false;
248 for (
int i = 0; i < (int)edge.second->getChildLanes().size(); i++) {
249 if (edge.second->getNBEdge()->getLanes().at(i).permissions &
SVC_PEDESTRIAN) {
250 allowPedestrian =
true;
253 if (allowPedestrian) {
254 edge.second->setPossibleCandidate(
true);
256 edge.second->setInvalidCandidate(
true);
267 for (
const auto& junction :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getJunctions()) {
268 junction.second->resetCandidateFlags();
276 for (
const auto& edge :
myFrameParent->getViewNet()->getNet()->getAttributeCarriers()->getEdges()) {
277 edge.second->resetCandidateFlags();
285 for (
const auto& planTemplate :
myFrameParent->getViewNet()->getNet()->getACTemplates()->getPlanTemplates(
myPlanType)) {
286 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)
@ SVC_PEDESTRIAN
pedestrian
SumoXMLTag
Numbers representing SUMO-XML - element names.
GNEGroupBoxModule (based on FXGroupBox).
GNEGroupBoxModule(GNEFrame *frame, const std::string &text, const int options=Options::COLLAPSIBLE)
constructor for frames
FXVerticalFrame * getCollapsableFrame()
get collapsable frame (used by all elements that will be collapsed if button is toggled)
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
bool markRoutes() const
check if mark routes with dotted contours
SumoXMLTag myPlanType
plan type
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
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 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