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

ViscousDrag.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_VISCOUSDRAG_H 00012 #define OPENCAL_VISCOUSDRAG_H 00013 00014 // Includes 00015 #include <OpenCAL/global.h> 00016 #include <OpenCAL/Force.h> 00017 00018 00019 namespace OpenCAL 00020 { 00021 // Forward declarations 00022 class PhysicsSystem; 00023 00027 class OPENCAL_API ViscousDrag: public Force 00028 { 00029 protected: 00030 // Member variables 00031 float m_drag; 00032 00033 public: 00034 // Constructors and destructor 00035 ViscousDrag(PhysicsSystem *parent, float drag = 0.002f); 00036 virtual ~ViscousDrag(); 00037 00038 // Get functions 00039 float getDrag() const { return m_drag; } 00040 00041 // Set functions 00042 void setDrag(float drag) { m_drag = drag; } 00043 00044 // Other functions 00045 void execute(float seconds); 00046 }; 00047 } 00048 00049 #endif // OPENCAL_VISCOUSDRAG_H

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