TriangleSelector: Separated frontend/backend, support of multiple volumes, etc.

This commit is contained in:
Lukas Matena 2020-07-09 16:25:34 +02:00
parent b250c08ec9
commit 6baff45759
7 changed files with 856 additions and 855 deletions

View file

@ -39,6 +39,7 @@ class ModelVolume;
class ModelWipeTower;
class Print;
class SLAPrint;
class TriangleSelector;
namespace UndoRedo {
class StackImpl;
@ -404,8 +405,9 @@ class FacetsAnnotation {
public:
using ClockType = std::chrono::steady_clock;
const std::map<int, std::vector<bool>>& get_data() const { return m_data; }
void set(const TriangleSelector& selector);
std::vector<int> get_facets(FacetSupportType type) const;
void set_facet(int idx, FacetSupportType type);
void clear();
ClockType::time_point get_timestamp() const { return timestamp; }
@ -419,7 +421,7 @@ public:
}
private:
std::map<int, FacetSupportType> m_data;
std::map<int, std::vector<bool>> m_data;
ClockType::time_point timestamp;
void update_timestamp() {