iVS3D v2.0.0
Loading...
Searching...
No Matches
DataManager Class Reference

The DataManager class is a Facade for the data holding classes in the model. It delegates most of it's tasks to model classes. More...

#include <DataManager.h>

Public Member Functions

 DataManager ()
 DataManager Constructor it will create a new ProjektManager.
 
int open (QString path)
 open Creates a new ModelInputPictures with the given path
 
int openProject (QString path)
 openProject Opens the project by creating an empty ModelInputPictures and ModelAlgorithm and calling the ProjectManager
 
void saveProject ()
 saveProject Saves the current project with the ProjectManager
 
void saveProjectAs (QString projectName, QString projectPath)
 saveProject Saves a new project with the ProjectManager
 
void createProject (QString projectName, QString projectPath)
 createProject Creates a new project with the ProjectManager
 
bool isProjectLoaded ()
 isProjectLoaded Returns if a project is loaded
 
QString getProjectName ()
 getProjectName Returns the current project name from the ProjectManager
 
QString getProjectPath ()
 getProjectPath Returns the current project path from the ProjectManager
 
ModelAlgorithmgetModelAlgorithm ()
 getModelAlgorithm Returns the current ModelAlgorithm
 
ModelInputPicturesgetModelInputPictures ()
 getModelInputPictures Returns the current ModelInputPictures
 

Detailed Description

The DataManager class is a Facade for the data holding classes in the model. It delegates most of it's tasks to model classes.

Author
Patrick Binder
Date
2021/02/01

Member Function Documentation

◆ createProject()

void DataManager::createProject ( QString  projectName,
QString  projectPath 
)

createProject Creates a new project with the ProjectManager

Parameters
projectNameName of the project
projectPathPath of the project

◆ getModelAlgorithm()

ModelAlgorithm * DataManager::getModelAlgorithm ( )

getModelAlgorithm Returns the current ModelAlgorithm

Returns
The current ModelAlgorithm

◆ getModelInputPictures()

ModelInputPictures * DataManager::getModelInputPictures ( )

getModelInputPictures Returns the current ModelInputPictures

Returns
The current ModelInputPictures

◆ getProjectName()

QString DataManager::getProjectName ( )

getProjectName Returns the current project name from the ProjectManager

Returns
current project name

◆ getProjectPath()

QString DataManager::getProjectPath ( )

getProjectPath Returns the current project path from the ProjectManager

Returns
current project path

◆ isProjectLoaded()

bool DataManager::isProjectLoaded ( )

isProjectLoaded Returns if a project is loaded

Returns
true if a project is loaded false otherwise

◆ open()

int DataManager::open ( QString  path)

open Creates a new ModelInputPictures with the given path

Parameters
pathImport path

◆ openProject()

int DataManager::openProject ( QString  path)

openProject Opens the project by creating an empty ModelInputPictures and ModelAlgorithm and calling the ProjectManager

Parameters
pathPath of the project

◆ saveProjectAs()

void DataManager::saveProjectAs ( QString  projectName,
QString  projectPath 
)

saveProject Saves a new project with the ProjectManager

Parameters
projectNameName of the project
projectPathPath of the project

The documentation for this class was generated from the following files: