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

ODESource.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_ODESOURCE_H 00012 #define OPENCAL_ODESOURCE_H 00013 00014 // Includes 00015 #include <OpenCAL/global.h> 00016 #include <OpenCAL/PhaseSpace.h> 00017 00018 namespace OpenCAL 00019 { 00020 // Forward declarations 00021 00026 class OPENCAL_API ODESource 00027 { 00028 protected: 00029 // Member variables 00030 PhaseSpace m_state; 00031 PhaseSpace m_derivative; 00032 00033 public: 00034 // Constructors and destructor 00035 //ODESource() {} 00036 virtual ~ODESource() {} 00037 00038 // ODE functions 00039 virtual unsigned int getStateDimension() const { return m_state.getSize(); } 00040 virtual PhaseSpace *getState() { return &m_state; } 00041 virtual PhaseSpace *getDerivative() { return &m_derivative; } 00042 00043 virtual void fillState() = 0; 00044 virtual void fillDerivative() = 0; 00045 virtual void fromState() = 0; 00046 }; 00047 } 00048 00049 #endif // OPENCAL_ODESOURCE_H

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