SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <levelmeter.h>
Public Types | |
enum | ColorTheme { ColorGold, ColorGreenYellow, ColorGreenAndBlue, ColorCyanAndBlue } |
Public Member Functions | |
LevelMeterSignalDB (QWidget *parent=0) | |
virtual | ~LevelMeterSignalDB () |
void | setColorTheme (ColorTheme colorTheme) |
void | setRange (int min, int max) |
Public Member Functions inherited from LevelMeter | |
LevelMeter (QWidget *parent=0) | |
virtual | ~LevelMeter () |
void | paintEvent (QPaintEvent *event) |
void | resizeEvent (QResizeEvent *event) |
void | setAverageSmoothing (uint32_t smoothingFactor) |
Static Public Attributes | |
static const QColor | m_avgColor [4] |
static const QColor | m_decayedPeakColor [4] |
static const QColor | m_peakColor [4] |
Protected Member Functions | |
virtual void | render (QPainter *painter) |
virtual void | resized () |
Protected Member Functions inherited from LevelMeter | |
int | shiftx (int val, int width) |
Protected Attributes | |
ColorTheme | m_colorTheme |
Protected Attributes inherited from LevelMeter | |
qreal | m_avgLevel |
qreal | m_peakLevel |
qreal | m_decayedPeakLevel |
QTime | m_peakLevelChanged |
qreal | m_peakDecayRate |
qreal | m_peakHoldLevel |
QTime | m_peakHoldLevelChanged |
uint32_t | m_avgSmoothing |
QTimer * | m_redrawTimer |
QColor | m_avgColor |
QColor | m_peakColor |
QColor | m_decayedPeakColor |
ScaleEngine | m_scaleEngine |
QPixmap * | m_backgroundPixmap |
Additional Inherited Members | |
Public Slots inherited from LevelMeter | |
void | reset () |
void | levelChanged (qreal rmsLevel, qreal peakLevel, int numSamples) |
Protected Slots inherited from LevelMeter | |
void | redrawTimerExpired () |
Definition at line 158 of file levelmeter.h.
Enumerator | |
---|---|
ColorGold | |
ColorGreenYellow | |
ColorGreenAndBlue | |
ColorCyanAndBlue |
Definition at line 161 of file levelmeter.h.
LevelMeterSignalDB::LevelMeterSignalDB | ( | QWidget * | parent = 0 | ) |
Definition at line 281 of file levelmeter.cpp.
References Unit::Decibel, LevelMeter::m_scaleEngine, resized(), ScaleEngine::setFont(), ScaleEngine::setOrientation(), and ScaleEngine::setRange().
|
virtual |
Definition at line 292 of file levelmeter.cpp.
|
protectedvirtual |
Implements LevelMeter.
Definition at line 348 of file levelmeter.cpp.
References m_avgColor, LevelMeter::m_avgLevel, LevelMeter::m_backgroundPixmap, m_colorTheme, m_decayedPeakColor, LevelMeter::m_decayedPeakLevel, m_peakColor, and LevelMeter::m_peakHoldLevel.
|
protectedvirtual |
Implements LevelMeter.
Definition at line 301 of file levelmeter.cpp.
References ScaleEngine::getTickList(), i, LevelMeter::m_backgroundPixmap, LevelMeter::m_scaleEngine, ScaleEngine::Tick::major, ScaleEngine::Tick::pos, ScaleEngine::setSize(), LevelMeter::shiftx(), ScaleEngine::Tick::text, ScaleEngine::Tick::textPos, and ScaleEngine::Tick::textSize.
Referenced by LevelMeterSignalDB().
|
inline |
Definition at line 172 of file levelmeter.h.
References leansdr::max(), and leansdr::min().
void LevelMeterSignalDB::setRange | ( | int | min, |
int | max | ||
) |
Definition at line 296 of file levelmeter.cpp.
References Unit::Decibel, LevelMeter::m_scaleEngine, and ScaleEngine::setRange().
|
static |
Definition at line 175 of file levelmeter.h.
Referenced by LevelMeterVU::render(), and render().
|
protected |
Definition at line 183 of file levelmeter.h.
Referenced by render().
|
static |
Definition at line 176 of file levelmeter.h.
Referenced by LevelMeterVU::render(), and render().
|
static |
Definition at line 177 of file levelmeter.h.
Referenced by LevelMeterVU::render(), and render().