LLGestureManager Class Reference

#include <llgesturemgr.h>

Collaboration diagram for LLGestureManager:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< LLUUID,
LLMultiGesture * > 
item_map_t

Public Member Functions

 LLGestureManager ()
 ~LLGestureManager ()
void init ()
void update ()
void activateGesture (const LLUUID &item_id)
void activateGestures (LLViewerInventoryItem::item_array_t &items)
void replaceGesture (const LLUUID &item_id, LLMultiGesture *new_gesture, const LLUUID &asset_id)
void replaceGesture (const LLUUID &item_id, const LLUUID &asset_id)
void activateGestureWithAsset (const LLUUID &item_id, const LLUUID &asset_id, BOOL inform_server, BOOL deactivate_similar)
void deactivateGesture (const LLUUID &item_id)
void deactivateSimilarGestures (LLMultiGesture *gesture, const LLUUID &in_item_id)
BOOL isGestureActive (const LLUUID &item_id)
BOOL isGesturePlaying (const LLUUID &item_id)
void playGesture (LLMultiGesture *gesture)
void playGesture (const LLUUID &item_id)
void stopGesture (LLMultiGesture *gesture)
void stopGesture (const LLUUID &item_id)
BOOL triggerGesture (KEY key, MASK mask)
BOOL triggerAndReviseString (const std::string &str, std::string *revised_string=NULL)
BOOL isKeyBound (KEY key, MASK mask)
S32 getPlayingCount () const
void addObserver (LLGestureManagerObserver *observer)
void removeObserver (LLGestureManagerObserver *observer)
void notifyObservers ()
BOOL matchPrefix (const std::string &in_str, std::string *out_str)
void getItemIDs (std::vector< LLUUID > *ids)

Public Attributes

BOOL mValid
std::vector< LLMultiGesture * > mPlaying
item_map_t mActive
S32 mLoadingCount
std::string mDeactivateSimilarNames
std::vector
< LLGestureManagerObserver * > 
mObservers

Protected Member Functions

void stepGesture (LLMultiGesture *gesture)
void runStep (LLMultiGesture *gesture, LLGestureStep *step)

Static Protected Member Functions

static void onLoadComplete (LLVFS *vfs, const LLUUID &asset_uuid, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status)


Detailed Description

Definition at line 54 of file llgesturemgr.h.


Member Typedef Documentation

Definition at line 146 of file llgesturemgr.h.


Constructor & Destructor Documentation

LLGestureManager::LLGestureManager (  ) 

Definition at line 68 of file llgesturemgr.cpp.

LLGestureManager::~LLGestureManager (  ) 

Definition at line 77 of file llgesturemgr.cpp.

References mActive, and NULL.


Member Function Documentation

void LLGestureManager::init ( void   ) 

Definition at line 90 of file llgesturemgr.cpp.

void LLGestureManager::update (  ) 

Definition at line 637 of file llgesturemgr.cpp.

References i, LLMultiGesture::mCallbackData, LLMultiGesture::mDoneCallback, mPlaying, notifyObservers(), NULL, S32, and stepGesture().

Referenced by LLAppViewer::idle().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLGestureManager::activateGesture ( const LLUUID item_id  ) 

void LLGestureManager::activateGestures ( LLViewerInventoryItem::item_array_t items  ) 

void LLGestureManager::replaceGesture ( const LLUUID item_id,
LLMultiGesture new_gesture,
const LLUUID asset_id 
)

void LLGestureManager::replaceGesture ( const LLUUID item_id,
const LLUUID asset_id 
)

Definition at line 442 of file llgesturemgr.cpp.

References llendl, llwarns, mActive, and replaceGesture().

Here is the call graph for this function:

void LLGestureManager::activateGestureWithAsset ( const LLUUID item_id,
const LLUUID asset_id,
BOOL  inform_server,
BOOL  deactivate_similar 
)

void LLGestureManager::deactivateGesture ( const LLUUID item_id  ) 

void LLGestureManager::deactivateSimilarGestures ( LLMultiGesture gesture,
const LLUUID in_item_id 
)

BOOL LLGestureManager::isGestureActive ( const LLUUID item_id  ) 

BOOL LLGestureManager::isGesturePlaying ( const LLUUID item_id  ) 

Definition at line 391 of file llgesturemgr.cpp.

References FALSE, mActive, and LLMultiGesture::mPlaying.

Referenced by LLFloaterGesture::onClickPlay(), and LLFloaterGesture::onCommitList().

