col_qt_convert.h
Go to the documentation of this file.
00001 #ifndef COL_QT_CONVERT_H_
00002 #define COL_QT_CONVERT_H_
00003 
00004 #include <QColor>
00005 #include "../../vcg/space/color4.h"
00006 
00007 namespace vcg
00008 {
00009         class ColorConverter
00010         {
00011         public:
00012                 inline static vcg::Color4b ToColor4b(const QColor& col)
00013                 {
00014                         return vcg::Color4b(col.red(),col.green(),col.blue(),col.alpha());
00015                 }
00016 
00017                 inline static QColor ToQColor(const vcg::Color4b& col) 
00018                 {
00019                         return QColor(col[0],col[1],col[2],col[3]);
00020                 }
00021         };
00022 }
00023 
00024 #endif


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:29:37