53 #ifndef ACG_QTCOLORTRANSLATOR_HH 54 #define ACG_QTCOLORTRANSLATOR_HH 61 #include "../Config/ACGDefines.hh" 86 redBits_(0), greenBits_(0), blueBits_(0),
87 redMask_(0), greenMask_(0), blueMask_(0),
88 redShift_(0), greenShift_(0), blueShift_(0),
89 redRound_(0), greenRound_(0), blueRound_(0)
94 { initialize(_context); }
105 { _context.makeCurrent(); initialize(); }
112 bool index2color(
unsigned int _idx, QRgb& _col )
const;
114 bool index2color(
unsigned int _idx,
116 QRgb& _backColor )
const;
120 int color2index( QRgb _c )
const;
122 int color2index( QRgb _frontColor, QRgb _backColor )
const;
126 unsigned int maxIndex()
const;
132 GLint redBits_, greenBits_, blueBits_;
133 GLuint redMask_, greenMask_, blueMask_,
134 redShift_, greenShift_, blueShift_,
135 redRound_, greenRound_, blueRound_;
142 #endif // ACG_QTCOLORTRANSLATOR_HH defined QtColorTranslator()
Default constructor.
Namespace providing different geometric functions concerning angles.
bool initialized() const
has it been initialized?
QtColorTranslator(QGLContext &_context)
construct with QGLcontext
void initialize(QGLContext &_context)
init with given QGLcontext
~QtColorTranslator()
Destructor.