Skip to content

Commit

Permalink
Added new elements in GNETagSelector::ACTemplate(). Refs #13667
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Jul 26, 2023
1 parent 9bdae0a commit c3c9b6f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/netedit/frames/GNETagSelector.cpp
Expand Up @@ -292,7 +292,7 @@ GNETagSelector::ACTemplate::getAC() const {

GNETagSelector::ACTemplate::ACTemplate(GNENet* net, const GNETagProperties tagProperty) :
myAC(nullptr) {
// create attribute carrier depending of
// create attribute carrier depending of tag
switch (tagProperty.getTag()) {
// additional elements
case SUMO_TAG_BUS_STOP:
Expand Down Expand Up @@ -398,6 +398,16 @@ GNETagSelector::ACTemplate::ACTemplate(GNENet* net, const GNETagProperties tagPr
case SUMO_TAG_OVERHEAD_WIRE_CLAMP:
myAC = nullptr; // TMP
break;
// JuPedSim elements
case GNE_TAG_WALKABLEAREA:
myAC = new GNEPoly(net);
break;
case GNE_TAG_OBSTACLE:
myAC = new GNEPoly(net);
break;
case GNE_TAG_POIWAYPOINT:
myAC = new GNEPOI(tagProperty.getTag(), net);
break;
// Demand elements
case SUMO_TAG_ROUTE:
case GNE_TAG_ROUTE_EMBEDDED:
Expand Down

0 comments on commit c3c9b6f

Please sign in to comment.