00001 00002 // X3DGLGroupingNode.h // 00004 00005 #ifndef X3DGLGROUPINGNODE_H 00006 #define X3DGLGROUPINGNODE_H 00007 00008 #include "X3DGLChildNode.h" 00009 00010 namespace X3DTK { 00011 namespace GL { 00012 00014 00015 class X3DGroupingNode : public X3DChildNode 00016 { 00017 public: 00019 X3DGroupingNode(); 00021 virtual SFNode clone() const; 00023 virtual ~X3DGroupingNode(); 00024 00026 virtual bool addChild(const SFAbstractNode &N); 00028 virtual bool setChild(const SFAbstractNode &N); 00030 virtual bool removeChild(const SFAbstractNode &N); 00031 00033 void setChildren(const MFNode &children); 00034 00036 inline MFNode getChildren() const {return _children;}; 00037 00038 protected: 00040 X3DGroupingNode(const X3DGroupingNode &N); 00041 00042 private: 00044 MFNode _children; 00045 }; 00046 00047 } 00048 } 00049 00050 #endif