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

ValueTimeTrack.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_VALUETIMETRACK_H 00012 #define OPENCAL_VALUETIMETRACK_H 00013 00014 // Includes 00015 #include <OpenCAL/global.h> 00016 #include <OpenCAL/TimeTrack.h> 00017 00018 #include <map> 00019 using std::map; 00020 00021 00022 namespace OpenCAL 00023 { 00024 // Forward declarations 00025 00030 class OPENCAL_API ValueTimeTrack: public TimeTrack 00031 { 00032 protected: 00033 // Typedefs 00034 typedef map<float, float> KeyFrameMap; 00035 00036 // Member variables 00037 float *m_value; 00038 KeyFrameMap m_keyFrames; 00039 00040 public: 00041 // Constructors and destructor 00042 ValueTimeTrack(KeyFrameSystem *keyFrameSystem, float *value); 00043 virtual ~ValueTimeTrack(); 00044 00045 // Other functions 00046 void addKeyFrame(float time, float value); 00047 void deleteKeyFrame(float time); 00048 void apply(); 00049 }; 00050 } 00051 00052 #endif // OPENCAL_VALUETIMETRACK_H

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