00001 00002 // StaticGroup.h // 00004 00005 #ifndef STATICGROUP_H 00006 #define STATICGROUP_H 00007 00008 #include "X3DTypes.h" 00009 #include "X3DChildNode.h" 00010 #include "X3DBoundedObject.h" 00011 00012 namespace X3DTK { 00013 namespace X3D { 00014 00019 00020 class StaticGroup : public X3DChildNode, public X3DBoundedObject 00021 { 00022 public: 00024 StaticGroup(); 00026 StaticGroup(const SFVec3f &bboxCenter, 00027 const SFVec3f &bboxSize); 00029 virtual SFNode clone() const; 00031 virtual ~StaticGroup(); 00032 00034 bool addChild(const SFAbstractNode &N); 00036 bool setChild(const SFAbstractNode &N); 00038 bool removeChild(const SFAbstractNode &N); 00039 00041 inline MFNode getChildren() const {return _children;}; 00043 virtual void load(const X3DFileElement *element); 00045 virtual SFString write() const; 00046 00047 protected: 00049 StaticGroup(const StaticGroup &G); 00050 00051 private: 00053 MFNode _children; 00054 }; 00055 00056 } 00057 } 00058 00059 #endif