00001
00002
00004
00005 #ifndef BOX_H
00006 #define BOX_H
00007
00008 #include "X3DTypes.h"
00009 #include "X3D_X3DGeometry3DNode.h"
00010
00011 namespace X3DTK {
00012 namespace X3D {
00013
00018
00019 class Box : public X3DGeometry3DNode
00020 {
00021 public:
00023 Box();
00026 Box(const SFVec3f &size);
00028 virtual SFAbstractNode clone() const;
00030 virtual ~Box();
00031
00033 void setSize(const SFVec3f &size);
00034
00036 inline const SFVec3f &getSize() const {return _size;};
00037
00039 virtual void load(const X3DFileElement *element);
00041 virtual SFString &write(SFString &output) const;
00042
00043 protected:
00045 Box(const Box &B);
00046
00047 private:
00049 SFVec3f _size;
00050 };
00051
00052 }
00053 }
00054
00055 #endif