1#ifndef APPLICATIONSETTINGS_H
2#define APPLICATIONSETTINGS_H
4#include "stringcontainer.h"
5#include "cvmat_qmetadata.h"
13#include "opencv2/core.hpp"
15#include "opencv2/core/cuda.hpp"
133 bool getCudaAvailable(CUDA_ERR_CODE *err_code =
nullptr)
const;
138 bool getCreateLogs();
143 bool getInterpolateMetaData();
148 const QList<QLocale> getAvailableLocales();
163 bool setLocale(QLocale locale);
165 QString getDefaultPluginName();
166 void setDefaultPluginName(
const QString& pluginName);
172 QMap<QString, QString> m_reconstructPath;
173 QString m_standardInputPath;
174 bool m_disableChecks;
175 ColorTheme m_colorTheme;
178 bool m_interpolateMetaData;
182 QString m_defaultPluginName;
The ApplicationSettings class is a singleton which saves all settings for iVS3D. These are: Paths to ...
Definition applicationsettings.h:32
void setInterpolateMetaData(bool interpolateMetaData)
setInterpolateMetaData Sets interpolateMetaData
Definition applicationsettings.cpp:52
static ApplicationSettings & instance()
Returns the singleton instance of this class.
Definition applicationsettings.cpp:101
bool removeReconstructPath(QString name)
Removes the given reconstruction software.
Definition applicationsettings.cpp:113
CUDA_ERR_CODE
The CUDA_ERR_CODE enum has an error code if CUDA is not available.
Definition applicationsettings.h:120
@ NO_GPU_FOUND
indicates that cuda is available
Definition applicationsettings.h:122
@ UNKNOWN_ERR
iVS3D was compiled without CUDA
Definition applicationsettings.h:125
@ BUILT_WITHOUT_CUDA
Compute Capability of the GPU is not supported by the build.
Definition applicationsettings.h:124
@ CC_MISSMATCH
no GPU was detected
Definition applicationsettings.h:123
void addReconstructPath(QString name, QString path)
Saves an reconstruction software.
Definition applicationsettings.cpp:107
void setUseCuda(bool useCuda)
setUseCuda Sets use cuda boolean
Definition applicationsettings.cpp:139
QString getStandardInputPath()
Returns the standard input path.
Definition applicationsettings.cpp:155
QMap< QString, QString > getReconstructPath()
Returns all saved reconstruction softwares.
Definition applicationsettings.cpp:151
void setColorTheme(ColorTheme theme)
Sets the darkstyle.
Definition applicationsettings.cpp:132
bool getDisableChecks()
Returns wether sanity checks in ots product configuration are disabled.
Definition applicationsettings.cpp:159
ColorTheme getColorTheme()
Returns which darkstyle is saved in the settings file.
Definition applicationsettings.cpp:164
void setCreateLogs(bool createLogs)
setCreateLogs Sets createLogs
Definition applicationsettings.cpp:145
bool getUseCuda()
Returns if use CUDA is enabled.
Definition applicationsettings.cpp:169
void setStandardInputPath(const QString &standardInput)
Saves the standard input path.
Definition applicationsettings.cpp:120
void setDisableChecks(bool disableChecks)
Disable sanity checks for ots product configuration.
Definition applicationsettings.cpp:126