Main Page   Class Hierarchy   Compound List   File List   Compound Members  

sphere.h

00001 #ifndef _SPHERE_H_
00002 #define _SPHERE_H_
00003 
00004 
00005 // parent include
00006 #include "animobject.h"
00007 
00008 // own includes
00009 
00010 namespace cganim
00011   {
00012 
00014   class Sphere: public AnimObject
00015     {
00016     public:
00017 
00018       Sphere()
00019         : m_radius(1), m_pos(0, 0, 0)
00020         { }
00021 
00023       double GetRadius() const
00024         { return m_radius; }
00025 
00027       void SetRadius(double new_radius)
00028         { m_radius = new_radius; }
00029 
00031       gml::Vector3d GetCenter() const
00032         { return m_pos; }
00033 
00035       void SetCenter(const gml::Vector3d& new_center)
00036         { m_pos = new_center; }
00037 
00038     private:
00040       double m_radius;
00042       gml::Vector3d m_pos;
00043 
00044     };
00045 
00046   }
00047 
00048 
00049 
00050 #endif

Generated on Wed May 5 13:20:39 2004 for AnimDatalibrary by doxygen1.3