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

Base color scale editor (sub)Widget. More...

#include <ecvColorScaleEditorWidget.h>

Inheritance diagram for ColorScaleEditorBaseWidget:
Collaboration diagram for ColorScaleEditorBaseWidget:

Public Member Functions

 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 Attributes

SharedColorScaleElementSliders m_sliders
 Associated sliders. More...
 
Qt::Orientation m_orientation
 Orientation. More...
 
int m_margin
 Margin. More...
 

Detailed Description

Base color scale editor (sub)Widget.

A widget with a margin (along a preferred orientation)

Definition at line 88 of file ecvColorScaleEditorWidget.h.

Constructor & Destructor Documentation

◆ ColorScaleEditorBaseWidget()

ColorScaleEditorBaseWidget::ColorScaleEditorBaseWidget ( SharedColorScaleElementSliders  sliders,
Qt::Orientation  orientation,
int  margin,
QWidget *  parent = nullptr 
)
inline

Defautl constructor.

Definition at line 93 of file ecvColorScaleEditorWidget.h.

Member Function Documentation

◆ getMargin()

int ColorScaleEditorBaseWidget::getMargin ( ) const
inline

Returns margin.

Definition at line 118 of file ecvColorScaleEditorWidget.h.

◆ getOrientation()

Qt::Orientation ColorScaleEditorBaseWidget::getOrientation ( ) const
inline

Returns orientation.

Definition at line 116 of file ecvColorScaleEditorWidget.h.

◆ length()

int ColorScaleEditorBaseWidget::length ( ) const
inline

◆ setSliders()

virtual void ColorScaleEditorBaseWidget::setSliders ( SharedColorScaleElementSliders  sliders)
inlinevirtual

Sets associated sliders set.

Reimplemented in ccColorScaleEditorWidget.

Definition at line 110 of file ecvColorScaleEditorWidget.h.

Member Data Documentation

◆ m_margin

int ColorScaleEditorBaseWidget::m_margin
protected

Margin.

Definition at line 128 of file ecvColorScaleEditorWidget.h.

Referenced by ColorBarWidget::mousePressEvent(), and ColorBarWidget::paintEvent().

◆ m_orientation

◆ m_sliders


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