API Documentation
Loading...
Searching...
No Matches
CameraToolbar.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: NDEVR
28File: CameraToolbar
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#if NDEVR_VIEWPORT
35#include <NDEVR/Camera.h>
36#include <NDEVR/Pointer.h>
37#include <QWidget>
38#include <QPointer>
39namespace Ui
40{
41 class CameraToolbarUI;
42}
43namespace NDEVR
44{
45 class QTResourceListener;
46 class CameraLocationCombo;
47 class QCustomDockWidget;
48 class QTModelManager;
49 class ColorChannelCombo;
50 class CameraActionCombo;
51 class Button;
52 class Toolbar;
53 /**--------------------------------------------------------------------------------------------------
54 \brief Typically shown under a virtual camera view, allows the user to input various settings for
55 a camera or viewport.
56 **/
57 class NDEVR_API CameraToolbar : public QWidget
58 {
59 Q_OBJECT
60 public:
61 CameraToolbar(QWidget *parent = Q_NULLPTR);
62 ~CameraToolbar();
63 void setManager(QTModelManager* manager);
64 void setCamera(const DynamicPointer<Camera>& camera);
65 void setTouchTheme(bool touch_theme);
66 void resizeEvent(QResizeEvent *resize_event) override;
67 void setSwapButton(bool show, const String& swap_button);
68 void addWidget(const QPointer<QWidget>& widget);
69 void addWidgetLeft(const QPointer<QWidget>& widget);
70 void removeWidget(const QPointer<QWidget>& widget);
71 void setIconSizeMultiplier(fltp04 size);
72 public slots:
73 void onColorComboChanged();
74 void updateSelection(const SelectionInfo& info);
75 signals:
76 void layerSelected();
77 void swapRequestSignal();
78 void linkSelected(bool selected);
79 private:
80 //QCustomDockWidget* m_lighting_editor;
81 QCustomDockWidget* m_mouse_editor;
82 QTResourceListener* m_selection_listener;
83 QTModelManager* m_model_manager;
84 DynamicPointer<Camera> m_camera;
85 Buffer<QPointer<QWidget>> m_left_widgets;
86 Ui::CameraToolbarUI* ui;
87 CameraLocationCombo* m_location_combo;
88 ColorChannelCombo* m_color_combo;
89 CameraActionCombo* m_action_combo;
90 bool m_has_location_widget;
91 bool m_touch_theme;
92 };
93}
94#endif
#define NDEVR_API
Definition DLLInfo.h:50
Definition ACIColor.h:37
Definition FontEditor.h:6