SCV
4.2.1
Simple Components for Visual
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
Image.h
Go to the documentation of this file.
1
7
#ifndef __SCV_IMAGE_INTERFACE_H__
8
#define __SCV_IMAGE_INTERFACE_H__
9
10
#include "
Panel.h
"
11
12
namespace
scv {
13
14
class
Image
:
public
Panel
{
15
public
:
16
Image
(
const
scv::Point
&p1,
const
std::string &fileName);
17
Image
(
const
scv::Point
&p1,
const
scv::Point
&p2,
const
std::string &fileName);
18
~Image
();
19
20
//return array with RGBA colors
21
inline
const
unsigned
char
*
getData
(
void
)
const
;
22
23
inline
const
std::string &
getPath
(
void
)
const
;
24
25
void
loadImage
(
const
std::string &fileName);
26
inline
scv::Point
getImageSize
(
void
)
const
;
27
28
virtual
void
display
(
void
);
29
30
protected
:
31
virtual
void
createTexture
(
void
);
32
33
private
:
34
//Array with RGBA colors
35
unsigned
char
* _data;
36
37
std::string _path;
38
scv::Point
_realSize;
39
};
40
42
const
unsigned
char
*
Image::getData
(
void
)
const
{
43
return
_data;
44
}
45
46
const
std::string &
Image::getPath
(
void
)
const
{
47
return
_path;
48
}
49
50
scv::Point
Image::getImageSize
(
void
)
const
{
51
return
_realSize;
52
}
53
54
}
// namespace scv
55
56
#endif // __SCV_IMAGE_INTERFACE_H__
include
SCV
Image.h
Generated on Fri Dec 14 2012 09:44:49 for SCV by
1.8.2