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


Public Member Functions | |
| ColorScaleElementSlider (double relativePos=0.0, QColor color=Qt::black, QWidget *parent=nullptr, Qt::Orientation orientation=Qt::Horizontal) | |
| Default constructor. More... | |
| void | setSelected (bool state) |
| Sets selection state. More... | |
| bool | isSelected () const |
| Returns selection state. More... | |
Public Member Functions inherited from ccColorScaleElement | |
| ccColorScaleElement () | |
| Default constructor. More... | |
| ccColorScaleElement (double relativePos, QColor color) | |
| Constructor from a (relative) position and a color. More... | |
| void | setRelativePos (double pos) |
| Sets associated value (relative to scale boundaries) More... | |
| double | getRelativePos () const |
| Returns step position (relative to scale boundaries) More... | |
| void | setColor (QColor color) |
| Sets color. More... | |
| const QColor & | getColor () const |
| Returns color. More... | |
Static Public Member Functions | |
| static bool | IsSmaller (const ColorScaleElementSlider *e1, const ColorScaleElementSlider *e2) |
| Comparison operator between two (pointers on) color scale elements. More... | |
Static Public Member Functions inherited from ccColorScaleElement | |
| static bool | IsSmaller (const ccColorScaleElement &e1, const ccColorScaleElement &e2) |
| Comparison operator between two color scale elements. More... | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *e) override |
Protected Attributes | |
| bool | m_selected |
| Selection state. More... | |
| Qt::Orientation | m_orientation |
| Widget orientation. More... | |
Protected Attributes inherited from ccColorScaleElement | |
| double | m_relativePos |
| Step (relative) position. More... | |
| QColor | m_color |
| Color. More... | |
Color scale element as a widget.
Definition at line 23 of file ecvColorScaleEditorWidget.h.
| ColorScaleElementSlider::ColorScaleElementSlider | ( | double | relativePos = 0.0, |
| QColor | color = Qt::black, |
||
| QWidget * | parent = nullptr, |
||
| Qt::Orientation | orientation = Qt::Horizontal |
||
| ) |
Default constructor.
Definition at line 29 of file ecvColorScaleEditorWidget.cpp.
References DEFAULT_SLIDER_SYMBOL_SIZE, and m_orientation.
|
inline |
Returns selection state.
Definition at line 38 of file ecvColorScaleEditorWidget.h.
Referenced by SlidersWidget::mouseDoubleClickEvent(), and SlidersWidget::mouseMoveEvent().
|
inlinestatic |
Comparison operator between two (pointers on) color scale elements.
Definition at line 41 of file ecvColorScaleEditorWidget.h.
References ccColorScaleElement::getRelativePos().
Referenced by ColorScaleElementSliders::sort().
|
overrideprotected |
Definition at line 46 of file ecvColorScaleEditorWidget.cpp.
References ecvColor::black(), DEFAULT_SLIDER_SYMBOL_SIZE, ccColorScaleElement::m_color, m_orientation, m_selected, and ecvColor::red().
|
inline |
Sets selection state.
Definition at line 35 of file ecvColorScaleEditorWidget.h.
|
protected |
Widget orientation.
Definition at line 54 of file ecvColorScaleEditorWidget.h.
Referenced by ColorScaleElementSlider(), and paintEvent().
|
protected |
Selection state.
Definition at line 51 of file ecvColorScaleEditorWidget.h.
Referenced by paintEvent().