llappearance.h

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

Generated on Thu Jul 1 06:08:19 2010 for Second Life Viewer by  doxygen 1.4.7