ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvOptions Class Reference

Main application options. More...

#include <ecvOptions.h>

Public Member Functions

 ecvOptions ()
 Default constructor. More...
 
void reset ()
 Resets parameters to default values. More...
 
void fromPersistentSettings ()
 Loads from persistent DB. More...
 
void toPersistentSettings () const
 Saves to persistent DB. More...
 

Static Public Member Functions

static const ecvOptions & Instance ()
 Returns the stored values of each parameter. More...
 
static void ReleaseInstance ()
 Release unique instance (if any) More...
 
static void Set (const ecvOptions &options)
 Sets parameters. More...
 

Public Attributes

bool normalsDisplayedByDefault
 Whether to display the normals by default or not. More...
 
bool useNativeDialogs
 Use native load/save dialogs. More...
 
CVLog::MessageLevelFlags logVerbosityLevel
 Log/console verbosity level (reuses CVLog::MessageLevelFlags) More...
 
bool askForConfirmationBeforeQuitting
 Ask for confirmation before quitting. More...
 

Static Protected Member Functions

static ecvOptions & InstanceNonConst ()
 Returns the stored values of each parameter. More...
 

Detailed Description

Main application options.

Constructor & Destructor Documentation

◆ ecvOptions()

ecvOptions::ecvOptions ( )

Default constructor.

References reset().

Referenced by InstanceNonConst().

Member Function Documentation

◆ fromPersistentSettings()

void ecvOptions::fromPersistentSettings ( )

◆ Instance()

static const ecvOptions& ecvOptions::Instance ( )
inlinestatic

Returns the stored values of each parameter.

Referenced by MainWindow::addToDB(), ccDisplayOptionsDlg::ccDisplayOptionsDlg(), and ECVFileDialogOptions().

◆ InstanceNonConst()

ecvOptions & ecvOptions::InstanceNonConst ( )
staticprotected

Returns the stored values of each parameter.

References ecvOptions(), and s_options.

Referenced by Set().

◆ ReleaseInstance()

void ecvOptions::ReleaseInstance ( )
static

Release unique instance (if any)

References s_options.

◆ reset()

void ecvOptions::reset ( )

◆ Set()

void ecvOptions::Set ( const ecvOptions &  options)
static

Sets parameters.

References InstanceNonConst().

Referenced by ccDisplayOptionsDlg::apply(), and ccDisplayOptionsDlg::doReject().

◆ toPersistentSettings()

void ecvOptions::toPersistentSettings ( ) const

Member Data Documentation

◆ askForConfirmationBeforeQuitting

bool ecvOptions::askForConfirmationBeforeQuitting

Ask for confirmation before quitting.

Referenced by fromPersistentSettings(), ccDisplayOptionsDlg::refresh(), reset(), and toPersistentSettings().

◆ logVerbosityLevel

◆ normalsDisplayedByDefault

bool ecvOptions::normalsDisplayedByDefault

Whether to display the normals by default or not.

Referenced by MainWindow::addToDB(), fromPersistentSettings(), ccDisplayOptionsDlg::refresh(), reset(), and toPersistentSettings().

◆ useNativeDialogs

bool ecvOptions::useNativeDialogs

Use native load/save dialogs.

Referenced by fromPersistentSettings(), ccDisplayOptionsDlg::refresh(), reset(), and toPersistentSettings().


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