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

X3DBoundedObject.h

Go to the documentation of this file.
00001 
00002 //                            X3DBoundedObject.h                              //
00004 
00005 #ifndef X3DBOUNDEDOBJECT_H
00006 #define X3DBOUNDEDOBJECT_H
00007 
00008 #include "X3DTypes.h"
00009 #include "X3DObject.h"
00010 #include "X3DFileElement.h"
00011 
00012 namespace X3DTK {
00013 
00018 
00019 class X3DBoundedObject : public X3DObject
00020 {
00021 public:
00023   X3DBoundedObject();
00025   X3DBoundedObject(const SFVec3f &bboxCenter,
00026                    const SFVec3f &bboxSize);
00027            
00029   X3DBoundedObject(const X3DBoundedObject &N);
00030 
00032   virtual ~X3DBoundedObject();
00033 
00035   void setBboxCenter(const SFVec3f &bboxCenter);
00037   void setBboxSize(const SFVec3f &bboxSize);
00038 
00040   inline SFVec3f getBboxCenter() const {return bboxCenter_;};
00042   inline SFVec3f getBboxSize() const {return bboxSize_;};
00043 
00045   virtual void loadAttributes(const X3DFileElement *element);
00047   virtual SFString writeAttributes() const;
00048 
00049 protected:
00051   SFVec3f bboxCenter_;
00053   SFVec3f bboxSize_; 
00054 };
00055 
00056 }
00057 
00058 #endif

Generated on Wed May 14 10:38:10 2003 for X3DToolKit by doxygen1.3