Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

ImageCodec Class Reference

#include <texture.h>

Inheritance diagram for ImageCodec:

Inheritance graph
[legend]
Collaboration diagram for ImageCodec:

Collaboration graph
[legend]
List of all members.

Detailed Description

Loads image file data.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 ImageCodec (const std::string &rstrFiletypeName, const std::vector< std::string > &rvstrExtensions)
virtual ~ImageCodec ()
virtual ImageDataLoadImage (File *pkFile)=0
virtual void FreeImage (ImageData *pkImageData)=0
virtual bool IsType (File *pkFile)=0
const std::string & GetTypeName () const
const std::vector< std::string > & GetExtensions () const

Protected Attributes

ModulePtr m_pkModule
std::string m_strTypeName
std::vector< std::string > m_vstrExtensions


Constructor & Destructor Documentation

ImageCodec const std::string &  rstrFiletypeName,
const std::vector< std::string > &  rvstrExtensions
 

Parameters:
rstrFiletypeName File type name
rvstrExtensions File type extensions

virtual ~ImageCodec  )  [virtual]
 


Member Function Documentation

virtual ImageData* LoadImage File pkFile  )  [pure virtual]
 

Loads data from file

Parameters:
pkFile File
Returns:
Ptr to new ImageData object

virtual void FreeImage ImageData pkImageData  )  [pure virtual]
 

Free image data

Parameters:
pkImageData Image data object to free (obj returned by previous call to LoadImage())

virtual bool IsType File pkFile  )  [pure virtual, inherited]
 

Check if file is type (must NOT change file offset!)

Parameters:
pkFile File
Returns:
true if type, false if not

const std::string& GetTypeName  )  const [inherited]
 

Returns:
Type name

const std::vector< std::string >& GetExtensions  )  const [inherited]
 

Returns:
Filetype extension


Member Data Documentation

ModulePtr m_pkModule [protected]
 

Library module

std::string m_strTypeName [protected, inherited]
 

File type name

std::vector< std::string > m_vstrExtensions [protected, inherited]
 

File type extension


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:16 2004 for NeoEngine by doxygen 1.3.5