Developer Documentation
ACG::SceneGraph::ACG::ColorStack::Node Class Reference

Public Member Functions

 Node (unsigned int _idx, Node *_parent, ColorTranslator *_ct)
bool setMaximumIndex (unsigned int _idx)
 sets the maximum index number used in current node
bool setIndex (unsigned int _idx) const
 sets the current color the given index (like glLoadName)
bool getIndexColor (unsigned int _idx, Vec4uc &_rgba) const
 gets the color instead of setting it directly
NodepushIndex (unsigned int _idx)
 creates a new node the stack (like glPushName)
NodepopIndex ()
 pops the current node from the stack (like glPopName)
void colorToStack (std::vector< unsigned int > &_stack, unsigned int _index)
unsigned int startIndex ()
unsigned int endIndex ()
unsigned int colorIndex ()

Private Attributes

unsigned int index_
std::vector< Node * > nodes_
unsigned int startIdx_
unsigned int endIdx_
unsigned int colorStartIdx_
unsigned int colorEndIdx_

Detailed Description

Definition at line 128 of file

The documentation for this class was generated from the following file: