Skip to content

Commit

Permalink
Renamed variables and sub classes. Refs #12
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 19, 2023
1 parent 258b64d commit e42a5c2
Show file tree
Hide file tree
Showing 90 changed files with 558 additions and 583 deletions.
4 changes: 2 additions & 2 deletions src/netedit/GNEPathManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ GNEPathManager::PathDraw::clearPathDraw() {
bool
GNEPathManager::PathDraw::checkDrawPathGeometry(const GUIVisualizationSettings& s, const GNELane* lane, SumoXMLTag tag) {
// check conditions
if (s.drawForObjectUnderCursor) {
if (s.drawForViewObjectsHandler) {
return true;
} else if (myLaneDrawedElements.count(lane) > 0) {
// check tag
Expand All @@ -578,7 +578,7 @@ GNEPathManager::PathDraw::checkDrawPathGeometry(const GUIVisualizationSettings&
bool
GNEPathManager::PathDraw::checkDrawPathGeometry(const GUIVisualizationSettings& s, const Segment* segment, SumoXMLTag tag) {
// check conditions
if (s.drawForObjectUnderCursor) {
if (s.drawForViewObjectsHandler) {
return true;
} else {
// declare lane2lane
Expand Down
164 changes: 82 additions & 82 deletions src/netedit/GNEViewNet.cpp

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/netedit/GNEViewNet.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class GNEViewNet : public GUISUMOAbstractView {
void viewUpdated();

/// @brief get objects under cursor
const GNEViewNetHelper::ObjectsUnderCursor& getObjectsUnderCursor() const;
const GNEViewNetHelper::ViewObjectsSelector& getObjectsUnderCursor() const;

/// @brief get move multiple element values
const GNEViewNetHelper::MoveMultipleElementValues& getMoveMultipleElementValues() const;
Expand Down Expand Up @@ -615,8 +615,6 @@ class GNEViewNet : public GUISUMOAbstractView {
/// @brief variable used to save key status after certain events
GNEViewNetHelper::MouseButtonKeyPressed myMouseButtonKeyPressed;

/// @brief variable use to save all pointers to objects under cursor after a click
GNEViewNetHelper::ObjectsUnderCursor myObjectsUnderCursor;
/// @}

/// @name structs related with checkable buttons
Expand Down Expand Up @@ -670,6 +668,9 @@ class GNEViewNet : public GUISUMOAbstractView {
GNEViewNetHelper::VehicleTypeOptions myVehicleTypeOptions;
// @}

/// @brief variable use to select objects in view
GNEViewNetHelper::ViewObjectsSelector myViewObjectsSelector;

/// @brief variable used for grouping all variables related with salve elements
GNEViewNetHelper::SaveElements mySaveElements;

Expand Down

0 comments on commit e42a5c2

Please sign in to comment.