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

#include <Oscilloscope.h>

Inheritance diagram for lmms::gui::Oscilloscope:

Public Member Functions

 Oscilloscope (QWidget *_parent)
 ~Oscilloscope () override
void setActive (bool _active)
QColor constleftChannelColor () const
void setLeftChannelColor (QColor const &leftChannelColor)
QColor constrightChannelColor () const
void setRightChannelColor (QColor const &rightChannelColor)
QColor constotherChannelsColor () const
void setOtherChannelsColor (QColor const &otherChannelsColor)
QColor constclippingColor () const
void setClippingColor (QColor const &clippingColor)

Protected Slots

void updateAudioBuffer (const lmms::SampleFrame *buffer)

Protected Member Functions

void paintEvent (QPaintEvent *_pe) override
void mousePressEvent (QMouseEvent *_me) override

Properties

QColor leftChannelColor
QColor rightChannelColor
QColor otherChannelsColor
QColor clippingColor

Private Member Functions

bool clips (float level) const

Private Attributes

QPixmap m_background
QPointF * m_points
SampleFramem_buffer
bool m_active
QColor m_leftChannelColor
QColor m_rightChannelColor
QColor m_otherChannelsColor
QColor m_clippingColor

Constructor & Destructor Documentation

◆ Oscilloscope()

lmms::gui::Oscilloscope::Oscilloscope ( QWidget * _parent)

◆ ~Oscilloscope()

lmms::gui::Oscilloscope::~Oscilloscope ( )
override

Member Function Documentation

◆ clippingColor()

QColor const & lmms::gui::Oscilloscope::clippingColor ( ) const

◆ clips()

bool lmms::gui::Oscilloscope::clips ( float level) const
private

◆ leftChannelColor()

QColor const & lmms::gui::Oscilloscope::leftChannelColor ( ) const

◆ mousePressEvent()

void lmms::gui::Oscilloscope::mousePressEvent ( QMouseEvent * _me)
overrideprotected

◆ otherChannelsColor()

QColor const & lmms::gui::Oscilloscope::otherChannelsColor ( ) const

◆ paintEvent()

void lmms::gui::Oscilloscope::paintEvent ( QPaintEvent * _pe)
overrideprotected

◆ rightChannelColor()

QColor const & lmms::gui::Oscilloscope::rightChannelColor ( ) const

◆ setActive()

void lmms::gui::Oscilloscope::setActive ( bool _active)

◆ setClippingColor()

void lmms::gui::Oscilloscope::setClippingColor ( QColor const & clippingColor)

◆ setLeftChannelColor()

void lmms::gui::Oscilloscope::setLeftChannelColor ( QColor const & leftChannelColor)

◆ setOtherChannelsColor()

void lmms::gui::Oscilloscope::setOtherChannelsColor ( QColor const & otherChannelsColor)

◆ setRightChannelColor()

void lmms::gui::Oscilloscope::setRightChannelColor ( QColor const & rightChannelColor)

◆ updateAudioBuffer

void lmms::gui::Oscilloscope::updateAudioBuffer ( const lmms::SampleFrame * buffer)
protectedslot

Member Data Documentation

◆ m_active

bool lmms::gui::Oscilloscope::m_active
private

◆ m_background

QPixmap lmms::gui::Oscilloscope::m_background
private

◆ m_buffer

SampleFrame* lmms::gui::Oscilloscope::m_buffer
private

◆ m_clippingColor

QColor lmms::gui::Oscilloscope::m_clippingColor
private

◆ m_leftChannelColor

QColor lmms::gui::Oscilloscope::m_leftChannelColor
private

◆ m_otherChannelsColor

QColor lmms::gui::Oscilloscope::m_otherChannelsColor
private

◆ m_points

QPointF* lmms::gui::Oscilloscope::m_points
private

◆ m_rightChannelColor

QColor lmms::gui::Oscilloscope::m_rightChannelColor
private

Property Documentation

◆ clippingColor

QColor lmms::gui::Oscilloscope::clippingColor
readwrite

◆ leftChannelColor

QColor lmms::gui::Oscilloscope::leftChannelColor
readwrite

◆ otherChannelsColor

QColor lmms::gui::Oscilloscope::otherChannelsColor
readwrite

◆ rightChannelColor

QColor lmms::gui::Oscilloscope::rightChannelColor
readwrite

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