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 };
#define slots
Scale / multiply dialog.
Definition: ecvScaleDlg.h:19
void saveState()
Saves state.
Definition: ecvScaleDlg.cpp:37
bool keepInPlace() const
Whether the entity should be 'kept in place' or not.
Definition: ecvScaleDlg.cpp:56
ccScaleDlg(QWidget *parent=0)
Default constructor.
Definition: ecvScaleDlg.cpp:16
void fxUpdated(double)
Definition: ecvScaleDlg.cpp:44
bool rescaleGlobalShift() const
Whether the Global shift should be rescaled as well.
Definition: ecvScaleDlg.cpp:60
CCVector3d getScales() const
Returns scales.
Definition: ecvScaleDlg.cpp:51
void allDimsAtOnceToggled(bool)
Definition: ecvScaleDlg.cpp:64