ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvScaleDlg.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 // CC_Lib
11 #include <CVGeom.h>
12 
13 // Qt
14 #include <ui_scaleDlg.h>
15 
16 #include <QDialog>
17 
19 class ccScaleDlg : public QDialog, public Ui::ScaleDialog {
20  Q_OBJECT
21 
22 public:
24  explicit ccScaleDlg(QWidget* parent = 0);
25 
27  CCVector3d getScales() const;
28 
30  bool keepInPlace() const;
31 
33  bool rescaleGlobalShift() const;
34 
36  void saveState();
37 
38 protected slots:
39 
40  void allDimsAtOnceToggled(bool);
41  void fxUpdated(double);
42 
43 protected:
44 };
ccScaleDlg::fxUpdated
void fxUpdated(double)
Definition: ecvScaleDlg.cpp:44
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
s_keepInPlace
static bool s_keepInPlace
Definition: ecvScaleDlg.cpp:13
ccScaleDlg::keepInPlace
bool keepInPlace() const
Whether the entity should be 'kept in place' or not.
Definition: ecvScaleDlg.cpp:56
ccScaleDlg
Scale / multiply dialog.
Definition: ecvScaleDlg.h:19
ccScaleDlg::ccScaleDlg
ccScaleDlg(QWidget *parent=0)
Default constructor.
Definition: ecvScaleDlg.cpp:16
s_lastScales
static CCVector3d s_lastScales(1.0, 1.0, 1.0)
ccScaleDlg::allDimsAtOnceToggled
void allDimsAtOnceToggled(bool)
Definition: ecvScaleDlg.cpp:64
CCVector3d
Vector3Tpl< double > CCVector3d
Double 3D Vector.
Definition: CVGeom.h:804
ccScaleDlg::saveState
void saveState()
Saves state.
Definition: ecvScaleDlg.cpp:37
s_rescaleGlobalShift
static bool s_rescaleGlobalShift
Definition: ecvScaleDlg.cpp:14
slots
#define slots
Definition: PythonPlugin.cpp:25
Vector3Tpl< double >
Ui
Definition: sfEditDlg.h:16
ecvScaleDlg.h
CVGeom.h
ccScaleDlg::getScales
CCVector3d getScales() const
Returns scales.
Definition: ecvScaleDlg.cpp:51
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
s_allAtOnce
static bool s_allAtOnce
Definition: ecvScaleDlg.cpp:12
ccScaleDlg::rescaleGlobalShift
bool rescaleGlobalShift() const
Whether the Global shift should be rescaled as well.
Definition: ecvScaleDlg.cpp:60