Ground-Truthing GUI  1.0
saverectangle.h
1 
25 #ifndef SAVERECTANGLE
26 #define SAVERECTANGLE
27 
28 #include "imagegraphicsscene.h"
29 
30 #include <QList>
31 #include <QDebug>
32 
33 #include "rectangledraw.h"
34 
36 
37 private:
38 
39  // The application scene where all the rectangles are drawn
40  ImageGraphicsScene *scene;
41 
42  // The list containing all the rectangles drawn in the scene
43  QList <RectangleDraw*> list;
44 
45 public:
46 
50  SaveRectangle(ImageGraphicsScene *scene_1):scene(scene_1)
51  {
52  }
53 
58  virtual void setScene(ImageGraphicsScene *graphics_scene);
59 
63  virtual void saveChanges();
64 
67  virtual void saveAs(CreateFileAbstraction *cfa,FileWriter *fw);
68 };
69 
70 #endif // SAVERECTANGLE
71 
SaveRectangle(ImageGraphicsScene *scene_1)
The constructor of the SaveRectangle class.
Definition: saverectangle.h:50
virtual void saveChanges()
Saves all the changes made by the user.
Definition: saverectangle.cpp:58
Creates a text file related to an image.
Definition: createfileabstraction.h:34
virtual void saveAs(CreateFileAbstraction *cfa, FileWriter *fw)
Bug. Do not use it.
Definition: saverectangle.cpp:7
Saves all the rectangles information in the text file.
Definition: saverectangle.h:35
virtual void setScene(ImageGraphicsScene *graphics_scene)
Sets the application scene.
Definition: saverectangle.cpp:3
Displays the rectangles and work on the image.
Definition: imagegraphicsscene.h:47
Write in a text file.
Definition: filewriter.h:28