![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Advanced editor for color scales. More...
#include <ecvTextureFileSelector.h>


Signals | |
| void | textureFileSelected (int) |
| Signal emitted when a texture file item is selected. More... | |
| void | textureFileEditorSummoned () |
Public Member Functions | |
| ecvTextureFileSelector (QWidget *parent, QString defaultButtonIconPath=QString()) | |
| Default constructor. More... | |
| void | init (const QMap< QString, QString > &texturePathMap) |
| Inits selector with the Empty texture file path. More... | |
| bool | isEmpty () const |
| void | addItem (const QString &textureFilename, const QString &textureFilepath) |
| void | setSelectedTexturefile (QString textureFilepath) |
| Sets selected combo box item (scale) by UUID. More... | |
| QString | getTexturefilePath (int index) const |
Protected Attributes | |
| QComboBox * | m_comboBox |
| Color scales combo-box. More... | |
| QToolButton * | m_button |
| Spawn color scale editor button. More... | |
Advanced editor for color scales.
Combo-box + shortcut to color scale editor
Definition at line 16 of file ecvTextureFileSelector.h.
| ecvTextureFileSelector::ecvTextureFileSelector | ( | QWidget * | parent, |
| QString | defaultButtonIconPath = QString() |
||
| ) |
Default constructor.
Definition at line 15 of file ecvTextureFileSelector.cpp.
References m_button, m_comboBox, and cloudViewer::core::Maximum().
| void ecvTextureFileSelector::addItem | ( | const QString & | textureFilename, |
| const QString & | textureFilepath | ||
| ) |
Definition at line 63 of file ecvTextureFileSelector.cpp.
References m_comboBox.
Referenced by ccPropertiesTreeDelegate::setEditorData().
| QString ecvTextureFileSelector::getTexturefilePath | ( | int | index | ) | const |
Definition at line 70 of file ecvTextureFileSelector.cpp.
References m_comboBox.
| void ecvTextureFileSelector::init | ( | const QMap< QString, QString > & | texturePathMap | ) |
Inits selector with the Empty texture file path.
Definition at line 38 of file ecvTextureFileSelector.cpp.
References m_button, m_comboBox, cloudViewer::t::geometry::path, textureFileEditorSummoned(), and textureFileSelected().
Referenced by ccPropertiesTreeDelegate::createEditor(), and ccPropertiesTreeDelegate::setEditorData().
| bool ecvTextureFileSelector::isEmpty | ( | ) | const |
Definition at line 34 of file ecvTextureFileSelector.cpp.
References m_comboBox.
| void ecvTextureFileSelector::setSelectedTexturefile | ( | QString | textureFilepath | ) |
Sets selected combo box item (scale) by UUID.
Definition at line 78 of file ecvTextureFileSelector.cpp.
References m_comboBox, and textureFileSelected().
Referenced by ccPropertiesTreeDelegate::setEditorData().
|
signal |
Signal emitted when the user clicks on the 'Texture file loading editor' button
Referenced by ccPropertiesTreeDelegate::createEditor(), and init().
|
signal |
Signal emitted when a texture file item is selected.
Referenced by ccPropertiesTreeDelegate::createEditor(), init(), and setSelectedTexturefile().
|
protected |
Spawn color scale editor button.
Definition at line 51 of file ecvTextureFileSelector.h.
Referenced by ecvTextureFileSelector(), and init().
|
protected |
Color scales combo-box.
Definition at line 48 of file ecvTextureFileSelector.h.
Referenced by addItem(), ecvTextureFileSelector(), getTexturefilePath(), init(), isEmpty(), and setSelectedTexturefile().