59 #ifndef ACG_QTCOLORTRANSLATOR_HH 60 #define ACG_QTCOLORTRANSLATOR_HH 67 #include "../Config/ACGDefines.hh" 92 redBits_(0), greenBits_(0), blueBits_(0),
93 redMask_(0), greenMask_(0), blueMask_(0),
94 redShift_(0), greenShift_(0), blueShift_(0),
95 redRound_(0), greenRound_(0), blueRound_(0)
100 { initialize(_context); }
111 { _context.makeCurrent(); initialize(); }
118 bool index2color(
unsigned int _idx, QRgb& _col )
const;
120 bool index2color(
unsigned int _idx,
122 QRgb& _backColor )
const;
126 int color2index( QRgb _c )
const;
128 int color2index( QRgb _frontColor, QRgb _backColor )
const;
132 unsigned int maxIndex()
const;
138 GLint redBits_, greenBits_, blueBits_;
139 GLuint redMask_, greenMask_, blueMask_,
140 redShift_, greenShift_, blueShift_,
141 redRound_, greenRound_, blueRound_;
148 #endif // ACG_QTCOLORTRANSLATOR_HH defined bool initialized() const
has it been initialized?
void initialize(QGLContext &_context)
init with given QGLcontext
~QtColorTranslator()
Destructor.
QtColorTranslator()
Default constructor.
Namespace providing different geometric functions concerning angles.
QtColorTranslator(QGLContext &_context)
construct with QGLcontext