NDEVR
API Documentation
AerialImageSettings.h
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: AerialImageSettings
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/String.h>
34#include <NDEVR/UUID.h>
35#include <QWidget>
36namespace Ui
37{
38 class AerialImageSettingsUI;
39}
40namespace NDEVR
41{
42 enum class AerialImageMode;
43 class QTModelManager;
44
51 class AerialImageSettings : public QWidget
52 {
53 Q_OBJECT
54 public:
60 AerialImageSettings(QTModelManager* manager, QWidget* parent = nullptr);
70 virtual QSize sizeHint() const override;
95 String image() const;
96 protected:
101 signals:
105 void accepted();
109 void canceled();
110 protected:
111 Ui::AerialImageSettingsUI* ui;
114 };
115}
void updatePreview()
Refreshes the aerial image preview based on the current settings.
void accepted()
Emitted when the user accepts the current aerial image settings.
Ui::AerialImageSettingsUI * ui
The auto-generated UI form for the settings layout.
AerialImageSettings(QTModelManager *manager, QWidget *parent=nullptr)
Constructs the AerialImageSettings widget.
Matrix< fltp08 > imageTransformation() const
Returns the transformation matrix mapping the aerial image to world coordinates.
AerialImageMode aerialImageMode() const
Returns the currently selected aerial image mode (e.g., satellite, hybrid, terrain).
void setBounds(const Bounds< 3, fltp08 > &bounds)
Sets the geographic bounds used to fetch the aerial image.
UUID m_coordinate_space
The coordinate space used for geographic transforms.
void canceled()
Emitted when the user cancels the aerial image settings dialog.
virtual QSize sizeHint() const override
Returns the recommended size for this widget.
String image() const
Returns the file path or URL of the fetched aerial image.
String aerialImageID() const
Returns the identifier of the currently selected aerial image service.
Bounds< 3, fltp08 > bounds() const
Returns the geographic bounds used to fetch the aerial image.
QTModelManager * m_manager
The model manager providing scene access.
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:54
Templated logic for doing matrix multiplication.
Definition Matrix.hpp:182
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
The core String class for the NDEVR API.
Definition String.h:95
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:61
The primary namespace for the NDEVR SDK.
AerialImageMode
enum specifying what type of image to fetch.