Hierarchical Edge Bundle 1.0
J:/Caro/C++_Coding/HierarchicalEdgeBundle/HierarchicalEdgeBundle/header/Image.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <IL/ilu.h>
00003 #include <IL/il.h>
00004 #include <iostream>
00005 #include <vector>
00006 
00013 class Image
00014 {
00015         public:
00019                 Image():imageload(false){};
00023                 ~Image(){ilDeleteImages(1, & handle);free(data); data = NULL;};
00028                 bool IsImageLoad();
00035                 bool LoadImg(ILenum Type, char *FileName);
00036 
00043                 static ILfloat* LoadImgGetFloat(ILenum Type, char *FileName, int &width, int &height);
00044 
00049                 int GetWidth();
00054                 int GetHeight();
00059                 ILubyte* GetData();
00060                 ILuint handle;
00061 
00062                 static std::vector<Image*> images;
00063 
00064                 double id;
00065         private:
00066                 bool imageload;
00067                 ILuint width, height;           
00068                 ILubyte * data;
00069 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines