ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvColorLevelsDlg.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_colorLevelsDlg.h>
12 
13 #include <QColor>
14 
15 class ccHistogramWindow;
17 
19 class ccColorLevelsDlg : public QDialog, public Ui::ColorLevelsDialog {
20  Q_OBJECT
21 
22 public:
24  ccColorLevelsDlg(QWidget* parent, ccGenericPointCloud* pointCloud);
25 
26 protected slots:
27 
28  void onChannelChanged(int);
29  void onApply();
30 
31 protected:
33  enum CHANNELS { RGB = 0, RED = 1, GREEN = 2, BLUE = 3 };
34 
36  void updateHistogram();
37 
40 
43 };
#define slots
Dialog to change the color levels.
ccHistogramWindow * m_histogram
Associated histogram view.
ccColorLevelsDlg(QWidget *parent, ccGenericPointCloud *pointCloud)
Default constructor.
void updateHistogram()
Updates histogram.
ccGenericPointCloud * m_cloud
Associated point cloud (color source)
A 3D cloud interface with associated features (color, normals, octree, etc.)
Histogram widget.