API Documentation
Loading...
Searching...
No Matches
DesignSettings.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: Design
28File: DesignSettings
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#include <NDEVR/SnapLocation.h>
35#include <NDEVR/INIInterface.h>
36#include <NDEVR/Resource.h>
37#include <NDEVR/RGBColor.h>
38#include <NDEVR/TranslatedString.h>
39#include <NDEVR/Model.h>
40#include <functional>
41
42namespace NDEVR
43{
44 class Model;
45 class INIFactory;
47 {
48 public:
51
53
54 Resource<String> activation_email;//place to email to get the activation code
55 Resource<String> company_name;//software company
57
60
63
65
68
69 public:
70 NDEVR_DESIGN_API void getINI(INIFactory& factory) override;
71 NDEVR_DESIGN_API void setModelGetter(const std::function<bool(const String&, Model& root)>& resource_getter);
72 NDEVR_DESIGN_API void setModelSetter(const std::function<bool(const String&, const Model& model)>& resource_setter);
73 NDEVR_DESIGN_API bool getModel(const String& resource, Model& root) const;
74 NDEVR_DESIGN_API bool setModel(const String& resource, const Model& model) const;
78 protected:
79 std::function<bool(const String&, Model& root)> m_model_getter;
80 std::function<bool(const String&, const Model& model)> m_model_setter;
81 };
82}
83
84
85
86
#define NDEVR_DESIGN_API
Definition DLLInfo.h:77
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
Definition DesignSettings.h:47
std::function< bool(const String &, Model &root)> m_model_getter
Definition DesignSettings.h:79
Buffer< SnapLocation > default_camera_locations
Definition DesignSettings.h:64
Resource< TranslatedString > calibration_back_point_label
Definition DesignSettings.h:59
Resource< TranslatedString > calibration_front_point_label
Definition DesignSettings.h:58
NDEVR_DESIGN_API void setUserSettingsToDefaults()
NDEVR_DESIGN_API void setStationSettingsToDefaults()
NDEVR_DESIGN_API void getINI(INIFactory &factory) override
Resource< String > activation_email
Definition DesignSettings.h:54
Resource< String > company_name
Definition DesignSettings.h:55
static NDEVR_DESIGN_API DesignSettings & defaultSettings()
NDEVR_DESIGN_API bool setModel(const String &resource, const Model &model) const
NDEVR_DESIGN_API DesignSettings()
NDEVR_DESIGN_API void setGraphicsSettingsToDefaults()
std::function< bool(const String &, const Model &model)> m_model_setter
Definition DesignSettings.h:80
NDEVR_DESIGN_API bool getModel(const String &resource, Model &root) const
Resource< bool > debug_mode
Definition DesignSettings.h:66
Resource< TranslatedString > pattern_hole_name_format
Definition DesignSettings.h:62
Resource< TranslatedString > row_auto_name_format
Definition DesignSettings.h:61
NDEVR_DESIGN_API void setModelGetter(const std::function< bool(const String &, Model &root)> &resource_getter)
Resource< String > ndevr_website
Definition DesignSettings.h:56
Resource< TranslatedString > user_title
Definition DesignSettings.h:52
NDEVR_DESIGN_API void setModelSetter(const std::function< bool(const String &, const Model &model)> &resource_setter)
Resource< bool > maintenance_mode
Definition DesignSettings.h:67
Contains methods for easily reading and writing to an INI file including efficient casting,...
Definition INIReader.h:64
Contains methods for easily reading and writing to an INI file including.
Definition INIInterface.h:45
A core class that represents a node on model heirarchy. This node may contain a Geometry or.
Definition Model.h:58
A core part of the engine, stores variables that can be listened to with ResourceListener.
Definition Toggle.h:41
The core String class for the software.
Definition String.h:47
Definition ACIColor.h:37