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

The ProjectManager class saves and imports Projektfiles containing tha classes ModelAlgorithm, ModelInputPictures and ExportDataInformation. More...

#include <projectmanager.h>

Public Member Functions

 ProjectManager ()
 Default constructor.
 
bool saveProject (ModelInputPictures *mip, ModelAlgorithm *ma)
 Saves ModelAlgorithm, ModelInputPictures and all ExportDataInformation using the already defined project path and project name.
 
bool saveProjectAs (ModelInputPictures *mip, ModelAlgorithm *ma, QString path, const QString &name)
 Saves ModelAlgorithm, ModelInputPictures and all ExportDataInformation, when the project is saved for the first time.
 
bool loadProject (ModelInputPictures *mip, ModelAlgorithm *ma, QString path)
 Loades ModelAlgorithm, ModelInputPictures and all ExportDataInformation from the given file.
 
bool isProjectLoaded ()
 Returns if currently a project exists.
 
QString getProjectName ()
 Returns the project name.
 
QString getProjectPath ()
 Returns the project path.
 

Detailed Description

The ProjectManager class saves and imports Projektfiles containing tha classes ModelAlgorithm, ModelInputPictures and ExportDataInformation.

Author
Daniel Brommer
Date
2021/02/03

Member Function Documentation

◆ getProjectName()

QString ProjectManager::getProjectName ( )

Returns the project name.

Returns
QString with the project name

◆ getProjectPath()

QString ProjectManager::getProjectPath ( )

Returns the project path.

Returns
QString with the project path

◆ isProjectLoaded()

bool ProjectManager::isProjectLoaded ( )

Returns if currently a project exists.

Returns
true if a project is loaded false otherwise

◆ loadProject()

bool ProjectManager::loadProject ( ModelInputPictures mip,
ModelAlgorithm ma,
QString  path 
)

Loades ModelAlgorithm, ModelInputPictures and all ExportDataInformation from the given file.

Parameters
mipA pointer to an empty ModelInputPictures
maA pointer to an empty ModelAlgorithm
pathPath to the project file

◆ saveProject()

bool ProjectManager::saveProject ( ModelInputPictures mip,
ModelAlgorithm ma 
)

Saves ModelAlgorithm, ModelInputPictures and all ExportDataInformation using the already defined project path and project name.

Parameters
mipA pointer to the ModelInputPictures to be saved
maA pointer to the ModelAlgorithm to be saved

◆ saveProjectAs()

bool ProjectManager::saveProjectAs ( ModelInputPictures mip,
ModelAlgorithm ma,
QString  path,
const QString &  name 
)

Saves ModelAlgorithm, ModelInputPictures and all ExportDataInformation, when the project is saved for the first time.

Parameters
mipA pointer to the ModelInputPictures to be saved
maA pointer to the ModelAlgorithm to be saved
pathPath to where to project will be saved
nameName of the project

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