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 (
size_t _idx);
101 void setIndex (
size_t _idx);
104 Vec4uc getIndexColor (
size_t _idx);
107 void pushIndex (
size_t _idx);
113 std::vector<size_t> colorToStack (
Vec4uc _rgba)
const;
116 size_t freeIndicies ()
const;
119 bool error ()
const {
return error_ && initialized_; };
122 size_t currentIndex ()
const;
134 bool setMaximumIndex (
size_t _idx);
137 bool setIndex (
size_t _idx)
const;
140 bool getIndexColor (
size_t _idx,
Vec4uc &_rgba)
const;
143 Node * pushIndex (
size_t _idx);
148 void colorToStack (std::vector<size_t> &_stack,
size_t size_t);
150 size_t startIndex ()
const {
return startIdx_; };
151 size_t endIndex ()
const {
return endIdx_; };
152 size_t colorIndex ()
const {
return colorStartIdx_; };
158 std::vector<Node *> nodes_;
162 size_t colorStartIdx_;
178 #endif // ACG_COLORSTACK_HH defined
bool error() const
Did an error occur during picking.
Namespace providing different geometric functions concerning angles.
bool initialized() const
has it been initialized?