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

X3DGLShapeNode.h

Go to the documentation of this file.
00001 
00002 //                            X3DGLShapeNode.h                                //
00004 
00005 #ifndef X3DGLSHAPENODE_H
00006 #define X3DGLSHAPENODE_H
00007 
00008 #include "X3DGLChildNode.h"
00009 
00010 namespace X3DTK {
00011 namespace GL {
00012 
00013 class X3DGeometryNode;
00014 class X3DAppearanceNode;
00015 
00017 
00018 class X3DShapeNode : public X3DChildNode
00019 {
00020 public:
00022   X3DShapeNode();
00024   virtual SFNode clone() const;
00026   virtual ~X3DShapeNode();
00027   
00029   void setGeometry(const X3DGeometryNode *geometry);
00031   void setAppearance(const X3DAppearanceNode *appearance);
00032 
00034   inline SFNode getGeometry() const {return _geometry;};
00036   inline SFNode getAppearance() const {return _appearance;};
00037   
00040   virtual bool addChild(const SFAbstractNode &N);
00043   virtual bool setChild(const SFAbstractNode &N);
00045   virtual bool removeChild(const SFAbstractNode &N);
00046   
00047 protected:
00049   X3DShapeNode(const X3DShapeNode &N);
00050 
00051 private:  
00053   SFNode _geometry;
00055   SFNode _appearance;  
00056 };
00057 
00058 }
00059 }
00060 
00061 #endif

Generated on Tue Jul 15 16:46:53 2003 for X3DToolKit by doxygen1.3