Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/gridedit 899 undo in meshkernel #309

Merged
merged 96 commits into from
Mar 19, 2024

Conversation

BillSenior
Copy link
Contributor

No description provided.

Changed name of function from GetNumActiveNodes/Edges to GetNumValidNodes/Edges
Fixed windows compilation error.
Added extra members to Mesh1/2D, for the number of valid nodes and edges
Updated error message when index is out of range.
… some noade and their indices, depending on which requires the least memory.
Updated mesh transformation tests to include undo test
Minor refactoring of the move node, it now uses the NodeTranslationAction
libs/MeshKernel/include/MeshKernel/AddNodeAction.hpp Outdated Show resolved Hide resolved
poc/CMakeLists.txt Outdated Show resolved Hide resolved
libs/MeshKernel/include/MeshKernel/AddEdgeAction.hpp Outdated Show resolved Hide resolved
libs/MeshKernel/src/UndoActionStack.cpp Outdated Show resolved Hide resolved
m_restored.clear();
}

std::uint64_t meshkernel::UndoActionStack::MemorySize() const
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the utility of this as long we want to measure memory consumption. it would be nice to remove this method when we do not need to measure anymore

libs/MeshKernel/src/UndoActionStack.cpp Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
poc/undo/include/Transaction.hpp Outdated Show resolved Hide resolved
poc/undo/include/Transaction.hpp Outdated Show resolved Hide resolved
poc/undo/include/Transaction.hpp Outdated Show resolved Hide resolved
poc/undo/include/Transaction.hpp Outdated Show resolved Hide resolved
libs/MeshKernel/tests/src/MockUndoAction.hpp Outdated Show resolved Hide resolved
libs/MeshKernel/src/UndoActions/DeleteEdgeAction.cpp Outdated Show resolved Hide resolved
libs/MeshKernel/CMakeLists.txt Outdated Show resolved Hide resolved
libs/MeshKernel/CMakeLists.txt Outdated Show resolved Hide resolved
libs/MeshKernel/src/Mesh.cpp Outdated Show resolved Hide resolved
@BillSenior BillSenior merged commit ad301ce into master Mar 19, 2024
12 checks passed
@BillSenior BillSenior deleted the feature/GRIDEDIT-899_undo_in_meshkernel branch March 19, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants