3#include <NDEVR/ViewportLayout.h>
4#include <NDEVR/ApplicationOptions.h>
5#include <NDEVR/TranslatedString.h>
6#include <NDEVR/RGBColor.h>
The default object to store data of any type that should persist through sessions of the application.
Logic for reading or writing to a string or a user friendly, TranslatedString.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.
Stores the options, added to the user settings, that control Viewport and camera options in the appli...
static ApplicationOption< bool > default_show_heading_ruler_physical
Whether or not to show heading marks on a physical camera view by default, when possible.
static ApplicationOption< ViewportLayoutTheme > viewport_layout_theme
The layout theme controlling how multiple viewports are arranged.
static ApplicationOption< bool > use_vulkan_fallback
Whether to use a Vulkan fallback renderer when the primary renderer is unavailable.
static ApplicationOption< bool > default_show_inclination_ruler_physical
Whether or not to show inclination marks on a physical camera view by default.
static ApplicationOption< fltp04 > scale_to_camera_reference_distance
Scale factor relative to camera reference distance. Purpose unclear – may control line/text scaling r...
static ApplicationOption< fltp08 > default_orthographic_view_height
The default view height for orthographic cameras, in world units.
static ApplicationOption< fltp04 > pixel_thickness
The default scale to be applied to lines and text in virtual space.
static ApplicationOption< bool > default_show_heading_ruler_virtual
Whether or not to show heading marks on a virtual viewport (perspective mode) by default.
static ApplicationOption< Bounds< 1, fltp08 > > default_far_plane_bounds
The allowed bounds for the far clipping plane distance.
static ApplicationOption< bool > default_show_x_spacing_ruler_virtual
Whether or not to show horizontal spacing marks on a virtual viewport (orthographic mode) by default.
static ApplicationOption< uint04 > default_multisample
The default number of multisample passes used to smooth edges of 3D renders.
static ApplicationOption< TimeSpan > focus_viewport_animation_time
Duration of the animation when focusing the viewport on an object.
static ApplicationOption< fltp08 > default_render_engine_fps
The default speed at which to draw 3D scenes.
static ApplicationOption< Angle< fltp08 > > default_perspective_view_height
The default vertical field-of-view angle for perspective cameras.
static void ResetOptionsToDefaults()
Resets all ViewportOptions to their factory default values.
static ApplicationOption< bool > debug_graphics
Whether to enable graphics debugging output and validation layers.
static ApplicationOption< UUID > default_render_engine
The UUID of the default rendering engine to use.
static ApplicationOption< Angle< fltp08 > > default_perspective_view_width
The default horizontal field-of-view angle for perspective cameras.
static ApplicationOption< uint04 > default_viewport_fps
The frames per second of a viewport. Increasing this will improve smoothness but raise rendering load...
ViewportBackgroundMode
Defines the background rendering mode for a viewport.
@ e_4_color
Four-color gradient background (one per corner).
@ e_skybox
Skybox cubemap background.
@ e_2_color
Two-color vertical gradient background.
@ e_1_color
Single solid background color.
static ApplicationOption< bool > default_multithreaded_render
Whether or not to execute rendering operations on a thread other than the main thread.
static ApplicationOption< bool > default_show_y_spacing_ruler_virtual
Whether or not to show vertical spacing marks on a virtual viewport (orthographic mode) by default.
static ApplicationOption< RGBColor > camera_background
The default camera background color for virtual views (applies for background mode 1 and 2 colors).
static ApplicationOption< fltp08 > default_orthographic_view_width
The default view width for orthographic cameras, in world units.
static ApplicationOption< bool > default_show_inclination_ruler_virtual
Whether or not to show inclination marks on a virtual viewport (perspective mode) by default.
static ApplicationOption< Bounds< 1, fltp08 > > default_near_plane_bounds
The allowed bounds for the near clipping plane distance.
static TranslatedString options_label
The category label in user settings under which all viewport options appear.