2011-12-12 02:45:14 +04:00
|
|
|
#ifndef RENDERSETTINGS_H_
|
|
|
|
#define RENDERSETTINGS_H_
|
|
|
|
|
2012-01-26 00:13:03 +04:00
|
|
|
#include <map>
|
|
|
|
#include "linalg.h"
|
2011-12-12 02:45:14 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2012-01-26 00:13:03 +04:00
|
|
|
void setColors(const std::map<RenderColor, Color4f> &colors);
|
|
|
|
Color4f color(RenderColor idx);
|
2011-12-12 02:45:14 +04:00
|
|
|
|
2013-03-04 07:37:57 +04:00
|
|
|
unsigned int openCSGTermLimit, img_width, img_height;
|
|
|
|
double far_gl_clip_limit;
|
2011-12-12 02:45:14 +04:00
|
|
|
private:
|
|
|
|
RenderSettings();
|
|
|
|
~RenderSettings() {}
|
|
|
|
|
2012-01-26 00:13:03 +04:00
|
|
|
std::map<RenderColor, Color4f> colors;
|
2011-12-12 02:45:14 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|