iVS3D v2.0.0
Loading...
Searching...
No Matches
projectmanager.h
1#ifndef PROJECTMANAGER_H
2#define PROJECTMANAGER_H
3
4#include "stringcontainer.h"
5#include "modelalgorithm.h"
6#include "modelinputpictures.h"
7
8
9#include <QVariant>
10#include <QJsonObject>
11#include <QFile>
12#include <QJsonDocument>
13#include <QObject>
14
15
29{
30public:
52 bool saveProjectAs(ModelInputPictures* mip, ModelAlgorithm* ma, QString path, const QString &name);
60 bool loadProject(ModelInputPictures* mip, ModelAlgorithm* ma, QString path);
66 bool isProjectLoaded();
71 QString getProjectName();
76 QString getProjectPath();
77
78 bool createProject(ModelInputPictures *mip, ModelAlgorithm *ma, const QString &path, const QString &name);
79private:
80 QString m_projectPath = "";
81 QString m_projectName = "";
82};
83
84#endif // PROJECTMANAGER_H
The ModelAlgorithm class is responsible for buffering data from the used plugins. It implements the i...
Definition modelalgorithm.h:25
The ModelInputPictures class is responsible for saving all the Data regarding the input....
Definition modelinputpictures.h:41
The ProjectManager class saves and imports Projektfiles containing tha classes ModelAlgorithm,...
Definition projectmanager.h:29
QString getProjectPath()
Returns the project path.
Definition projectmanager.cpp:105
bool saveProject(ModelInputPictures *mip, ModelAlgorithm *ma)
Saves ModelAlgorithm, ModelInputPictures and all ExportDataInformation using the already defined proj...
Definition projectmanager.cpp:9
QString getProjectName()
Returns the project name.
Definition projectmanager.cpp:99
bool loadProject(ModelInputPictures *mip, ModelAlgorithm *ma, QString path)
Loades ModelAlgorithm, ModelInputPictures and all ExportDataInformation from the given file.
Definition projectmanager.cpp:67
bool isProjectLoaded()
Returns if currently a project exists.
Definition projectmanager.cpp:94
bool saveProjectAs(ModelInputPictures *mip, ModelAlgorithm *ma, QString path, const QString &name)
Saves ModelAlgorithm, ModelInputPictures and all ExportDataInformation, when the project is saved for...
Definition projectmanager.cpp:35
ProjectManager()
Default constructor.
Definition projectmanager.cpp:4