Ground-Truthing GUI 1.0

- Main Page
- Related Pages
- Classes
- Files

- File List

image.h
1
22 #ifndef IMAGE
23 #define IMAGE
24
25 #include <QPixmap>
26 #include <QString>
27 #include <QDebug>
28 #include <QPainter>
29
30 #include "fileabstraction.h"
31
32 class Image:public QPixmap{
33
34 private:
35
36 // Image name pointer
37 QString imageName;
38
39 // The image file path
40 QString ImagefilePath;
41
42 // The file related to the image
43 FileAbstraction *file;
44
45 public:
46
50 Image(const QString ImagefilePath_1):
51 QPixmap(ImagefilePath_1),ImagefilePath(ImagefilePath_1){}
52
55 Image(){};
56
59 virtual ~Image(){}
60
64 virtual QString getImageName() const;
65
70 virtual void setImageName(QString imageName);
71
75 virtual QString getImageFilePath() const;
76
80 virtual void setImageFilePath(QString filePath);
81 };
82
83 #endif // IMAGE
84
Image::Image
Image(const QString ImagefilePath_1)
The constructor of the Image class.
Definition: image.h:50
Image
Inherits the QPixmap class.
Definition: image.h:32
Image::Image
Image()
Class default constructor.
Definition: image.h:55
Image::getImageName
virtual QString getImageName() const
Returns only the image name (not the filepath)
Definition: image.cpp:6
Image::setImageName
virtual void setImageName(QString imageName)
Set the image filepath.
Definition: image.cpp:14
Image::getImageFilePath
virtual QString getImageFilePath() const
Returns the image filepath.
Definition: image.cpp:22
Image::~Image
virtual ~Image()
Class destructor.
Definition: image.h:59
Image::setImageFilePath
virtual void setImageFilePath(QString filePath)
Sets the image filepath.
Definition: image.cpp:30
FileAbstraction
Inherits the QFile class.
Definition: fileabstraction.h:27