Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
TYImageManager Class Reference

#include <TYImageManager.h>

Inheritance diagram for TYImageManager:
Inheritance graph
[legend]
Collaboration diagram for TYImageManager:
Collaboration graph
[legend]

Public Member Functions

 TYImageManager ()
 
 ~TYImageManager ()
 
bool setAsSingleton ()
 
bool loadImages ()
 
bool loadImage (const char *filename)
 
OImagegetImage (const char *filename)
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Static Public Member Functions

static LPTYImageManager get ()
 

Private Attributes

std::map< std::string, OImage * > _imageMap
 

Static Private Attributes

static LPTYImageManager _pInstance = 0
 

Additional Inherited Members

- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Detailed Description

Gestionnaire d'image.

Definition at line 50 of file TYImageManager.h.

Constructor & Destructor Documentation

◆ TYImageManager()

TYImageManager::TYImageManager ( )

Constructeur par default.

Definition at line 31 of file TYImageManager.cpp.

Here is the caller graph for this function:

◆ ~TYImageManager()

TYImageManager::~TYImageManager ( )

Destructeur.

Definition at line 33 of file TYImageManager.cpp.

Member Function Documentation

◆ get()

LPTYImageManager TYImageManager::get ( )
static

Retourne l'instance singleton.

Definition at line 49 of file TYImageManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getImage()

OImage * TYImageManager::getImage ( const char *  filename)

Renvoi l'image filename.

Definition at line 129 of file TYImageManager.cpp.

Here is the call graph for this function:

◆ loadImage()

bool TYImageManager::loadImage ( const char *  filename)

Charge l'image filename

Definition at line 82 of file TYImageManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadImages()

bool TYImageManager::loadImages ( )

Charge les images requises. Retourne TRUE si toutes les textures sont chargees, FALSE sinon.

Definition at line 59 of file TYImageManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAsSingleton()

bool TYImageManager::setAsSingleton ( )

Definit cette instance comme singleton. Attention : cette instance doit absolument avoir ete creee sur la heap (operateur new).

Returns
Indique si un singleton etait deja defini ou pas.

Definition at line 42 of file TYImageManager.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _imageMap

std::map<std::string, OImage*> TYImageManager::_imageMap
private

Definition at line 94 of file TYImageManager.h.

◆ _pInstance

LPTYImageManager TYImageManager::_pInstance = 0
staticprivate

Definition at line 97 of file TYImageManager.h.


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