00001 #ifndef NORMALX3DGLSCENE_H 00002 #define NORMALX3DGLSCENE_H 00003 00004 #include "GL_NormalRenderer.h" 00005 00006 #include <X3DTK/simplex3dglscene.h> 00007 00008 namespace X3DTK { 00009 00010 // Class extending SimpleX3DGLscene for drawing the normals. 00011 00012 class NormalX3DGLScene : public SimpleX3DGLScene 00013 { 00014 public: 00015 NormalX3DGLScene(); 00016 00017 void setNormal(bool value); 00018 void setNormalLength(float value); 00019 virtual void draw(); 00020 00021 private: 00022 GL::NormalRenderer *_normalRenderer; 00023 bool _normal; 00024 }; 00025 00026 } 00027 00028 #endif