llappearance.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLAPPEARANCE_H
00033 #define LL_LLAPPEARANCE_H
00034 
00035 #include "lluuid.h"
00036 
00037 class LLAppearance
00038 {
00039 public:
00040         LLAppearance()                                                                          {}
00041         ~LLAppearance()                                                                         { mParamMap.clear(); } 
00042 
00043         void    addParam( S32 id, F32 value )                           { mParamMap[id] = value; }
00044         F32             getParam( S32 id, F32 defval )                          { return get_if_there(mParamMap, id, defval ); }
00045 
00046         void    addTexture( S32 te, const LLUUID& uuid )        { if( te < LLVOAvatar::TEX_NUM_ENTRIES ) mTextures[te] = uuid; }
00047         const LLUUID& getTexture( S32 te )                                      { return ( te < LLVOAvatar::TEX_NUM_ENTRIES ) ? mTextures[te] : LLUUID::null; }
00048         
00049         void    clear()                                                                         { mParamMap.clear(); for( S32 i=0; i<LLVOAvatar::TEX_NUM_ENTRIES; i++ ) mTextures[i].setNull(); }
00050 
00051         typedef std::map<S32, F32> param_map_t;
00052         param_map_t mParamMap;
00053         LLUUID  mTextures[LLVOAvatar::TEX_NUM_ENTRIES];
00054 };
00055 
00056 #endif  // LL_LLAPPEARANCE_H

Generated on Fri May 16 08:33:14 2008 for SecondLife by  doxygen 1.5.5