Ground-Truthing GUI 1.0

- Main Page
- Related Pages
- Classes
- Files

- File List

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
35 class SaveRectangle{
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::SaveRectangle
SaveRectangle(ImageGraphicsScene *scene_1)
The constructor of the SaveRectangle class.
Definition: saverectangle.h:50
SaveRectangle::saveChanges
virtual void saveChanges()
Saves all the changes made by the user.
Definition: saverectangle.cpp:58
CreateFileAbstraction
Creates a text file related to an image.
Definition: createfileabstraction.h:34
SaveRectangle::saveAs
virtual void saveAs(CreateFileAbstraction *cfa, FileWriter *fw)
Bug. Do not use it.
Definition: saverectangle.cpp:7
SaveRectangle
Saves all the rectangles information in the text file.
Definition: saverectangle.h:35
SaveRectangle::setScene
virtual void setScene(ImageGraphicsScene *graphics_scene)
Sets the application scene.
Definition: saverectangle.cpp:3
ImageGraphicsScene
Displays the rectangles and work on the image.
Definition: imagegraphicsscene.h:47
FileWriter
Write in a text file.
Definition: filewriter.h:28