#include <llviewerimagelist.h>
Public Member Functions | |
LLUIImagePtr | getUIImageByID (const LLUUID &id) |
LLUIImagePtr | getUIImage (const LLString &name) |
void | cleanUp () |
bool | initFromFile (const LLString &filename) |
LLUIImagePtr | preloadUIImage (const LLString &name, const LLString &filename, BOOL use_mips, const LLRect &scale_rect) |
Static Public Member Functions | |
static void | onUIImageLoaded (BOOL success, LLViewerImage *src_vi, LLImageRaw *src, LLImageRaw *src_aux, S32 discard_level, BOOL final, void *userdata) |
Private Types | |
typedef std::map< LLString, LLPointer< LLUIImage > > | uuid_ui_image_map_t |
Private Member Functions | |
LLUIImagePtr | loadUIImageByName (const LLString &name, const LLString &filename, BOOL use_mips=FALSE, const LLRect &scale_rect=LLRect::null) |
LLUIImagePtr | loadUIImageByID (const LLUUID &id, BOOL use_mips=FALSE, const LLRect &scale_rect=LLRect::null) |
LLUIImagePtr | loadUIImage (LLViewerImage *imagep, const LLString &name, BOOL use_mips=FALSE, const LLRect &scale_rect=LLRect::null) |
Private Attributes | |
uuid_ui_image_map_t | mUIImages |
Classes | |
struct | LLUIImageLoadData |
Definition at line 195 of file llviewerimagelist.h.
typedef std::map< LLString, LLPointer<LLUIImage> > LLUIImageList::uuid_ui_image_map_t [private] |
Definition at line 221 of file llviewerimagelist.h.
LLUIImagePtr LLUIImageList::getUIImageByID | ( | const LLUUID & | id | ) | [virtual] |
Implements LLImageProviderInterface.
Definition at line 1154 of file llviewerimagelist.cpp.
References LLUUID::asString(), loadUIImageByID(), and mUIImages.
LLUIImagePtr LLUIImageList::getUIImage | ( | const LLString & | name | ) | [virtual] |
Implements LLImageProviderInterface.
Definition at line 1169 of file llviewerimagelist.cpp.
References loadUIImageByName(), and mUIImages.
Referenced by LLJoystickCameraZoom::LLJoystickCameraZoom(), and LLPanelLandObjects::postBuild().
void LLUIImageList::cleanUp | ( | ) | [virtual] |
Implements LLImageProviderInterface.
Definition at line 1149 of file llviewerimagelist.cpp.
References mUIImages.
bool LLUIImageList::initFromFile | ( | const LLString & | filename | ) |
Definition at line 1271 of file llviewerimagelist.cpp.
References LLViewerImageList::decodeAllImages(), FALSE, LLXmlTreeNode::getAttributeBOOL(), LLXmlTreeNode::getAttributeS32(), LLXmlTreeNode::getAttributeString(), LLControlGroup::getBOOL(), LLXmlTreeNode::getChildByName(), LLXmlTreeNode::getFirstChild(), LLXmlTreeNode::getName(), LLXmlTreeNode::getNextChild(), LLXmlTree::getRoot(), gSavedSettings, LLXmlTreeNode::hasAttribute(), llendl, llwarns, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLXmlTree::parseFile(), preloadUIImage(), and S32.
Referenced by LLViewerImageList::doPreloadImages().
LLUIImagePtr LLUIImageList::preloadUIImage | ( | const LLString & | name, | |
const LLString & | filename, | |||
BOOL | use_mips, | |||
const LLRect & | scale_rect | |||
) |
Definition at line 1211 of file llviewerimagelist.cpp.
References llendl, llerrs, loadUIImageByName(), and mUIImages.
Referenced by initFromFile().
void LLUIImageList::onUIImageLoaded | ( | BOOL | success, | |
LLViewerImage * | src_vi, | |||
LLImageRaw * | src, | |||
LLImageRaw * | src_aux, | |||
S32 | discard_level, | |||
BOOL | final, | |||
void * | userdata | |||
) | [static] |
Definition at line 1225 of file llviewerimagelist.cpp.
References LLImageGL::getHeight(), LLSingleton< LLUIImageList >::getInstance(), LLViewerImage::getOriginalHeight(), LLViewerImage::getOriginalWidth(), LLImageGL::getWidth(), llclamp(), LLRectBase< Type >::mBottom, LLUIImageList::LLUIImageLoadData::mImageName, LLUIImageList::LLUIImageLoadData::mImageScaleRegion, LLRectBase< Type >::mLeft, LLViewerImage::mLocalFileName, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, mUIImages, LLPointer< Type >::notNull(), and LLRectBase< Type >::null.
Referenced by loadUIImage().
LLUIImagePtr LLUIImageList::loadUIImageByName | ( | const LLString & | name, | |
const LLString & | filename, | |||
BOOL | use_mips = FALSE , |
|||
const LLRect & | scale_rect = LLRect::null | |||
) | [private] |
Definition at line 1181 of file llviewerimagelist.cpp.
References LLViewerImageList::getImageFromFile(), IMMEDIATE_YES, loadUIImage(), and MIPMAP_NO.
Referenced by getUIImage(), and preloadUIImage().
LLUIImagePtr LLUIImageList::loadUIImageByID | ( | const LLUUID & | id, | |
BOOL | use_mips = FALSE , |
|||
const LLRect & | scale_rect = LLRect::null | |||
) | [private] |
Definition at line 1187 of file llviewerimagelist.cpp.
References LLViewerImageList::getImage(), IMMEDIATE_YES, loadUIImage(), and MIPMAP_NO.
Referenced by getUIImageByID().
LLUIImagePtr LLUIImageList::loadUIImage | ( | LLViewerImage * | imagep, | |
const LLString & | name, | |||
BOOL | use_mips = FALSE , |
|||
const LLRect & | scale_rect = LLRect::null | |||
) | [private] |
Definition at line 1193 of file llviewerimagelist.cpp.
References FALSE, LLUIImageList::LLUIImageLoadData::mImageName, LLUIImageList::LLUIImageLoadData::mImageScaleRegion, mUIImages, NULL, onUIImageLoaded(), LLImageGL::setClamp(), LLViewerImage::setLoadedCallback(), and TRUE.
Referenced by loadUIImageByID(), and loadUIImageByName().
uuid_ui_image_map_t LLUIImageList::mUIImages [private] |
Definition at line 222 of file llviewerimagelist.h.
Referenced by cleanUp(), getUIImage(), getUIImageByID(), loadUIImage(), onUIImageLoaded(), and preloadUIImage().