LLWearable Class Reference

#include <llwearable.h>

Collaboration diagram for LLWearable:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLWearable (const LLTransactionID &transactionID)
 LLWearable (const LLAssetID &assetID)
 ~LLWearable ()
const LLAssetIDgetID ()
const LLTransactionIDgetTransactionID ()
BOOL readData (const char *buffer)
BOOL isDirty ()
BOOL isOldVersion ()
void writeToAvatar (BOOL set_by_user)
void readFromAvatar ()
void removeFromAvatar (BOOL set_by_user)
BOOL exportFile (LLFILE *file)
BOOL importFile (LLFILE *file)
EWearableType getType () const
void setType (EWearableType type)
void setName (const LLString &name)
const LLStringgetName ()
void setDescription (const LLString &desc)
const LLStringgetDescription ()
void setPermissions (const LLPermissions &p)
const LLPermissionsgetPermissions ()
void setSaleInfo (const LLSaleInfo &info)
const LLSaleInfogetSaleInfo ()
const char * getTypeLabel () const
const char * getTypeName () const
void setParamsToDefaults ()
void setTexturesToDefaults ()
LLAssetType::EType getAssetType () const
void saveNewAsset ()
BOOL isMatchedToInventoryItem (LLViewerInventoryItem *item)
void copyDataFrom (LLWearable *src)
void dump ()

Static Public Member Functions

static void removeFromAvatar (EWearableType type, BOOL set_by_user)
static EWearableType typeNameToType (const LLString &type_name)
static const char * typeToTypeName (EWearableType type)
static const char * typeToTypeLabel (EWearableType type)
static LLAssetType::EType typeToAssetType (EWearableType wearable_type)
static void onSaveNewAssetComplete (const LLUUID &asset_uuid, void *user_data, S32 status, LLExtStat ext_status)
static void setCurrentDefinitionVersion (S32 version)

Private Types

typedef std::map< S32, F32param_map_t
typedef std::map< S32, LLUUIDte_map_t

Private Attributes

S32 mDefinitionVersion
LLString mName
LLString mDescription
LLPermissions mPermissions
LLSaleInfo mSaleInfo
LLAssetID mAssetID
LLTransactionID mTransactionID
EWearableType mType
param_map_t mVisualParamMap
te_map_t mTEMap

Static Private Attributes

static S32 sCurrentDefinitionVersion = 1
static const char * sTypeName [WT_COUNT]
static const char * sTypeLabel [WT_COUNT]


Detailed Description

Definition at line 62 of file llwearable.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

LLWearable::LLWearable ( const LLTransactionID transactionID  ) 

Definition at line 117 of file llwearable.cpp.

References gAgent, LLAgent::getSecureSessionID(), LLTransactionID::makeAssetID(), mAssetID, and mTransactionID.

Here is the call graph for this function:

LLWearable::LLWearable ( const LLAssetID assetID  ) 

Definition at line 125 of file llwearable.cpp.

References mAssetID, mTransactionID, and LLUUID::setNull().

Here is the call graph for this function:

LLWearable::~LLWearable (  ) 

Definition at line 133 of file llwearable.cpp.


Member Function Documentation

const LLAssetID& LLWearable::getID (  )  [inline]

const LLTransactionID& LLWearable::getTransactionID (  )  [inline]

BOOL LLWearable::readData ( const char *  buffer  ) 

BOOL LLWearable::isDirty (  ) 

BOOL LLWearable::isOldVersion (  ) 

void LLWearable::writeToAvatar ( BOOL  set_by_user  ) 

void LLWearable::readFromAvatar (  ) 

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().

Here is the caller graph for this function:

void LLWearable::removeFromAvatar ( EWearableType  type,
BOOL  set_by_user 
) [static]

BOOL LLWearable::exportFile ( LLFILE file  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLWearable::importFile ( LLFILE file  ) 

EWearableType LLWearable::getType (  )  const [inline]

void LLWearable::setType ( EWearableType  type  )  [inline]

Definition at line 85 of file llwearable.h.

References mType.

Referenced by LLWearableList::createNewWearable().

Here is the caller graph for this function:

void LLWearable::setName ( const LLString name  )  [inline]

const LLString& LLWearable::getName ( void   )  [inline]

void LLWearable::setDescription ( const LLString desc  )  [inline]

Definition at line 90 of file llwearable.h.

References mDescription.

Referenced by LLWearableList::createWearableMatchedToInventoryItem().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void LLWearable::setPermissions ( const LLPermissions p  )  [inline]

const LLPermissions& LLWearable::getPermissions (  )  [inline]

void LLWearable::setSaleInfo ( const LLSaleInfo info  )  [inline]

Definition at line 96 of file llwearable.h.

References mSaleInfo.

Referenced by LLWearableList::createWearableMatchedToInventoryItem().

Here is the caller graph for this function:

const LLSaleInfo& LLWearable::getSaleInfo (  )  [inline]

Definition at line 97 of file llwearable.h.

References mSaleInfo.

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().

Here is the caller graph for this function:

const char* LLWearable::getTypeName (  )  const [inline]

Definition at line 100 of file llwearable.h.

References mType, and sTypeName.

void LLWearable::setParamsToDefaults (  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

static const char* LLWearable::typeToTypeLabel ( EWearableType  type  )  [inline, static]

LLAssetType::EType LLWearable::typeToAssetType ( EWearableType  wearable_type  )  [static]

void LLWearable::saveNewAsset (  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLWearable::isMatchedToInventoryItem ( LLViewerInventoryItem item  ) 

void LLWearable::copyDataFrom ( LLWearable src  ) 

static void LLWearable::setCurrentDefinitionVersion ( S32  version  )  [inline, static]

Definition at line 119 of file llwearable.h.

References sCurrentDefinitionVersion.

Referenced by LLVOAvatar::initClass().

Here is the caller graph for this function:

void LLWearable::dump (  ) 

Definition at line 952 of file llwearable.cpp.

References llendl, llinfos, mDescription, mName, mTEMap, mType, mVisualParamMap, S32, and typeToTypeName().

Here is the call graph for this function:


Member Data Documentation

Definition at line 125 of file llwearable.h.

Referenced by copyDataFrom(), exportFile(), importFile(), isOldVersion(), and readFromAvatar().

Definition at line 130 of file llwearable.h.

Referenced by getID(), importFile(), LLWearable(), and saveNewAsset().

Definition at line 131 of file llwearable.h.

Referenced by getTransactionID(), LLWearable(), and saveNewAsset().

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().


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

Generated on Fri May 16 09:39:11 2008 for SecondLife by  doxygen 1.5.5