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 /**--------------------------------------------------------------------------------------------------
47 \brief A widget allowing the user to set the properties for a single channel of UVType for a Material.
48 **/
49 class UVChannelEditWidget : public QWidget
50 {
51 Q_OBJECT
52
53 enum LayerDrawModes
54 {
55 e_two_color_value_split
56 , e_two_color_range
57 , e_three_color_two_value
58 , e_three_color_three_value
59 };
60 public:
61 UVChannelEditWidget(const DynamicPointer<QTDesignObject>& material, UVType uv_type, QWidget* parent = nullptr);
63
65 public slots:
70
73
75
76 void onDelete();
77 void useChannel(bool use_channel);
78
80 protected:
81 Ui::LightingValueUI* ui;
86 LayerDrawModes m_layer_draw_mode;
88 bool m_is_updating = false;
89 };
90}
Dialog for showing an AerialImage or top down view rendered with a service like google earth with use...
Definition AerialImageSettings.h:52
Allows the user to select a method to color a particular channel.
Definition ColorChannelCombo.h:42
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
Definition FileChooserDialog.h:79
Container responsible for storing and setting the appearance of a Model or Geometry within the NDEVR ...
Definition Material.h:51
A widget allowing the user to set the properties for a single channel of UVType for a Material.
Definition UVChannelEditWidget.h:50
DynamicPointer< QTDesignObject > m_target
Definition UVChannelEditWidget.h:82
bool m_is_updating
Definition UVChannelEditWidget.h:88
ColorChannelCombo * m_channel_combo
Definition UVChannelEditWidget.h:85
LayerDrawModes m_layer_draw_mode
Definition UVChannelEditWidget.h:86
Material material() const
UVType m_uv_channel
Definition UVChannelEditWidget.h:87
Ui::LightingValueUI * ui
Definition UVChannelEditWidget.h:81
AerialImageSettings * m_aerial_settings
Definition UVChannelEditWidget.h:84
void useChannel(bool use_channel)
FileChooserDialog * m_image_dialog
Definition UVChannelEditWidget.h:83
UVChannelEditWidget(const DynamicPointer< QTDesignObject > &material, UVType uv_type, QWidget *parent=nullptr)
Definition ACIColor.h:37
UVType
Channels that describe how an object should interact with light.
Definition DesignObjectBase.h:133
Definition FontEditor.h:6