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 LLUndoAction * | create () |
Protected Member Functions | |
LLUndoWearable () | |
virtual | ~LLUndoWearable () |
Protected Attributes | |
LLAppearance | mAppearance |
Definition at line 90 of file llfloatercustomize.cpp.
LLUndoWearable::LLUndoWearable | ( | ) | [inline, protected] |
virtual LLUndoWearable::~LLUndoWearable | ( | ) | [inline, protected, virtual] |
Definition at line 98 of file llfloatercustomize.cpp.
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().
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().
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().
LLAppearance LLUndoWearable::mAppearance [protected] |
Definition at line 94 of file llfloatercustomize.cpp.
Referenced by applyUndoRedo(), setColor(), setTexture(), setVisualParam(), and setWearable().