ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
SliderLabelWidget Class Reference

All sliders labels widget. More...

#include <ecvColorScaleEditorWidget.h>

Inheritance diagram for SliderLabelWidget:
Collaboration diagram for SliderLabelWidget:

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...
 

Detailed Description

All sliders labels widget.

Definition at line 197 of file ecvColorScaleEditorWidget.h.

Constructor & Destructor Documentation

◆ SliderLabelWidget()

SliderLabelWidget::SliderLabelWidget ( SharedColorScaleElementSliders  sliders,
QWidget *  parent = nullptr,
Qt::Orientation  orientation = Qt::Horizontal 
)

Default constructor.

Definition at line 417 of file ecvColorScaleEditorWidget.cpp.

Member Function Documentation

◆ paintEvent()

void SliderLabelWidget::paintEvent ( QPaintEvent *  e)
overrideprotected

◆ setPrecision()

void SliderLabelWidget::setPrecision ( int  precision)
inline

Sets displayed numbers precision.

Definition at line 210 of file ecvColorScaleEditorWidget.h.

Referenced by ccColorScaleEditorWidget::setLabelPrecision().

◆ setTextColor()

void SliderLabelWidget::setTextColor ( QColor  color)
inline

Sets text color.

Definition at line 207 of file ecvColorScaleEditorWidget.h.

References color.

Referenced by ccColorScaleEditorWidget::setLabelColor().

Member Data Documentation

◆ m_precision

int SliderLabelWidget::m_precision
protected

Precision.

Definition at line 220 of file ecvColorScaleEditorWidget.h.

Referenced by paintEvent().

◆ m_textColor

QColor SliderLabelWidget::m_textColor
protected

Text color.

Definition at line 217 of file ecvColorScaleEditorWidget.h.

Referenced by paintEvent().


The documentation for this class was generated from the following files: