00001 #include "GLSphere.h" 00002 #include "Sphere.h" 00003 #include "SphereDrawArray.h" 00004 00005 using namespace X3DTK; 00006 00007 GLSphere::GLSphere() 00008 : X3DGLGeometry3DNode(), _radius(0.0f), _sphereArray(0) 00009 { 00010 defineTagName("GLSphere", "GLGeometry3D"); 00011 } 00012 00013 GLSphere::GLSphere(const GLSphere &S) 00014 : X3DGLGeometry3DNode(S), _radius(S._radius), _sphereArray(0) 00015 { 00016 defineTagName("GLSphere", "GLGeometry3D"); 00017 } 00018 00019 SFNode GLSphere::clone() const 00020 { 00021 return new GLSphere(*this); 00022 } 00023 00024 GLSphere::~GLSphere() 00025 { 00026 _sphereArray->removeInstance(); 00027 }