#include <llwldaycycle.h>
Public Member Functions | |
| LLWLDayCycle () | |
| simple constructor | |
| ~LLWLDayCycle () | |
| simple destructor | |
| void | loadDayCycle (const LLString &fileName) |
| load a day cycle | |
| void | saveDayCycle (const LLString &fileName) |
| load a day cycle | |
| void | clearKeys () |
| clear keys | |
| bool | addKey (F32 newTime, const LLString ¶mName) |
| bool | changeKeyTime (F32 oldTime, F32 newTime) |
| bool | changeKeyParam (F32 time, const LLString ¶mName) |
| bool | removeKey (F32 time) |
| bool | getKey (const LLString &name, F32 &key) |
| bool | getKeyedParam (F32 time, LLWLParamSet ¶m) |
| bool | getKeyedParamName (F32 time, LLString &name) |
Public Attributes | |
| std::map< F32, std::string > | mTimeMap |
| F32 | mDayRate |
Definition at line 45 of file llwldaycycle.h.
| LLWLDayCycle::LLWLDayCycle | ( | ) |
| LLWLDayCycle::~LLWLDayCycle | ( | ) |
| void LLWLDayCycle::loadDayCycle | ( | const LLString & | fileName | ) |
load a day cycle
Definition at line 51 of file llwldaycycle.cpp.
References addKey(), LLViewerWindow::alertXml(), LLSD::asString(), LLSD::emptyArray(), gDirUtilp, LLDir::getExpandedFilename(), LLWLParamManager::getParamSet(), gViewerWindow, i, LLWLParamManager::instance(), LL_PATH_APP_SETTINGS, llendl, llifstream, llinfos, mTimeMap, S32, LLSD::size(), and LLSDSerialize::SIZE_UNLIMITED.
Referenced by LLWLParamManager::instance(), and LLFloaterDayCycle::onLoadDayCycle().


| void LLWLDayCycle::saveDayCycle | ( | const LLString & | fileName | ) |
load a day cycle
Definition at line 99 of file llwldaycycle.cpp.
References LLSD::append(), LLSD::emptyArray(), gDirUtilp, LLDir::getExpandedFilename(), LL_PATH_APP_SETTINGS, mTimeMap, and LLSDFormatter::OPTIONS_PRETTY.
Referenced by LLFloaterDayCycle::onSaveDayCycle().


| void LLWLDayCycle::clearKeys | ( | ) |
clear keys
Definition at line 124 of file llwldaycycle.cpp.
References mTimeMap.
Referenced by LLFloaterDayCycle::syncTrack().

Getters and Setters add a new key frame to the day cycle returns true if successful no negative time
Definition at line 130 of file llwldaycycle.cpp.
References mTimeMap.
Referenced by changeKeyTime(), loadDayCycle(), and LLFloaterDayCycle::syncTrack().

adjust a key's placement in the day cycle returns true if successful
Definition at line 149 of file llwldaycycle.cpp.
References addKey(), mTimeMap, and removeKey().

adjust a key's parameter used returns true if successful
Definition at line 163 of file llwldaycycle.cpp.
References LLWLParamManager::getParamSet(), LLWLParamManager::instance(), and mTimeMap.

| bool LLWLDayCycle::removeKey | ( | F32 | time | ) |
remove a key from the day cycle returns true if successful
Definition at line 179 of file llwldaycycle.cpp.
References mTimeMap.
Referenced by changeKeyTime(), and LLWLParamManager::removeParamSet().

get the first key time for a parameter returns false if not there
Definition at line 192 of file llwldaycycle.cpp.
References mTimeMap.
Referenced by LLWLParamManager::removeParamSet().

| bool LLWLDayCycle::getKeyedParam | ( | F32 | time, | |
| LLWLParamSet & | param | |||
| ) |
get the param set at a given time returns true if found one
Definition at line 208 of file llwldaycycle.cpp.
References LLWLParamManager::getParamSet(), LLWLParamManager::instance(), and mTimeMap.

get the name returns true if it found one
Definition at line 221 of file llwldaycycle.cpp.
References mTimeMap.
| std::map<F32, std::string> LLWLDayCycle::mTimeMap |
Definition at line 50 of file llwldaycycle.h.
Referenced by addKey(), changeKeyParam(), changeKeyTime(), clearKeys(), getKey(), getKeyedParam(), getKeyedParamName(), loadDayCycle(), removeKey(), LLWLParamManager::resetAnimator(), saveDayCycle(), and LLFloaterDayCycle::syncSliderTrack().
Definition at line 53 of file llwldaycycle.h.
Referenced by LLFloaterDayCycle::onTimeRateChanged(), LLWLParamManager::resetAnimator(), and LLFloaterDayCycle::syncMenu().
1.5.5