#include <llwearable.h>
Definition at line 62 of file llwearable.h.
typedef std::map<S32, F32> LLWearable::param_map_t [private] |
Definition at line 134 of file llwearable.h.
typedef std::map<S32, LLUUID> LLWearable::te_map_t [private] |
Definition at line 136 of file llwearable.h.
LLWearable::LLWearable | ( | const LLTransactionID & | transactionID | ) |
Definition at line 117 of file llwearable.cpp.
References gAgent, LLAgent::getSecureSessionID(), LLTransactionID::makeAssetID(), mAssetID, and mTransactionID.
LLWearable::LLWearable | ( | const LLAssetID & | assetID | ) |
Definition at line 125 of file llwearable.cpp.
References mAssetID, mTransactionID, and LLUUID::setNull().
LLWearable::~LLWearable | ( | ) |
Definition at line 133 of file llwearable.cpp.
const LLAssetID& LLWearable::getID | ( | ) | [inline] |
Definition at line 69 of file llwearable.h.
References mAssetID.
Referenced by LLAgent::addWearabletoAgentInventoryDone(), LLBakedUploadData::LLBakedUploadData(), LLWearableBridge::onWearOnAvatarArrived(), LLAgent::queryWearableCache(), LLAgent::saveWearable(), LLAgent::sendAgentSetAppearance(), LLAgent::sendAgentWearablesUpdate(), LLAgent::setWearable(), LLAgent::setWearableFinal(), LLAgent::setWearableOutfit(), wear_inventory_category_on_avatar_loop(), and wear_inventory_category_on_avatar_step3().
const LLTransactionID& LLWearable::getTransactionID | ( | ) | [inline] |
Definition at line 70 of file llwearable.h.
References mTransactionID.
Referenced by LLAgent::addWearableToAgentInventory(), LLAgent::addWearabletoAgentInventoryDone(), LLFolderBridge::createWearable(), LLPanelEditWearable::onSelectAutoWearOption(), and LLAgent::saveWearable().
BOOL LLWearable::readData | ( | const char * | buffer | ) |
BOOL LLWearable::isDirty | ( | ) |
Definition at line 530 of file llwearable.cpp.
References F32_to_U8(), FALSE, gAgent, get_if_there(), LLAgent::getAvatarObject(), LLVOAvatar::getDefaultTEImageID(), LLCharacter::getFirstVisualParam(), LLViewerImage::getID(), LLCharacter::getNextVisualParam(), LLViewerObject::getTEImage(), LLVOAvatar::getTEWearableType(), llassert, llclamp(), mTEMap, mType, mVisualParamMap, S32, LLVOAvatar::TEX_NUM_ENTRIES, TRUE, and VISUAL_PARAM_GROUP_TWEAKABLE.
Referenced by LLAgent::copyWearableToInventory(), LLPanelEditWearable::isDirty(), LLAgent::removeWearable(), LLAgent::saveWearable(), LLAgent::setWearable(), and LLAgent::setWearableOutfit().
BOOL LLWearable::isOldVersion | ( | ) |
Definition at line 463 of file llwearable.cpp.
References FALSE, gAgent, LLAgent::getAvatarObject(), LLCharacter::getFirstVisualParam(), LLCharacter::getNextVisualParam(), LLVOAvatar::getTEWearableType(), is_in_map(), llassert, llendl, llwarns, mDefinitionVersion, mTEMap, mType, mVisualParamMap, S32, sCurrentDefinitionVersion, LLVOAvatar::TEX_NUM_ENTRIES, TRUE, and VISUAL_PARAM_GROUP_TWEAKABLE.
Referenced by LLAgent::saveWearable().
void LLWearable::writeToAvatar | ( | BOOL | set_by_user | ) |
Definition at line 620 of file llwearable.cpp.
References FALSE, LLViewerInventoryItem::fetchFromServer(), gAgent, get_if_there(), LLAgent::getAvatarObject(), LLVOAvatar::getDefaultTEImageID(), LLVisualParam::getDefaultWeight(), LLCharacter::getFirstVisualParam(), LLVisualParam::getGroup(), LLVisualParam::getID(), LLViewerImageList::getImage(), LLInventoryModel::getItem(), LLPermissions::getMaskOwner(), LLCharacter::getNextVisualParam(), LLInventoryItem::getPermissions(), LLCharacter::getSex(), LLVOAvatar::getTEWearableType(), LLAgent::getWearableItem(), gFloaterCustomize, gImageList, gInventory, LLViewerInventoryItem::isComplete(), llassert, mTEMap, mType, mVisualParamMap, PERM_NONE, S32, LLVisualParam::setAnimationTarget(), LLFloaterCustomize::setCurrentWearableType(), LLVOAvatar::setLocTexTE(), LLCharacter::setVisualParamWeight(), LLFloaterCustomize::setWearable(), LLVOAvatar::startAppearanceAnimation(), LLVOAvatar::TEX_NUM_ENTRIES, TRUE, LLVOAvatar::updateMeshTextures(), LLVOAvatar::updateSexDependentLayerSets(), LLVOAvatar::updateVisualParams(), and VISUAL_PARAM_GROUP_TWEAKABLE.
Referenced by LLAgent::createStandardWearablesDone(), LLAgent::onInitialWearableAssetArrived(), LLAgent::recoverMissingWearable(), LLAgent::revertWearable(), and LLAgent::setWearableFinal().
void LLWearable::readFromAvatar | ( | ) |
Definition at line 759 of file llwearable.cpp.
References gAgent, LLAgent::getAvatarObject(), LLCharacter::getFirstVisualParam(), LLVisualParam::getGroup(), LLViewerImage::getID(), LLVisualParam::getID(), LLCharacter::getNextVisualParam(), LLViewerObject::getTEImage(), LLVOAvatar::getTEWearableType(), LLVisualParam::getWeight(), llassert, mDefinitionVersion, mTEMap, mType, mVisualParamMap, S32, sCurrentDefinitionVersion, LLVOAvatar::TEX_NUM_ENTRIES, and VISUAL_PARAM_GROUP_TWEAKABLE.
Referenced by LLWearableList::createCopyFromAvatar().
void LLWearable::removeFromAvatar | ( | BOOL | set_by_user | ) | [inline] |
Definition at line 78 of file llwearable.h.
References mType.
Referenced by LLAgent::processAgentInitialWearablesUpdate(), LLAgent::removeWearableFinal(), and LLAgent::setWearableOutfit().
void LLWearable::removeFromAvatar | ( | EWearableType | type, | |
BOOL | set_by_user | |||
) | [static] |
Definition at line 704 of file llwearable.cpp.
References gAgent, LLAgent::getAvatarObject(), LLVisualParam::getDefaultWeight(), LLCharacter::getFirstVisualParam(), LLVisualParam::getGroup(), LLVisualParam::getID(), LLViewerImageList::getImage(), LLCharacter::getNextVisualParam(), LLVOAvatar::getTEWearableType(), gFloaterCustomize, gImageList, IMG_DEFAULT_AVATAR, llassert, NULL, PERM_ALL, S32, LLVOAvatar::setLocTexTE(), LLCharacter::setVisualParamWeight(), LLFloaterCustomize::setWearable(), LLVOAvatar::TEX_NUM_ENTRIES, TRUE, LLVOAvatar::updateMeshTextures(), LLVOAvatar::updateVisualParams(), VISUAL_PARAM_GROUP_TWEAKABLE, WT_EYES, WT_HAIR, WT_SHAPE, and WT_SKIN.
Definition at line 188 of file llwearable.cpp.
References LLUUID::asString(), LLSaleInfo::exportFile(), LLPermissions::exportFile(), FALSE, MAX_STRING, mDefinitionVersion, mDescription, mName, mPermissions, mSaleInfo, mTEMap, mType, mVisualParamMap, S32, terse_F32_to_string(), and TRUE.
Referenced by saveNewAsset().
Definition at line 269 of file llwearable.cpp.
References DB_INV_ITEM_DESC_STR_LEN, DB_INV_ITEM_NAME_STR_LEN, FALSE, i, LLSaleInfo::importFile(), LLPermissions::importFile(), llendl, llwarns, mAssetID, mDefinitionVersion, mDescription, mName, mPermissions, mSaleInfo, mTEMap, mType, mVisualParamMap, PERM_COPY, PERM_TRANSFER, S32, sCurrentDefinitionVersion, LLPermissions::setMaskNext(), TRUE, LLStringBase< char >::truncate(), LLUUID::validate(), and WT_COUNT.
Referenced by LLWearableList::processGetAssetReply().
EWearableType LLWearable::getType | ( | ) | const [inline] |
Definition at line 84 of file llwearable.h.
References mType.
Referenced by LLAgent::addWearableToAgentInventory(), LLFolderBridge::createWearable(), LLPanelEditWearable::draw(), LLWearableBridge::editOnAvatar(), LLAgent::onInitialWearableAssetArrived(), LLWearableBridge::onRemoveFromAvatarArrived(), LLPanelEditWearable::onSelectAutoWearOption(), LLAgent::onSetWearableDialog(), LLAgent::setWearable(), LLAgent::setWearableFinal(), LLAgent::setWearableOutfit(), and wear_inventory_category_on_avatar_step3().
void LLWearable::setType | ( | EWearableType | type | ) | [inline] |
Definition at line 85 of file llwearable.h.
References mType.
Referenced by LLWearableList::createNewWearable().
void LLWearable::setName | ( | const LLString & | name | ) | [inline] |
Definition at line 87 of file llwearable.h.
References mName.
Referenced by LLWearableList::createCopyFromAvatar(), LLWearableList::createNewWearable(), LLWearableList::createWearableMatchedToInventoryItem(), LLAgent::makeNewOutfit(), and LLAgent::setWearableName().
const LLString& LLWearable::getName | ( | void | ) | [inline] |
Definition at line 88 of file llwearable.h.
References mName.
Referenced by LLAgent::addWearableToAgentInventory(), LLFolderBridge::createWearable(), LLPanelEditWearable::draw(), LLPanelEditWearable::onBtnSaveAs(), LLPanelEditWearable::onSelectAutoWearOption(), and LLAgent::setWearableName().
void LLWearable::setDescription | ( | const LLString & | desc | ) | [inline] |
Definition at line 90 of file llwearable.h.
References mDescription.
Referenced by LLWearableList::createWearableMatchedToInventoryItem().
const LLString& LLWearable::getDescription | ( | void | ) | [inline] |
Definition at line 91 of file llwearable.h.
References mDescription.
Referenced by LLAgent::addWearableToAgentInventory(), LLFolderBridge::createWearable(), and LLPanelEditWearable::onSelectAutoWearOption().
void LLWearable::setPermissions | ( | const LLPermissions & | p | ) | [inline] |
Definition at line 93 of file llwearable.h.
References mPermissions.
Referenced by LLAgent::copyWearableToInventory(), LLWearableList::createCopy(), LLWearableList::createCopyFromAvatar(), LLWearableList::createNewWearable(), LLWearableList::createWearableMatchedToInventoryItem(), and LLAgent::setWearableName().
const LLPermissions& LLWearable::getPermissions | ( | ) | [inline] |
Definition at line 94 of file llwearable.h.
References mPermissions.
Referenced by LLAgent::addWearableToAgentInventory(), LLWearableList::createCopy(), LLWearableList::createCopyFromAvatar(), LLFolderBridge::createWearable(), and LLPanelEditWearable::onSelectAutoWearOption().
void LLWearable::setSaleInfo | ( | const LLSaleInfo & | info | ) | [inline] |
Definition at line 96 of file llwearable.h.
References mSaleInfo.
Referenced by LLWearableList::createWearableMatchedToInventoryItem().
const LLSaleInfo& LLWearable::getSaleInfo | ( | ) | [inline] |
const char* LLWearable::getTypeLabel | ( | ) | const [inline] |
Definition at line 99 of file llwearable.h.
References mType, and sTypeLabel.
Referenced by LLWearableList::createNewWearable(), and LLAgent::makeNewOutfit().
const char* LLWearable::getTypeName | ( | ) | const [inline] |
void LLWearable::setParamsToDefaults | ( | ) |
Definition at line 588 of file llwearable.cpp.
References gAgent, LLAgent::getAvatarObject(), LLVisualParam::getDefaultWeight(), LLCharacter::getFirstVisualParam(), LLVisualParam::getGroup(), LLVisualParam::getID(), LLCharacter::getNextVisualParam(), llassert, mType, mVisualParamMap, and VISUAL_PARAM_GROUP_TWEAKABLE.
Referenced by LLWearableList::createNewWearable().
void LLWearable::setTexturesToDefaults | ( | ) |
Definition at line 607 of file llwearable.cpp.
References LLVOAvatar::getDefaultTEImageID(), LLVOAvatar::getTEWearableType(), mTEMap, mType, S32, and LLVOAvatar::TEX_NUM_ENTRIES.
Referenced by LLWearableList::createNewWearable().
LLAssetType::EType LLWearable::getAssetType | ( | ) | const [inline] |
Definition at line 105 of file llwearable.h.
References mType, and typeToAssetType().
Referenced by LLAgent::addWearableToAgentInventory(), LLFolderBridge::createWearable(), LLPanelEditWearable::onSelectAutoWearOption(), saveNewAsset(), and LLAgent::saveWearable().
EWearableType LLWearable::typeNameToType | ( | const LLString & | type_name | ) | [static] |
Definition at line 139 of file llwearable.cpp.
References i, S32, sTypeName, WT_COUNT, and WT_INVALID.
Referenced by LLViewerVisualParamInfo::parseXml().
static const char* LLWearable::typeToTypeName | ( | EWearableType | type | ) | [inline, static] |
Definition at line 108 of file llwearable.h.
References sTypeName, and WT_COUNT.
Referenced by dump(), LLVOAvatar::dumpArchetypeXML(), onSaveNewAssetComplete(), LLAgent::setWearable(), and LLAgent::setWearableOutfit().
static const char* LLWearable::typeToTypeLabel | ( | EWearableType | type | ) | [inline, static] |
Definition at line 109 of file llwearable.h.
References sTypeLabel, and WT_COUNT.
Referenced by LLFloaterClothing::buildClothingList(), LLPanelEditWearable::draw(), LLPanelEditWearable::getLabel(), LLMakeOutfitDialog::LLMakeOutfitDialog(), LLAgent::processAgentInitialWearablesUpdate(), LLAgent::recoverMissingWearable(), LLAgent::sendAgentWearablesUpdate(), and LLMakeOutfitDialog::setWearableToInclude().
LLAssetType::EType LLWearable::typeToAssetType | ( | EWearableType | wearable_type | ) | [static] |
Definition at line 92 of file llwearable.cpp.
References LLAssetType::AT_BODYPART, LLAssetType::AT_CLOTHING, LLAssetType::AT_NONE, WT_EYES, WT_GLOVES, WT_HAIR, WT_JACKET, WT_PANTS, WT_SHAPE, WT_SHIRT, WT_SHOES, WT_SKIN, WT_SKIRT, WT_SOCKS, WT_UNDERPANTS, and WT_UNDERSHIRT.
Referenced by getAssetType(), LLPanelEditWearable::postBuild(), and LLAgent::processAgentInitialWearablesUpdate().
void LLWearable::saveNewAsset | ( | ) |
Definition at line 846 of file llwearable.cpp.
References LLViewerWindow::alertXml(), exportFile(), FALSE, LLFile::fopen(), gAssetStorage, gDirUtilp, getAssetType(), LLDir::getExpandedFilename(), gViewerWindow, LL_MAX_PATH, LL_PATH_CACHE, llendl, llwarns, mAssetID, MAX_STRING, mName, mTransactionID, mType, LLWearableSaveData::mType, NULL, onSaveNewAssetComplete(), LLAssetStorage::storeAssetData(), LLUUID::toString(), TRUE, and UUID_STR_LENGTH.
Referenced by LLWearableList::createCopy(), LLWearableList::createCopyFromAvatar(), LLWearableList::createNewWearable(), and LLWearableList::createWearableMatchedToInventoryItem().
void LLWearable::onSaveNewAssetComplete | ( | const LLUUID & | asset_uuid, | |
void * | user_data, | |||
S32 | status, | |||
LLExtStat | ext_status | |||
) | [static] |
Definition at line 910 of file llwearable.cpp.
References LLViewerWindow::alertXml(), gDirUtilp, LLDir::getExpandedFilename(), gViewerWindow, LL_MAX_PATH, LL_PATH_CACHE, llendl, llinfos, llwarns, MAX_STRING, LLWearableSaveData::mType, LLFile::remove(), LLUUID::toString(), typeToTypeName(), and UUID_STR_LENGTH.
Referenced by saveNewAsset().
BOOL LLWearable::isMatchedToInventoryItem | ( | LLViewerInventoryItem * | item | ) |
Definition at line 943 of file llwearable.cpp.
References LLInventoryItem::getDescription(), LLInventoryObject::getName(), LLInventoryItem::getPermissions(), LLInventoryItem::getSaleInfo(), mDescription, mName, mPermissions, and mSaleInfo.
void LLWearable::copyDataFrom | ( | LLWearable * | src | ) |
Definition at line 800 of file llwearable.cpp.
References gAgent, get_if_there(), LLAgent::getAvatarObject(), LLVOAvatar::getDefaultTEImageID(), LLCharacter::getFirstVisualParam(), LLCharacter::getNextVisualParam(), LLVOAvatar::getTEWearableType(), llassert, mDefinitionVersion, mDescription, mName, mPermissions, mSaleInfo, mTEMap, mType, mVisualParamMap, S32, sCurrentDefinitionVersion, LLVOAvatar::TEX_NUM_ENTRIES, and VISUAL_PARAM_GROUP_TWEAKABLE.
Referenced by LLWearableList::createCopy(), LLWearableList::createCopyFromAvatar(), and LLWearableList::createWearableMatchedToInventoryItem().
static void LLWearable::setCurrentDefinitionVersion | ( | S32 | version | ) | [inline, static] |
Definition at line 119 of file llwearable.h.
References sCurrentDefinitionVersion.
Referenced by LLVOAvatar::initClass().
void LLWearable::dump | ( | ) |
Definition at line 952 of file llwearable.cpp.
References llendl, llinfos, mDescription, mName, mTEMap, mType, mVisualParamMap, S32, and typeToTypeName().
S32 LLWearable::sCurrentDefinitionVersion = 1 [static, private] |
Definition at line 124 of file llwearable.h.
Referenced by copyDataFrom(), importFile(), isOldVersion(), readFromAvatar(), and setCurrentDefinitionVersion().
S32 LLWearable::mDefinitionVersion [private] |
Definition at line 125 of file llwearable.h.
Referenced by copyDataFrom(), exportFile(), importFile(), isOldVersion(), and readFromAvatar().
LLString LLWearable::mName [private] |
Definition at line 126 of file llwearable.h.
Referenced by copyDataFrom(), dump(), exportFile(), getName(), importFile(), isMatchedToInventoryItem(), saveNewAsset(), and setName().
LLString LLWearable::mDescription [private] |
Definition at line 127 of file llwearable.h.
Referenced by copyDataFrom(), dump(), exportFile(), getDescription(), importFile(), isMatchedToInventoryItem(), and setDescription().
LLPermissions LLWearable::mPermissions [private] |
Definition at line 128 of file llwearable.h.
Referenced by copyDataFrom(), exportFile(), getPermissions(), importFile(), isMatchedToInventoryItem(), and setPermissions().
LLSaleInfo LLWearable::mSaleInfo [private] |
Definition at line 129 of file llwearable.h.
Referenced by copyDataFrom(), exportFile(), getSaleInfo(), importFile(), isMatchedToInventoryItem(), and setSaleInfo().
LLAssetID LLWearable::mAssetID [private] |
Definition at line 130 of file llwearable.h.
Referenced by getID(), importFile(), LLWearable(), and saveNewAsset().
LLTransactionID LLWearable::mTransactionID [private] |
Definition at line 131 of file llwearable.h.
Referenced by getTransactionID(), LLWearable(), and saveNewAsset().
EWearableType LLWearable::mType [private] |
Definition at line 132 of file llwearable.h.
Referenced by copyDataFrom(), dump(), exportFile(), getAssetType(), getType(), getTypeLabel(), getTypeName(), importFile(), isDirty(), isOldVersion(), readFromAvatar(), removeFromAvatar(), saveNewAsset(), setParamsToDefaults(), setTexturesToDefaults(), setType(), and writeToAvatar().
param_map_t LLWearable::mVisualParamMap [private] |
Definition at line 135 of file llwearable.h.
Referenced by copyDataFrom(), dump(), exportFile(), importFile(), isDirty(), isOldVersion(), readFromAvatar(), setParamsToDefaults(), and writeToAvatar().
te_map_t LLWearable::mTEMap [private] |
Definition at line 137 of file llwearable.h.
Referenced by copyDataFrom(), dump(), exportFile(), importFile(), isDirty(), isOldVersion(), readFromAvatar(), setTexturesToDefaults(), and writeToAvatar().
const char * LLWearable::sTypeName [static, private] |
Initial value:
{ "shape", "skin", "hair", "eyes", "shirt", "pants", "shoes", "socks", "jacket", "gloves", "undershirt", "underpants", "skirt" }
Definition at line 139 of file llwearable.h.
Referenced by getTypeName(), typeNameToType(), and typeToTypeName().
const char * LLWearable::sTypeLabel [static, private] |
Initial value:
{ "Shape", "Skin", "Hair", "Eyes", "Shirt", "Pants", "Shoes", "Socks", "Jacket", "Gloves", "Undershirt", "Underpants", "Skirt" }
Definition at line 140 of file llwearable.h.
Referenced by getTypeLabel(), and typeToTypeLabel().