API Documentation
Loading...
Searching...
No Matches
DesignSettings Class Reference

Stores generic settings that impact the behavior of the NDEVR API. More...

#include <DesignSettings.h>

Inheritance diagram for DesignSettings:
[legend]
Collaboration diagram for DesignSettings:
[legend]

Public Member Functions

 DesignSettings ()
 
void getINI (INIFactory &factory) override
 
bool getModel (const String &resource, Model &root) const
 
void setGraphicsSettingsToDefaults ()
 
bool setModel (const String &resource, const Model &model) const
 
void setModelGetter (const std::function< bool(const String &, Model &root)> &resource_getter)
 
void setModelSetter (const std::function< bool(const String &, const Model &model)> &resource_setter)
 
void setStationSettingsToDefaults ()
 
void setUserSettingsToDefaults ()
 
- Public Member Functions inherited from INIInterface
virtual void finishReadingINI (INIFactory &)
 
 INIInterface (const File &default_ini)
 
virtual void prepareForINI (INIFactory &)
 
virtual bool readINIOptions ()
 
virtual bool readINIOptions (File &ini_file)
 
virtual bool saveINIOptions (bool multithead=false)
 
virtual bool saveINIOptions (File &ini_file, bool multithead=false)
 
void setDefaultINIFile (const File &file)
 
virtual void writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U)
 
virtual void writeToLog (ProgressInfo *log, uint01 log_level=2U)
 
virtual ~INIInterface ()
 

Static Public Member Functions

static DesignSettingsdefaultSettings ()
 

Public Attributes

Resource< Stringactivation_email
 
Resource< TranslatedStringcalibration_back_point_label
 
Resource< TranslatedStringcalibration_front_point_label
 
Resource< Stringcompany_name
 
Resource< bool > debug_mode
 
Buffer< SnapLocationdefault_camera_locations
 
Resource< bool > maintenance_mode
 
Resource< Stringndevr_website
 
Resource< TranslatedStringpattern_hole_name_format
 
Resource< TranslatedStringrow_auto_name_format
 
Resource< TranslatedStringuser_title
 

Protected Attributes

std::function< bool(const String &, Model &root)> m_model_getter
 
std::function< bool(const String &, const Model &model)> m_model_setter
 
- Protected Attributes inherited from INIInterface
File m_default_ini
 

Detailed Description

Stores generic settings that impact the behavior of the NDEVR API.


Constructor & Destructor Documentation

◆ DesignSettings()

Member Function Documentation

◆ defaultSettings()

static DesignSettings & defaultSettings ( )
static

◆ getINI()

void getINI ( INIFactory & factory)
overridevirtual

Implements INIInterface.

◆ getModel()

bool getModel ( const String & resource,
Model & root ) const

◆ setGraphicsSettingsToDefaults()

void setGraphicsSettingsToDefaults ( )

◆ setModel()

bool setModel ( const String & resource,
const Model & model ) const

◆ setModelGetter()

void setModelGetter ( const std::function< bool(const String &, Model &root)> & resource_getter)

◆ setModelSetter()

void setModelSetter ( const std::function< bool(const String &, const Model &model)> & resource_setter)

◆ setStationSettingsToDefaults()

void setStationSettingsToDefaults ( )

◆ setUserSettingsToDefaults()

void setUserSettingsToDefaults ( )

Member Data Documentation

◆ activation_email

Resource<String> activation_email

◆ calibration_back_point_label

Resource<TranslatedString> calibration_back_point_label

◆ calibration_front_point_label

Resource<TranslatedString> calibration_front_point_label

◆ company_name

Resource<String> company_name

◆ debug_mode

Resource<bool> debug_mode

◆ default_camera_locations

Buffer<SnapLocation> default_camera_locations

◆ m_model_getter

std::function<bool(const String&, Model& root)> m_model_getter
protected

◆ m_model_setter

std::function<bool(const String&, const Model& model)> m_model_setter
protected

◆ maintenance_mode

Resource<bool> maintenance_mode

◆ ndevr_website

Resource<String> ndevr_website

◆ pattern_hole_name_format

Resource<TranslatedString> pattern_hole_name_format

◆ row_auto_name_format

Resource<TranslatedString> row_auto_name_format

◆ user_title


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