API Documentation
Loading...
Searching...
No Matches
MaterialWidget.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: MaterialWidget
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/PropertiesButton.h>
34#include <NDEVR/ColorChannelCombo.h>
35#include <NDEVR/QTDesignObject.h>
36#include <NDEVR/ColorChooserButton.h>
37#include <NDEVR/ColorChooserButton.h>
38#include <NDEVR/QCustomCombobox.h>
39#include <NDEVR/Material.h>
40#include <QWidget>
41namespace NDEVR
42{
43 class NDEVR_API MaterialWidget : public QWidget
44 {
45 Q_OBJECT
46 public:
47 MaterialWidget(QWidget* parent = nullptr);
48 MaterialWidget(const DynamicPointer<QTDesignObject>& material, QWidget* parent = nullptr);
49 void setTarget(const DynamicPointer<QTDesignObject>& target);
50 signals:
54 protected:
55 void setup();
56 void updateFromMaterial(const Model& model, const Material& mat);
57 void updateFromColor();
58 private slots:
59 void updateFromTargetSlot();
60
61 protected:
68 };
69}
#define NDEVR_API
Definition DLLInfo.h:67
Definition ColorChannelCombo.h:39
Definition ColorChooserButton.h:42
Definition Pointer.hpp:303
Definition Material.h:45
Definition MaterialWidget.h:44
DynamicPointer< QTDesignObject > m_target
Definition MaterialWidget.h:63
PropertiesButton * m_properties_button
Definition MaterialWidget.h:66
void computedColorChosenSignal()
ColorChooserButton * m_color_chooser_button
Definition MaterialWidget.h:65
QCustomComboBox * m_color_combo
Definition MaterialWidget.h:62
TimeSpan m_animation_time
Definition MaterialWidget.h:67
ColorChannelCombo * m_color_channel_combo
Definition MaterialWidget.h:64
Definition Model.h:54
Definition PropertiesButton.h:38
Definition QCustomCombobox.h:47
Definition TimeSpan.h:40
Definition ACIColor.h:37