blob: 0c7ad5a617742cfd039f0bc652465c3d5ede6bf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "modelFactoryMesh.h"
#include "persistence.h"
#include "shape.h"
#include <string>
class Style {
public:
using StyleStack = std::vector<const Style *>;
static ModelFactoryMesh::Color parseColour(const std::string_view &);
void applyStyle(ModelFactoryMesh &, const StyleStack & parents, const Shape::CreatedFaces &) const;
void applyStyle(ModelFactoryMesh &, const StyleStack & parents, const ModelFactoryMesh::FaceHandle &) const;
static std::string_view getProperty(const StyleStack & parents, std::string Style::*member);
std::string colour;
protected:
bool persist(Persistence::PersistenceStore & store);
};
|