API Documentation
Loading...
Searching...
No Matches
ViewportLayout.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/ViewportLayoutTheme.h>
4#include <NDEVR/CameraAnimation.h>
5#include <NDEVR/TranslatedString.h>
6#include <NDEVR/AutoZoomFocus.h>
7namespace NDEVR
8{
9 /**--------------------------------------------------------------------------------------------------
10 \brief Stores information for how to construct a viewport
11 **/
13 {
14 public:
16 explicit ViewportFormat(bool is_user_camera);
18 UUID camera_id = Constant<UUID>::Invalid;//Invalid if any camera
24 bool is_user_camera = true;
25 bool is_ortho = false;
26 bool use_reference_size = true;
27 public:
28 bool operator==(const ViewportFormat& layout) const;
29 bool operator!=(const ViewportFormat& layout) const;
30 };
31 /**--------------------------------------------------------------------------------------------------
32 \brief Stores information for how to construct a group of viewports such as those in the center
33 3D panel.
34 **/
52}
#define NDEVR_DESIGN_API
Definition DLLInfo.h:55
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Stores a time span, or difference between two times, with an optional start time.
Definition TimeSpan.h:46
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
Stores information for how to construct a viewport.
Definition ViewportLayout.h:13
bool operator!=(const ViewportFormat &layout) const
bool operator==(const ViewportFormat &layout) const
ViewportFormat(bool is_user_camera)
Buffer< CameraAnimation > viewport_animations
Definition ViewportLayout.h:20
TranslatedString name
Definition ViewportLayout.h:23
AutoZoomFocus focus
Definition ViewportLayout.h:19
Stores information for how to construct a group of viewports such as those in the center 3D panel.
Definition ViewportLayout.h:36
void createDefaultOrthoAnimations(const TimeSpan &span)
UUID id
Definition ViewportLayout.h:50
ViewportLayout(ViewportLayoutTheme new_theme)
void setViewportTheme(ViewportLayoutTheme new_theme)
uint04 themeCameraCount() const
Buffer< ViewportFormat > floating_cameras
Definition ViewportLayout.h:47
ViewportLayoutTheme theme
Definition ViewportLayout.h:49
bool operator!=(const ViewportLayout &layout) const
bool operator==(const ViewportLayout &layout) const
Buffer< ViewportFormat > hidden_cameras
Definition ViewportLayout.h:48
Buffer< ViewportFormat > cameras
Definition ViewportLayout.h:46
Definition ACIColor.h:37
ViewportLayoutTheme
The potential layouts of multiple viewports within the NDEVR engine.
Definition ViewLocation.h:77
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Logic for automatically zooming a Camera or Viewport to a certain location or having certain objects ...
Definition ViewportAutoZoomFocus.h:14
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233