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

BBox.h

Go to the documentation of this file.
00001 
00002 //                            BBox.h                                          //
00004 
00005 #ifndef BBOX_H
00006 #define BBOX_H
00007 
00008 #include "X3DTypes.h"
00009 
00010 namespace X3DTK {
00011 
00014 
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 SFVec3f getCenter() const {return center_;};
00035   inline SFVec3f getSize() const {return size_;};
00036   
00037 private:
00038   SFVec3f center_;
00039   SFVec3f size_;  
00040 };
00041 
00042 }
00043 
00044 #endif

Generated on Thu Oct 9 13:50:52 2003 for X3DToolKit by doxygen1.2.18