OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Resource::ImageManager Class Reference

Handles loading/caching of Images. More...

#include <imagemanager.hpp>

Inheritance diagram for Resource::ImageManager:
Collaboration diagram for Resource::ImageManager:

Public Member Functions

 ImageManager (const VFS::Manager *vfs)
 
 ~ImageManager ()
 
osg::ref_ptr< osg::Image > getImage (const std::string &filename)
 
osg::Image * getWarningImage ()
 
- Public Member Functions inherited from Resource::ResourceManager
 ResourceManager (const VFS::Manager *vfs)
 
virtual ~ResourceManager ()
 
virtual void updateCache (double referenceTime)
 Clear cache entries that have not been referenced for longer than expiryDelay. More...
 
void setExpiryDelay (double expiryDelay)
 How long to keep objects in cache after no longer being referenced. More...
 
const VFS::ManagergetVFS () const
 

Private Member Functions

 ImageManager (const ImageManager &)
 
void operator= (const ImageManager &)
 

Private Attributes

osg::ref_ptr< osg::Image > mWarningImage
 
osg::ref_ptr< osgDB::Options > mOptions
 

Additional Inherited Members

- Protected Attributes inherited from Resource::ResourceManager
const VFS::ManagermVFS
 
osg::ref_ptr
< Resource::ObjectCache
mCache
 
double mExpiryDelay
 

Detailed Description

Handles loading/caching of Images.

Note
May be used from any thread.

Constructor & Destructor Documentation

Resource::ImageManager::ImageManager ( const VFS::Manager vfs)
Resource::ImageManager::~ImageManager ( )
Resource::ImageManager::ImageManager ( const ImageManager )
private

Member Function Documentation

osg::ref_ptr< osg::Image > Resource::ImageManager::getImage ( const std::string &  filename)

Create or retrieve an Image Returns the dummy image if the given image is not found.

Here is the call graph for this function:

Here is the caller graph for this function:

osg::Image * Resource::ImageManager::getWarningImage ( )

Here is the caller graph for this function:

void Resource::ImageManager::operator= ( const ImageManager )
private

Member Data Documentation

osg::ref_ptr<osgDB::Options> Resource::ImageManager::mOptions
private
osg::ref_ptr<osg::Image> Resource::ImageManager::mWarningImage
private

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