llwlanimator.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_WL_ANIMATOR_H
00033 #define LL_WL_ANIMATOR_H
00034 
00035 #include "llwlparamset.h"
00036 #include <string>
00037 #include <map>
00038 
00039 class LLWLAnimator {
00040 public:
00041         F64 mStartTime;
00042         F32 mDayRate;
00043         F64 mDayTime;
00044         
00045         // track to play
00046         std::map<F32, std::string> mTimeTrack;
00047         std::map<F32, std::string>::iterator mFirstIt, mSecondIt;
00048 
00049         // params to use
00050         //std::map<std::string, LLWLParamSet> mParamList;
00051 
00052         bool mIsRunning;
00053         bool mUseLindenTime;
00054 
00055         // simple constructor
00056         LLWLAnimator();
00057 
00058         // update the parameters
00059         void update(LLWLParamSet& curParams);
00060 
00061         // get time in seconds
00062         //F64 getTime(void);
00063 
00064         // returns a float 0 - 1 saying what time of day is it?
00065         F64 getDayTime(void);
00066 
00067         // sets a float 0 - 1 saying what time of day it is
00068         void setDayTime(F64 dayTime);
00069 
00070         // set an animation track
00071         void setTrack(std::map<F32, std::string>& track,
00072                 F32 dayRate, F64 dayTime = 0, bool run = true);
00073 
00074 };
00075 
00076 #endif // LL_WL_ANIMATOR_H

Generated on Fri May 16 08:34:25 2008 for SecondLife by  doxygen 1.5.5