-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gene.h
39 lines (32 loc) · 822 Bytes
/
Gene.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
/**
* Gene.h
*
* Created on: Aug 2, 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 GENE_H_
#define GENE_H_
#include <utility>
#include <vector>
#include "Pixel.h"
/**
* Class that models DNA building blocks.
*/
class Gene
{
public:
Gene(PIXEL color, std::vector<std::pair<int, int> > points);
virtual ~Gene();
const PIXEL& getColor() const { return m_color; }
const std::vector<std::pair<int, int> >& getPoints() const { return m_points; }
private:
PIXEL m_color;
std::vector<std::pair<int, int> > m_points;
};
#endif /* GENE_H_ */