LMMS
Loading...
Searching...
No Matches
lmms::gui::OscilloscopeGraph Class Reference

#include <OscilloscopeGraph.h>

Inheritance diagram for lmms::gui::OscilloscopeGraph:

Public Member Functions

 OscilloscopeGraph (QWidget *parent, OscilloscopeControls *controls)
 ~OscilloscopeGraph () override=default
void paintEvent (QPaintEvent *pe) override
void wheelEvent (QWheelEvent *we) override
void mousePressEvent (QMouseEvent *me) override
void mouseMoveEvent (QMouseEvent *me) override

Static Public Attributes

static constexpr float MaxBufferLengthSeconds = 5.0f
 Maximum length of the oscilloscope history in seconds.

Properties

QColor monoColor
QColor leftColor
QColor rightColor
QColor minorLineColor
QColor clippingLineColor
QColor backgroundColor

Private Slots

void changeSampleRate ()

Private Attributes

OscilloscopeControlsm_controls
LocklessRingBufferReader< SampleFramem_inputBufferReader
std::vector< SampleFramem_ringBuffer
int m_ringBufferIndex = 0
int m_mousePos
QColor m_monoColor = QColor(255, 255, 255)
QColor m_leftColor = QColor(126, 146, 255, 128)
QColor m_rightColor = QColor(255, 128, 128, 128)
QColor m_minorLineColor = QColor(100, 100, 100)
QColor m_clippingLineColor = QColor(100, 0, 0)
QColor m_backgroundColor = QColor(0, 0, 0)

Constructor & Destructor Documentation

◆ OscilloscopeGraph()

lmms::gui::OscilloscopeGraph::OscilloscopeGraph ( QWidget * parent,
OscilloscopeControls * controls )

◆ ~OscilloscopeGraph()

lmms::gui::OscilloscopeGraph::~OscilloscopeGraph ( )
overridedefault

Member Function Documentation

◆ changeSampleRate

void lmms::gui::OscilloscopeGraph::changeSampleRate ( )
privateslot

◆ mouseMoveEvent()

void lmms::gui::OscilloscopeGraph::mouseMoveEvent ( QMouseEvent * me)
override

◆ mousePressEvent()

void lmms::gui::OscilloscopeGraph::mousePressEvent ( QMouseEvent * me)
override

◆ paintEvent()

void lmms::gui::OscilloscopeGraph::paintEvent ( QPaintEvent * pe)
override

◆ wheelEvent()

void lmms::gui::OscilloscopeGraph::wheelEvent ( QWheelEvent * we)
override

Member Data Documentation

◆ m_backgroundColor

QColor lmms::gui::OscilloscopeGraph::m_backgroundColor = QColor(0, 0, 0)
private

◆ m_clippingLineColor

QColor lmms::gui::OscilloscopeGraph::m_clippingLineColor = QColor(100, 0, 0)
private

◆ m_controls

OscilloscopeControls* lmms::gui::OscilloscopeGraph::m_controls
private

◆ m_inputBufferReader

LocklessRingBufferReader<SampleFrame> lmms::gui::OscilloscopeGraph::m_inputBufferReader
private

◆ m_leftColor

QColor lmms::gui::OscilloscopeGraph::m_leftColor = QColor(126, 146, 255, 128)
private

◆ m_minorLineColor

QColor lmms::gui::OscilloscopeGraph::m_minorLineColor = QColor(100, 100, 100)
private

◆ m_monoColor

QColor lmms::gui::OscilloscopeGraph::m_monoColor = QColor(255, 255, 255)
private

◆ m_mousePos

int lmms::gui::OscilloscopeGraph::m_mousePos
private

◆ m_rightColor

QColor lmms::gui::OscilloscopeGraph::m_rightColor = QColor(255, 128, 128, 128)
private

◆ m_ringBuffer

std::vector<SampleFrame> lmms::gui::OscilloscopeGraph::m_ringBuffer
private

◆ m_ringBufferIndex

int lmms::gui::OscilloscopeGraph::m_ringBufferIndex = 0
private

◆ MaxBufferLengthSeconds

float lmms::gui::OscilloscopeGraph::MaxBufferLengthSeconds = 5.0f
staticconstexpr

Maximum length of the oscilloscope history in seconds.

Property Documentation

◆ backgroundColor

QColor lmms::gui::OscilloscopeGraph::backgroundColor

◆ clippingLineColor

QColor lmms::gui::OscilloscopeGraph::clippingLineColor

◆ leftColor

QColor lmms::gui::OscilloscopeGraph::leftColor

◆ minorLineColor

QColor lmms::gui::OscilloscopeGraph::minorLineColor

◆ monoColor

QColor lmms::gui::OscilloscopeGraph::monoColor

◆ rightColor

QColor lmms::gui::OscilloscopeGraph::rightColor

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