AnimaL |
Tutorial |
Documentation |
00001 // 00002 // C++ Interface: GLEngineLeafNode 00003 // 00004 // Description: 00005 // 00006 // 00007 // Author: François Faure <>, (C) 2004 00008 // 00009 // Copyright: See COPYING file that comes with this distribution 00010 // 00011 // 00012 #ifndef X3DTK_GLGLEngineLeafNode_h 00013 #define X3DTK_GLGLEngineLeafNode_h 00014 00015 #include <GL/engine/glEngineNode.h> 00016 #include <animal/X3DTK/X4DNode.h> 00017 00018 namespace X3DTK 00019 { 00020 00021 namespace GL 00022 { 00023 00029 class GLEngineLeafNode : public GLEngineNode 00030 { 00031 public: 00032 GLEngineLeafNode(); 00033 00034 ~GLEngineLeafNode(); 00035 00036 void setX4DNode( X3DTK::X3D::X4DNode* n ); 00037 00039 virtual void draw() const; 00041 virtual void update(){} 00042 00043 bool addChild(const X3DAbstractNode* &){ return false;} 00044 bool setChild(const X3DAbstractNode* &){ return false;} 00045 bool removeChild(const X3DAbstractNode* &){ return false;} 00046 MFNode getChildren() const { MFNode mfnode; return mfnode; } 00047 MFNode getChildList() const { MFNode mfnode; return mfnode; } 00048 00049 protected: 00050 X3DTK::X3D::X4DNode* e_x4dNode; 00051 }; 00052 00053 }; 00054 00055 }; 00056 00057 #endif