Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Sphere.h

00001 /*************************************************************************** 00002 * This file is part of OpenCAL: Open Computer Animation Library * 00003 * I created OpenCAL as my master's thesis Computer Science (multimedia) * 00004 * at the tUL university in Diepenbeek, Belgium * 00005 * * 00006 * Copyright (C) 2003-2004 by Jeroen Dierckx * 00007 * jeroen.dierckx@student.luc.ac.be * 00008 * * 00009 ***************************************************************************/ 00010 00011 #ifndef OPENCAL_SPHERE_H 00012 #define OPENCAL_SPHERE_H 00013 00014 // Includes 00015 #include <OpenCAL/global.h> 00016 #include <OpenCAL/RigidBody.h> 00017 00018 namespace OpenCAL 00019 { 00020 // Forward declarations 00021 00025 class OPENCAL_API Sphere: public RigidBody 00026 { 00027 protected: 00028 // Member variables 00029 float m_radius; 00030 00031 public: 00032 // Constructors and destructor 00033 Sphere(System *parent, float radius = 1.0f, float mass = 1.0f); 00034 virtual ~Sphere(); 00035 00036 // Get functions 00037 float getRadius() const { return m_radius; } 00038 00039 // Set functions 00040 void setRadius(float radius) { m_radius = radius; } 00041 00042 // Other functions 00043 virtual void render(); 00044 00045 virtual void calculateVolume(); 00046 virtual void calculateInversedInertia(); 00047 /* 00048 #ifdef USE_OPENGL 00049 virtual void initializeGL(); 00050 #endif // USE_OPENGL 00051 */ 00052 }; 00053 } 00054 00055 #endif // OPENCAL_SPHERE_H

Generated on Sun Aug 15 19:19:23 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8