From 009c6f4f7fa70ce8a5cdd335550166698733df16 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 17 Jun 2014 13:21:58 +0000 Subject: [PATCH] Added interfaces for color managment --- wrap/qt/gl_label.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/wrap/qt/gl_label.h b/wrap/qt/gl_label.h index 10f39b89..51edb9a2 100755 --- a/wrap/qt/gl_label.h +++ b/wrap/qt/gl_label.h @@ -40,6 +40,16 @@ namespace vcg { public: Mode() + { + init(); + } + Mode(Color4b _color) + { + init(); + color=_color; + } + + void init() { color=vcg::Color4b(vcg::Color4b::White); angle=0; @@ -144,7 +154,7 @@ namespace vcg render(painter,p,text,m); } - static void render(QPainter *painter, const vcg::Point3f &p, const QString &text, Mode &m) + static void render(QPainter *painter, const vcg::Point3f &p, const QString &text, const Mode &m) { GLdouble model[16]; GLdouble proj[16]; @@ -179,7 +189,7 @@ namespace vcg static void render(QPainter *painter, const vcg::Point3d &p, const QString &text) { render(painter,Point3f::Construct(p),text); } - static void render(QPainter *painter, const vcg::Point3d &p, const QString &text, Mode &m) + static void render(QPainter *painter, const vcg::Point3d &p, const QString &text, const Mode &m) { render(painter,Point3f::Construct(p),text,m); } };