iVS3D v2.0.0
Loading...
Searching...
No Matches
DataManager.h
1#ifndef DATAMANAGER_H
2#define DATAMANAGER_H
3
11#include "modelalgorithm.h"
12#include "modelinputpictures.h"
13#include "projectmanager.h"
14#include "logmanager.h"
15#include "history.h"
16
29{
30public:
34 explicit DataManager();
35
42 int open(QString path);
48 int openProject(QString path);
52 void saveProject();
59 void saveProjectAs(QString projectName, QString projectPath);
66 void createProject(QString projectName, QString projectPath);
72 bool isProjectLoaded();
77 QString getProjectName();
82 QString getProjectPath();
93 History* getHistory();
94
95private:
96 ModelAlgorithm* m_ma = nullptr;
97 ModelInputPictures* m_mip = nullptr;
98 ProjectManager* m_projectManager;
99 History* m_history;
100};
101
102
103
104#endif // DATAMANAGER_H
The DataManager class is a Facade for the data holding classes in the model. It delegates most of it'...
Definition DataManager.h:29
QString getProjectName()
getProjectName Returns the current project name from the ProjectManager
Definition DataManager.cpp:126
void createProject(QString projectName, QString projectPath)
createProject Creates a new project with the ProjectManager
Definition DataManager.cpp:116
bool isProjectLoaded()
isProjectLoaded Returns if a project is loaded
Definition DataManager.cpp:121
QString getProjectPath()
getProjectPath Returns the current project path from the ProjectManager
Definition DataManager.cpp:131
void saveProject()
saveProject Saves the current project with the ProjectManager
Definition DataManager.cpp:106
ModelAlgorithm * getModelAlgorithm()
getModelAlgorithm Returns the current ModelAlgorithm
Definition DataManager.cpp:90
DataManager()
DataManager Constructor it will create a new ProjektManager.
Definition DataManager.cpp:3
int open(QString path)
open Creates a new ModelInputPictures with the given path
Definition DataManager.cpp:25
int openProject(QString path)
openProject Opens the project by creating an empty ModelInputPictures and ModelAlgorithm and calling ...
Definition DataManager.cpp:53
void saveProjectAs(QString projectName, QString projectPath)
saveProject Saves a new project with the ProjectManager
Definition DataManager.cpp:111
ModelInputPictures * getModelInputPictures()
getModelInputPictures Returns the current ModelInputPictures
Definition DataManager.cpp:95
The History class stores and restores historical states of ModelInputPictrues in order to provide und...
Definition history.h:22
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