ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvOptions.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "CVAppCommon.h"
11 
12 // CV_CORE_LIB
13 #include <CVLog.h>
14 
15 // Qt
16 #include <QString>
17 
20 public: // parameters
23 
26 
29 
32 
33 public: // methods
36 
38  void reset();
39 
42 
44  void toPersistentSettings() const;
45 
46 public: // static methods
48  static const ecvOptions& Instance() { return InstanceNonConst(); }
49 
51  static void ReleaseInstance();
52 
54  static void Set(const ecvOptions& options);
55 
56 protected: // methods
59 };
#define CVAPPCOMMON_LIB_API
Definition: CVAppCommon.h:15
MessageLevelFlags
Message level.
Definition: CVLog.h:42
Main application options.
Definition: ecvOptions.h:19
bool useNativeDialogs
Use native load/save dialogs.
Definition: ecvOptions.h:25
static void Set(const ecvOptions &options)
Sets parameters.
ecvOptions()
Default constructor.
static void ReleaseInstance()
Release unique instance (if any)
void reset()
Resets parameters to default values.
bool normalsDisplayedByDefault
Whether to display the normals by default or not.
Definition: ecvOptions.h:22
static ecvOptions & InstanceNonConst()
Returns the stored values of each parameter.
bool askForConfirmationBeforeQuitting
Ask for confirmation before quitting.
Definition: ecvOptions.h:31
void fromPersistentSettings()
Loads from persistent DB.
void toPersistentSettings() const
Saves to persistent DB.
CVLog::MessageLevelFlags logVerbosityLevel
Log/console verbosity level (reuses CVLog::MessageLevelFlags)
Definition: ecvOptions.h:28
static const ecvOptions & Instance()
Returns the stored values of each parameter.
Definition: ecvOptions.h:48