-
Notifications
You must be signed in to change notification settings - Fork 0
/
TargetImage.h
48 lines (36 loc) · 948 Bytes
/
TargetImage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* TargetImage.h
*
* Created on: Aug 3, 2011
* Author: Jeroen Vlek
* Email: [email protected]
* Website: www.perceptivebits.com
* License: Free Beer (Feel free to use it in every
* way possible and if you like it, make
* sure to give me credit and buy me a drink
* if we ever meet ;) )
*/
#ifndef TARGETIMAGE_H_
#define TARGETIMAGE_H_
#include "Image.h"
#include <boost/shared_ptr.hpp>
#include <string>
class TargetImage;
typedef boost::shared_ptr<TargetImage> TargetImagePtr;
/**
* The target image that specifies the environment (i.e. the basis for natural
* selection).
*/
class TargetImage: public Image
{
public:
virtual ~TargetImage();
static TargetImagePtr Instance();
static bool IsLoaded();
void loadFromFile(const std::string& filename);
private:
static TargetImagePtr _Instance;
static bool _Loaded;
TargetImage();
};
#endif /* TARGETIMAGE_H_ */