ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvColorGradientDlg.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 // Qt
11 #include <ui_colorGradientDlg.h>
12 
13 #include <QColor>
14 
16 class ccColorGradientDlg : public QDialog, public Ui::ColorGradientDialog {
17  Q_OBJECT
18 
19 public:
21  explicit ccColorGradientDlg(QWidget* parent);
22 
25 
27  GradientType getType() const;
30 
32  void getColors(QColor& first, QColor& second) const;
33 
35  double getBandingFrequency() const;
36 
38  unsigned char getDimension() const;
39 
40 protected slots:
41 
42  void changeFirstColor();
43  void changeSecondColor();
44 };
char type
#define slots
Dialog to define a color gradient (default, with 2 colors, banding, etc.)
double getBandingFrequency() const
Returns the frequency of the gradient ('Banding' mode)
GradientType
Gradient types.
void getColors(QColor &first, QColor &second) const
Returns the two colors of the gradient ('TwoColors' mode)
ccColorGradientDlg(QWidget *parent)
Default constructor.
unsigned char getDimension() const
Returns the ramp dimension.
void setType(GradientType type)
Sets the currently activated type.
GradientType getType() const
Returns selected gradient type.