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 class NDEVR_API CameraToolbar : public QWidget
54 {
55 Q_OBJECT
56 public:
57 CameraToolbar(QWidget *parent = Q_NULLPTR);
58 ~CameraToolbar();
59 void setManager(QTModelManager* manager);
60 void setCamera(const DynamicPointer<Camera>& camera);
61 void setTouchTheme(bool touch_theme);
62 void resizeEvent(QResizeEvent *resize_event) override;
63 void setSwapButton(bool show, const String& swap_button);
64 void addWidget(const QPointer<QWidget>& widget);
65 void addWidgetLeft(const QPointer<QWidget>& widget);
66 void removeWidget(const QPointer<QWidget>& widget);
67 void setIconSizeMultiplier(fltp04 size);
68 public slots:
69 void onColorComboChanged();
70 void updateSelection(const SelectionInfo& info);
71 signals:
72 void layerSelected();
73 void swapRequestSignal();
74 void linkSelected(bool selected);
75 private:
76 //QCustomDockWidget* m_lighting_editor;
77 QCustomDockWidget* m_mouse_editor;
78 QTResourceListener* m_selection_listener;
79 QTModelManager* m_model_manager;
80 DynamicPointer<Camera> m_camera;
81 Buffer<QPointer<QWidget>> m_left_widgets;
82 Ui::CameraToolbarUI* ui;
83 CameraLocationCombo* m_location_combo;
84 ColorChannelCombo* m_color_combo;
85 CameraActionCombo* m_action_combo;
86 bool m_has_location_widget;
87 bool m_touch_theme;
88 };
89}
90#endif
#define NDEVR_API
Definition DLLInfo.h:67
Definition ACIColor.h:37
Definition FontEditor.h:6