Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Attributes | Friends | List of all members
OImage Class Referenceabstract

#include <OImage.h>

Inheritance diagram for OImage:
Inheritance graph
[legend]

Public Member Functions

 OImage ()
 
virtual ~OImage ()
 
unsigned char * getData () const
 
unsigned int getSizeX () const
 
unsigned int getSizeY () const
 
unsigned int getDepth () const
 
unsigned int getPixelSize () const
 
virtual bool load (const std::string &filename)=0
 

Protected Attributes

unsigned char * _data
 
unsigned int _depth
 
unsigned int _sizeX
 
unsigned int _sizeY
 

Friends

class TYImageManager
 

Detailed Description

Class definition une image.

Definition at line 33 of file OImage.h.

Constructor & Destructor Documentation

◆ OImage()

OImage::OImage ( )

Definition at line 22 of file OImage.cpp.

◆ ~OImage()

OImage::~OImage ( )
virtual

Definition at line 24 of file OImage.cpp.

Member Function Documentation

◆ getData()

unsigned char* OImage::getData ( ) const
inline

Renvoi l'image sous la forme d'un pointer sur un octet non signe.

Definition at line 45 of file OImage.h.

Here is the caller graph for this function:

◆ getDepth()

unsigned int OImage::getDepth ( ) const
inline

Renvoi le nombre de bits par pixel.

Definition at line 69 of file OImage.h.

Here is the caller graph for this function:

◆ getPixelSize()

unsigned int OImage::getPixelSize ( ) const

Renvoi le nombres d'octet d'un pixel

◆ getSizeX()

unsigned int OImage::getSizeX ( ) const
inline

Renvoi la largeur de l'image.

Definition at line 53 of file OImage.h.

Here is the caller graph for this function:

◆ getSizeY()

unsigned int OImage::getSizeY ( ) const
inline

Renvoi la hauteur de l'image.

Definition at line 61 of file OImage.h.

Here is the caller graph for this function:

◆ load()

virtual bool OImage::load ( const std::string &  filename)
pure virtual

Charge une image a partir d'un fichier

Implemented in OImageFont, and OImageBmp.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ TYImageManager

friend class TYImageManager
friend

Definition at line 36 of file OImage.h.

Member Data Documentation

◆ _data

unsigned char* OImage::_data
protected

Definition at line 86 of file OImage.h.

◆ _depth

unsigned int OImage::_depth
protected

Definition at line 89 of file OImage.h.

◆ _sizeX

unsigned int OImage::_sizeX
protected

Definition at line 92 of file OImage.h.

◆ _sizeY

unsigned int OImage::_sizeY
protected

Definition at line 93 of file OImage.h.


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