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 ecvOptionsInstance ()
 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 ecvOptionsInstanceNonConst ()
 Returns the stored values of each parameter. More...
 

Detailed Description

Main application options.

Definition at line 19 of file ecvOptions.h.

Constructor & Destructor Documentation

◆ ecvOptions()

ecvOptions::ecvOptions ( )

Default constructor.

Definition at line 34 of file ecvOptions.cpp.

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.

Definition at line 48 of file ecvOptions.h.

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

◆ InstanceNonConst()

ecvOptions & ecvOptions::InstanceNonConst ( )
staticprotected

Returns the stored values of each parameter.

Definition at line 21 of file ecvOptions.cpp.

References ecvOptions(), and s_options.

Referenced by Set().

◆ ReleaseInstance()

void ecvOptions::ReleaseInstance ( )
static

Release unique instance (if any)

Definition at line 30 of file ecvOptions.cpp.

References s_options.

◆ reset()

void ecvOptions::reset ( void  )

Resets parameters to default values.

Definition at line 36 of file ecvOptions.cpp.

References askForConfirmationBeforeQuitting, CVLog::LOG_STANDARD, logVerbosityLevel, normalsDisplayedByDefault, and useNativeDialogs.

Referenced by ecvOptions(), and ccDisplayOptionsDlg::reset().

◆ Set()

void ecvOptions::Set ( const ecvOptions options)
static

Sets parameters.

Definition at line 32 of file ecvOptions.cpp.

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.

Definition at line 31 of file ecvOptions.h.

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

◆ logVerbosityLevel

◆ normalsDisplayedByDefault

bool ecvOptions::normalsDisplayedByDefault

Whether to display the normals by default or not.

Definition at line 22 of file ecvOptions.h.

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

◆ useNativeDialogs

bool ecvOptions::useNativeDialogs

Use native load/save dialogs.

Definition at line 25 of file ecvOptions.h.

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


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