Ground-Truthing GUI  1.0
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(const QString ImagefilePath_1)
The constructor of the Image class.
Definition: image.h:50
Inherits the QPixmap class.
Definition: image.h:32
Image()
Class default constructor.
Definition: image.h:55
virtual QString getImageName() const
Returns only the image name (not the filepath)
Definition: image.cpp:6
virtual void setImageName(QString imageName)
Set the image filepath.
Definition: image.cpp:14
virtual QString getImageFilePath() const
Returns the image filepath.
Definition: image.cpp:22
virtual ~Image()
Class destructor.
Definition: image.h:59
virtual void setImageFilePath(QString filePath)
Sets the image filepath.
Definition: image.cpp:30
Inherits the QFile class.
Definition: fileabstraction.h:27