LLUndoWearable Class Reference

Inheritance diagram for LLUndoWearable:

Inheritance graph
[legend]
Collaboration diagram for LLUndoWearable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void setVisualParam (S32 param_id, F32 weight)
void setColor (LLVOAvatar::ETextureIndex te, const LLColor4 &color)
void setTexture (LLVOAvatar::ETextureIndex te, const LLUUID &asset_id)
void setWearable (EWearableType type)
virtual void undo ()
virtual void redo ()
void applyUndoRedo ()

Static Public Member Functions

static LLUndoActioncreate ()

Protected Member Functions

 LLUndoWearable ()
virtual ~LLUndoWearable ()

Protected Attributes

LLAppearance mAppearance

Detailed Description

Definition at line 90 of file llfloatercustomize.cpp.


Constructor & Destructor Documentation

LLUndoWearable::LLUndoWearable (  )  [inline, protected]

Definition at line 97 of file llfloatercustomize.cpp.

Referenced by create().

virtual LLUndoWearable::~LLUndoWearable (  )  [inline, protected, virtual]

Definition at line 98 of file llfloatercustomize.cpp.


Member Function Documentation

void LLUndoWearable::applyUndoRedo (  ) 

Definition at line 2484 of file llfloatercustomize.cpp.

References gAgent, LLAgent::getAvatarObject(), LLViewerImage::getID(), LLViewerImageList::getImage(), LLCharacter::getSex(), LLViewerObject::getTEImage(), LLCharacter::getVisualParamWeight(), gFloaterCustomize, gImageList, gSavedSettings, i, mAppearance, LLAppearance::mParamMap, LLAppearance::mTextures, LLVisualParamHint::requestHintUpdates(), S32, LLAgent::sendAgentSetAppearance(), LLVOAvatar::setLocTexTE(), LLControlGroup::setU32(), LLCharacter::setVisualParamWeight(), SEX_MALE, LLVOAvatar::TEX_NUM_ENTRIES, TRUE, LLFloaterCustomize::updateScrollingPanelList(), LLVOAvatar::updateSexDependentLayerSets(), and LLVOAvatar::updateVisualParams().

Referenced by redo(), and undo().

static LLUndoAction* LLUndoWearable::create (  )  [inline, static]

Reimplemented from LLUndoAction.

Definition at line 101 of file llfloatercustomize.cpp.

References LLUndoWearable().

Referenced by LLPanelEditWearable::LLPanelEditWearable().

virtual void LLUndoWearable::redo (  )  [inline, virtual]

Implements LLUndoAction.

Definition at line 109 of file llfloatercustomize.cpp.

References applyUndoRedo().

void LLUndoWearable::setColor ( LLVOAvatar::ETextureIndex  te,
const LLColor4 color 
)

Definition at line 2419 of file llfloatercustomize.cpp.

References LLAppearance::addParam(), LLAppearance::clear(), gAgent, LLAgent::getAvatarObject(), LLCharacter::getVisualParam(), mAppearance, LLColor4::mV, param, LLVOAvatar::teToColorParams(), VX, VY, and VZ.

Referenced by LLPanelEditWearable::onColorCommit().

void LLUndoWearable::setTexture ( LLVOAvatar::ETextureIndex  te,
const LLUUID asset_id 
)

Definition at line 2413 of file llfloatercustomize.cpp.

References LLAppearance::addTexture(), LLAppearance::clear(), and mAppearance.

Referenced by LLPanelEditWearable::onTextureCommit().

void LLUndoWearable::setVisualParam ( S32  param_id,
F32  weight 
)

Definition at line 2407 of file llfloatercustomize.cpp.

References LLAppearance::addParam(), LLAppearance::clear(), and mAppearance.

Referenced by LLPanelEditWearable::addVisualParamToUndoBuffer().

void LLUndoWearable::setWearable ( EWearableType  type  ) 

Definition at line 2450 of file llfloatercustomize.cpp.

References LLAppearance::addParam(), LLAppearance::addTexture(), LLAppearance::clear(), gAgent, LLAgent::getAvatarObject(), LLCharacter::getFirstVisualParam(), LLCharacter::getNextVisualParam(), LLViewerObject::getTEImage(), LLVOAvatar::getTEWearableType(), mAppearance, param, S32, LLVOAvatar::TEX_NUM_ENTRIES, and VISUAL_PARAM_GROUP_TWEAKABLE.

virtual void LLUndoWearable::undo (  )  [inline, virtual]

Implements LLUndoAction.

Definition at line 108 of file llfloatercustomize.cpp.

References applyUndoRedo().


Member Data Documentation

LLAppearance LLUndoWearable::mAppearance [protected]

Definition at line 94 of file llfloatercustomize.cpp.

Referenced by applyUndoRedo(), setColor(), setTexture(), setVisualParam(), and setWearable().


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