#include <llfloatereventlog.h>
Inheritance diagram for LLWorldEvent:
Public Member Functions | |
LLWorldEvent (const LLUUID &id=LLUUID::null) | |
F32 | getAge () const |
F32 | getDuration () const |
S32 | getCount () const |
virtual S32 | getScore () const =0 |
Annoyance score Score that estimates how noticeable this event is. | |
virtual LLUUID | getID () const =0 |
Event identifier This is an UUID that identifies this event. | |
LLUUID | getGlobalID () const |
Unique identifier for this event Different from getID() in that getID() returns an ID related to the event somehow as it's the ID of a sound, texture, etc, and may not be globally unique. | |
void | checkDuration () |
Check duration timer, and update if needed Duration is defined as the amount of time spent on this event. This is calculated by adding up the times of the frames during which it happened. If during a frame, the count wasn't updated, then the event wasn't happening, and we reset the timer. | |
void | incCount (S32 count=1) |
Increment event count. | |
bool | operator+= (const LLWorldEvent &ev) |
bool | operator< (const LLWorldEvent &ev) |
virtual LLString | getIcon ()=0 |
void | setParent (LLPointer< LLEventEmitter > parent) |
LLPointer< LLEventEmitter > | getParent () |
Private Attributes | |
F32 | mDuration |
S32 | mCount |
LLTimer | mAgeTimer |
LLTimer | mDurationTimer |
U32 | mLastFrame |
LLUUID | mGlobalID |
LLPointer< LLEventEmitter > | mParent |
Definition at line 40 of file llfloatereventlog.h.
LLWorldEvent::LLWorldEvent | ( | const LLUUID & | id = LLUUID::null |
) | [inline] |
Definition at line 43 of file llfloatereventlog.h.
References LLUUID::generate(), gFrameCount, mGlobalID, and mLastFrame.
void LLWorldEvent::checkDuration | ( | ) | [inline] |
Check duration timer, and update if needed Duration is defined as the amount of time spent on this event. This is calculated by adding up the times of the frames during which it happened. If during a frame, the count wasn't updated, then the event wasn't happening, and we reset the timer.
Definition at line 76 of file llfloatereventlog.h.
References gFrameCount, mDurationTimer, mLastFrame, and LLTimer::reset().
F32 LLWorldEvent::getAge | ( | ) | const [inline] |
Definition at line 45 of file llfloatereventlog.h.
References LLTimer::getElapsedTimeF32(), and mAgeTimer.
S32 LLWorldEvent::getCount | ( | ) | const [inline] |
F32 LLWorldEvent::getDuration | ( | ) | const [inline] |
LLUUID LLWorldEvent::getGlobalID | ( | ) | const [inline] |
Unique identifier for this event Different from getID() in that getID() returns an ID related to the event somehow as it's the ID of a sound, texture, etc, and may not be globally unique.
This one, however, is randomly generated and won't match anything else.
Definition at line 68 of file llfloatereventlog.h.
References mGlobalID.
virtual LLString LLWorldEvent::getIcon | ( | ) | [pure virtual] |
Implemented in LLParticleEvent, and LLSoundEvent.
virtual LLUUID LLWorldEvent::getID | ( | ) | const [pure virtual] |
Event identifier This is an UUID that identifies this event.
Implemented in LLParticleEvent, and LLSoundEvent.
LLPointer<LLEventEmitter> LLWorldEvent::getParent | ( | ) | [inline] |
virtual S32 LLWorldEvent::getScore | ( | ) | const [pure virtual] |
Annoyance score Score that estimates how noticeable this event is.
Implemented in LLParticleEvent, and LLSoundEvent.
Referenced by operator<().
Increment event count.
Definition at line 53 of file llfloatereventlog.cpp.
References LLTimer::getElapsedTimeAndResetF32(), gFrameCount, mAgeTimer, mCount, mDuration, mDurationTimer, mLastFrame, and LLTimer::reset().
Referenced by operator+=().
bool LLWorldEvent::operator+= | ( | const LLWorldEvent & | ev | ) | [inline] |
bool LLWorldEvent::operator< | ( | const LLWorldEvent & | ev | ) | [inline] |
void LLWorldEvent::setParent | ( | LLPointer< LLEventEmitter > | parent | ) | [inline] |
LLTimer LLWorldEvent::mAgeTimer [private] |
S32 LLWorldEvent::mCount [private] |
Definition at line 92 of file llfloatereventlog.h.
Referenced by getCount(), incCount(), and operator+=().
F32 LLWorldEvent::mDuration [private] |
LLTimer LLWorldEvent::mDurationTimer [private] |
LLUUID LLWorldEvent::mGlobalID [private] |
U32 LLWorldEvent::mLastFrame [private] |
Definition at line 95 of file llfloatereventlog.h.
Referenced by checkDuration(), incCount(), and LLWorldEvent().
LLPointer<LLEventEmitter> LLWorldEvent::mParent [private] |