48 #ifndef ACG_COLORSTACK_HH 49 #define ACG_COLORSTACK_HH 56 #include <ACG/GL/gl.hh> 57 #include <ACG/Math/VectorT.hh> 58 #include "ColorTranslator.hh" 88 bool setMaximumIndex (
size_t _idx);
91 void setIndex (
size_t _idx);
94 Vec4uc getIndexColor (
size_t _idx);
97 void pushIndex (
size_t _idx);
103 std::vector<size_t> colorToStack (
Vec4uc _rgba)
const;
106 size_t freeIndicies ()
const;
109 bool error ()
const {
return error_ && initialized_; };
112 size_t currentIndex ()
const;
124 bool setMaximumIndex (
size_t _idx);
127 bool setIndex (
size_t _idx)
const;
130 bool getIndexColor (
size_t _idx,
Vec4uc &_rgba)
const;
133 Node * pushIndex (
size_t _idx);
138 void colorToStack (std::vector<size_t> &_stack,
size_t size_t);
140 size_t startIndex ()
const {
return startIdx_; };
141 size_t endIndex ()
const {
return endIdx_; };
142 size_t colorIndex ()
const {
return colorStartIdx_; };
148 std::vector<Node *> nodes_;
152 size_t colorStartIdx_;
168 #endif // ACG_COLORSTACK_HH defined
Namespace providing different geometric functions concerning angles.
bool initialized() const
has it been initialized?
bool error() const
Did an error occur during picking.