VAPOR3 3.9.4
PCameraControlsSection.h
Go to the documentation of this file.
1#pragma once
2
3
4// =====================================
5// PTrackballWidget
6// =====================================
7
8
9#include "PWidget.h"
10#include "PGroup.h"
12
13class VGroup;
14class V3DInput;
15
16class PTrackballWidget : public PWidget {
17 ControlExec *_ce;
18 VGroup * _group;
19 V3DInput * _direction;
20 V3DInput * _up;
21 V3DInput * _position;
22 V3DInput * _origin;
23
24public:
26
27protected:
28 void updateGUI() const override;
30};
31
32
33// =====================================
34// PCameraProjectionWidget
35// =====================================
36
37
38class VComboBox;
39
41 ControlExec * _ce;
42 VComboBox * _dropdown;
43 static const string Perspective;
44 static const string MapOrthographic;
45
46public:
48
49protected:
50 void updateGUI() const override;
51 void dropdownChanged(string s);
52};
53
54
55class PCameraFileGroup : public PGroup {
56 ControlExec* _ce;
57
58public:
60 void SetAllCameras(std::string& path);
61
62protected:
63 void updateGUI() const override;
64};
65
66// =====================================
67// PCameraControlsSection
68// =====================================
69
70
71#include "PSection.h"
73public:
74 // clang-format off
76 :
77 PSection("Camera Controls", {
78 new PTrackballWidget(ce),
80 new PCameraFileGroup(ce)
81 }) {}
82 // clang-format on
83};
PCameraControlsSection(ControlExec *ce)
void updateGUI() const override
PCameraFileGroup(ControlExec *ce)
void SetAllCameras(std::string &path)
PCameraProjectionWidget(ControlExec *ce)
void updateGUI() const override
void dropdownChanged(string s)
Definition: PGroup.h:14
void updateGUI() const override
PTrackballWidget(ControlExec *ce)
Widget that allows the user to specify a 3D point.
Definition: V3DInput.h:12
Provides API for VAPOR visualizer User Interfaces (UIs)
Definition: VGroup.h:11