API Documentation
Loading...
Searching...
No Matches
SolidMaterialEditor.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: SolidMaterialEditor
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/Editor.h>
34#include <QWidget>
35namespace Ui
36{
37 class SolidMaterialEditorUI;
38}
39namespace NDEVR
40{
41 class UVChannelEditWidget;
43 {
44 Q_OBJECT
45 public:
46 SolidMaterialEditor(const DynamicPointer<QTDesignObject>& object, QWidget *parent = Q_NULLPTR);
48 virtual void requestScrollEnabled(bool enabled) override;
49 void setHorizontal(bool horizontal) override;
50 virtual bool fullscreenTouch() const override
51 {
52 return true;
53 }
54 protected:
55 virtual void updateValues() override;
56 void updateUVLayout();
58 private slots:
59 void setMaterialCoordinateMode();
60 void updateShadingModel();
61 void copySettingsFrom();
62
63 void updateShininessFromLineEdit();
64 void updateShininessFromSlider();
65 void updateTransparencyFromLineEdit();
66 void updateTransparencyFromSlider();
67
68 protected:
70 Ui::SolidMaterialEditorUI* ui;
71 bool m_updating = false;
72 };
73
74}
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Pointer.hpp:303
Definition Editor.h:45
Definition Material.h:45
Definition SolidMaterialEditor.h:43
SolidMaterialEditor(const DynamicPointer< QTDesignObject > &object, QWidget *parent=Q_NULLPTR)
Definition SolidMaterialEditor.cpp:11
virtual void updateValues() override
Definition SolidMaterialEditor.cpp:110
virtual bool fullscreenTouch() const override
Definition SolidMaterialEditor.h:50
void setHorizontal(bool horizontal) override
Definition SolidMaterialEditor.cpp:251
Ui::SolidMaterialEditorUI * ui
Definition SolidMaterialEditor.h:70
~SolidMaterialEditor()
Definition SolidMaterialEditor.cpp:102
virtual void requestScrollEnabled(bool enabled) override
Definition SolidMaterialEditor.cpp:106
Buffer< UVChannelEditWidget * > m_lighting_widgets
Definition SolidMaterialEditor.h:69
void updateUVLayout()
Definition SolidMaterialEditor.cpp:153
Material material()
Definition SolidMaterialEditor.cpp:236
bool m_updating
Definition SolidMaterialEditor.h:71
Definition ACIColor.h:37
Definition FontEditor.h:6