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

Public Member Functions

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

Private Attributes

Nodeparent_
 
size_t index_
 
ColorTranslatortranslator_
 
std::vector< Node * > nodes_
 
size_t startIdx_
 
size_t endIdx_
 
size_t colorStartIdx_
 
size_t colorEndIdx_
 

Detailed Description

Definition at line 118 of file MeshNode2T_impl.hh.


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