ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvTextureFileSelector.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 <QFrame>
9 
10 class QComboBox;
11 class QToolButton;
12 
14 
16 class ecvTextureFileSelector : public QFrame {
17  Q_OBJECT
18 
19 public:
21  ecvTextureFileSelector(QWidget* parent,
22  QString defaultButtonIconPath = QString());
23 
25  void init(const QMap<QString, QString>& texturePathMap);
26 
27  bool isEmpty() const;
28 
29  void addItem(const QString& textureFilename,
30  const QString& textureFilepath);
31 
33  void setSelectedTexturefile(QString textureFilepath);
34 
35  QString getTexturefilePath(int index) const;
36 
37 signals:
38 
40  void textureFileSelected(int);
41 
45 
46 protected:
48  QComboBox* m_comboBox;
49 
51  QToolButton* m_button;
52 };
ecvTextureFileSelector::m_comboBox
QComboBox * m_comboBox
Color scales combo-box.
Definition: ecvTextureFileSelector.h:48
ecvTextureFileSelector::addItem
void addItem(const QString &textureFilename, const QString &textureFilepath)
Definition: ecvTextureFileSelector.cpp:63
cloudViewer::core::Maximum
Tensor Maximum(const Tensor &input, const Tensor &other)
Computes the element-wise maximum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:124
signals
#define signals
Definition: PythonPlugin.cpp:26
ecvTextureFileSelector::m_button
QToolButton * m_button
Spawn color scale editor button.
Definition: ecvTextureFileSelector.h:51
ecvTextureFileSelector.h
ecvTextureFileSelector::getTexturefilePath
QString getTexturefilePath(int index) const
Definition: ecvTextureFileSelector.cpp:70
cloudViewer::t::geometry::path
static const std::string path
Definition: PointCloud.cpp:59
ecvTextureFileSelector
Advanced editor for color scales.
Definition: ecvTextureFileSelector.h:16
ecvTextureFileSelector::ecvTextureFileSelector
ecvTextureFileSelector(QWidget *parent, QString defaultButtonIconPath=QString())
Default constructor.
Definition: ecvTextureFileSelector.cpp:15
ecvTextureFileSelector::textureFileEditorSummoned
void textureFileEditorSummoned()
ecvTextureFileSelector::init
void init(const QMap< QString, QString > &texturePathMap)
Inits selector with the Empty texture file path.
Definition: ecvTextureFileSelector.cpp:38
ecvTextureFileSelector::setSelectedTexturefile
void setSelectedTexturefile(QString textureFilepath)
Sets selected combo box item (scale) by UUID.
Definition: ecvTextureFileSelector.cpp:78
ecvTextureFileSelector::textureFileSelected
void textureFileSelected(int)
Signal emitted when a texture file item is selected.
ecvTextureFileSelector::isEmpty
bool isEmpty() const
Definition: ecvTextureFileSelector.cpp:34