operations d'entree/sortie sur une image .hdr. More...
#include <ImageIO.h>
Public Member Functions | |
HDRImage * | insert (HDRImage *object, const IOFileInfo &handle, const std::string &name="") |
reference un nouvel 'objet' par son nom et le nom du fichier d'import. | |
HDRImage * | insert (HDRImage *object, const std::string &filename, const std::string &name="") |
HDRImage * | find (const IOFileInfo &handle, const std::string &name="") |
recherche un 'objet' deja importe. | |
HDRImage * | find (const std::string &filename, const std::string &name="") |
recherche un objet deja importe. | |
IOName * | find (HDRImage *object) |
recherche le nom et le nom du fichier d'un 'objet' deja importe. | |
int | modified (HDRImage *object) |
renvoie l'etat du fichier associe a un objet gere par le manager. | |
int | modified (const std::string &filename, const std::string &name="") |
renvoie l'etat d'un fichier charge par le manager. | |
Static Public Member Functions | |
static HDRImage * | RGBEread (const std::string &filename, const std::string &name="") |
charge une image rgbe, .hdr | |
static bool | is_rgbe_file (const std::string &filename) |
static HDRImage * | EXRread (const std::string &filename, const std::string &name="") |
charge une image openexr, .exr | |
static bool | is_exr_file (const std::string &filename) |
static bool | isHDRFile (const std::string &filename) |
static HDRImage * | read (const std::string &filename, const std::string &name="") |
charge le fichier 'filename' et renvoie l'image correspondante. | |
static int | write (const HDRImage *image, const std::string &filename) |
enregistre l'image avec le nom 'filename'. | |
static HDRImageIO & | manager () |
Protected Types | |
typedef io::object_name | object_name |
typedef std::map< object_name, int > | names_map_type |
typedef std::map< HDRImage *, int > | objects_map_type |
typedef io::object_info< HDRImage > | object_info |
Protected Member Functions | |
object_info * | find_info (const std::string &filename, const std::string &name) |
object_info * | find_object (HDRImage *object) |
Protected Attributes | |
names_map_type | m_names_map |
objects_map_type | m_objects_map |
std::vector< object_info > | m_objects |
operations d'entree/sortie sur une image .hdr.
HDRImage * gk::IOManager< HDRImage >::insert | ( | HDRImage * | object, |
const std::string & | filename, | ||
const std::string & | name = "" |
||
) | [inline, inherited] |
int gk::IOManager< HDRImage >::modified | ( | HDRImage * | object | ) | [inline, inherited] |
renvoie l'etat du fichier associe a un objet gere par le manager.
-1 en cas d'erreur, 0 pas de modifications, 1 le fichier a ete modifie depuis sa lecture par le manager.
int gk::IOManager< HDRImage >::modified | ( | const std::string & | filename, |
const std::string & | name = "" |
||
) | [inline, inherited] |
renvoie l'etat d'un fichier charge par le manager.
-1 en cas d'erreur, 0 pas de modifications, 1 le fichier a ete modifie depuis sa lecture par le manager.