API Documentation
Loading...
Searching...
No Matches
MatrixEditor.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: Widgets
28File: MatrixEditor
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#include <NDEVR/OrientationEditor.h>
35#include <NDEVR/Resource.h>
36#include <NDEVR/Matrix.h>
37namespace Ui { class MatrixEditorUI; }
38namespace NDEVR
39{
40 /**--------------------------------------------------------------------------------------------------
41 \brief A simple widget that shows a modifiable 4x4 matrix and corresponding widgets for editting
42 a 4x4 matrix.
43 **/
44 class NDEVR_WIDGETS_API MatrixEditor : public QWidget
45 {
46 Q_OBJECT
47 public:
48 MatrixEditor(QWidget *parent = nullptr);
51 bool hasParent();
53 void setEditable(bool editable);
55 public:
57 signals:
58 void edited();
59 protected slots:
62 private:
63 Matrix<fltp08, 4, 4> m_parent_matrix;
64 Ui::MatrixEditorUI* ui;
65 OrientationEditor* m_orientation_editor;
66 };
67}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:59
A simple widget that shows a modifiable 4x4 matrix and corresponding widgets for editting a 4x4 matri...
Definition MatrixEditor.h:45
OrientationEditor * orientationWidget()
Resource< Matrix< fltp08, 4, 4 > > matrix
Definition MatrixEditor.h:56
MatrixEditor(QWidget *parent=nullptr)
void setParentMatrix(const Matrix< fltp08, 4, 4 > &matrix)
void setEditable(bool editable)
Definition Matrix.hpp:176
A dialog where the user can set a 3D orientation of an object.
Definition OrientationEditor.h:54
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Toggle.h:41
Definition ACIColor.h:37
Definition FontEditor.h:6