![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Color bar widget. More...
#include <ecvColorScaleEditorWidget.h>


Signals | |
| void | pointClicked (double relativePos) |
| Signal emitted when the mouse (left) button is clicked. More... | |
Public Member Functions | |
| ColorBarWidget (SharedColorScaleElementSliders sliders, QWidget *parent=nullptr, Qt::Orientation orientation=Qt::Horizontal) | |
| Default constructor. More... | |
Public Member Functions inherited from ColorScaleEditorBaseWidget | |
| ColorScaleEditorBaseWidget (SharedColorScaleElementSliders sliders, Qt::Orientation orientation, int margin, QWidget *parent=nullptr) | |
| Defautl constructor. More... | |
| int | length () const |
| Returns useful length. More... | |
| virtual void | setSliders (SharedColorScaleElementSliders sliders) |
| Sets associated sliders set. More... | |
| Qt::Orientation | getOrientation () const |
| Returns orientation. More... | |
| int | getMargin () const |
| Returns margin. More... | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *e) override |
| void | mousePressEvent (QMouseEvent *e) override |
Additional Inherited Members | |
Protected Attributes inherited from ColorScaleEditorBaseWidget | |
| SharedColorScaleElementSliders | m_sliders |
| Associated sliders. More... | |
| Qt::Orientation | m_orientation |
| Orientation. More... | |
| int | m_margin |
| Margin. More... | |
Color bar widget.
Definition at line 132 of file ecvColorScaleEditorWidget.h.
| ColorBarWidget::ColorBarWidget | ( | SharedColorScaleElementSliders | sliders, |
| QWidget * | parent = nullptr, |
||
| Qt::Orientation | orientation = Qt::Horizontal |
||
| ) |
Default constructor.
Definition at line 132 of file ecvColorScaleEditorWidget.cpp.
References DEFAULT_MARGIN.
|
overrideprotected |
Definition at line 141 of file ecvColorScaleEditorWidget.cpp.
References ColorScaleEditorBaseWidget::m_margin, ColorScaleEditorBaseWidget::m_orientation, and pointClicked().
|
overrideprotected |
Definition at line 170 of file ecvColorScaleEditorWidget.cpp.
References ecvColor::black(), ColorScaleEditorBaseWidget::m_margin, ColorScaleEditorBaseWidget::m_orientation, and ColorScaleEditorBaseWidget::m_sliders.
|
signal |
Signal emitted when the mouse (left) button is clicked.
| relativePos | relative click position (between 0 and 1) |
Referenced by mousePressEvent().