58 #ifndef ACG_COLORSTACK_HH 59 #define ACG_COLORSTACK_HH 66 #include <ACG/GL/gl.hh> 67 #include <ACG/Math/VectorT.hh> 68 #include "ColorTranslator.hh" 98 bool setMaximumIndex (
unsigned int _idx);
101 void setIndex (
unsigned int _idx);
104 Vec4uc getIndexColor (
unsigned int _idx);
107 void pushIndex (
unsigned int _idx);
113 std::vector<unsigned int> colorToStack (
Vec4uc _rgba)
const;
116 unsigned int freeIndicies ()
const;
119 bool error ()
const {
return error_ && initialized_; };
122 unsigned int currentIndex ()
const;
134 bool setMaximumIndex (
unsigned int _idx);
137 bool setIndex (
unsigned int _idx)
const;
140 bool getIndexColor (
unsigned int _idx,
Vec4uc &_rgba)
const;
143 Node * pushIndex (
unsigned int _idx);
148 void colorToStack (std::vector<unsigned int> &_stack,
unsigned int _index);
150 unsigned int startIndex () {
return startIdx_; };
151 unsigned int endIndex () {
return endIdx_; };
152 unsigned int colorIndex () {
return colorStartIdx_; };
158 std::vector<Node *> nodes_;
160 unsigned int startIdx_;
161 unsigned int endIdx_;
162 unsigned int colorStartIdx_;
163 unsigned int colorEndIdx_;
178 #endif // ACG_COLORSTACK_HH defined bool error() const
Did an error occur during picking.
bool initialized() const
has it been initialized?
Namespace providing different geometric functions concerning angles.