216 FXGLVisual* glVis, FXGLCanvas* share) :
218 myEditModes(this, newNet),
220 myObjectsUnderCursor(this),
221 myCommonCheckableButtons(this),
222 myNetworkCheckableButtons(this),
223 myDemandCheckableButtons(this),
224 myDataCheckableButtons(this),
225 myNetworkViewOptions(this),
226 myDemandViewOptions(this),
227 myDataViewOptions(this),
229 myMoveSingleElementValues(this),
230 myMoveMultipleElementValues(this),
231 myVehicleOptions(this),
232 myVehicleTypeOptions(this),
233 mySaveElements(this),
234 mySelectingArea(this),
235 myEditNetworkElementShapes(this),
237 myViewParent(viewParent),
239 myCurrentFrame(
nullptr),
240 myUndoList(undoList),
241 myFrontAttributeCarrier(
nullptr) {
243 reparent(actualParent);
245 buildEditModeControls();
247 myNet->setViewNet(
this);
253 myTestingMode.initTestingMode();
264 const Boundary maxBoundary(1000000000.0, 1000000000.0, -1000000000.0, -1000000000.0);
270 std::set<GNEAttributeCarrier*> ACs;
272 for (
const auto& GLId : GLIDs) {
280 for (
const auto& AC : ACs) {
307 "\tLocate Junctions\tLocate a junction within the network. (Shift+J)",
309 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
312 "\tLocate Edges\tLocate an edge within the network. (Shift+E)",
314 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
318 "\tLocate Vehicles\tLocate a vehicle within the network. (Shift+V)",
320 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
324 "\tLocate Persons\tLocate a person within the network. (Shift+P)",
326 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
330 "\tLocate Route\tLocate a route within the network. (Shift+R)",
332 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
336 "\tLocate Stops\tLocate a stop within the network. (Shift+S)",
338 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
350 "\tLocate TLS\tLocate a tls within the network. (Shift+T)",
352 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
355 "\tLocate Additional\tLocate an additional structure within the network. (Shift+A)",
357 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
360 "\tLocate PoI\tLocate a PoI within the network. (Shift+O)",
362 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
365 "\tLocate Polygon\tLocate a Polygon within the network. (Shift+L)",
367 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
374 GUISUMOAbstractView::update();
384 std::set<std::pair<std::string, GNEAttributeCarrier*> >
388 std::set<std::pair<std::string, GNEAttributeCarrier*> > result;
396 for (
const auto& GLId : GLIds) {
405 retrievedAC =
nullptr;
410 result.insert(std::make_pair(retrievedAC->
getID(), retrievedAC));
438 new FXMenuSeparator(ret);
488 if (oc.
getString(
"gui-testing.setting-output").size() > 0) {
556 bool hide,
double hideThreshold) {
559 double minValue = std::numeric_limits<double>::infinity();
560 double maxValue = -std::numeric_limits<double>::infinity();
566 }
else if (active == 11) {
570 const double val = lane->getColorValue(s, active);
574 minValue =
MIN2(minValue, val);
575 maxValue =
MAX2(maxValue, val);
580 minValue =
MIN2(minValue, junction.second->getPositionInView().z());
581 maxValue =
MAX2(maxValue, junction.second->getPositionInView().z());
587 const double value = genericData->getColorValue(s, active);
588 minValue =
MIN2(minValue, value);
589 maxValue =
MAX2(maxValue, value);
596 std::set<SVCPermissions> codes;
598 codes.insert(lane->getParentEdge()->getNBEdge()->getPermissions(lane->getIndex()));
600 int step =
MAX2(1, 360 / (
int)codes.size());
604 hue = (hue + step) % 360;
608 if (minValue != std::numeric_limits<double>::infinity()) {
612 const double rawRange = maxValue - minValue;
613 minValue =
MAX2(hideThreshold +
MIN2(1.0, rawRange / 100.0), minValue);
616 double range = maxValue - minValue;
660 if (movedJunction && targetJunction &&
662 (movedJunction != targetJunction)) {
665 WRITE_DEBUG(
"Opening FXMessageBox 'merge junctions'");
667 FXuint answer = FXMessageBox::question(
this, MBOX_YES_NO,
668 "Confirm Junction Merger",
"%s",
669 (
"Do you wish to merge junctions '" + movedJunction->
getMicrosimID() +
672 "' will be eliminated and its roads added to '" +
677 WRITE_DEBUG(
"Closed FXMessageBox 'merge junctions' with 'No'");
678 }
else if (answer == 4) {
679 WRITE_DEBUG(
"Closed FXMessageBox 'merge junctions' with 'ESC'");
684 WRITE_DEBUG(
"Closed FXMessageBox 'merge junctions' with 'Yes'");
698 std::string supermode;
700 supermode =
"network";
702 supermode =
"demand";
709 const auto answer = FXMessageBox::question(
myApp, MBOX_YES_NO,
710 "Confirm change supermode",
"%s",
711 (operation +
" require to change to " + supermode +
" mode. Continue?").c_str());
715 if (answer == MBOX_CLICKED_YES) {
725 myEditModes(this, false),
727 myObjectsUnderCursor(this),
728 myCommonCheckableButtons(this),
729 myNetworkCheckableButtons(this),
730 myDemandCheckableButtons(this),
731 myDataCheckableButtons(this),
732 myNetworkViewOptions(this),
733 myDemandViewOptions(this),
734 myDataViewOptions(this),
736 myMoveSingleElementValues(this),
737 myMoveMultipleElementValues(this),
738 myVehicleOptions(this),
739 myVehicleTypeOptions(this),
740 mySaveElements(this),
741 mySelectingArea(this),
742 myEditNetworkElementShapes(this),
744 myViewParent(nullptr),
746 myCurrentFrame(nullptr),
748 myFrontAttributeCarrier(nullptr) {
752 std::vector<std::string>
754 std::set<std::string> keys;
757 for (
const auto& item : e->getParametersMap()) {
758 keys.insert(item.first);
760 for (
const auto& con : e->getConnections()) {
761 for (
const auto& item : con.getParametersMap()) {
762 keys.insert(item.first);
766 for (
const auto& lane : e->getLanes()) {
768 for (
const auto& item : lane.getParametersMap()) {
769 keys.insert(item.first);
771 for (
const auto& con : e->getConnectionsFromLane(i)) {
772 for (
const auto& item : con.getParametersMap()) {
773 keys.insert(item.first);
780 return std::vector<std::string>(keys.begin(), keys.end());
784 std::vector<std::string>
786 std::set<std::string> keys;
788 for (
const auto& parameter : genericData->getACParametersMap()) {
789 keys.insert(parameter.first);
792 return std::vector<std::string>(keys.begin(), keys.end());
796 std::vector<std::string>
798 std::set<std::string> keys;
800 for (
const auto& parameter : genericData->getACParametersMap()) {
801 keys.insert(parameter.first);
805 for (
const auto& parameter : genericData->getACParametersMap()) {
806 keys.insert(parameter.first);
809 return std::vector<std::string>(keys.begin(), keys.end());
826 glMatrixMode(GL_MODELVIEW);
828 glDisable(GL_TEXTURE_2D);
829 glDisable(GL_ALPHA_TEST);
831 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
832 glEnable(GL_DEPTH_TEST);
906 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
907 const float minB[2] = { (float)bound.
xmin(), (float)bound.
ymin() };
908 const float maxB[2] = { (float)bound.
xmax(), (float)bound.
ymax() };
910 glEnable(GL_POLYGON_OFFSET_FILL);
911 glEnable(GL_POLYGON_OFFSET_LINE);
920 if (inspectedAC->getTagProperty().isAdditionalElement() && inspectedAC->getGUIGlObject()) {
1111 if (clearSelection) {
1145 if (clearSelection) {
1166 if (clearSelection) {
1197 if (selectedACs.size() > 0) {
1213 if (selectedACs.size() > 0) {
1229 if (selectedACs.size() > 0) {
1369 const std::vector<GNEAttributeCarrier*>&
1433 glTranslated(0, 0, typeOrLayer + extraOffset);
1513 edge = (((
GNELane*)pointed)->getParentEdge());
1562 return dynamic_cast<GNEPoly*
>(pointed);
1576 return dynamic_cast<GNEPOI*
>(pointed);
1590 return dynamic_cast<GNETAZ*
>(pointed);
1600 switch (FXSELID(sel)) {
1620 switch (FXSELID(sel)) {
1662 switch (FXSELID(sel)) {
1704 switch (FXSELID(sel)) {
1732 if (edge !=
nullptr) {
1742 if (edge !=
nullptr) {
1746 if (reverseEdge !=
nullptr) {
1757 if (edge !=
nullptr) {
1761 for (
const auto& selectedEdge : selectedEdges) {
1778 if (edge !=
nullptr) {
1782 for (
const auto& selectedEdge : selectedEdges) {
1799 if (edge !=
nullptr) {
1810 if (edge !=
nullptr) {
1818 for (
const auto& selectedEdge : selectedEdges) {
1835 if (edge !=
nullptr) {
1839 for (
const auto& selectedEdge : selectedEdges) {
1857 if (edge !=
nullptr) {
1861 for (
const auto& selectedEdge : selectedEdges) {
1878 if (edge !=
nullptr) {
1882 for (
const auto& selectedEdge : selectedEdges) {
1883 selectedEdge->straightenElevation(
myUndoList);
1899 if (edge !=
nullptr) {
1903 for (
const auto& selectedEdge : selectedEdges) {
1920 if (edge !=
nullptr) {
1924 for (
const auto& selectedEdge : selectedEdges) {
1941 if (polygonUnderMouse) {
1949 for (
const auto& selectedShape : selectedShapes) {
1951 if (selectedShape->getTagProperty().getTag() ==
SUMO_TAG_POLY) {
1953 dynamic_cast<GNEPoly*
>(selectedShape)->simplifyShape();
1970 if (polygonUnderMouse) {
1983 if (polygonUnderMouse) {
1991 for (
const auto& selectedShape : selectedShapes) {
1993 if (selectedShape->getTagProperty().getTag() ==
SUMO_TAG_POLY) {
1995 dynamic_cast<GNEPoly*
>(selectedShape)->closePolygon();
2014 if (polygonUnderMouse) {
2022 for (
const auto& selectedShape : selectedShapes) {
2024 if (selectedShape->getTagProperty().getTag() ==
SUMO_TAG_POLY) {
2026 dynamic_cast<GNEPoly*
>(selectedShape)->openPolygon();
2045 if (polygonUnderMouse) {
2049 std::vector<GNEAttributeCarrier*> filteredACs;
2051 for (
const auto& AC : ACs) {
2052 if (AC.second->getTagProperty().getTag() ==
SUMO_TAG_EDGE) {
2054 filteredACs.push_back(AC.second);
2056 }
else if (AC.second->getTagProperty().getTag() ==
SUMO_TAG_LANE) {
2058 filteredACs.push_back(AC.second);
2061 filteredACs.push_back(AC.second);
2065 if (filteredACs.size() > 0) {
2069 for (
const auto& AC : filteredACs) {
2084 if (polygonUnderMouse) {
2104 std::vector<GNELane*> lanes;
2105 for (
const auto& GLID : GLIDs) {
2108 lanes.push_back(lane);
2111 if (lanes.empty()) {
2115 GNELane* nearestLane = lanes.front();
2118 for (
const auto& lane : lanes) {
2119 double posOverLane = lane->getLaneShape().nearest_offset_to_point2D(
POI->getPositionInView());
2120 double lateralOffset = lane->getLaneShape().positionAtOffset(posOverLane).distanceTo(
POI->getPositionInView());
2121 if (lateralOffset < minorLateralOffset) {
2122 minorPosOverLane = posOverLane;
2123 minorLateralOffset = lateralOffset;
2168 if (lane !=
nullptr) {
2174 Position newPosition = edgeGeometry[index];
2178 if (newPosition != edgeGeometry[index]) {
2180 edgeGeometry[index] = newPosition;
2187 }
else if (index == ((
int)edgeGeometry.size() - 1)) {
2193 edgeGeometry.pop_back();
2200 }
else if (poly !=
nullptr) {
2206 Position newPosition = polygonGeometry[index];
2210 if (newPosition != polygonGeometry[index]) {
2212 polygonGeometry[index] = newPosition;
2220 }
else if (
TAZ !=
nullptr) {
2226 Position newPosition = TAZGeometry[index];
2230 if (newPosition != TAZGeometry[index]) {
2232 TAZGeometry[index] = newPosition;
2250 if (laneAtPopupPosition !=
nullptr) {
2260 for (
const auto& selectedEdge : selectedEdges) {
2284 if (laneAtPopupPosition !=
nullptr) {
2290 for (
const auto& lane : selectedLanes) {
2321 if (laneAtPopupPosition !=
nullptr) {
2327 for (
const auto& lane : selectedLanes) {
2344 if (laneAtPopupPosition !=
nullptr) {
2350 for (
const auto& lane : selectedLanes) {
2367 switch (FXSELID(sel)) {
2403 if (laneAtPopupPosition !=
nullptr) {
2411 for (
const auto& lane : edge.second->getLanes()) {
2412 if (lane->getReachability() >= 0) {
2440 if (laneAtPopupPosition !=
nullptr) {
2444 std::map<GNEEdge*, GNELane*> mapOfEdgesAndLanes;
2446 for (
const auto& lane : selectedLanes) {
2450 if (mapOfEdgesAndLanes.size() != selectedLanes.size()) {
2451 FXMessageBox::information(getApp(), MBOX_OK,
2452 "Multiple lane in the same edge selected",
"%s",
2453 (
"There are selected lanes that belong to the same edge.\n Only one lane per edge will be restricted for " +
toString(vclass) +
".").c_str());
2456 if (mapOfEdgesAndLanes.size() > 0) {
2460 for (
const auto& edgeLane : mapOfEdgesAndLanes) {
2461 if (edgeLane.first->hasRestrictedLane(vclass)) {
2466 if (counter == (
int)mapOfEdgesAndLanes.size()) {
2467 FXMessageBox::information(getApp(), MBOX_OK,
2468 (
"Set vclass for " +
toString(vclass) +
" to selected lanes").c_str(),
"%s",
2469 (
"All lanes own already another lane in the same edge with a restriction for " +
toString(vclass)).c_str());
2472 WRITE_DEBUG(
"Opening FXMessageBox 'restrict lanes'");
2474 FXuint answer = FXMessageBox::question(getApp(), MBOX_YES_NO,
2475 (
"Set vclass for " +
toString(vclass) +
" to selected lanes").c_str(),
"%s",
2476 (
toString(mapOfEdgesAndLanes.size() - counter) +
" lanes will be restricted for " +
toString(vclass) +
". continue?").c_str());
2480 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'No'");
2481 }
else if (answer == 4) {
2482 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'ESC'");
2487 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'Yes'");
2493 for (
const auto& edgeLane : mapOfEdgesAndLanes) {
2515 if (laneAtPopupPosition !=
nullptr) {
2521 std::set<GNEEdge*> setOfEdges;
2523 for (
const auto& edge : selectedEdges) {
2524 setOfEdges.insert(edge);
2527 for (
const auto& lane : selectedLanes) {
2532 if (setOfEdges.size() > 0) {
2536 for (
const auto& edge : setOfEdges) {
2538 if (edge->hasRestrictedLane(vclass)) {
2543 if (counter == (
int)setOfEdges.size()) {
2544 FXMessageBox::information(getApp(), MBOX_OK,
2545 (
"Add vclass for" +
toString(vclass) +
" to selected lanes").c_str(),
"%s",
2546 (
"All lanes own already another lane in the same edge with a restriction for " +
toString(vclass)).c_str());
2549 WRITE_DEBUG(
"Opening FXMessageBox 'restrict lanes'");
2551 FXuint answer = FXMessageBox::question(getApp(), MBOX_YES_NO,
2552 (
"Add vclass for " +
toString(vclass) +
" to selected lanes").c_str(),
"%s",
2553 (
toString(setOfEdges.size() - counter) +
" restrictions for " +
toString(vclass) +
" will be added. continue?").c_str());
2557 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'No'");
2558 }
else if (answer == 4) {
2559 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'ESC'");
2564 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'Yes'");
2570 for (
const auto& edge : setOfEdges) {
2584 if (insertAtFront) {
2606 if (laneAtPopupPosition !=
nullptr) {
2612 std::set<GNEEdge*> setOfEdges;
2614 for (
const auto& edge : selectedEdges) {
2615 setOfEdges.insert(edge);
2618 for (
const auto& lane : selectedLanes) {
2623 if (setOfEdges.size() > 0) {
2627 for (
const auto& edge : setOfEdges) {
2629 if (edge->hasRestrictedLane(vclass)) {
2635 FXMessageBox::information(getApp(), MBOX_OK,
2636 (
"Remove vclass for " +
toString(vclass) +
" to selected lanes").c_str(),
"%s",
2637 (
"Selected lanes and edges haven't a restriction for " +
toString(vclass)).c_str());
2640 WRITE_DEBUG(
"Opening FXMessageBox 'restrict lanes'");
2642 FXuint answer = FXMessageBox::question(getApp(), MBOX_YES_NO,
2643 (
"Remove vclass for " +
toString(vclass) +
" to selected lanes").c_str(),
"%s",
2644 (
toString(counter) +
" restrictions for " +
toString(vclass) +
" will be removed. continue?").c_str());
2648 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'No'");
2649 }
else if (answer == 4) {
2650 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'ESC'");
2655 WRITE_DEBUG(
"Closed FXMessageBox 'restrict lanes' with 'Yes'");
2661 for (
const auto& edge : setOfEdges) {
2682 FXEvent* evt = (FXEvent*)eventData;
2689 if (evt->click_count == 2) {
2690 handle(
this, FXSEL(SEL_DOUBLECLICKED, 0), eventData);
2698 bool cursorMoveView =
false;
2699 bool cursorInspect =
false;
2700 bool cursorSelect =
false;
2701 bool cursorMoveElement =
false;
2702 bool cursorDelete =
false;
2711 cursorMoveView =
true;
2715 cursorInspect =
true;
2717 cursorSelect =
true;
2719 cursorMoveElement =
true;
2721 cursorDelete =
true;
2728 cursorMoveView =
true;
2732 cursorInspect =
true;
2734 cursorSelect =
true;
2736 cursorMoveElement =
true;
2738 cursorDelete =
true;
2743 cursorMoveView =
true;
2747 cursorInspect =
true;
2749 cursorSelect =
true;
2751 cursorDelete =
true;
2759 }
else if (cursorInspect) {
2771 }
else if (cursorSelect) {
2783 }
else if (cursorMoveElement) {
2787 }
else if (cursorDelete) {
2828 for (
const auto& selectedJunction : selectedJunctions) {
2848 if (junction !=
nullptr) {
2862 if (junction !=
nullptr) {
2876 if (junction !=
nullptr) {
2889 if (junction !=
nullptr) {
2902 if (junction !=
nullptr) {
2916 if (junction !=
nullptr) {
2929 for (
const auto& selectedJunction : selectedJunctions) {
2948 if (junction !=
nullptr) {
2961 for (
const auto& selectedJunction : selectedJunctions) {
3173 std::set<GNEEdge*> edgesToUpdate;
3176 if (vehicle->getParentEdges().size() > 0) {
3177 edgesToUpdate.insert(vehicle->getParentEdges().front());
3178 }
else if (vehicle->getChildDemandElements().size() > 0 && (vehicle->getChildDemandElements().front()->getTagProperty().getTag() ==
GNE_TAG_ROUTE_EMBEDDED)) {
3179 edgesToUpdate.insert(vehicle->getChildDemandElements().front()->getParentEdges().front());
3183 if (routeFlow->getParentEdges().size() > 0) {
3184 edgesToUpdate.insert(routeFlow->getParentEdges().front());
3185 }
else if (routeFlow->getChildDemandElements().size() > 0 && (routeFlow->getChildDemandElements().front()->getTagProperty().getTag() ==
GNE_TAG_ROUTE_EMBEDDED)) {
3186 edgesToUpdate.insert(routeFlow->getChildDemandElements().front()->getParentEdges().front());
3190 if (trip->getParentEdges().size() > 0) {
3191 edgesToUpdate.insert(trip->getParentEdges().front());
3195 if (flow->getParentEdges().size() > 0) {
3196 edgesToUpdate.insert(flow->getParentEdges().front());
3200 for (
const auto& edge : edgesToUpdate) {
3201 edge->updateVehicleSpreadGeometries();
3418 if (personOrPersonPlan) {
3472 if (containerOrContainerPlan) {
3837 menuChecks.menuCheckToggleGrid->show();
3838 menuChecks.menuCheckDrawSpreadVehicles->show();
3839 menuChecks.menuCheckShowDemandElements->show();
3841 menuChecks.separator->show();
3855 menuChecks.menuCheckSelectEdges->show();
3856 menuChecks.menuCheckShowConnections->show();
3857 menuChecks.menuCheckShowAdditionalSubElements->show();
3872 menuChecks.menuCheckShowAdditionalSubElements->show();
3874 menuChecks.menuCheckSelectEdges->show();
3875 menuChecks.menuCheckShowConnections->show();
3888 menuChecks.menuCheckSelectEdges->show();
3889 menuChecks.menuCheckShowConnections->show();
3890 menuChecks.menuCheckExtendSelection->show();
3891 menuChecks.menuCheckShowAdditionalSubElements->show();
3903 menuChecks.menuCheckChainEdges->show();
3904 menuChecks.menuCheckAutoOppositeEdge->show();
3916 menuChecks.menuCheckWarnAboutMerge->show();
3917 menuChecks.menuCheckShowJunctionBubble->show();
3918 menuChecks.menuCheckMoveElevation->show();
3934 menuChecks.menuCheckChangeAllPhases->show();
3944 menuChecks.menuCheckShowAdditionalSubElements->show();
3978 menuChecks.updateAltLabels();
4023 menuChecks.menuCheckToggleGrid->show();
4024 menuChecks.menuCheckDrawSpreadVehicles->show();
4025 menuChecks.menuCheckHideShapes->show();
4026 menuChecks.menuCheckShowAllTrips->show();
4027 menuChecks.menuCheckShowAllPersonPlans->show();
4028 menuChecks.menuCheckLockPerson->show();
4029 menuChecks.menuCheckShowAllContainerPlans->show();
4030 menuChecks.menuCheckLockContainer->show();
4031 menuChecks.menuCheckShowOverlappedRoutes->show();
4033 menuChecks.separator->show();
4046 menuChecks.menuCheckHideNonInspectedDemandElements->show();
4169 menuChecks.menuCheckShowAdditionals->show();
4170 menuChecks.menuCheckShowShapes->show();
4171 menuChecks.menuCheckShowDemandElements->show();
4173 menuChecks.separator->show();
4189 menuChecks.menuCheckToogleTAZRelDrawing->show();
4190 menuChecks.menuCheckToogleTAZDrawFill->show();
4191 menuChecks.menuCheckToogleTAZRelOnlyFrom->show();
4192 menuChecks.menuCheckToogleTAZRelOnlyTo->show();
4205 menuChecks.menuCheckToogleTAZRelDrawing->show();
4218 menuChecks.menuCheckToogleTAZRelDrawing->show();
4250 menuChecks.menuCheckToogleTAZRelDrawing->show();
4251 menuChecks.menuCheckToogleTAZDrawFill->show();
4275 for (
const auto& AC : ACs) {
4290 }
else if (AC->getTagProperty().getTag() ==
SUMO_TAG_EDGE) {
4297 }
else if (AC->getTagProperty().getTag() ==
SUMO_TAG_LANE) {
4311 }
else if (AC->getTagProperty().isAdditionalElement()) {
4315 if (additionalElement) {
4318 }
else if (AC->getTagProperty().isShape()) {
4325 }
else if (AC->getTagProperty().isTAZElement()) {
4340 for (
const auto& AC : ACs) {
4344 if (demandElement) {
4354 for (
const auto& AC : ACs) {
4409 glTranslated(firstLanePoint.
x(), firstLanePoint.
y(),
GLO_JUNCTION + 0.3);
4424 std::vector<double> shapeRotations, shapeLengths;
4437 int segments = (int) shape.size() - 1;
4438 if (segments >= 0) {
4439 shapeRotations.reserve(segments);
4440 shapeLengths.reserve(segments);
4441 for (
int j = 0; j < segments; j++) {
4457 glTranslated(lastLanePoint.
x(), lastLanePoint.
y(),
GLO_JUNCTION + 0.3);
4473 bool deleteLastCreatedPoint =
false;
4483 if (temporalShape.size() > 0) {
4496 if (deleteLastCreatedPoint) {
4529 glTranslated(mousePosition.
x(), mousePosition.
y(), 0.1);
4602 (AC->getTagProperty().isNetworkElement() || AC->getTagProperty().isAdditionalElement() ||
4603 AC->getTagProperty().isShape() || AC->getTagProperty().isTAZElement())) {
4608 }
else if (AC->isAttributeCarrierSelected()) {
4636 if (AC && !
myLockManager.
isObjectLocked(AC->getGUIGlObject()->getType(), AC->isAttributeCarrierSelected()) && !AC->getTagProperty().isDemandElement()) {
4638 if (AC->isAttributeCarrierSelected()) {
4639 AC->unselectAttributeCarrier();
4641 AC->selectAttributeCarrier();
4665 }
else if (reverseEdge) {
4714 if (AC && !
myLockManager.
isObjectLocked(AC->getGUIGlObject()->getType(), AC->isAttributeCarrierSelected()) && !AC->getTagProperty().isDemandElement()) {
4716 if (AC->isAttributeCarrierSelected()) {
4811 bool updateTemporalShape =
false;
4817 if (!updateTemporalShape) {
4924 if (AC && !
myLockManager.
isObjectLocked(AC->getGUIGlObject()->getType(), AC->isAttributeCarrierSelected()) && AC->getTagProperty().isDemandElement()) {
4926 if (AC->isAttributeCarrierSelected()) {
4948 if (AC->isAttributeCarrierSelected()) {
4949 AC->unselectAttributeCarrier();
4951 AC->selectAttributeCarrier();
4967 AC->getTagProperty().isDemandElement()) {
4969 if (AC->isAttributeCarrierSelected()) {
5083 if (AC && AC->getTagProperty().getTag() ==
SUMO_TAG_TAZ) {
5094 if (AC && !
myLockManager.
isObjectLocked(AC->getGUIGlObject()->getType(), AC->isAttributeCarrierSelected()) && AC->getTagProperty().isDataElement()) {
5096 if (AC->isAttributeCarrierSelected()) {
5116 if (AC && !
myLockManager.
isObjectLocked(AC->getGUIGlObject()->getType(), AC->isAttributeCarrierSelected()) && AC->getTagProperty().isDataElement()) {
5118 if (AC->isAttributeCarrierSelected()) {
5119 AC->unselectAttributeCarrier();
5121 AC->selectAttributeCarrier();
FXDEFMAP(GNEViewNet) GNEViewNetMap[]
@ DATA_EDGERELDATA
mode for create edgeRelData elements
@ DATA_SELECT
mode for selecting data elements
@ DATA_TAZRELDATA
mode for create TAZRelData elements
@ DATA_INSPECT
mode for inspecting data elements
@ DATA_EDGEDATA
mode for create edgeData elements
@ DATA_DELETE
mode for deleting data elements
Supermode
@brie enum for supermodes
@ NETWORK
Network mode (Edges, junctions, etc..)
@ DATA
Data mode (edgeData, LaneData etc..)
@ DEMAND
Demand mode (Routes, Vehicles etc..)
@ NETWORK_DELETE
mode for deleting network elements
@ NETWORK_MOVE
mode for moving network elements
@ NETWORK_ADDITIONAL
Mode for editing additionals.
@ NETWORK_TAZ
Mode for editing TAZ.
@ NETWORK_CREATE_EDGE
mode for creating new edges
@ NETWORK_TLS
mode for editing tls
@ NETWORK_CROSSING
Mode for editing crossing.
@ NETWORK_POLYGON
Mode for editing Polygons.
@ NETWORK_SELECT
mode for selecting network elements
@ NETWORK_INSPECT
mode for inspecting network elements
@ NETWORK_PROHIBITION
Mode for editing connection prohibitions.
@ NETWORK_CONNECT
mode for connecting lanes
@ DEMAND_PERSONPLAN
Mode for editing person plan.
@ DEMAND_INSPECT
mode for inspecting demand elements
@ DEMAND_CONTAINER
Mode for editing container.
@ DEMAND_DELETE
mode for deleting demand elements
@ DEMAND_PERSON
Mode for editing person.
@ DEMAND_SELECT
mode for selecting demand elements
@ DEMAND_ROUTE
Mode for editing routes.
@ DEMAND_VEHICLE
Mode for editing vehicles.
@ DEMAND_MOVE
mode for moving demand elements
@ DEMAND_STOP
Mode for editing stops.
@ DEMAND_CONTAINERPLAN
Mode for editing container plan.
@ DEMAND_TYPE
Mode for editing types.
@ MID_GNE_NETWORKVIEWOPTIONS_AUTOOPPOSITEEDGES
automatically create opposite edge
@ MID_GNE_ADDSELECT_EDGE
Add edge to selected items - menu entry.
@ MID_HOTKEY_F3_SUPERMODE_DEMAND
select demand supermode in NETEDIT
@ MID_GNE_LANE_EDIT_SHAPE
edit lane shape
@ MID_GNE_DEMANDVIEWOPTIONS_SHOWALLPERSONPLANS
show all person plans
@ MID_GNE_LANE_TRANSFORM_BIKE
transform lane to bikelane
@ MID_GNE_DATAVIEWOPTIONS_TAZRELDRAWING
toogle TAZRel drawing
@ MID_GNE_EDGE_REVERSE
reverse an edge
@ MID_LOCATEPERSON
Locate person - button.
@ MID_ADDSELECT
Add to selected items - menu entry.
@ MID_GNE_LANE_ADD_BUS
add busLane
@ MID_GNE_NETWORKVIEWOPTIONS_DRAWSPREADVEHICLES
Draw vehicles in begin position or spread in lane.
@ MID_GNE_NETWORKVIEWOPTIONS_MOVEELEVATION
move elevation instead of x,y
@ MID_HOTKEY_S_MODES_SELECT
hotkey for mode selecting objects
@ MID_LOCATEJUNCTION
Locate junction - button.
@ MID_GNE_NETWORKVIEWOPTIONS_HIDECONNECTIONS
hide connections
@ MID_GNE_REMOVESELECT_EDGE
Remove edge from selected items - Menu Etry.
@ MID_GNE_NETWORKVIEWOPTIONS_SHOWCONNECTIONS
show connections
@ MID_GNE_INTERVALBAR_BEGIN
begin changed in InterbalBar
@ MID_GNE_DATAVIEWOPTIONS_TAZRELONLYTO
toogle draz TAZRel only to
@ MID_GNE_DEMANDVIEWOPTIONS_LOCKPERSON
lock person
@ MID_HOTKEY_V_MODES_VEHICLE
hotkey for mode create vehicles
@ MID_HOTKEY_E_MODES_EDGE_EDGEDATA
hotkey for mode adding edges AND edgeDatas
@ MID_LOCATEPOLY
Locate polygons - button.
@ MID_GNE_JUNCTION_CLEAR_CONNECTIONS
clear junction's connections
@ MID_GNE_JUNCTION_SELECT_ROUNDABOUT
select all roundabout nodes and edges of the current roundabout
@ MID_GNE_INTERVALBAR_ATTRIBUTE
attribute changed in InterbalBar
@ MID_GNE_JUNCTION_RESET_SHAPE
reset junction shape
@ MID_GNE_NETWORKVIEWOPTIONS_ASKFORMERGE
ask before merging junctions
@ MID_GNE_JUNCTION_RESET_CONNECTIONS
reset junction's connections
@ MID_GNE_DEMANDVIEWOPTIONS_SHOWGRID
show grid
@ MID_GNE_JUNCTION_SPLIT
turn junction into multiple junctions
@ MID_GNE_EDGE_STRAIGHTEN_ELEVATION
interpolate z values linear between junctions
@ MID_GNE_NETWORKVIEWOPTIONS_CHAINEDGES
create edges in chain mode
@ MID_HOTKEY_R_MODES_CROSSING_ROUTE_EDGERELDATA
hotkey for mode editing crossing, routes and edge rel datas
@ MID_GNE_DATAVIEWOPTIONS_SHOWDEMANDELEMENTS
show demand elements
@ MID_GNE_POLYGON_CLOSE
close opened polygon
@ MID_GNE_EDGE_SMOOTH
smooth geometry
@ MID_HOTKEY_I_MODES_INSPECT
hotkey for mode inspecting object attributes
@ MID_LOCATEADD
Locate addtional structure - button.
@ MID_LOCATEPOI
Locate poi - button.
@ MID_GNE_LANE_RESET_CUSTOMSHAPE
reset custom shape
@ MID_GNE_EDGE_STRAIGHTEN
remove inner geometry
@ MID_GNE_DEMANDVIEWOPTIONS_HIDESHAPES
hide shapes
@ MID_HOTKEY_P_MODES_POLYGON_PERSON
hotkey for mode creating polygons
@ MID_GNE_LANE_TRANSFORM_BUS
transform lane to busLane
@ MID_GNE_POLYGON_SET_FIRST_POINT
Set a vertex of polygon as first verte.
@ MID_GNE_LANE_DUPLICATE
duplicate a lane
@ MID_GNE_DATAVIEWOPTIONS_SHOWADDITIONALS
show additionals
@ MID_GNE_NETWORKVIEWOPTIONS_SHOWBUBBLES
show junctions as bubbles
@ MID_GNE_LANE_ADD_GREENVERGE_FRONT
add greenVerge front of current lane
@ MID_GNE_INTERVALBAR_END
end changed in InterbalBar
@ MID_HOTKEY_Z_MODES_TAZ_TAZREL
hotkey for mode editing TAZ and TAZRel
@ MID_HOTKEY_M_MODES_MOVE
hotkey for mode moving element
@ MID_GNE_NETWORKVIEWOPTIONS_EXTENDSELECTION
extend selection
@ MID_GNE_LANE_REMOVE_GREENVERGE
remove greenVerge
@ MID_GNE_EDGE_SPLIT_BIDI
split an edge
@ MID_GNE_NETWORKVIEWOPTIONS_SHOWSUBADDITIONALS
show sub-additionals
@ MID_GNE_JUNCTION_REPLACE
turn junction into geometry node
@ MID_GNE_DEMANDVIEWOPTIONS_SHOWALLCONTAINERPLANS
show all container plans
@ MID_HOTKEY_F4_SUPERMODE_DATA
select data supermode in NETEDIT
@ MID_LOCATESTOP
Locate stop - button.
@ MID_GNE_LANE_REMOVE_BIKE
remove bikelane
@ MID_HOTKEY_W_MODES_PROHIBITION
hotkey for mode editing connection prohibitions
@ MID_GNE_POI_TRANSFORM
Transform POI to POILane, and viceversa.
@ MID_GNE_LANE_RESET_OPPOSITELANE
reset opposite lane
@ MID_GNE_JUNCTION_CONVERT_ROUNDABOUT
convert junction to roundabout
@ MID_GNE_DATAVIEWOPTIONS_TAZDRAWFILL
toogle draz TAZ fill
@ MID_REACHABILITY
show reachability from a given lane
@ MID_GNE_EDGE_RESET_LENGTH
reset custom lengths
@ MID_GNE_LANE_REMOVE_BUS
remove busLane
@ MID_HOTKEY_A_MODES_ADDITIONAL_STOP
hotkey for mode editing additionals AND stops
@ MID_GNE_NETWORKVIEWOPTIONS_SHOWDEMANDELEMENTS
show demand elements
@ MID_GNE_POLYGON_SELECT
select elements within polygon boundary
@ MID_GNE_JUNCTION_SPLIT_RECONNECT
turn junction into multiple junctions and reconnect them heuristically
@ MID_OPEN_ADDITIONAL_DIALOG
open additional dialog (used in netedit)
@ MID_HOTKEY_H_MODE_CONTAINERDATA
hotkey for mode containerData
@ MID_GNE_DEMANDVIEWOPTIONS_HIDENONINSPECTED
hide non-inspected demand element
@ MID_HOTKEY_C_MODES_CONNECT_PERSONPLAN
hotkey for mode connecting lanes
@ MID_GNE_JUNCTION_EDIT_SHAPE
edit junction shape
@ MID_GNE_LANE_REMOVE_SIDEWALK
remove sidewalk
@ MID_GNE_EDGE_RESET_ENDPOINT
reset default geometry endpoints
@ MID_GNE_INTERVALBAR_GENERICDATATYPE
generic data selected
@ MID_LOCATEEDGE
Locate edge - button.
@ MID_GNE_LANE_ADD_GREENVERGE_BACK
add greenVerge back of current laen
@ MID_HOTKEY_G_MODE_CONTAINER
hotkey for mode container
@ MID_GNE_EDGE_SMOOTH_ELEVATION
smooth elevation with regard to adjoining edges
@ MID_GNE_NETWORKVIEWOPTIONS_CHANGEALLPHASES
change all phases
@ MID_GNE_DATAVIEWOPTIONS_SHOWSHAPES
show shapes
@ MID_GNE_DATAVIEWOPTIONS_TAZRELONLYFROM
toogle draz TAZRel only from
@ MID_GNE_EDGE_ADD_REVERSE
add reverse edge
@ MID_LOCATEVEHICLE
Locate vehicle - button.
@ MID_LOCATETLS
Locate TLS - button.
@ MID_GNE_DEMANDVIEWOPTIONS_DRAWSPREADVEHICLES
Draw vehicles in begin position or spread in lane.
@ MID_GNE_LANE_ADD_SIDEWALK
add sidewalk
@ MID_GNE_DEMANDVIEWOPTIONS_SHOWOVERLAPPEDROUTES
show overlapped routes
@ MID_GNE_RESET_GEOMETRYPOINT
reset geometry point
@ MID_GNE_CONNECTION_EDIT_SHAPE
edit junction shape
@ MID_GNE_INTERVALBAR_DATASET
data set selected
@ MID_GNE_LANE_TRANSFORM_SIDEWALK
transform lane to sidewalk
@ MID_GNE_LANE_ADD_BIKE
add bikelane
@ MID_HOTKEY_F2_SUPERMODE_NETWORK
select network supermode in NETEDIT
@ MID_GNE_DEMANDVIEWOPTIONS_LOCKCONTAINER
lock container
@ MID_HOTKEY_D_MODES_DELETE
hotkey for mode deleting things
@ MID_HOTKEY_T_MODES_TLS_TYPE
hotkey for mode editing TLS AND types
@ MID_GNE_NETWORKVIEWOPTIONS_SELECTEDGES
select edges
@ MID_GNE_EDGE_SPLIT
split an edge
@ MID_GNE_LANE_TRANSFORM_GREENVERGE
transform lane to greenVerge
@ MID_GNE_CUSTOM_GEOMETRYPOINT
set custom geometry point
@ MID_GNE_DEMANDVIEWOPTIONS_SHOWTRIPS
show all trips
@ MID_GNE_NETWORKVIEWOPTIONS_TOGGLEGRID
show grid
@ MID_GNE_INTERVALBAR_LIMITED
enable/disable show data elements by interval
@ MID_GNE_EDGE_EDIT_ENDPOINT
change default geometry endpoints
@ MID_LOCATEROUTE
Locate route - button.
@ MID_GNE_POLYGON_DELETE_GEOMETRY_POINT
delete geometry point
@ MID_GNE_CROSSING_EDIT_SHAPE
edit junction shape
@ MID_GNE_POLYGON_OPEN
open closed polygon
@ MID_GNE_POLYGON_SIMPLIFY_SHAPE
simplify polygon geometry
@ MID_REMOVESELECT
Remove from selected items - Menu Etry.
GUICompleteSchemeStorage gSchemeStorage
@ MOVEELEMENT
move element cursor
@ MOVEVIEW
move view cursor
@ SELECT_LANE
select lanecursor
@ DELETE_CURSOR
delete cursor
@ INSPECT_LANE
inspect lane cursor
#define GUIDesignVerticalSeparator
vertical separator
@ GLO_TAZRELDATA
TAZ relation data.
@ GLO_TEMPORALSHAPE
temporal shape (used in NETEDIT)
@ GLO_DOTTEDCONTOUR_FRONT
dotted contour front element (used in NETEDIT)
@ GLO_CONNECTION
a connection
#define WRITE_WARNING(msg)
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
@ SVC_IGNORING
vehicles ignoring classes
@ SVC_BICYCLE
vehicle is a bicycle
@ SVC_BUS
vehicle is a bus
@ SVC_PEDESTRIAN
pedestrian
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
@ SUMO_TAG_EDGEREL
a relation between two edges
@ SUMO_TAG_TAZ
a traffic assignment zone
@ SUMO_TAG_POI
begin/end of the description of a Point of interest
@ SUMO_TAG_VEHICLE
description of a vehicle
@ GNE_TAG_FLOW_ROUTE
a flow definition using a route instead of a from-to edges route (used in NETEDIT)
@ SUMO_TAG_FLOW
a flow definitio nusing a from-to edges instead of a route (used by router)
@ SUMO_TAG_CONNECTION
connectio between two lanes
@ SUMO_TAG_JUNCTION
begin/end of the description of a junction
@ SUMO_TAG_CROSSING
crossing between edges for pedestrians
@ SUMO_TAG_MEANDATA_EDGE
an edge based mean data detector
@ SUMO_TAG_POLY
begin/end of the description of a polygon
@ SUMO_TAG_LANE
begin/end of the description of a single lane
@ SUMO_TAG_TAZREL
a relation between two TAZs
@ GNE_TAG_ROUTE_EMBEDDED
embedded route (used in NETEDIT)
@ SUMO_TAG_TRIP
a single trip definition (used by router)
@ SUMO_TAG_EDGE
begin/end of the description of an edge
@ GNE_ATTR_OPPOSITE
neighboring lane, simplified lane attr instead of child element
@ GNE_ATTR_PARENT
parent of an additional element
@ GNE_ATTR_SELECTED
element is selected
@ SUMO_ATTR_CUSTOMSHAPE
whether a given shape is user-defined
@ SUMO_ATTR_SHAPE
edge: the shape in xml-definition
@ GNE_ATTR_SHAPE_END
last coordinate of edge shape
@ GNE_ATTR_SHAPE_START
first coordinate of edge shape
const double SUMO_const_laneWidth
#define UNUSED_PARAMETER(x)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void parseSumoBaseObject(CommonXMLStructure::SumoBaseObject *obj)
parse SumoBaseObject (it's called recursivelly)
A class that stores a 2D geometrical boundary.
double ymin() const
Returns minimum y-coordinate.
double xmin() const
Returns minimum x-coordinate.
double ymax() const
Returns maximum y-coordinate.
double xmax() const
Returns maximum x-coordinate.
void addBoolAttribute(const SumoXMLAttr attr, const bool value)
add bool attribute into current SumoBaseObject node
void addDoubleAttribute(const SumoXMLAttr attr, const double value)
add double attribute into current SumoBaseObject node
void addStringAttribute(const SumoXMLAttr attr, const std::string &value)
static void drawLine(const Position &beg, double rot, double visLength)
Draws a thin line.
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
static void drawOutlineCircle(double width, double iwidth, int steps=8)
Draws an unfilled circle around (0,0)
static void popMatrix()
pop matrix
static void drawBoxLines(const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, double width, int cornerDetail=0, double offset=0)
Draws thick lines.
static void pushMatrix()
push matrix
static void drawText(const std::string &text, const Position &pos, const double layer, const double size, const RGBColor &col=RGBColor::BLACK, const double angle=0, const int align=0, double width=-1)
void abortPathCreation()
abort path creation
void removeLastElement()
remove path element
void drawTemporalE2Multilane(const GUIVisualizationSettings &s) const
draw temporal E2Multilane
bool createPath()
create path
bool isSelectingLanes() const
return true if modul is selecting lane
const std::vector< std::pair< GNELane *, double > > & getSelectedLanes() const
get current selected lanes
bool isShown() const
return true if modul is shown
bool stopConsecutiveLaneSelector()
stop selection of consecutive lanes
void startConsecutiveLaneSelector(GNELane *lane, const Position &clickedPosition)
start selection of consecutive lanes
bool addSelectedLane(GNELane *lane, const Position &clickedPosition)
return true if lane can be selected as consecutive lane
void abortConsecutiveLaneSelector()
abort selection of consecutive lanes
GNEAdditionalFrame::SelectorParentLanes * getConsecutiveLaneSelector() const
get consecutive Lane Selector
GNEAdditionalFrame::E2MultilaneLaneSelector * getE2MultilaneLaneSelector() const
getConsecutive Lane Selector
bool addAdditional(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add additional element
Builds additional objects for GNENet (busStops, chargingStations, detectors, etc.....
An Element which don't belongs to GNENet but has influency in the simulation.
virtual void openAdditionalDialog()
open Additional Dialog
GNEApplicationWindowHelper::EditMenuCommands & getEditMenuCommands()
getEdit Menu Commands (needed for show/hide menu commands)
GNEApplicationWindowHelper::ToolbarsGrip & getToolbarsGrip()
get ToolbarsGrip
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
virtual const std::string & getID() const =0
return ID of object
virtual GUIGlObject * getGUIGlObject()=0
get GUIGlObject associated with this AttributeCarrier
const GNETagProperties & getTagProperty() const
get tagProperty associated with this Attribute Carrier
void unselectAttributeCarrier(const bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
void selectAttributeCarrier(const bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
virtual std::string getAttribute(SumoXMLAttr key) const =0
the function-object for an editing operation (abstract base)
long onCmdSaveModifications(FXObject *, FXSelector, void *)
Called when the user presses the OK-Button saves any connection modifications.
long onCmdCancelModifications(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any connection modifications.
ConnectionModifications * getConnectionModifications() const
get pointer to ConnectionModifications modul
void handleLaneClick(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
either sets the current lane or toggles the connection of the
bool addContainer(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add vehicle element
GNEFrameModules::PathCreator * getPathCreator() const
get PathCreator modul
GNEFrameModules::PathCreator * getPathCreator() const
get path creator modul
bool addContainerPlanElement(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add container plan element
void processClick(const Position &clickedPosition, const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const bool oppositeEdge, const bool chainEdge)
handle processClick and set the relative colouring
void abortEdgeCreation()
abort current edge creation
void show()
show create edge frame
void updateObjectsUnderSnappedCursor(const std::vector< GUIGlObject * > &GUIGlObjects)
update objects under snapped cursor
const GNEJunction * getJunctionSource() const
get junction source for new edge
void addCrossing(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add Crossing element
void createCrossingHotkey()
create crossing (used when user press ENTER key in Crossing mode)
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
GNEJunction * getParentJunction() const
get parent Junction
NBNode::Crossing * getNBCrossing() const
get referente to NBode::Crossing
An Element which don't belongs to GNENet but has influency in the simulation.
bool deleteOnlyGeometryPoints() const
check if only delete geometry points checkbox is enabled
DeleteOptions * getDeleteOptions() const
get delete options
void removeSelectedAttributeCarriers()
remove selected attribute carriers (element)
void removeAttributeCarrier(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, bool ignoreOptions=false)
remove attribute carrier (element)
void removeGeometryPoint(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
remove geometry point
void show()
show delete frame
An Element which don't belongs to GNENet but has influency in the simulation.
bool addEdgeData(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add additional element
A road/street connecting two junctions (netedit-version)
GNEEdge * getOppositeEdge() const
get opposite edge
void smooth(GNEUndoList *undoList)
make geometry smooth
NBEdge * getNBEdge() const
returns the internal NBEdge
void smoothElevation(GNEUndoList *undoList)
smooth elevation with regard to adjoining edges
const std::vector< GNELane * > & getLanes() const
returns a reference to the lane vector
void editEndpoint(Position pos, GNEUndoList *undoList)
makes pos the new geometry endpoint at the appropriate end, or remove current existent endpoint
Position getSplitPos(const Position &clickPos)
void straightenElevation(GNEUndoList *undoList)
interpolate z values linear between junctions
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
void resetEndpoint(const Position &pos, GNEUndoList *undoList)
restores the endpoint to the junction position at the appropriate end
bool addEdgeRelationData(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add additional element
void focusUpperElement()
focus upper element of frame
virtual void show()
show Frame
void setDeleteLastCreatedPoint(bool value)
enable or disable delete last created point
void stopDrawing()
stop drawing and check if shape can be created
bool getDeleteLastCreatedPoint()
get flag delete last created point
void abortDrawing()
abort drawing
const PositionVector & getTemporalShape() const
get Temporal shape
void startDrawing()
start drawing
bool isDrawing() const
return true if currently a shape is drawed
bool overlappedInspectionShown() const
check if overlappedInspection modul is shown
bool checkSavedPosition(const Position &clickedPosition) const
check if given position is near to saved position
void abortPathCreation()
abort path creation
void removeLastElement()
remove path element
void createPath()
create path
void drawTemporalRoute(const GUIVisualizationSettings &s) const
draw temporal route
GNEFrameModules::PathCreator * getPathCreator() const
get PathCreator modul
An Element which don't belongs to GNENet but has influency in the simulation.
Dialog to edit sequences, parameters, etc.. of Additionals.
const std::vector< GNEDemandElement * > & getParentDemandElements() const
get parent demand elements
void inspectSingleElement(GNEAttributeCarrier *AC)
Inspect a single element.
void clearInspectedAC()
Clear all current inspected ACs.
bool processDataSupermodeClick(const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
process click over Viewnet in Supermode Data
void show()
show inspector frame
GNEFrameModules::OverlappedInspection * getOverlappedInspection() const
get OverlappedInspection modul
bool processNetworkSupermodeClick(const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
process click over Viewnet in Supermode Network
void inspectMultisection(const std::vector< GNEAttributeCarrier * > &ACs)
Inspect the given multi-selection.
bool processDemandSupermodeClick(const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
process click over Viewnet in Supermode Demand
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
Position getPositionInView() const
Returns position of hierarchical element in view.
NBNode * getNBNode() const
Return net build node.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
const PositionVector & getLaneShape() const
get elements shape
int getIndex() const
returns the index of the lane
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
GNEEdge * getParentEdge() const
get arent edge
virtual void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList)=0
remove geometry point in the clicked position
void show()
show prohibition frame
GNEAttributeCarrier * retrieveAttributeCarrier(const GUIGlID id, bool hardFail=true) const
get a single attribute carrier based on a GLID
const std::map< SumoXMLTag, std::set< GNEGenericData * > > & getGenericDatas() const
get all generic datas
const std::set< GNELane * > & getLanes() const
get lanes
GNETAZElement * retrieveTAZElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named TAZElement.
GNELane * retrieveLane(const std::string &id, bool hardFail=true, bool checkVolatileChange=false) const
get lane by id
const std::map< SumoXMLTag, std::set< GNEDemandElement * > > & getDemandElements() const
get demand elements
GNEShape * retrieveShape(SumoXMLTag, const std::string &id, bool hardFail=true) const
Returns the named shape.
GNEAdditional * retrieveAdditional(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named additional.
bool isNetworkElementAroundShape(GNEAttributeCarrier *AC, const PositionVector &shape) const
check if shape of given AC (network element) is around the given shape
GNEJunction * retrieveJunction(const std::string &id, bool hardFail=true) const
get junction by id
GNEDataSet * retrieveDataSet(const std::string &id, bool hardFail=true) const
Returns the named data set.
GNEDataInterval * retrieveDataInterval(GNEAttributeCarrier *AC, bool hardFail=true) const
Returns the data interval.
std::vector< GNELane * > getSelectedLanes() const
get selected lanes
const std::map< std::string, GNEEdge * > & getEdges() const
map with the ID and pointer to edges of net
std::vector< GNEJunction * > getSelectedJunctions() const
return selected junctions
std::vector< GNEShape * > getSelectedShapes()
get selected shapes
GNEEdge * retrieveEdge(const std::string &id, bool hardFail=true) const
get edge by id
std::vector< GNEEdge * > getSelectedEdges() const
return all edges
const std::map< std::string, GNEJunction * > & getJunctions() const
get junctions
GNECrossing * retrieveCrossing(GNEAttributeCarrier *AC, bool hardFail=true) const
get Crossing by AC
GNEDemandElement * retrieveDemandElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named demand element.
GNEGenericData * retrieveGenericData(GNEAttributeCarrier *AC, bool hardFail=true) const
Returns the generic data.
std::vector< GNEAttributeCarrier * > getSelectedAttributeCarriers(const bool ignoreCurrentSupermode)
get all selected attribute carriers (or only relative to current supermode
GNEConnection * retrieveConnection(const std::string &id, bool hardFail=true) const
get Connection by id
A NBNetBuilder extended by visualisation and editing capabilities.
void deleteEdge(GNEEdge *edge, GNEUndoList *undoList, bool recomputeConnections)
removes edge
void deleteLane(GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
removes lane
void deleteCrossing(GNECrossing *crossing, GNEUndoList *undoList)
remove crossing
SUMORTree & getGrid()
Returns the RTree used for visualisation speed-up.
void deleteAdditional(GNEAdditional *additional, GNEUndoList *undoList)
remove additional
void reverseEdge(GNEEdge *edge, GNEUndoList *undoList)
reverse edge
GNEEdge * addReversedEdge(GNEEdge *edge, GNEUndoList *undoList)
add reversed edge
void deleteTAZElement(GNETAZElement *TAZElement, GNEUndoList *undoList)
remove TAZElement
bool restrictLane(SUMOVehicleClass vclass, GNELane *lane, GNEUndoList *undoList)
transform lane to restricted lane
GNEJunction * splitEdge(GNEEdge *edge, const Position &pos, GNEUndoList *undoList, GNEJunction *newJunction=0)
split edge at position by inserting a new junction
void deleteDemandElement(GNEDemandElement *demandElement, GNEUndoList *undoList)
remove demand element
void duplicateLane(GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
duplicates lane
void computeAndUpdate(OptionsCont &oc, bool volatileOptions)
recompute the network and update lane geometries
void deleteDataInterval(GNEDataInterval *dataInterval, GNEUndoList *undoList)
remove data interval
void deleteConnection(GNEConnection *connection, GNEUndoList *undoList)
remove connection
void resetJunctionConnections(GNEJunction *junction, GNEUndoList *undoList)
reset junction's connections
void deleteGenericData(GNEGenericData *genericData, GNEUndoList *undoList)
remove generic data
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
void splitEdgesBidi(GNEEdge *edge, GNEEdge *oppositeEdge, const Position &pos, GNEUndoList *undoList)
split all edges at position by inserting one new junction
void deleteShape(GNEShape *shape, GNEUndoList *undoList)
remove shape
bool removeRestrictedLane(SUMOVehicleClass vclass, GNEEdge *edge, GNEUndoList *undoList)
remove restricted lane
void mergeJunctions(GNEJunction *moved, GNEJunction *target, GNEUndoList *undoList)
merge the given junctions edges between the given junctions will be deleted
bool addRestrictedLane(SUMOVehicleClass vclass, GNEEdge *edge, int index, GNEUndoList *undoList)
add restricted lane to edge
bool addGreenVergeLane(GNEEdge *edge, int index, GNEUndoList *undoList)
add restricted lane to edge
void deleteDataSet(GNEDataSet *dataSet, GNEUndoList *undoList)
remove data set
void splitJunction(GNEJunction *junction, bool reconnect, GNEUndoList *undoList)
replace the selected junction by a list of junctions for each unique edge endpoint
void selectRoundabout(GNEJunction *junction, GNEUndoList *undoList)
select all roundabout edges and junctions for the current roundabout
void replaceJunctionByGeometry(GNEJunction *junction, GNEUndoList *undoList)
replace the selected junction by geometry node(s) and merge the edges
GNEPathManager * getPathManager()
get path manager
void createRoundabout(GNEJunction *junction, GNEUndoList *undoList)
transform the given junction into a roundabout
void requireRecompute()
inform the net about the need for recomputation
void initGNEConnections()
initialize GNEConnections
void deleteJunction(GNEJunction *junction, GNEUndoList *undoList)
removes junction and all incident edges
NBEdgeCont & getEdgeCont()
returns the NBEdgeCont of the underlying netbuilder
GNEViewNet * getViewNet() const
get view net
void clearJunctionConnections(GNEJunction *junction, GNEUndoList *undoList)
clear junction's connections
void computeDemandElements(GNEApplicationWindow *window)
compute demand elements param[in] window The window to inform about delay
bool isShapeEdited() const
check if shape is being edited
const std::string & getID() const
get ID
void calculateReachability(const SUMOVehicleClass vClass, GNEEdge *originEdge)
calculate reachability for given edge
void clearPathDraw()
clear path draw
PathCalculator * getPathCalculator()
obtain instance of PathCalculator
PathDraw * getPathDraw()
obtain instance of PathDraw
bool addPerson(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add vehicle element
GNEFrameModules::PathCreator * getPathCreator() const
get PathCreator modul
bool addPersonPlanElement(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add person plan element
GNEFrameModules::PathCreator * getPathCreator() const
get path creator modul
int getVertexIndex(Position pos, bool snapToGrid)
return index of a vertex of shape, or of a new vertex if position is over an shape's edge
void changeFirstGeometryPoint(int oldIndex, bool allowUndo=true)
change first geometry point
void deleteGeometryPoint(const Position &pos, bool allowUndo=true)
delete the geometry point closest to the given pos
void simplifyShape(bool allowUndo=true)
replace the current shape with a rectangle
void openPolygon(bool allowUndo=true)
open polygon
bool processClick(const Position &clickedPosition, const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, bool &updateTemporalShape)
process click over Viewnet
GNEFrameModules::DrawingShape * getDrawingShapeModule() const
get drawing mode editor
void handleProhibitionClick(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
handle prohibitions and set the relative colouring
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any prohibition modifications.
void show()
show prohibition frame
void show()
show delete frame
GNEFrameModules::PathCreator * getPathCreator() const
get path creator modul
bool addEdgeRoute(GNEEdge *clickedEdge, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add route edge
void clearCurrentSelection() const
clear current selection with possibility of undo/redo
SelectionInformation * getSelectionInformation() const
getmodul for selection information
bool addStop(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add Stop element
An Element which don't belongs to GNENet but has influency in the simulation.
void setTAZ(GNETAZ *editedTAZ)
set current TAZ
GNETAZ * getTAZ() const
get current TAZ
bool isChangesPending() const
return true if there is changes to save
long onCmdSaveChanges(FXObject *, FXSelector, void *)
TAZSaveChanges * getTAZSaveChangesModule() const
get TAZ Save Changes modul
GNEFrameModules::DrawingShape * getDrawingShapeModule() const
get drawing mode modul
bool processClick(const Position &clickedPosition, const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
process click over Viewnet
CurrentTAZ * getCurrentTAZModule() const
get Current TAZ modul
void processEdgeSelection(const std::vector< GNEEdge * > &edges)
process selection of edges in view net
bool setTAZ(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
set clicked TAZ
void buildTAZRelationData()
build TAZRelation data
void clearTAZSelection()
clear TAZ selection
long onCmdOK(FXObject *, FXSelector, void *)
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button.
void editTLS(const Position &clickedPosition, const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
edits the traffic light for the given clicked junction
void show()
show inspector frame
bool isContainer() const
return true if tag correspond to a container element
bool isSelectable() const
return true if tag correspond to a selectable element
bool isPlacedInRTree() const
return true if Tag correspond to an element that has has to be placed in RTREE
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
bool hasDialog() const
return true if tag correspond to an element that can be edited using a dialog
bool isPerson() const
return true if tag correspond to a person element
void end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise,...
void begin(GUIIcon icon, const std::string &description)
Begin undo command sub-group with current supermode. This begins a new group of commands that are tre...
void abortAllChangeGroups()
reverts and discards ALL active chained change groups
void changeAttribute(GNEChange_Attribute *change)
special method for change attributes, avoid empty changes, always execute
GNEFrameModules::PathCreator * getPathCreator() const
get PathCreator modul
bool addVehicle(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add vehicle element
class used to group all variables related to interval bar
void setDataSet()
set dataSet
void hideIntervalBar()
hide all options menu checks
void setGenericDataType()
set generic data type
void showIntervalBar()
show interval option bar
void disableIntervalBar()
disable interval bar
void buildIntervalBarElements()
build interval bar elements
void enableIntervalBar()
enable interval bar
void setInterval()
update limit by interval
void setAttribute()
set attribute
void updateLockMenuBar()
update lock inspect menuBar
bool isObjectLocked(GUIGlObjectType objectType, const bool selected) const
check if given GLObject is locked for inspect, select, delete and move
class used to group all variables related with objects under cursor after a click over view
void updateObjectUnderCursor(const std::vector< GUIGlObject * > &GUIGlObjects)
update objects under cursor (Called only in onLeftBtnPress(...) function)
void swapLane2Edge()
swap lane to edge
GNENetworkElement * getNetworkElementFront() const
get front network element or a pointer to nullptr
GNEAttributeCarrier * getAttributeCarrierFront() const
get front attribute carrier or a pointer to nullptr
GNELane * getLaneFront() const
get front lane or a pointer to nullptr
GUIGlObjectType getGlTypeFront() const
get front GUI GL object type or a pointer to nullptr
GNEJunction * getJunctionFront() const
get front junction or a pointer to nullptr
GNEEdge * getEdgeFront() const
get front edge or a pointer to nullptr
GUIGlObject * getGUIGlObjectFront() const
get front attribute carrier or a pointer to nullptr
GNEConnection * getConnectionFront() const
get front connection or a pointer to nullptr
GNEPOI * getPOIFront() const
get front POI or a pointer to nullptr
GNEViewNetHelper::EditNetworkElementShapes myEditNetworkElementShapes
struct for grouping all variables related with edit shapes
long onCmdToggleShowDemandElementsNetwork(FXObject *, FXSelector, void *)
toggle show demand elements (network)
long onCmdClosePolygon(FXObject *, FXSelector, void *)
close opened polygon
long onCmdEditCrossingShape(FXObject *, FXSelector, void *)
edit crossing shape
void processMoveMouseNetwork(const bool mouseLeftButtonPressed)
process move mouse function in Supermode Network
const GNEViewNetHelper::DataViewOptions & getDataViewOptions() const
get data view options
GNENet * getNet() const
get the net object
void deleteNetworkAttributeCarriers(const std::vector< GNEAttributeCarrier * > ACs)
delete given network attribute carriers
long onCmdSetFirstGeometryPoint(FXObject *, FXSelector, void *)
set as first geometry point the closes geometry point
GNEViewNetHelper::CommonCheckableButtons myCommonCheckableButtons
variable used to save checkable buttons for common supermodes
long onMouseMove(FXObject *, FXSelector, void *)
called when user moves mouse
const GNEAttributeCarrier * getFrontAttributeCarrier() const
get front attributeCarrier
void hotkeyBackSpace()
handle backspace keypress
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
long onCmdAddSelected(FXObject *, FXSelector, void *)
select AC under cursor
const GNEViewNetHelper::EditNetworkElementShapes & getEditNetworkElementShapes() const
get Edit Shape modul
void setFrontAttributeCarrier(GNEAttributeCarrier *AC)
set front attributeCarrier
GNECrossing * getCrossingAtPopupPosition()
try to retrieve a crossing at popup position
void buildViewToolBars(GUIGlChildWindow *v)
builds the view toolbars
void updateNetworkModeSpecificControls()
updates Network mode specific controls
long onCmdSmoothEdges(FXObject *, FXSelector, void *)
smooth geometry
long onCmdStraightenEdges(FXObject *, FXSelector, void *)
makes selected edges straight
const GNEViewNetHelper::MouseButtonKeyPressed & getMouseButtonKeyPressed() const
get Key Pressed modul
void updateCursor()
update cursor after every click/key press/release
void updateDataModeSpecificControls()
updates Data mode specific controls
GNEEdge * getEdgeAtPopupPosition()
try to retrieve an edge at popup position
long onCmdToggleShowDemandElementsData(FXObject *, FXSelector, void *)
toggle show demand elements (data)
GNEViewNetHelper::EditModes myEditModes
variable used to save variables related with edit moves modes
long onCmdReplaceJunction(FXObject *, FXSelector, void *)
replace node by geometry
long onCmdSplitJunction(FXObject *, FXSelector, void *)
split junction into multiple junctions
long onCmdClearConnections(FXObject *, FXSelector, void *)
clear junction connections
void abortOperation(bool clearSelection=true)
abort current edition operation
long onCmdToggleTAZDrawFill(FXObject *, FXSelector, void *)
toggle TAZdrawFill
long onCmdResetEndPoints(FXObject *, FXSelector, void *)
reset edge end points
GNEViewNetHelper::TestingMode myTestingMode
variable used to save variables related with testing mode
long onCmdToggleWarnAboutMerge(FXObject *, FXSelector, void *)
toggle warn for merge
long onCmdToggleDrawSpreadVehicles(FXObject *, FXSelector, void *)
toggle draw vehicles in begin position or spread in lane
GNEPOI * getPOIAtPopupPosition()
try to retrieve a POILane at popup position
GNEViewNetHelper::SelectingArea mySelectingArea
variable used to save variables related with selecting areas
long onCmdToggleShowConnections(FXObject *, FXSelector, void *)
toggle show connections
long onCmdLaneReachability(FXObject *, FXSelector sel, void *)
show lane reachability
GNEViewNetHelper::NetworkCheckableButtons myNetworkCheckableButtons
variable used to save checkable buttons for Supermode Network
bool removeRestrictedLane(SUMOVehicleClass vclass)
remove restricted lane
std::vector< std::string > getEdgeDataAttrs() const
return list of loaded edgeData attributes
void processClick(void *eventData)
Auxiliar function used by onLeftBtnPress(...)
GNEViewNetHelper::MoveSingleElementValues myMoveSingleElementValues
long onCmdSimplifyShape(FXObject *, FXSelector, void *)
simply shape of current polygon
void drawLaneCandidates() const
draw functions
GNELane * getLaneAtPopupPosition()
try to retrieve a lane at popup position
GNEAttributeCarrier * myFrontAttributeCarrier
front attribute carrier
GNEViewNetHelper::MouseButtonKeyPressed myMouseButtonKeyPressed
variable used to save key status after certain events
void recalculateBoundaries()
recalculate boundaries
GNEViewNetHelper::IntervalBar myIntervalBar
variable used to save IntervalBar
GNEViewParent * myViewParent
view parent
bool showJunctionAsBubbles() const
return true if junction must be showed as bubbles
bool changeAllPhases() const
change all phases
long onCmdEditJunctionShape(FXObject *, FXSelector, void *)
edit junction shape
long onCmdToggleMoveElevation(FXObject *, FXSelector, void *)
toggle move elevation
long onCmdToggleShowAllPersonPlans(FXObject *, FXSelector, void *)
toggle show all person plans in super mode demand
bool setColorScheme(const std::string &name)
set color scheme
int doPaintGL(int mode, const Boundary &bound)
do paintGL
long onCmdOpenAdditionalDialog(FXObject *, FXSelector, void *)
open additional dialog
long onCmdToggleTAZRelOnlyTo(FXObject *, FXSelector, void *)
toggle TAZRez only to
const GNEViewNetHelper::NetworkViewOptions & getNetworkViewOptions() const
get network view options
void hotkeyFocusFrame()
handle focus frame keypress
long onCmdToggleChainEdges(FXObject *, FXSelector, void *)
toggle chain edges
GNEViewNetHelper::DemandViewOptions myDemandViewOptions
variable used to save variables related with view options in supermode Demand
std::vector< std::string > getEdgeLaneParamKeys(bool edgeKeys) const
return list of available edge parameters
long onCmdLaneOperation(FXObject *, FXSelector sel, void *)
add/remove/restrict lane
void processMoveMouseData(const bool mouseLeftButtonPressed)
process move mouse function in Supermode Data
GNEFrame * myCurrentFrame
the current frame
bool autoSelectNodes()
whether to autoselect nodes or to lanes
long onCmdToggleLockContainer(FXObject *, FXSelector, void *)
toggle lock container in super mode demand
GNEUndoList * myUndoList
a reference to the undolist maintained in the application
void drawTranslateFrontAttributeCarrier(const GNEAttributeCarrier *AC, double typeOrLayer, const double extraOffset=0)
draw front attributeCarrier
GNEViewNetHelper::NetworkViewOptions myNetworkViewOptions
variable used to save variables related with view options in supermode Network
void doInit()
called after some features are already initialized
void buildEditModeControls()
create edit mode buttons and elements
GNEViewNetHelper::DataCheckableButtons myDataCheckableButtons
variable used to save checkable buttons for Supermode Data
long onCmdToggleShowGrid(FXObject *, FXSelector, void *)
toggle show grid
void processLeftButtonPressDemand(void *eventData)
process left button press function in Supermode Demand
GNEViewNetHelper::IntervalBar & getIntervalBar()
get interval bar
long onCmdEditLaneShape(FXObject *, FXSelector, void *)
edit lane shape
long onCmdToggleHideNonInspecteDemandElements(FXObject *, FXSelector, void *)
toggle hide non inspected demand elements
GNEViewParent * getViewParent() const
get the net object
long onCmdAddReversedEdge(FXObject *, FXSelector, void *)
add reversed edge
void processLeftButtonReleaseNetwork()
process left button release function in Supermode Network
void buildColorRainbow(const GUIVisualizationSettings &s, GUIColorScheme &scheme, int active, GUIGlObjectType objectType, bool hide=false, double hideThreshold=0.)
recalibrate color scheme according to the current value range
long onCmdIntervalBarGenericDataType(FXObject *, FXSelector, void *)
change generic data type in interval bar
long onCmdConvertRoundabout(FXObject *, FXSelector, void *)
convert junction to roundabout
long onCmdRemoveEdgeSelected(FXObject *, FXSelector, void *)
unselect Edge under cursor
long onCmdToggleShowShapes(FXObject *, FXSelector, void *)
toggle show shapes in super mode data
long onRightBtnPress(FXObject *, FXSelector, void *)
called when user press mouse's right button
long onCmdOpenPolygon(FXObject *, FXSelector, void *)
open closed polygon
long onCmdSetCustomGeometryPoint(FXObject *, FXSelector, void *)
set custom geometry point
long onCmdIntervalBarDataSet(FXObject *, FXSelector, void *)
change data set in interval bar
void processLeftButtonReleaseDemand()
process left button release function in Supermode Demand
const GNEViewNetHelper::TestingMode & getTestingMode() const
get testing mode
GNEUndoList * getUndoList() const
get the undoList object
void processLeftButtonPressData(void *eventData)
process left button press function in Supermode Data
long onCmdTransformPOI(FXObject *, FXSelector, void *)
transform POI to POILane, and viceversa
void saveVisualizationSettings() const
GNEViewNetHelper::SaveElements mySaveElements
variable used to save elements
GNEViewNetHelper::LockManager myLockManager
lock manager
long onCmdAddEdgeSelected(FXObject *, FXSelector, void *)
select Edge under cursor
long onCmdIntervalBarSetEnd(FXObject *, FXSelector, void *)
change end in interval bar
long onCmdIntervalBarSetAttribute(FXObject *, FXSelector, void *)
change attribute in interval bar
void drawTemporalDrawShape() const
draw temporal polygon shape in Polygon Mode
void removeFromAttributeCarrierInspected(const GNEAttributeCarrier *AC)
remove given AC of list of inspected Attribute Carriers
long onCmdSplitEdgeBidi(FXObject *, FXSelector, void *)
split edge at cursor position
GNEJunction * getJunctionAtPopupPosition()
try to retrieve a junction at popup position
long onCmdSetSupermode(FXObject *, FXSelector sel, void *)
long onCmdToggleExtendSelection(FXObject *, FXSelector, void *)
toggle extend selection
GNEViewNetHelper::DemandCheckableButtons myDemandCheckableButtons
variable used to save checkable buttons for Supermode Demand
bool aksChangeSupermode(const std::string &operation, Supermode expectedSupermode)
ask about change supermode
GNETAZ * getTAZAtPopupPosition()
try to retrieve a TAZ at popup position
long onCmdSetMode(FXObject *, FXSelector sel, void *)
called when user press a mode button (Network or demand)
long onCmdResetEdgeEndpoint(FXObject *, FXSelector, void *)
change geometry endpoint
long onCmdIntervalBarSetBegin(FXObject *, FXSelector, void *)
change begin in interval bar
long onCmdResetLength(FXObject *, FXSelector, void *)
reset custom edge lengths
long onCmdSelectPolygonElements(FXObject *, FXSelector, void *)
select elements within polygon boundary
long onLeftBtnRelease(FXObject *, FXSelector, void *)
called when user releases mouse's left button
long onCmdRemoveSelected(FXObject *, FXSelector, void *)
unselect AC under cursor
long onCmdDeleteGeometryPoint(FXObject *, FXSelector, void *)
delete the closes geometry point
long onCmdDuplicateLane(FXObject *, FXSelector, void *)
duplicate selected lane
std::vector< GNEAttributeCarrier * > myInspectedAttributeCarriers
current inspected attribute carrier
void processLeftButtonPressNetwork(void *eventData)
mouse process functions
void hotkeyEnter()
handle enter keypress
GNEConnection * getConnectionAtPopupPosition()
try to retrieve a connection at popup position
void forceSupermodeNetwork()
set supermode Network (used after load/create new network)
const std::vector< GNEAttributeCarrier * > & getInspectedAttributeCarriers() const
get inspected attribute carriers
long onKeyPress(FXObject *o, FXSelector sel, void *data)
called when user press a key
long onCmdToggleShowOverlappedRoutes(FXObject *, FXSelector, void *)
toggle hide non inspected demand elements
long onCmdToggleAutoOppositeEdge(FXObject *, FXSelector, void *)
toggle autoOpposite edge
long onCmdSplitEdge(FXObject *, FXSelector, void *)
split edge at cursor position
GNEViewNetHelper::LockManager & getLockManager()
get lock manager
void openObjectDialogAtCursor()
open object dialog
bool mergeJunctions(GNEJunction *movedJunction, GNEJunction *targetJunction)
try to merge moved junction with another junction in that spot return true if merging did take place
long onCmdStraightenEdgesElevation(FXObject *, FXSelector, void *)
interpolate z values linear between junctions
void updateControls()
update control contents after undo/redo or recompute
long onCmdSplitJunctionReconnect(FXObject *, FXSelector, void *)
split junction into multiple junctions and reconnect them
void buildSelectionACPopupEntry(GUIGLObjectPopupMenu *ret, GNEAttributeCarrier *AC)
Builds an entry which allows to (de)select the object.
void hotkeyDel()
handle del keypress
long onCmdToggleChangeAllPhases(FXObject *, FXSelector, void *)
toggle change all phases
bool isAttributeCarrierInspected(const GNEAttributeCarrier *AC) const
check if attribute carrier is being inspected
GNEViewNet()
FOX needs this.
long onCmdToggleTAZRelDrawing(FXObject *, FXSelector, void *)
toggle TAZRel drawing
long onCmdToggleShowJunctionBubbles(FXObject *, FXSelector, void *)
toggle show junction bubbles
long onCmdToggleShowAdditionalSubElements(FXObject *, FXSelector, void *)
toggle show additional sub-elements
long onCmdSmoothEdgesElevation(FXObject *, FXSelector, void *)
smooth elevation with regard to adjoining edges
long onCmdToggleShowAllContainerPlans(FXObject *, FXSelector, void *)
toggle show all container plans in super mode demand
long onCmdResetJunctionShape(FXObject *, FXSelector, void *)
reset junction shape
long onCmdToggleTAZRelOnlyFrom(FXObject *, FXSelector, void *)
toggle TAZRez only from
long onRightBtnRelease(FXObject *, FXSelector, void *)
called when user releases mouse's right button
long onCmdReverseEdge(FXObject *, FXSelector, void *)
reverse edge
void deleteDataAttributeCarriers(const std::vector< GNEAttributeCarrier * > ACs)
delete data attribute carriers
void processLeftButtonReleaseData()
process left button release function in Supermode Data
long onCmdToggleShowAdditionals(FXObject *, FXSelector, void *)
toggle show additionals in super mode data
long onCmdToggleLockPerson(FXObject *, FXSelector, void *)
toggle lock person in super mode demand
GNENet * myNet
Pointer to current net. (We are not responsible for deletion)
GNEPoly * getPolygonAtPopupPosition()
try to retrieve a polygon at popup position
long onCmdToggleSelectEdges(FXObject *, FXSelector, void *)
toggle select edges
GNEViewNetHelper::DataViewOptions myDataViewOptions
variable used to save variables related with view options in supermode Data
long onCmdToggleShowTrips(FXObject *, FXSelector, void *)
toggle show all trips in super mode demand
long onCmdToggleHideShapes(FXObject *, FXSelector, void *)
toggle hide shapes in super mode demand
long onCmdEditEdgeEndpoint(FXObject *, FXSelector, void *)
change geometry endpoint
const GNEViewNetHelper::DemandViewOptions & getDemandViewOptions() const
get demand view options
const GNEViewNetHelper::ObjectsUnderCursor & getObjectsUnderCursor() const
get objects under cursor
GNEViewNetHelper::MoveMultipleElementValues myMoveMultipleElementValues
variable used to save variables related with movement of multiple elements
void deleteDemandAttributeCarriers(const std::vector< GNEAttributeCarrier * > ACs)
delete given demand attribute carriers
void updateViewNet() const
Mark the entire GNEViewNet to be repainted later.
GNEViewNetHelper::ObjectsUnderCursor myObjectsUnderCursor
variable use to save all pointers to objects under cursor after a click
long onCmdToggleHideConnections(FXObject *, FXSelector, void *)
toggle hide connections
bool restrictLane(SUMOVehicleClass vclass)
restrict lane
std::set< std::pair< std::string, GNEAttributeCarrier * > > getAttributeCarriersInBoundary(const Boundary &boundary, bool forceSelectEdges=false)
get AttributeCarriers in Boundary
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
called when user release a key
long onCmdResetConnections(FXObject *, FXSelector, void *)
reset junction connections
void setInspectedAttributeCarriers(const std::vector< GNEAttributeCarrier * > ACs)
set inspected attributeCarrier
long onCmdResetLaneCustomShape(FXObject *, FXSelector, void *)
reset custom shapes of selected lanes
void setStatusBarText(const std::string &text)
set staturBar text
void processMoveMouseDemand(const bool mouseLeftButtonPressed)
process move mouse function in Supermode Demand
long onCmdResetOppositeLane(FXObject *, FXSelector, void *)
reset oppositeLane of current lane
void setSelectorFrameScale(double selectionScale)
set selection scaling (in GNESelectorFrame)
long onCmdEditConnectionShape(FXObject *, FXSelector, void *)
edit connection shape
const GNEViewNetHelper::MoveMultipleElementValues & getMoveMultipleElementValues() const
get move multiple element values
bool addRestrictedLane(SUMOVehicleClass vclass, const bool insertAtFront)
add restricted lane
void updateDemandModeSpecificControls()
updates Demand mode specific controls
GNEAdditional * getAdditionalAtPopupPosition()
try to retrieve a additional at popup position
void drawTemporalJunction() const
draw temporal junction in create edge mode
long onCmdSelectRoundabout(FXObject *, FXSelector, void *)
select all roundabout nodes and edges
long onLeftBtnPress(FXObject *, FXSelector, void *)
std::vector< std::string > getRelDataAttrs() const
return list of loaded edgeRelation and tazRelation attributes
long onCmdIntervalBarLimit(FXObject *, FXSelector, void *)
change limit interval in interval bar
A single child window which contains a view of the simulation area.
GNECrossingFrame * getCrossingFrame() const
get frame for NETWORK_CROSSING
GNEConnectorFrame * getConnectorFrame() const
get frame for NETWORK_CONNECT
GNEStopFrame * getStopFrame() const
get frame for DEMAND_STOP
GNEProhibitionFrame * getProhibitionFrame() const
get frame for NETWORK_PROHIBITION
GNEPersonPlanFrame * getPersonPlanFrame() const
get frame for DEMAND_PERSONFRAME
GNEPolygonFrame * getPolygonFrame() const
get frame for NETWORK_POLYGON
GNETAZRelDataFrame * getTAZRelDataFrame() const
get frame for DATA_TAZRELDATA
GNEMoveFrame * getMoveFrame() const
get frame for move elements
GNESelectorFrame * getSelectorFrame() const
get frame for select elements
GNEContainerPlanFrame * getContainerPlanFrame() const
get frame for DEMAND_CONTAINERFRAME
GNEEdgeDataFrame * getEdgeDataFrame() const
get frame for DATA_EDGEDATA
GNEDeleteFrame * getDeleteFrame() const
get frame for delete elements
GNEVehicleFrame * getVehicleFrame() const
get frame for DEMAND_VEHICLE
void hideAllFrames()
hide all frames
GNETypeFrame * getTypeFrame() const
get frame for DEMAND_VEHICLETYPE
GNETAZFrame * getTAZFrame() const
get frame for NETWORK_TAZ
GNETLSEditorFrame * getTLSEditorFrame() const
get frame for NETWORK_TLS
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows
GNEContainerFrame * getContainerFrame() const
get frame for DEMAND_CONTAINER
GNEAdditionalFrame * getAdditionalFrame() const
get frame for NETWORK_ADDITIONAL
GNEPersonFrame * getPersonFrame() const
get frame for DEMAND_PERSON
GNEInspectorFrame * getInspectorFrame() const
get frame for inspect elements
GNEEdgeRelDataFrame * getEdgeRelDataFrame() const
get frame for DATA_EDGERELDATA
GNECreateEdgeFrame * getCreateEdgeFrame() const
get frame for NETWORK_CREATEEDGE
GNERouteFrame * getRouteFrame() const
get frame for DEMAND_ROUTE
bool contains(const std::string &name) const
Returns the information whether a setting with the given name is stored.
GUIVisualizationSettings & get(const std::string &name)
Returns the named scheme.
const std::vector< std::string > & getNames() const
Returns a list of stored settings names.
static FXCursor * getCursor(GUICursor which)
returns a cursor previously defined in the enum GUICursor
static FXMenuCommand * buildFXMenuCommand(FXComposite *p, const std::string &text, FXIcon *icon, FXObject *tgt, FXSelector sel)
build menu command
std::string getCurrentScheme() const
Returns the name of the currently chosen scheme.
void setCurrentScheme(const std::string &)
Sets the named scheme as the current.
static void drawGeometry(const GUIVisualizationSettings &s, const Position &mousePos, const GUIGeometry &geometry, const double width, double offset=0)
draw geometry
static double calculateRotation(const Position &first, const Position &second)
return angle between two points (used in geometric calculations)
void updateGeometry(const PositionVector &shape)
update entire geometry
static double calculateLength(const Position &first, const Position &second)
return length between two points (used in geometric calculations)
FXComboBox * getColoringSchemesCombo()
return combobox with the current coloring schemes (standard, fastest standard, real world....
FXPopup * getLocatorPopup()
@ brief return a pointer to locator popup
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
void unblockObject(GUIGlID id)
Marks an object as unblocked.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
GUIGlObject * getObjectBlocking(GUIGlID id)
Returns the object from the container locking it.
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
virtual void setStatusBarText(const std::string &)
get status bar text (can be implemented in children)
virtual double getRotation() const =0
Returns the rotation of the canvas stored in this changer.
virtual double getZoom() const =0
Returns the zoom factor computed stored in this changer.
virtual void onLeftBtnPress(void *data)
mouse functions
virtual double getXPos() const =0
Returns the x-offset of the field to show stored in this changer.
virtual double getYPos() const =0
Returns the y-offset of the field to show stored in this changer.
const T getColor(const double value) const
const std::string & getName() const
int addColor(const T &color, const double threshold, const std::string &name="")
void paintGLGrid()
paints a grid
bool myAmInitialised
Internal information whether doInit() was called.
Position snapToActiveGrid(const Position &pos, bool snapXY=true) const
Returns a position that is mapped to the closest grid point if the grid is active.
virtual long onLeftBtnRelease(FXObject *, FXSelector, void *)
std::vector< GUIGlObject * > getGUIGlObjectsUnderCursor()
returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects)
const SUMORTree * myGrid
The visualization speed-up.
GUIDialog_ViewSettings * myVisualizationChanger
Visualization changer.
std::vector< GUIGlID > getObjectsInBoundary(Boundary bound, bool singlePosition)
returns the ids of all objects in the given boundary
FXbool makeCurrent()
A reimplementation due to some internal reasons.
virtual long onMouseMove(FXObject *, FXSelector, void *)
GUIMainWindow * myApp
The application.
const Position & getPopupPosition() const
get position of current popup
double m2p(double meter) const
meter-to-pixels conversion method
GUIVisualizationSettings * myVisualizationSettings
visualization settings
void destroyPopup()
destoys the popup
virtual long onKeyPress(FXObject *o, FXSelector sel, void *data)
keyboard functions
Position getPositionInformation() const
Returns the cursor's x/y position within the network.
GUIGlID getObjectAtPosition(Position pos)
returns the id of the object at position using GL_SELECT
std::vector< GUIGlObject * > getGUIGlObjectsUnderSnappedCursor()
returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects)
virtual long onKeyRelease(FXObject *o, FXSelector sel, void *data)
void drawDecals()
Draws the stored decals.
virtual long onRightBtnRelease(FXObject *, FXSelector, void *)
GUIPerspectiveChanger * myChanger
The perspective changer.
virtual long onPaint(FXObject *, FXSelector, void *)
virtual long onRightBtnPress(FXObject *, FXSelector, void *)
void openObjectDialog(GUIGlObject *o)
open object dialog for the given object
static void resetTextures()
Reset textures.
Stores the information about how to visualize structures.
GUIVisualizationSizeSettings junctionSize
static const double MISSING_DATA
bool drawForRectangleSelection
whether drawing is performed for the purpose of selecting objects using a rectangle
std::string name
The name of this setting.
bool disableLaneIcons
whether drawing is performed in left-hand networks
bool drawForPositionSelection
whether drawing is performed for the purpose of selecting objects with a single click
GUIVisualizationCandidateColorSettings candidateColorSettings
candidate color settings
bool lefthand
whether drawing is performed in left-hand networks
bool showLane2Lane
Information whether lane-to-lane arrows shall be drawn.
GUIVisualizationColorSettings colorSettings
color settings
bool showGrid
Information whether a grid shall be shown.
void save(OutputDevice &dev) const
Writes the settings into an output device.
double scale
information about a lane's width (temporary, used for a single view)
bool forceDrawForRectangleSelection
flag to force draw for rectangle selection (see drawForRectangleSelection)
bool forceDrawForPositionSelection
flag to force draw for position selection (see drawForPositionSelection)
int getCircleResolution() const
function to calculate circle resolution for all circles drawn in drawGL(...) functions
double selectorFrameScale
the current selection scaling in NETEDIT (set in SelectorFrame)
GUIColorer junctionColorer
The junction colorer.
static const std::string SCHEME_NAME_PERMISSION_CODE
GUIVisualizationNeteditSizeSettings neteditSizeSettings
netedit size settings
EdgeVector getAllEdges() const
return all edges
The representation of a single edge during network building.
const PositionVector & getGeometry() const
Returns the geometry of the edge.
Connection getConnection(int fromLane, const NBEdge *to, int toLane) const
Returns the specified connection This method goes through "myConnections" and returns the specified o...
PositionVector customShape
optional customShape for this crossing
PositionVector shape
The crossing's shape.
const PositionVector & getShape() const
retrieve the junction shape
A storage for options typed value containers)
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static OptionsCont & getOptions()
Retrieves the options.
Static storage of an output device and its base (abstract) implementation.
void close()
Closes the device and removes it from the dictionary.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
static OutputDevice & getDevice(const std::string &name)
Returns the described OutputDevice.
C++ TraCI client API implementation.
A point in 2D or 3D with translation and scaling methods.
double distanceTo(const Position &p2) const
returns the euclidean distance in 3 dimension
double distanceSquaredTo(const Position &p2) const
returns the square of the distance to another position
double x() const
Returns the x-position.
double y() const
Returns the y-position.
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
double nearest_offset_to_point2D(const Position &p, bool perpendicular=true) const
return the nearest offest to point 2D
int indexOfClosest(const Position &p, bool twoD=false) const
void move2side(double amount, double maxExtension=100)
move position vector to side using certain ammount
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
void pop_front()
pop first Position
void setAlpha(unsigned char alpha)
Sets a new alpha value.
static const RGBColor BLUE
static const RGBColor YELLOW
static const RGBColor ORANGE
static const RGBColor CYAN
static const RGBColor GREEN
static RGBColor fromHSV(double h, double s, double v)
Converts the given hsv-triplet to rgb, inspired by http://alvyray.com/Papers/CG/hsv2rgb....
static const RGBColor BLACK
static const RGBColor MAGENTA
static const RGBColor RED
named colors
const PositionVector & getShape() const
Returns whether the shape of the polygon.
void addAdditionalGLObject(GUIGlObject *o, const double exaggeration=1)
Adds an additional object (detector/shape/trigger) for visualisation.
void removeAdditionalGLObject(GUIGlObject *o, const double exaggeration=1)
Removes an additional object (detector/shape/trigger) from being visualised.
virtual int Search(const float a_min[2], const float a_max[2], const GUIVisualizationSettings &c) const
Find all within search rectangle.
void hideDataViewOptionsMenuChecks()
hide all options menu checks
void hideDemandViewOptionsMenuChecks()
hide all options menu checks
void hideNetworkViewOptionsMenuChecks()
hide all options menu checks
DemandViewOptions demandViewOptions
demand view options
NetworkViewOptions networkViewOptions
network view options
DataViewOptions dataViewOptions
data view options
struct used to group all variables related to view options in supermode Data
void hideDataViewOptionsMenuChecks()
hide all options menu checks
MFXCheckableButton * menuCheckShowAdditionals
menu check to show Additionals
MFXCheckableButton * menuCheckShowShapes
menu check to show Shapes
void buildDataViewOptionsMenuChecks()
build menu checks
MFXCheckableButton * menuCheckToogleTAZRelOnlyTo
menu check to toogle TAZRel only to
MFXCheckableButton * menuCheckShowDemandElements
menu check to show Demand Elements
MFXCheckableButton * menuCheckToogleTAZRelOnlyFrom
menu check to toogle TAZRel only from
MFXCheckableButton * menuCheckToogleTAZDrawFill
menu check to toogle TAZ draw fill
MFXCheckableButton * menuCheckToogleTAZRelDrawing
menu check to toogle TAZ Rel drawing
struct used to group all variables related to view options in supermode Demand
MFXCheckableButton * menuCheckShowAllTrips
show all trips
void lockPerson(const GNEDemandElement *person)
lock person
MFXCheckableButton * menuCheckToggleGrid
menu check to show grid button
void lockContainer(const GNEDemandElement *container)
lock container
void buildDemandViewOptionsMenuChecks()
build menu checks
const GNEDemandElement * getLockedPerson() const
get locked person
MFXCheckableButton * menuCheckDrawSpreadVehicles
menu check to draw vehicles in begin position or spread in lane
MFXCheckableButton * menuCheckShowOverlappedRoutes
show overlapped routes
void hideDemandViewOptionsMenuChecks()
hide all options menu checks
void unlockContainer()
unlock container
MFXCheckableButton * menuCheckShowAllPersonPlans
show all person plans
MFXCheckableButton * menuCheckShowAllContainerPlans
show all container plans
MFXCheckableButton * menuCheckHideNonInspectedDemandElements
Hide non inspected demand elements.
void unlockPerson()
unlock person
MFXCheckableButton * menuCheckHideShapes
Hide shapes (Polygons and POIs)
MFXCheckableButton * menuCheckLockPerson
Lock Person.
MFXCheckableButton * menuCheckLockContainer
Lock Container.
struct used to group all variables related with Supermodes
DataEditMode dataEditMode
the current Data edit mode
void buildSuperModeButtons()
build checkable buttons
DemandEditMode demandEditMode
the current Demand edit mode
NetworkEditMode networkEditMode
the current Network edit mode
bool isCurrentSupermodeDemand() const
@check if current supermode is Demand
void setDemandEditMode(DemandEditMode demandMode, const bool force=false)
set Demand edit mode
bool isCurrentSupermodeData() const
@check if current supermode is Data
bool isCurrentSupermodeNetwork() const
@check if current supermode is Network
void setSupermode(Supermode supermode, const bool force)
set supermode
void setNetworkEditMode(NetworkEditMode networkMode, const bool force=false)
set Network edit mode
void setDataEditMode(DataEditMode dataMode, const bool force=false)
set Data edit mode
struct used to group all variables related with edit shapes of NetworkElements
GNENetworkElement * getEditedNetworkElement() const
pointer to edited network element
void stopEditCustomShape()
edit edit shape
void commitEditedShape()
save edited shape
void startEditCustomShape(GNENetworkElement *element)
start edit custom shape
struct used to group all variables related with movement of groups of elements
void moveSelection(const bool mouseLeftButtonPressed)
move selection
void beginMoveSelection()
begin move selection
bool isMovingSelection() const
check if currently there is element being moved
void finishMoveSelection()
finish moving selection
void resetMovingSelectedEdge()
reset flag for moving edge
void finishMoveSingleElement()
finish moving single elements in Network AND Demand mode
void moveSingleElement(const bool mouseLeftButtonPressed)
move single element in Network AND Demand mode
bool beginMoveSingleElementNetworkMode()
begin move single element in Network mode
bool beginMoveNetworkElementShape()
begin move network elementshape
bool beginMoveSingleElementDemandMode()
begin move single element in Demand mode
struct used to group all variables related to view options in supermode Network
MFXCheckableButton * menuCheckSelectEdges
checkable button to select only edges
MFXCheckableButton * menuCheckChainEdges
checkable button to the endpoint for a created edge should be set as the new source
MFXCheckableButton * menuCheckShowDemandElements
checkable button to show Demand Elements
MFXCheckableButton * menuCheckMoveElevation
checkable button to apply movement to elevation
MFXCheckableButton * menuCheckAutoOppositeEdge
check checkable to create auto create opposite edge
MFXCheckableButton * menuCheckDrawSpreadVehicles
checkable button to draw vehicles in begin position or spread in lane
MFXCheckableButton * menuCheckShowConnections
checkable button to show connections
MFXCheckableButton * menuCheckHideConnections
checkable button to hide connections in connect mode
MFXCheckableButton * menuCheckToggleGrid
checkable button to show grid button
bool selectEdges() const
check if select edges checkbox is enabled
MFXCheckableButton * menuCheckShowJunctionBubble
checkable button to show connection as buuble in "Move" mode.
MFXCheckableButton * menuCheckWarnAboutMerge
checkable button to we should warn about merging junctions
void hideNetworkViewOptionsMenuChecks()
hide all options menu checks
MFXCheckableButton * menuCheckShowAdditionalSubElements
checkable button to show additional sub-elements
void buildNetworkViewOptionsMenuChecks()
build menu checks
MFXCheckableButton * menuCheckChangeAllPhases
checkable button to set change all phases
MFXCheckableButton * menuCheckExtendSelection
checkable button to extend to edge nodes
void buildSaveElementsButtons()
build save buttons
void finishRectangleSelection()
finish rectangle selection
void drawRectangleSelection(const RGBColor &color) const
draw rectangle selection
void beginRectangleSelection()
begin rectangle selection
bool selectingUsingRectangle
whether we have started rectangle-selection
void moveRectangleSelection()
move rectangle selection
bool startDrawing
whether we have started rectangle-selection
void processRectangleSelection()
process rectangle Selection
std::vector< GNEEdge * > processEdgeRectangleSelection()
process rectangle Selection (only limited to Edges)
struct used to group all variables related with testing
void drawTestingElements(GUIMainWindow *mainWindow)
draw testing element
static const RGBColor possible
color for possible candidate element
RGBColor selectionColor
basic selection color
static const double junctionBubbleRadius
junction buuble radius
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
PositionVector shape
shape of Connection