LLObjectEmitter Class Reference

Object emitter An object, owned by an avatar, is producing this event. More...

#include <llfloatereventlog.h>

Inheritance diagram for LLObjectEmitter:

Inheritance graph
[legend]
Collaboration diagram for LLObjectEmitter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLObjectEmitter (const LLUUID &id=LLUUID::null, const LLUUID &owner=LLUUID::null)
 LLObjectEmitter (LLPointer< LLViewerObject > obj)
virtual LLString getName () const
 Name of this emitter.
virtual void setName (const LLString &name)
virtual LLUUID getID () const
 ID of this emitter. This one is a bit special. This will be used to uniquely identify this emitter. Derived classes must return something suitable here.
LLUUID getObjectID () const
LLString getObjectName () const
void requestObjectInfo (const LLViewerRegion *reg)
 Request object info on the object There's a little complication here: We can't decide to request this at any time, as by then the object might have vanished, and the region as well.
void setObject (const LLUUID &id, const LLString &name="")

Private Attributes

LLUUID mObjectID
LLString mObjectName
bool mRequestedProperties

Detailed Description

Object emitter An object, owned by an avatar, is producing this event.

Definition at line 238 of file llfloatereventlog.h.


Constructor & Destructor Documentation

LLObjectEmitter::LLObjectEmitter ( const LLUUID id = LLUUID::null,
const LLUUID owner = LLUUID::null 
)

Definition at line 145 of file llfloatereventlog.cpp.

References mRequestedProperties, setObject(), and LLAvatarOwnedEmitter::setOwner().

LLObjectEmitter::LLObjectEmitter ( LLPointer< LLViewerObject obj  ) 

Definition at line 153 of file llfloatereventlog.cpp.

References mRequestedProperties, requestObjectInfo(), setObject(), LLAvatarOwnedEmitter::setOwner(), and LLEventEmitter::setPosition().


Member Function Documentation

virtual LLUUID LLObjectEmitter::getID (  )  const [inline, virtual]

ID of this emitter. This one is a bit special. This will be used to uniquely identify this emitter. Derived classes must return something suitable here.

Returns:
Emitter's ID

Reimplemented from LLEventEmitter.

Definition at line 247 of file llfloatereventlog.h.

References mObjectID.

virtual LLString LLObjectEmitter::getName ( void   )  const [inline, virtual]

Name of this emitter.

Returns:
Emitter's name

Reimplemented from LLEventEmitter.

Definition at line 244 of file llfloatereventlog.h.

References mObjectName.

LLUUID LLObjectEmitter::getObjectID (  )  const [inline]

Definition at line 249 of file llfloatereventlog.h.

References mObjectID.

LLString LLObjectEmitter::getObjectName (  )  const [inline]

Definition at line 250 of file llfloatereventlog.h.

References mObjectName.

void LLObjectEmitter::requestObjectInfo ( const LLViewerRegion reg  ) 

Request object info on the object There's a little complication here: We can't decide to request this at any time, as by then the object might have vanished, and the region as well.

For this reason, this function only gets called from the constructor with the LLViewerObject argument, or when the event is being updated, when the object is still obviously there.

Definition at line 178 of file llfloatereventlog.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ObjectData, _PREHASH_ObjectID, _PREHASH_RequestFlags, _PREHASH_RequestObjectPropertiesFamily, _PREHASH_SessionID, LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLUUID::isNull(), llendl, llinfos, mObjectID, mObjectName, mRequestedProperties, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLMessageSystem::sendReliable(), and LLAvatarOwnedEmitter::update().

Referenced by LLObjectEmitter().

virtual void LLObjectEmitter::setName ( const LLString name  )  [inline, virtual]

Reimplemented from LLEventEmitter.

Definition at line 245 of file llfloatereventlog.h.

References mObjectName.

void LLObjectEmitter::setObject ( const LLUUID id,
const LLString name = "" 
)

Definition at line 168 of file llfloatereventlog.cpp.

References llendl, llwarns, mObjectID, and mObjectName.

Referenced by LLObjectEmitter().


Member Data Documentation

LLUUID LLObjectEmitter::mObjectID [private]

Definition at line 265 of file llfloatereventlog.h.

Referenced by getID(), getObjectID(), requestObjectInfo(), and setObject().

LLString LLObjectEmitter::mObjectName [private]

Definition at line 266 of file llfloatereventlog.h.

Referenced by getName(), getObjectName(), requestObjectInfo(), setName(), and setObject().

bool LLObjectEmitter::mRequestedProperties [private]

Definition at line 267 of file llfloatereventlog.h.

Referenced by LLObjectEmitter(), and requestObjectInfo().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:33 2010 for Second Life Viewer by  doxygen 1.4.7