00001 #ifndef SIMPLEANIMATIONSCENE_H 00002 #define SIMPLEANIMATIONSCENE_H 00003 00004 #include "GL_SimpleAnimator.h" 00005 00006 #include <X3DTK/simplex3dglscene.h> 00007 #include <X3DTK/X3D/worldcoordtranslator.h> 00008 00009 namespace X3DTK { 00010 00011 // Class providing the animation and the loading of an X3D model. 00012 00013 class SimpleAnimationScene : public SimpleX3DGLScene 00014 { 00015 public: 00016 SimpleAnimationScene(); 00017 00018 virtual void load(const char *file, bool fileValidation = true); 00019 virtual void init(); 00020 virtual void animate(); 00021 00022 private: 00023 GL::SimpleAnimator *_glSimpleAnimator; 00024 X3D::WorldCoordTranslator *_translator; 00025 float _time; 00026 }; 00027 00028 } 00029 00030 #endif