00001 00002 // GLSphere.h // 00004 00005 #ifndef GLSPHERE_H 00006 #define GLSPHERE_H 00007 00008 #include "X3DGLGeometry3DNode.h" 00009 00010 namespace X3DTK { 00011 00012 class Sphere; 00013 class SphereDrawArray; 00014 00017 00018 class GLSphere : public X3DGLGeometry3DNode 00019 { 00020 public: 00022 GLSphere(); 00024 virtual SFNode clone() const; 00026 ~GLSphere(); 00027 00029 inline SFFloat &getRadius() const {return (SFFloat &)_radius;}; 00031 inline SphereDrawArray *&getSphereDrawArray() const {return (SphereDrawArray *&)_sphereArray;}; 00032 00033 protected: 00035 GLSphere(const GLSphere &S); 00036 00037 private: 00038 //GL attributes 00039 SFFloat _radius; 00040 SphereDrawArray *_sphereArray; 00041 }; 00042 00043 } 00044 00045 #endif