Here is the caller graph for this function:

void LLGestureManager::playGesture ( LLMultiGesture gesture  ) 

Definition at line 456 of file llgesturemgr.cpp.

References LLMultiGesture::mCurrentStep, mPlaying, LLMultiGesture::mPlaying, notifyObservers(), stepGesture(), and TRUE.

Referenced by LLFloaterGesture::onClickPlay(), LLPreviewGesture::onClickPreview(), playGesture(), triggerAndReviseString(), and triggerGesture().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLGestureManager::playGesture ( const LLUUID item_id  ) 

Definition at line 475 of file llgesturemgr.cpp.

References mActive, and playGesture().

Here is the call graph for this function:

void LLGestureManager::stopGesture ( LLMultiGesture gesture  ) 

void LLGestureManager::stopGesture ( const LLUUID item_id  ) 

Definition at line 1064 of file llgesturemgr.cpp.

References mActive, and stopGesture().

Here is the call graph for this function:

BOOL LLGestureManager::triggerGesture ( KEY  key,
MASK  mask 
)

Definition at line 589 of file llgesturemgr.cpp.

References FALSE, ll_rand(), mActive, LLMultiGesture::mKey, LLMultiGesture::mMask, playGesture(), and TRUE.

Referenced by LLViewerWindow::handleKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLGestureManager::triggerAndReviseString ( const std::string &  str,
std::string *  revised_string = NULL 
)

Definition at line 490 of file llgesturemgr.cpp.

References FALSE, ll_rand(), mActive, LLMultiGesture::mTrigger, NULL, playGesture(), S32, LLStringBase< char >::toLower(), and TRUE.

Referenced by LLVOAvatar::idleUpdate(), LLChatBar::onCommitGesture(), and LLChatBar::sendChat().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLGestureManager::isKeyBound ( KEY  key,
MASK  mask 
)

S32 LLGestureManager::getPlayingCount (  )  const

Definition at line 623 of file llgesturemgr.cpp.

References mPlaying.

void LLGestureManager::addObserver ( LLGestureManagerObserver observer  ) 

Definition at line 1076 of file llgesturemgr.cpp.

References mObservers.

Referenced by LLFloaterGesture::LLFloaterGesture(), and LLChatBar::setGestureCombo().

Here is the caller graph for this function:

void LLGestureManager::removeObserver ( LLGestureManagerObserver observer  ) 

Definition at line 1081 of file llgesturemgr.cpp.

References mObservers.

Referenced by LLFloaterGesture::~LLFloaterGesture().

Here is the caller graph for this function:

void LLGestureManager::notifyObservers (  ) 

Definition at line 1094 of file llgesturemgr.cpp.

References LLGestureManagerObserver::changed(), lldebugs, llendl, and mObservers.

Referenced by activateGestureWithAsset(), deactivateGesture(), deactivateSimilarGestures(), onLoadComplete(), playGesture(), replaceGesture(), stopGesture(), and update().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLGestureManager::matchPrefix ( const std::string &  in_str,
std::string *  out_str 
)

Definition at line 1108 of file llgesturemgr.cpp.

References LLStringBase< char >::compareInsensitive(), FALSE, LLMultiGesture::getTrigger(), mActive, S32, TRUE, and LLStringBase< char >::truncate().

Referenced by LLChatBar::onInputEditorKeystroke().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLGestureManager::getItemIDs ( std::vector< LLUUID > *  ids  ) 

Definition at line 1139 of file llgesturemgr.cpp.

References mActive.

void LLGestureManager::stepGesture ( LLMultiGesture gesture  )  [protected]

void LLGestureManager::runStep ( LLMultiGesture gesture,
LLGestureStep step 
) [protected]

void LLGestureManager::onLoadComplete ( LLVFS vfs,
const LLUUID asset_uuid,
LLAssetType::EType  type,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]


Member Data Documentation

Definition at line 142 of file llgesturemgr.h.

Definition at line 143 of file llgesturemgr.h.

Referenced by getPlayingCount(), playGesture(), stopGesture(), and update().

Definition at line 154 of file llgesturemgr.h.

Referenced by activateGesture(), activateGestures(), onLoadComplete(), and replaceGesture().

Definition at line 157 of file llgesturemgr.h.

Referenced by addObserver(), notifyObservers(), and removeObserver().


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

Generated on Fri May 16 08:48:17 2008 for SecondLife by  doxygen 1.5.5