blob: 296210d968196a3806f7941bc564be752e34052c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include "modelFactoryMesh_fwd.h"
#include "mutation.h"
#include "persistence.h"
#include "shape.h"
#include <map>
#include <string>
class FaceController : public Mutation, public Persistence::Persistable {
public:
using FaceControllers = std::map<std::string, std::unique_ptr<FaceController>>;
void apply(ModelFactoryMesh & mesh, const std::string & name, Shape::CreatedFaces & faces) const;
std::string id;
std::string colour;
std::string type;
bool smooth {false};
FaceControllers faceControllers;
private:
friend Persistence::SelectionPtrBase<std::unique_ptr<FaceController>, false>;
bool persist(Persistence::PersistenceStore & store) override;
std::string
getId() const override
{
return {};
};
};
|