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


Public Member Functions | |
| SliderLabelWidget (SharedColorScaleElementSliders sliders, QWidget *parent=nullptr, Qt::Orientation orientation=Qt::Horizontal) | |
| Default constructor. More... | |
| void | setTextColor (QColor color) |
| Sets text color. More... | |
| void | setPrecision (int precision) |
| Sets displayed numbers precision. 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 |
Protected Attributes | |
| QColor | m_textColor |
| Text color. More... | |
| int | m_precision |
| Precision. More... | |
Protected Attributes inherited from ColorScaleEditorBaseWidget | |
| SharedColorScaleElementSliders | m_sliders |
| Associated sliders. More... | |
| Qt::Orientation | m_orientation |
| Orientation. More... | |
| int | m_margin |
| Margin. More... | |
All sliders labels widget.
Definition at line 197 of file ecvColorScaleEditorWidget.h.
| SliderLabelWidget::SliderLabelWidget | ( | SharedColorScaleElementSliders | sliders, |
| QWidget * | parent = nullptr, |
||
| Qt::Orientation | orientation = Qt::Horizontal |
||
| ) |
Default constructor.
Definition at line 417 of file ecvColorScaleEditorWidget.cpp.
|
overrideprotected |
Definition at line 427 of file ecvColorScaleEditorWidget.cpp.
References DEFAULT_TEXT_MARGIN, ColorScaleEditorBaseWidget::m_orientation, m_precision, ColorScaleEditorBaseWidget::m_sliders, m_textColor, max(), and width.
|
inline |
Sets displayed numbers precision.
Definition at line 210 of file ecvColorScaleEditorWidget.h.
Referenced by ccColorScaleEditorWidget::setLabelPrecision().
|
inline |
Sets text color.
Definition at line 207 of file ecvColorScaleEditorWidget.h.
References color.
Referenced by ccColorScaleEditorWidget::setLabelColor().
|
protected |
|
protected |