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 ()
 
void reportStats (unsigned int frameNumber, osg::Stats *stats) const
 
- 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...
 
virtual void clearCache ()
 Clear all cache entries. More...
 
void setExpiryDelay (double expiryDelay)
 How long to keep objects in cache after no longer being referenced. More...
 
const VFS::ManagergetVFS () const
 
virtual void releaseGLObjects (osg::State *state)
 

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
void Resource::ImageManager::reportStats ( unsigned int  frameNumber,
osg::Stats *  stats 
) const
virtual

Reimplemented from Resource::ResourceManager.

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: