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 
00003 
00005 
00006 
00011 
00016 
00021 //                            Bbox.h                                         //
00023 
00024 #ifndef BBOX_H
00025 #define BBOX_H
00026 
00027 #include "X3DTypes.h"
00028 
00029 namespace X3DTK {
00030 
00033 
00034 class Bbox
00035 {
00036 public:
00038   Bbox();
00040   Bbox(const SFVec3f &center, const SFVec3f &size);
00042   explicit Bbox(const MFVec3f &coord);
00044   Bbox(const Bbox &B);
00045   
00047   inline void setCenter(const SFVec3f &center) {center_ = center;};
00049   inline void setSize(const SFVec3f &size) {size_ = size;};
00050   
00052   inline SFVec3f getCenter() const {return center_;};
00054   inline SFVec3f getSize() const {return size_;};
00055   
00056 private:
00057   SFVec3f center_;
00058   SFVec3f size_;  
00059 };
00060 
00061 }
00062 
00063 #endif

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