-
Notifications
You must be signed in to change notification settings - Fork 0
/
messurebox.h
32 lines (29 loc) · 948 Bytes
/
messurebox.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
#ifndef MESSUREBOX_H
#define MESSUREBOX_H
#include "drawable.h"
class Canvas;
class MessureBox : public Drawable
{
QPoint end;
unsigned short (**candela)[Global::X_RESELUTION];
QImage** resizedImage;
QImage** originalImage;
MainWindow *mainWindow;
int avgCandala;
float avgRed, avgGreen, avgBlue;
int id;
static int counter;
void calcAvgCanela();
public:
MessureBox():Drawable(){};
MessureBox(QPoint origen, QPoint end, unsigned short (**candela)[Global::X_RESELUTION], QImage **resizedImage, QImage **originalImage, Converter *converter, MainWindow * mainWindow);
~MessureBox(){};
void draw(QPainter* painter);
int getAvgCandala(){return avgCandala;};
int getId(){return id;};
float getAvgRed() const{return avgRed;}
float getAvgGreen() const{return avgGreen;}
float getAvgBlue() const{return avgBlue;}
QPoint getEnd() const{return end;}
};
#endif // MESSUREBOX_H