Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

GLBox.h

Go to the documentation of this file.
00001 
00002 
00003 
00005 
00006 
00011 
00016 
00021 //                            GLBox.h                                         //
00023 
00024 #ifndef GLBOX_H
00025 #define GLBOX_H
00026 
00027 #include "X3DGLGeometry3DNode.h"
00028 
00029 namespace X3DTK {
00030 namespace GL {
00031 
00032 class BoxDrawArray;
00033 
00035 
00036 class Box : public X3DGeometry3DNode
00037 {
00038 public:
00040   Box();
00042   virtual SFNode clone() const;
00044   virtual ~Box();
00045 
00047   void setSize(SFVec3f size);
00049   void setBoxArray(BoxDrawArray *boxArray);
00050 
00052   inline const SFVec3f &getSize() const {return _size;};
00054   inline BoxDrawArray *getBoxArray() const {return _boxArray;};
00055  
00057   virtual void update();
00059   virtual void render() const;  
00060   
00061 protected:     
00063   Box(const Box &B);
00064 
00065 private:  
00067   SFVec3f _size;
00069   BoxDrawArray *_boxArray;
00070 };
00071 
00072 }
00073 }
00074 
00075 #endif

Generated on Wed Sep 10 11:25:13 2003 for X3DToolKit by doxygen1.3