Commit fc277f8b authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Make some propVis settings accessible from script.

Only implemented for bool and double properties, extending
it to other property types is trivial.
parent 36fd3158
......@@ -47,13 +47,25 @@
namespace ACG {
inline Vec4f to_Vec4f(const QColor _color){
inline Vec4f to_Vec4f(const QColor &_color){
return Vec4f(_color.redF(),
_color.greenF(),
_color.blueF(),
_color.alphaF());
}
inline Vec4d to_Vec4d(const QColor &_color){
return Vec4d(_color.redF(),
_color.greenF(),
_color.blueF(),
_color.alphaF());
}
inline QColor to_QColor(const Vec4d &c) {
return QColor::fromRgbF(c[0], c[1], c[2], c[3]);
}
} // namespace ACG
#endif // COLORCONVERSION_HH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment