-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimageset.h
47 lines (37 loc) · 809 Bytes
/
imageset.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
#ifndef IMAGESET_H
#define IMAGESET_H
#include <QObject>
#include <QImage>
#include <QList>
class Image;
class ImageSet : public QObject
{
Q_OBJECT
public:
ImageSet(QString numeTeste, int idSet, int maxCount);
QString getPath();
size_t getSize();
int count();
float *loadedToFloat();
signals:
void startedLoading(int idSet);
void finishedLoading(int totalBytesLoaded);
public slots:
void load();
void addImage(QString path);
int loadUp(int id);
void freeUp(int id);
QImage getQImage(int id);
Image* getImage(int id);
private:
QList<Image*> imagini;
//path catre set
QString m_path;
//nume set
QString m_name;
//id_set
unsigned int m_id;
//numarul maxim de poze
const int m_maxCount;
};
#endif // IMAGESET_H