summaryrefslogtreecommitdiff
path: root/src/rendersettings.h
blob: 32e56f184879fb0fae677091e5935cca9614253f (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
31
32
33
34
35
#ifndef RENDERSETTINGS_H_
#define RENDERSETTINGS_H_

#include <QColor>
#include <QMap>

class RenderSettings
{
public:
	static RenderSettings *inst(bool erase = false);

	enum RenderColor {
		BACKGROUND_COLOR,
		OPENCSG_FACE_FRONT_COLOR,
		OPENCSG_FACE_BACK_COLOR,
		CGAL_FACE_FRONT_COLOR,
		CGAL_FACE_2D_COLOR,
		CGAL_FACE_BACK_COLOR,
		CGAL_EDGE_FRONT_COLOR,
		CGAL_EDGE_BACK_COLOR,
		CGAL_EDGE_2D_COLOR,
		CROSSHAIR_COLOR
	};

	void setColors(const QMap<RenderColor, QColor> &colors);
	QColor color(RenderColor idx) const;

private:
	RenderSettings();
	~RenderSettings() {}

	QMap<RenderColor, QColor> colors;
};

#endif
contact: Jan Huwald // Impressum