Skip to content

Commit

Permalink
Updated GUIPostDrawing. Refs #13894
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 19, 2023
1 parent 7c49a75 commit 0196ac2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/utils/gui/settings/GUIPostDrawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ GUIPostDrawing::GUIPostDrawing() {}


void
GUIPostDrawing::executePostDrawingTasks() {
GUIPostDrawing::clearElements() {
// reset recompute boundaries
recomputeBoundaries = GLO_NETWORK;
// udate AC geometries
for (const auto& GLObject : myGLObjectsToUpdate) {
GLObject->updateGLObject();
}
myGLObjectsToUpdate.clear();
// reset mouse Pos
mousePos = Position::INVALID;
Expand All @@ -52,6 +48,15 @@ GUIPostDrawing::executePostDrawingTasks() {
}


void
GUIPostDrawing::executePostDrawingTasks() {
// udate AC geometries
for (const auto& GLObject : myGLObjectsToUpdate) {
GLObject->updateGLObject();
}
}


void
GUIPostDrawing::markGLObjectToUpdate(GUIGlObject* GLObject) {
if (GLObject) {
Expand Down
3 changes: 3 additions & 0 deletions src/utils/gui/settings/GUIPostDrawing.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class GUIPostDrawing {
/// @brief constructor
GUIPostDrawing();

/// @brief clear elements
void clearElements();

/// @brief execute post drawing tasks
void executePostDrawingTasks();

Expand Down

0 comments on commit 0196ac2

Please sign in to comment.