BBox.h

Go to the documentation of this file.
00001 #ifndef X3DTK_BBOX_H
00002 #define X3DTK_BBOX_H
00003 
00004 #include "X3DTypes.h"
00005 
00006 namespace X3DTK {
00007 
00015 class BBox
00016 {
00017 public:
00019   BBox();
00021   BBox(const SFVec3f &center, const SFVec3f &size);
00023   explicit BBox(const MFVec3f &coord);
00025   BBox(const BBox &B);
00026   
00028   inline void setCenter(const SFVec3f &center) {_center = center;};
00030   inline void setSize(const SFVec3f &size) {_size = size;};
00031   
00033   inline const SFVec3f &getCenter() const {return _center;};
00035   inline const SFVec3f &getSize() const {return _size;};
00036   
00037 private:
00038   SFVec3f _center;
00039   SFVec3f _size;  
00040 };
00041 
00042 }
00043 
00044 #endif

Generated on Fri Jul 30 12:02:27 2004 for X3DToolKit by doxygen 1.3.6