GL_Box.h

Go to the documentation of this file.
00001 #ifndef X3DTK_GL_BOX_H
00002 #define X3DTK_GL_BOX_H
00003 
00004 #include "GL_X3DGeometryNode.h"
00005 
00006 namespace X3DTK {
00007 namespace GL {
00008 
00009 class BoxDrawArray;
00010 
00017 class Box : public X3DGeometryNode
00018 {
00019 public:
00021   Box();
00023   virtual ~Box();
00024   
00026   void setSize(const SFVec3f &size);
00028   void setBoxArray(BoxDrawArray *boxArray);
00029 
00031   inline const SFVec3f &getSize() const {return _size;};
00033   inline BoxDrawArray *getBoxArray() const {return _boxArray;};
00034  
00036   virtual void update();
00038   virtual void draw() const;  
00039 
00040 private:  
00042   SFVec3f _size;
00044   BoxDrawArray *_boxArray;
00045 };
00046 
00047 }
00048 }
00049 
00050 #endif

Generated on Fri Aug 27 13:16:21 2004 for X3DToolKit by doxygen 1.3.6