Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

Sphere.h

Go to the documentation of this file.
00001 
00002 //                            Sphere.h                                        //
00004 
00005 #ifndef SPHERE_H
00006 #define SPHERE_H
00007 
00008 #include "X3DTypes.h"
00009 #include "X3DGeometry3DNode.h"
00010 
00011 namespace X3DTK {
00012 
00017 
00018 class Sphere : public X3DGeometry3DNode
00019 {
00020 public:
00022   Sphere();
00024   explicit Sphere(SFFloat radius);
00026   virtual SFNode clone() const;
00028   ~Sphere();
00029   
00031   void setRadius(SFFloat radius);
00032   
00034   inline SFFloat getRadius() const {return radius_;};
00035   
00037   virtual void loadAttributes(const X3DFileElement *element);
00039   virtual SFString writeAttributes() const;
00040 
00041 protected:
00043   Sphere(const Sphere &C);
00044 
00045 private:
00046   SFFloat radius_;
00047 };
00048 
00049 }
00050 
00051 #endif

Generated on Wed May 14 10:38:10 2003 for X3DToolKit by doxygen1.3