LLWLDayCycle Class Reference

#include <llwldaycycle.h>

List of all members.

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 &paramName)
bool changeKeyTime (F32 oldTime, F32 newTime)
bool changeKeyParam (F32 time, const LLString &paramName)
bool removeKey (F32 time)
bool getKey (const LLString &name, F32 &key)
bool getKeyedParam (F32 time, LLWLParamSet &param)
bool getKeyedParamName (F32 time, LLString &name)

Public Attributes

std::map< F32, std::string > mTimeMap
F32 mDayRate


Detailed Description

Definition at line 45 of file llwldaycycle.h.


Constructor & Destructor Documentation

LLWLDayCycle::LLWLDayCycle (  ) 

simple constructor

Definition at line 42 of file llwldaycycle.cpp.

LLWLDayCycle::~LLWLDayCycle (  ) 

simple destructor

Definition at line 47 of file llwldaycycle.cpp.


Member Function Documentation

void LLWLDayCycle::loadDayCycle ( const LLString fileName  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWLDayCycle::clearKeys (  ) 

clear keys

Definition at line 124 of file llwldaycycle.cpp.

References mTimeMap.

Referenced by LLFloaterDayCycle::syncTrack().

Here is the caller graph for this function:

bool LLWLDayCycle::addKey ( F32  newTime,
const LLString paramName 
)

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().

Here is the caller graph for this function:

bool LLWLDayCycle::changeKeyTime ( F32  oldTime,
F32  newTime 
)

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().

Here is the call graph for this function:

bool LLWLDayCycle::changeKeyParam ( F32  time,
const LLString paramName 
)

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.

Here is the call graph for this function:

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().

Here is the caller graph for this function:

bool LLWLDayCycle::getKey ( const LLString name,
F32 key 
)

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().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

bool LLWLDayCycle::getKeyedParamName ( F32  time,
LLString name 
)

get the name returns true if it found one

Definition at line 221 of file llwldaycycle.cpp.

References mTimeMap.


Member Data Documentation

std::map<F32, std::string> LLWLDayCycle::mTimeMap


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:39:49 2008 for SecondLife by  doxygen 1.5.5