Hierarchical Edge Bundle 1.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
Image Class Reference

#include <Image.h>

List of all members.

Public Member Functions

 Image ()
 ~Image ()
bool IsImageLoad ()
bool LoadImg (ILenum Type, char *FileName)
int GetWidth ()
int GetHeight ()
ILubyte * GetData ()

Static Public Member Functions

static ILfloat * LoadImgGetFloat (ILenum Type, char *FileName, int &width, int &height)

Public Attributes

ILuint handle
double id

Static Public Attributes

static std::vector< Image * > images

Detailed Description

This class provides method to load images. It use the DevIL package to read the images.

Author:
Michael Beham
Date:
3.6.2011

Constructor & Destructor Documentation

Image::Image ( ) [inline]

Standardconstructor

Image::~Image ( ) [inline]

Standarddeconstructor


Member Function Documentation

ILubyte * Image::GetData ( )

This method returns the data of the image

Returns:
[ILubyte*] data of the image

Here is the caller graph for this function:

int Image::GetHeight ( )

This method returns the height of the image

Returns:
[int] height of the image

Here is the caller graph for this function:

int Image::GetWidth ( )

This method returns the width of the image

Returns:
[int] width of the image

Here is the caller graph for this function:

bool Image::IsImageLoad ( )

This method returns true, if a images is loaded, or false, if no image is loaded.

Returns:
[bool] is an image loaded?
bool Image::LoadImg ( ILenum  Type,
char *  FileName 
)

This method reads a image.

Parameters:
Type[ILenum] file extension of the type
FileName[char *] path to the image
Returns:
[bool] true... if the loading was succesfull.

Here is the caller graph for this function:

ILfloat * Image::LoadImgGetFloat ( ILenum  Type,
char *  FileName,
int &  width,
int &  height 
) [static]

This method reads a image and returns the data.

Parameters:
Type[ILenum] file extension of the type
FileName[char *] path to the image
Returns:
[ILfloat] Imagedata.

Member Data Documentation

ILuint Image::handle
double Image::id
std::vector< Image * > Image::images [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines