Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-07-04 15:35:04 +0300
committerbubnikv <bubnikv@gmail.com>2019-07-04 15:35:04 +0300
commit1798e2a84c57a9ecde31ffbeebdf6da0758bcd94 (patch)
treef4282a97b04de68a80cfe64f1aa33d0a63217fa8 /src/slic3r/GUI/Selection.hpp
parent5a2ace1a6e466c3501817cfa73d3b74606222395 (diff)
WIP Undo / Redo : serialization / deserialization of object selection.
Diffstat (limited to 'src/slic3r/GUI/Selection.hpp')
-rw-r--r--src/slic3r/GUI/Selection.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Selection.hpp b/src/slic3r/GUI/Selection.hpp
index 17ae72356..8168e5e88 100644
--- a/src/slic3r/GUI/Selection.hpp
+++ b/src/slic3r/GUI/Selection.hpp
@@ -3,7 +3,6 @@
#include <set>
#include "libslic3r/Geometry.hpp"
-#include "libslic3r/ObjectID.hpp"
#include "3DScene.hpp"
#if ENABLE_RENDER_SELECTION_CENTER
@@ -67,7 +66,7 @@ private:
Enum m_value;
};
-class Selection : public Slic3r::ObjectBase
+class Selection
{
public:
typedef std::set<unsigned int> IndicesList;
@@ -238,6 +237,9 @@ public:
void add_all();
+ // To be called after Undo or Redo once the volumes are updated.
+ void set_deserialized(EMode mode, const std::vector<std::pair<ObjectID, ObjectID>> &volumes_and_instances);
+
// Update the selection based on the new instance IDs.
void instances_changed(const std::vector<size_t> &instance_ids_selected);
// Update the selection based on the map from old indices to new indices after m_volumes changed.