API Documentation
Loading...
Searching...
No Matches
ViewportOptions.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/ViewportLayout.h>
4#include <NDEVR/ApplicationOptions.h>
5#include <NDEVR/TranslatedString.h>
6#include <NDEVR/RGBColor.h>
7namespace NDEVR
8{
9 /**--------------------------------------------------------------------------------------------------
10 \brief Stores the options, added to the user settings, that control Viewport and camera options in the
11 application. All options retained across application restart
12
13 Author: Tyler Parke
14
15 Date: 2023-01-16
16 **/
18 {
20 {
21 e_1_color
22 , e_2_color
23 , e_4_color
24 , e_skybox
25 };
26 //The frames per second of a viewport. Increasing this will improve smoothness but raise rendering load
28 //The default scale to be applied to lines and text in virtual space
30 //The default camera background color for virtual views (applies for background mode 1 and 2 colors)
32 //The default speed at which to draw 3D scenes
34 //The default number of multisample passes used to smooth edges of 3D renders
36 //Whether or not to execute rendering operations on a thread other than main thread
38 //Whether or not to, by default, show the Heading marks on a virtual viewport (perspective mode)
40 //Whether or not to, by default, when possible, show the Heading marks on a physical camera view
42 //Whether or not to, by default, show the spacing marks on a virtual viewport (orthographic mode)
44 //Whether or not to, by default, show the Inclination marks on a virtual viewport (perspective mode)
46 //Whether or not to, by default, show the inclanation marks on a physical ccamera view
48 //Whether or not to, by default, show the spacing marks on a virtual viewport (orthographic mode)
50 //Resets all Viewport Options to defaults
52
54
57
63 //The category in user settings for all of the above options
65 };
67}
#define NDEVR_DESIGN_API
Definition DLLInfo.h:55
The default object to store data of any type that should persist through sessions of the application.
Definition Button.h:57
Logic for reading or writing to a string or a user friendly, TranslatedString.
Definition StringStream.h:230
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
Definition ACIColor.h:37
Stores the options, added to the user settings, that control Viewport and camera options in the appli...
Definition ViewportOptions.h:18
static ApplicationOption< bool > default_show_heading_ruler_virtual
Definition ViewportOptions.h:39
static ApplicationOption< uint04 > default_viewport_fps
Definition ViewportOptions.h:27
static ApplicationOption< Angle< fltp08 > > default_perspective_view_height
Definition ViewportOptions.h:58
ViewportBackgroundMode
Definition ViewportOptions.h:20
static ApplicationOption< ViewportLayoutTheme > viewport_layout_theme
Definition ViewportOptions.h:53
static ApplicationOption< bool > default_show_inclination_ruler_virtual
Definition ViewportOptions.h:45
static ApplicationOption< fltp04 > pixel_thickness
Definition ViewportOptions.h:29
static ApplicationOption< fltp08 > default_render_engine_fps
Definition ViewportOptions.h:33
static ApplicationOption< RGBColor > camera_background
Definition ViewportOptions.h:31
static ApplicationOption< bool > use_vulkan_fallback
Definition ViewportOptions.h:55
static ApplicationOption< fltp08 > default_orthographic_view_height
Definition ViewportOptions.h:60
static void ResetOptionsToDefaults()
static ApplicationOption< fltp04 > scale_to_camera_reference_distance
Definition ViewportOptions.h:51
static ApplicationOption< bool > default_show_inclination_ruler_physical
Definition ViewportOptions.h:47
static ApplicationOption< bool > default_show_x_spacing_ruler_virtual
Definition ViewportOptions.h:43
static ApplicationOption< Angle< fltp08 > > default_perspective_view_width
Definition ViewportOptions.h:59
static ApplicationOption< bool > use_vulkan_debug_layers
Definition ViewportOptions.h:56
static ApplicationOption< uint04 > default_multisample
Definition ViewportOptions.h:35
static TranslatedString options_label
Definition ViewportOptions.h:64
static ApplicationOption< fltp08 > default_orthographic_view_width
Definition ViewportOptions.h:61
static ApplicationOption< bool > default_show_y_spacing_ruler_virtual
Definition ViewportOptions.h:49
static ApplicationOption< bool > default_multithreaded_render
Definition ViewportOptions.h:37
static ApplicationOption< bool > default_show_heading_ruler_physical
Definition ViewportOptions.h:41