00001
00002
00003
00005
00006
00011
00016
00021
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 ¢er, const SFVec3f &size);
00042 explicit Bbox(const MFVec3f &coord);
00044 Bbox(const Bbox &B);
00045
00047 inline void setCenter(const SFVec3f ¢er) {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