API Documentation
Loading...
Searching...
No Matches
UVChannelEditWidget.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: UVChannelEditWidget
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/QTModelManager.h>
34#include <NDEVR/QTDesignObject.h>
35#include <NDEVR/Material.h>
36#include <QWidget>
37namespace Ui
38{
39 class LightingValueUI;
40}
41namespace NDEVR
42{
43 class AerialImageSettings;
44 class ColorChannelCombo;
45 class FileChooserDialog;
46 class UVChannelEditWidget : public QWidget
47 {
48 Q_OBJECT
49
50 enum LayerDrawModes
51 {
52 e_two_color_value_split
53 , e_two_color_range
54 , e_three_color_two_value
55 , e_three_color_three_value
56 };
57 public:
58 UVChannelEditWidget(const DynamicPointer<QTDesignObject>& material, UVType uv_type, QWidget* parent = nullptr);
60
61 void setupChannelDialog();
62 public slots:
63 void showImageDialog();
65 void showDataDialog();
67
68 void clearTexture();
69 void updateIntensity();
70
71 void refreshWidget();
72
73 void onDelete();
74 void useChannel(bool use_channel);
75
76 Material material() const;
77 protected:
78 Ui::LightingValueUI* ui;
83 LayerDrawModes m_layer_draw_mode;
85 bool m_is_updating = false;
86 };
87}
Dialog for showing an AerialImage or top down view rendered with a service like google earth.
Definition AerialImageSettings.h:52
Definition ColorChannelCombo.h:39
Definition Pointer.hpp:303
Definition FileChooserDialog.h:68
Definition Material.h:45
Definition UVChannelEditWidget.h:47
void showImageDialog()
Definition UVChannelEditWidget.cpp:124
void showDataDialog()
Definition UVChannelEditWidget.cpp:146
DynamicPointer< QTDesignObject > m_target
Definition UVChannelEditWidget.h:79
bool m_is_updating
Definition UVChannelEditWidget.h:85
void showVectorColorDialog()
Definition UVChannelEditWidget.cpp:151
ColorChannelCombo * m_channel_combo
Definition UVChannelEditWidget.h:82
void updateIntensity()
Definition UVChannelEditWidget.cpp:169
LayerDrawModes m_layer_draw_mode
Definition UVChannelEditWidget.h:83
Material material() const
Definition UVChannelEditWidget.cpp:238
~UVChannelEditWidget()
Definition UVChannelEditWidget.cpp:96
UVType m_uv_channel
Definition UVChannelEditWidget.h:84
void clearTexture()
Definition UVChannelEditWidget.cpp:165
Ui::LightingValueUI * ui
Definition UVChannelEditWidget.h:78
void setupChannelDialog()
Definition UVChannelEditWidget.cpp:155
void onDelete()
Definition UVChannelEditWidget.cpp:174
AerialImageSettings * m_aerial_settings
Definition UVChannelEditWidget.h:81
void useChannel(bool use_channel)
Definition UVChannelEditWidget.cpp:67
FileChooserDialog * m_image_dialog
Definition UVChannelEditWidget.h:80
void showAerialImageDialog()
Definition UVChannelEditWidget.cpp:102
void refreshWidget()
Definition UVChannelEditWidget.cpp:178
UVChannelEditWidget(const DynamicPointer< QTDesignObject > &material, UVType uv_type, QWidget *parent=nullptr)
Definition UVChannelEditWidget.cpp:14
Definition ACIColor.h:37
UVType
Definition DesignObjectBase.h:127
Definition FontEditor.h:6