![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Color scale element: one value + one color. More...
#include <ecvColorScale.h>

Public Member Functions | |
| 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 ccColorScaleElement &e1, const ccColorScaleElement &e2) |
| Comparison operator between two color scale elements. More... | |
Protected Attributes | |
| double | m_relativePos |
| Step (relative) position. More... | |
| QColor | m_color |
| Color. More... | |
Color scale element: one value + one color.
Definition at line 22 of file ecvColorScale.h.
|
inline |
Default constructor.
Definition at line 25 of file ecvColorScale.h.
|
inline |
Constructor from a (relative) position and a color.
Definition at line 28 of file ecvColorScale.h.
|
inline |
Returns color.
Definition at line 43 of file ecvColorScale.h.
References m_color.
Referenced by ccColorScaleEditorDialog::changeSelectedStepColor(), ccColorScaleEditorDialog::changeSelectedStepValue(), define_ccColorScale(), SlidersWidget::mouseDoubleClickEvent(), and ccColorScaleEditorDialog::onStepModified().
|
inline |
Returns step position (relative to scale boundaries)
Definition at line 38 of file ecvColorScale.h.
References m_relativePos.
Referenced by ccColorScaleEditorDialog::changeSelectedStepValue(), define_ccColorScale(), IsSmaller(), ColorScaleElementSlider::IsSmaller(), ccColorScaleEditorDialog::onStepModified(), SlidersWidget::updateAllSlidersPos(), and SlidersWidget::updateSliderPos().
|
inlinestatic |
Comparison operator between two color scale elements.
Definition at line 46 of file ecvColorScale.h.
References getRelativePos().
Referenced by define_ccColorScale().
|
inline |
Sets color.
Definition at line 41 of file ecvColorScale.h.
References color, and m_color.
Referenced by define_ccColorScale(), and SlidersWidget::mouseDoubleClickEvent().
|
inline |
Sets associated value (relative to scale boundaries)
| pos | relative position (always between 0.0 and 1.0!) |
Definition at line 34 of file ecvColorScale.h.
References m_relativePos.
Referenced by define_ccColorScale(), and SlidersWidget::mouseMoveEvent().
|
protected |
Color.
Definition at line 57 of file ecvColorScale.h.
Referenced by getColor(), ColorScaleElementSlider::paintEvent(), and setColor().
|
protected |
Step (relative) position.
Must always be between 0.0 and 1.0!
Definition at line 55 of file ecvColorScale.h.
Referenced by getRelativePos(), and setRelativePos().