ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvPrimitiveFactoryDlg.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "ui_primitiveFactoryDlg.h"
11 
12 // Qt
13 #include <QDialog>
14 
15 class MainWindow;
16 class ccGLMatrix;
17 
19 class ecvPrimitiveFactoryDlg : public QDialog, public Ui::PrimitiveFactoryDlg {
20  Q_OBJECT
21 
22 public:
24  explicit ecvPrimitiveFactoryDlg(MainWindow* win);
25 
26 protected slots:
27 
29  void createPrimitive();
30 
31 protected:
34 
37 
39 
40  void onMatrixTextChange();
41 
42  void setCSMatrixToIdentity();
43 
44  ccGLMatrix getCSMatrix(bool& valid);
45 
46 protected:
49 };
#define slots
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
ccGLMatrix getCSMatrix(bool &valid)
ecvPrimitiveFactoryDlg(MainWindow *win)
Default constructor.
void setSpherePositionToOrigin()
Set sphere position to origin.
void setSpherePositionFromClipboard()
Set sphere position from clipboard.
void createPrimitive()
Creates currently defined primitive.
MainWindow * m_win
Associated main window.