LLUIImageList Class Reference

#include <llviewerimagelist.h>

Inheritance diagram for LLUIImageList:

Inheritance graph
[legend]
Collaboration diagram for LLUIImageList:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 195 of file llviewerimagelist.h.


Member Typedef Documentation

Definition at line 221 of file llviewerimagelist.h.


Member Function Documentation

LLUIImagePtr LLUIImageList::getUIImageByID ( const LLUUID id  )  [virtual]

Implements LLImageProviderInterface.

Definition at line 1154 of file llviewerimagelist.cpp.

References LLUUID::asString(), loadUIImageByID(), and mUIImages.

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLUIImageList::cleanUp (  )  [virtual]

Implements LLImageProviderInterface.

Definition at line 1149 of file llviewerimagelist.cpp.

References mUIImages.

bool LLUIImageList::initFromFile ( const LLString filename  ) 

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLUIImageList::onUIImageLoaded ( BOOL  success,
LLViewerImage src_vi,
LLImageRaw src,
LLImageRaw src_aux,
S32  discard_level,
BOOL  final,
void *  userdata 
) [static]

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


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

Generated on Fri May 16 09:19:52 2008 for SecondLife by  doxygen 1.5.5