ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvColorScaleSelector.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 #include "CVPluginAPI.h"
9 
10 // Qt
11 #include <QFrame>
12 
13 // CV_DB_LIB
14 #include <ecvColorScale.h>
15 
16 class QComboBox;
17 class QToolButton;
19 
21 
23 class CVPLUGIN_LIB_API ccColorScaleSelector : public QFrame {
24  Q_OBJECT
25 
26 public:
29  QWidget* parent,
30  QString defaultButtonIconPath = QString());
31 
33  void init();
34 
36  void setSelectedScale(QString uuid);
37 
39  ccColorScale::Shared getSelectedScale() const;
40 
42  ccColorScale::Shared getScale(int index) const;
43 
44 signals:
45 
47  void colorScaleSelected(int);
48 
52 
53 protected:
56 
58  QComboBox* m_comboBox;
59 
61  QToolButton* m_button;
62 };
#define CVPLUGIN_LIB_API
Definition: CVPluginAPI.h:15
#define signals
Advanced editor for color scales.
void colorScaleSelected(int)
Signal emitted when a color scale is selected.
ccColorScalesManager * m_manager
Color scales manager.
QComboBox * m_comboBox
Color scales combo-box.
void colorScaleEditorSummoned()
QToolButton * m_button
Spawn color scale editor button.
QSharedPointer< ccColorScale > Shared
Shared pointer type.
Definition: ecvColorScale.h:74
Color scales manager/container.