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