-
Notifications
You must be signed in to change notification settings - Fork 0
/
tileimage.cpp
57 lines (48 loc) · 1.1 KB
/
tileimage.cpp
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
49
50
51
52
53
54
55
56
57
/**
* @file tileimage.cpp
* @author Yunfei Ma ([email protected])
* @brief A program of tile image object cpp file
* @version 0.1
* @date 2021-12-01
*
* @copyright Copyright (c) 2021
*
*/
#include "tileimage.hpp"
#include "point.hpp"
TileImage::TileImage()
{
this->name_of_painting = "";
this->price_of_the_painting = 0;
this->average_color_of_the_painting = Point<3>(0, 0, 0);
}
TileImage::TileImage(string name, uint32_t price, const Point<3> &color_space)
{
this->name_of_painting = name;
this->price_of_the_painting = price;
this->average_color_of_the_painting = color_space;
}
string TileImage::get_name()
{
return this->name_of_painting;
}
uint32_t TileImage::get_price()
{
return this->price_of_the_painting;
}
Point<3> &TileImage::get_LUV_color()
{
return average_color_of_the_painting;
}
void TileImage::set_name(string name)
{
this->name_of_painting = name;
}
void TileImage::set_price(uint32_t price)
{
this->price_of_the_painting = price;
}
void TileImage::set_LUV_color(const Point<3> &point)
{
this->average_color_of_the_painting = point;
}