raDIYo 0.4
SWSpectrumWidget Class Reference
Inheritance diagram for SWSpectrumWidget:
SWAbstractBarWidget

Public Slots

void onTimer ()
 
- Public Slots inherited from SWAbstractBarWidget
virtual void onDialValueChanged (int newvalue)
 SWAbstractBarWidget::onDialValueChanged. More...
 
virtual void onValueListChanged (const SWDoubleVec &freshdata)
 

Public Member Functions

 SWSpectrumWidget (QWidget *parent=nullptr)
 
void paintEvent (QPaintEvent *event) override
 
- Public Member Functions inherited from SWAbstractBarWidget
 SWAbstractBarWidget (QWidget *parent=0)
 SWAbstractBarWidget::SWAbstractBarWidget : Konstruktor. More...
 
virtual ~SWAbstractBarWidget ()
 SWAbstractBarWidget::~SWAbstractBarWidget: Destruktor, macht nix. More...
 
virtual void paintEvent (QPaintEvent *event) override=0
 
bool gradientMode ()
 SWAbstractBarWidget::gradientMode. More...
 
void setGradienMode (bool mode)
 SWAbstractBarWidget::setGradienMode. More...
 
bool barMode ()
 SWAbstractBarWidget::barMode. More...
 
void setBarMode (bool mode)
 SWAbstractBarWidget::setBarMode. More...
 
int numBars ()
 SWAbstractBarWidget::numBars. More...
 
void setNumBars (int bars)
 SWAbstractBarWidget::setNumBars. More...
 
int numBlocks ()
 SWAbstractBarWidget::numBlocks. More...
 
void setNumBlocks (int blocks)
 SWAbstractBarWidget::setNumBlocks. More...
 
void setNumBarsBlocks (int bars, int blocks)
 SWAbstractBarWidget::setNumBarsBlocks. More...
 
double value ()
 SWAbstractBarWidget::value. More...
 
void setValue (double value)
 SWAbstractBarWidget::setValue. More...
 
void clearValueList ()
 
void setColorRange (const QStringList &colorlist)
 
void setColorRange (const SWColorVec &colorlist)
 

Protected Attributes

QTimer _timer
 
- Protected Attributes inherited from SWAbstractBarWidget
int _rangeFrom = 0
 
int _rangeTo = 99
 
double _minValue = 0.0
 
double _maxValue = 1.0
 
double _value = 0.0
 
int _numBars = -1
 
int _numBlocks = -1
 
int _maxNumBarsBlocks = -1
 
double _sizeRatio = -1
 
int _padding = 3
 
bool _barMode = false
 
bool _gradientMode = true
 
SWColorVec _colors
 
SWDoubleVec _valueList
 

Additional Inherited Members

- Protected Member Functions inherited from SWAbstractBarWidget
void setRange (int rangeFrom, int rangeTo)
 SWAbstractBarWidget::setRange. More...
 
QColor getBlockColor (int x, int y)
 
void calcSizeRatio ()
 

Detailed Description

Definition at line 21 of file swspectrumwidget.h.

Constructor & Destructor Documentation

◆ SWSpectrumWidget()

SWSpectrumWidget::SWSpectrumWidget ( QWidget *  parent = nullptr)
explicit

Definition at line 21 of file swspectrumwidget.cpp.

Member Function Documentation

◆ onTimer

void SWSpectrumWidget::onTimer ( )
slot

Definition at line 35 of file swspectrumwidget.cpp.

◆ paintEvent()

void SWSpectrumWidget::paintEvent ( QPaintEvent *  event)
overridevirtual

Implements SWAbstractBarWidget.

Definition at line 49 of file swspectrumwidget.cpp.

Member Data Documentation

◆ _timer

QTimer SWSpectrumWidget::_timer
protected

Definition at line 42 of file swspectrumwidget.h.


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