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 Member Functions | |
LevelMeterVU (QWidget *parent=0) | |
virtual | ~LevelMeterVU () |
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) |
Protected Member Functions | |
virtual void | render (QPainter *painter) |
virtual void | resized () |
Protected Member Functions inherited from LevelMeter | |
int | shiftx (int val, int width) |
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 () |
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 |
Definition at line 148 of file levelmeter.h.
LevelMeterVU::LevelMeterVU | ( | QWidget * | parent = 0 | ) |
Definition at line 154 of file levelmeter.cpp.
References LevelMeter::m_scaleEngine, Unit::Percent, resized(), ScaleEngine::setFont(), ScaleEngine::setOrientation(), and ScaleEngine::setRange().
|
virtual |
Definition at line 164 of file levelmeter.cpp.
|
protectedvirtual |
Implements LevelMeter.
Definition at line 222 of file levelmeter.cpp.
References LevelMeter::m_avgColor, LevelMeterSignalDB::m_avgColor, LevelMeter::m_avgLevel, LevelMeter::m_backgroundPixmap, LevelMeter::m_decayedPeakColor, LevelMeterSignalDB::m_decayedPeakColor, LevelMeter::m_decayedPeakLevel, LevelMeter::m_peakColor, LevelMeterSignalDB::m_peakColor, and LevelMeter::m_peakHoldLevel.
|
protectedvirtual |
Implements LevelMeter.
Definition at line 168 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 LevelMeterVU().