00001
00002
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 ¢er, const SFVec3f &size);
00023 explicit Bbox(const MFVec3f &coord);
00025 Bbox(const Bbox &B);
00026
00028 inline void setCenter(const SFVec3f ¢er) {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