#include <GlBox.h>
Inherits tlp::GlSimpleEntity.
 | 
| 
virtual void  | clearGenerated () | 
|   | 
General class used to render boxes as GlSimpleEntity. 
Definition at line 42 of file GlBox.h.
 
Don't use this constructor. 
 
 
      
        
          | tlp::GlBox::GlBox  | 
          ( | 
          const Coord &  | 
          position,  | 
        
        
           | 
           | 
          const Size &  | 
          size,  | 
        
        
           | 
           | 
          const Color &  | 
          fillColor,  | 
        
        
           | 
           | 
          const Color &  | 
          outlineColor,  | 
        
        
           | 
           | 
          bool  | 
          filled = true,  | 
        
        
           | 
           | 
          bool  | 
          outlined = true,  | 
        
        
           | 
           | 
          const std::string &  | 
          textureName = "",  | 
        
        
           | 
           | 
          float  | 
          outlineSize = 1.  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | position | The center of the box.  | 
    | size | The length of each dimension of the box.  | 
    | fillColor | The fill color of the box.  | 
    | outlineColor | The outline color of the box  | 
    | filled | Fill the box ?  | 
    | outlined | outline the box ?  | 
    | outlineSize | The size of the outline  | 
  
   
 
 
  
  
      
        
          | virtual tlp::GlBox::~GlBox  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | virtual void tlp::GlBox::draw  | 
          ( | 
          float  | 
          lod,  | 
         
        
           | 
           | 
          Camera *  | 
          camera  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
Draw function. 
- Warning
 - You don't have to call this function, the Tulip OpenGL engine call it. 
 
Implements tlp::GlSimpleEntity.
 
 
      
        
          | Color tlp::GlBox::getFillColor  | 
          ( | 
           | ) | 
           const | 
        
      
 
Accessor in reading to the fill color. 
 
 
      
        
          | Color tlp::GlBox::getOutlineColor  | 
          ( | 
           | ) | 
           const | 
        
      
 
Accessor in reading to the outline color. 
 
 
      
        
          | float tlp::GlBox::getOutlineSize  | 
          ( | 
           | ) | 
           const | 
        
      
 
Accessor in reading to the outline size. 
 
 
      
        
          | Coord* tlp::GlBox::getPosition  | 
          ( | 
           | ) | 
           const | 
        
      
 
Accessor in reading to the position. 
 
 
      
        
          | Size tlp::GlBox::getSize  | 
          ( | 
           | ) | 
           const | 
        
      
 
Accessor in reading to the size. 
 
 
      
        
          | std::string tlp::GlBox::getTextureName  | 
          ( | 
           | ) | 
           const | 
        
      
 
Accessor in reading to the texture name. 
 
 
  
  
      
        
          | virtual void tlp::GlBox::getXML  | 
          ( | 
          std::string &  | 
          outString | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
      
        
          | void tlp::GlBox::setFillColor  | 
          ( | 
          const Color &  | 
          color | ) | 
           | 
        
      
 
Accessor in writing to the fill color of the box. 
 
 
      
        
          | void tlp::GlBox::setOutlineColor  | 
          ( | 
          const Color &  | 
          color | ) | 
           | 
        
      
 
Accessor in writing to the outline color of the box. 
 
 
      
        
          | void tlp::GlBox::setOutlineSize  | 
          ( | 
          float  | 
          size | ) | 
           | 
        
      
 
Accessor in writing to the outline size of the box. 
 
 
      
        
          | void tlp::GlBox::setPosition  | 
          ( | 
          const Coord &  | 
          position | ) | 
           | 
        
      
 
Accessor in writing to the position. 
 
 
      
        
          | void tlp::GlBox::setSize  | 
          ( | 
          const Size &  | 
          size | ) | 
           | 
        
      
 
Accessor in writing to the size of the box. 
 
 
      
        
          | void tlp::GlBox::setTextureName  | 
          ( | 
          const std::string &  | 
          textureName | ) | 
           | 
        
      
 
Accessor in writing to the texture name of the box. 
 
 
  
  
      
        
          | virtual void tlp::GlBox::setWithXML  | 
          ( | 
          const std::string &  | 
          inString,  | 
         
        
           | 
           | 
          unsigned int &  | 
          currentPosition  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | virtual void tlp::GlBox::translate  | 
          ( | 
          const Coord &  | 
          mouvement | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | std::vector<Color> tlp::GlBox::fillColors | 
         
       
   | 
  
protected   | 
  
 
fillColor of the box 
Definition at line 152 of file GlBox.h.
 
 
the box is filled ? 
Definition at line 154 of file GlBox.h.
 
 
  
  
      
        
          | std::vector<Color> tlp::GlBox::outlineColors | 
         
       
   | 
  
protected   | 
  
 
outlineColor of the box 
Definition at line 153 of file GlBox.h.
 
 
  
  
      
        
          | bool tlp::GlBox::outlined | 
         
       
   | 
  
protected   | 
  
 
the box is outlined ? 
Definition at line 155 of file GlBox.h.
 
 
  
  
      
        
          | float tlp::GlBox::outlineSize | 
         
       
   | 
  
protected   | 
  
 
size of the ouline 
Definition at line 157 of file GlBox.h.
 
 
  
  
      
        
          | Coord tlp::GlBox::position | 
         
       
   | 
  
protected   | 
  
 
The position of the center of the box 
Definition at line 150 of file GlBox.h.
 
 
size is the "radius" of the box 
Definition at line 151 of file GlBox.h.