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

#include <EqCurve.h>

Inheritance diagram for lmms::gui::EqHandle:

Signals

void positionChanged ()

Public Member Functions

 EqHandle (int num, int x, int y)
QRectF boundingRect () const override
QPainterPath getCurvePath ()
float getPeakCurve (float x)
float getHighShelfCurve (float x)
float getLowShelfCurve (float x)
float getLowCutCurve (float x)
float getHighCutCurve (float x)
float getResonance ()
int getNum ()
EqHandleType getType ()
void setType (EqHandleType t)
void setResonance (float r)
bool isMouseHover ()
void setMouseHover (bool d)
bool isActiveHandle ()
void setHandleActive (bool a)
bool mousePressed () const
void sethp12 ()
void sethp24 ()
void sethp48 ()
void setlp12 ()
void setlp24 ()
void setlp48 ()

Static Public Member Functions

static float freqToXPixel (float freq, int w)
static float xPixelToFreq (float x, int w)
static float gainToYPixel (float gain, int h, float pixelPerUnitHeight)
static float yPixelToGain (float y, int h, float pixelPerUnitHeight)

Protected Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event) override
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
void wheelEvent (QGraphicsSceneWheelEvent *wevent) override
void hoverEnterEvent (QGraphicsSceneHoverEvent *hevent) override
void hoverLeaveEvent (QGraphicsSceneHoverEvent *hevent) override
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override

Private Member Functions

double calculateGain (const double freq, const double a1, const double a2, const double b0, const double b1, const double b2)
void loadPixmap ()

Private Attributes

float m_pixelsPerUnitWidth
float m_pixelsPerUnitHeight
float m_scale
bool m_hp12
bool m_hp24
bool m_hp48
bool m_lp12
bool m_lp24
bool m_lp48
bool m_mouseHover
EqHandleType m_type
int m_numb
float m_width
float m_heigth
float m_resonance
bool m_mousePressed
bool m_active
QPixmap m_circlePixmap

Constructor & Destructor Documentation

◆ EqHandle()

lmms::gui::EqHandle::EqHandle ( int num,
int x,
int y )

Member Function Documentation

◆ boundingRect()

QRectF lmms::gui::EqHandle::boundingRect ( ) const
override

◆ calculateGain()

double lmms::gui::EqHandle::calculateGain ( const double freq,
const double a1,
const double a2,
const double b0,
const double b1,
const double b2 )
private

◆ freqToXPixel()

float lmms::gui::EqHandle::freqToXPixel ( float freq,
int w )
static

◆ gainToYPixel()

float lmms::gui::EqHandle::gainToYPixel ( float gain,
int h,
float pixelPerUnitHeight )
static

◆ getCurvePath()

QPainterPath lmms::gui::EqHandle::getCurvePath ( )

◆ getHighCutCurve()

float lmms::gui::EqHandle::getHighCutCurve ( float x)

◆ getHighShelfCurve()

float lmms::gui::EqHandle::getHighShelfCurve ( float x)

◆ getLowCutCurve()

float lmms::gui::EqHandle::getLowCutCurve ( float x)

◆ getLowShelfCurve()

float lmms::gui::EqHandle::getLowShelfCurve ( float x)

◆ getNum()

int lmms::gui::EqHandle::getNum ( )

◆ getPeakCurve()

float lmms::gui::EqHandle::getPeakCurve ( float x)

◆ getResonance()

float lmms::gui::EqHandle::getResonance ( )

◆ getType()

EqHandleType lmms::gui::EqHandle::getType ( )

◆ hoverEnterEvent()

void lmms::gui::EqHandle::hoverEnterEvent ( QGraphicsSceneHoverEvent * hevent)
overrideprotected

◆ hoverLeaveEvent()

void lmms::gui::EqHandle::hoverLeaveEvent ( QGraphicsSceneHoverEvent * hevent)
overrideprotected

◆ isActiveHandle()

bool lmms::gui::EqHandle::isActiveHandle ( )

◆ isMouseHover()

bool lmms::gui::EqHandle::isMouseHover ( )

◆ itemChange()

QVariant lmms::gui::EqHandle::itemChange ( GraphicsItemChange change,
const QVariant & value )
overrideprotected

◆ loadPixmap()

void lmms::gui::EqHandle::loadPixmap ( )
private

◆ mousePressed()

bool lmms::gui::EqHandle::mousePressed ( ) const

◆ mousePressEvent()

void lmms::gui::EqHandle::mousePressEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected

◆ mouseReleaseEvent()

void lmms::gui::EqHandle::mouseReleaseEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected

◆ paint()

void lmms::gui::EqHandle::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget )
overrideprotected

◆ positionChanged

void lmms::gui::EqHandle::positionChanged ( )
signal

◆ setHandleActive()

void lmms::gui::EqHandle::setHandleActive ( bool a)

◆ sethp12()

void lmms::gui::EqHandle::sethp12 ( )

◆ sethp24()

void lmms::gui::EqHandle::sethp24 ( )

◆ sethp48()

void lmms::gui::EqHandle::sethp48 ( )

◆ setlp12()

void lmms::gui::EqHandle::setlp12 ( )

◆ setlp24()

void lmms::gui::EqHandle::setlp24 ( )

◆ setlp48()

void lmms::gui::EqHandle::setlp48 ( )

◆ setMouseHover()

void lmms::gui::EqHandle::setMouseHover ( bool d)

◆ setResonance()

void lmms::gui::EqHandle::setResonance ( float r)

◆ setType()

void lmms::gui::EqHandle::setType ( EqHandleType t)

◆ wheelEvent()

void lmms::gui::EqHandle::wheelEvent ( QGraphicsSceneWheelEvent * wevent)
overrideprotected

◆ xPixelToFreq()

float lmms::gui::EqHandle::xPixelToFreq ( float x,
int w )
static

◆ yPixelToGain()

float lmms::gui::EqHandle::yPixelToGain ( float y,
int h,
float pixelPerUnitHeight )
static

Member Data Documentation

◆ m_active

bool lmms::gui::EqHandle::m_active
private

◆ m_circlePixmap

QPixmap lmms::gui::EqHandle::m_circlePixmap
private

◆ m_heigth

float lmms::gui::EqHandle::m_heigth
private

◆ m_hp12

bool lmms::gui::EqHandle::m_hp12
private

◆ m_hp24

bool lmms::gui::EqHandle::m_hp24
private

◆ m_hp48

bool lmms::gui::EqHandle::m_hp48
private

◆ m_lp12

bool lmms::gui::EqHandle::m_lp12
private

◆ m_lp24

bool lmms::gui::EqHandle::m_lp24
private

◆ m_lp48

bool lmms::gui::EqHandle::m_lp48
private

◆ m_mouseHover

bool lmms::gui::EqHandle::m_mouseHover
private

◆ m_mousePressed

bool lmms::gui::EqHandle::m_mousePressed
private

◆ m_numb

int lmms::gui::EqHandle::m_numb
private

◆ m_pixelsPerUnitHeight

float lmms::gui::EqHandle::m_pixelsPerUnitHeight
private

◆ m_pixelsPerUnitWidth

float lmms::gui::EqHandle::m_pixelsPerUnitWidth
private

◆ m_resonance

float lmms::gui::EqHandle::m_resonance
private

◆ m_scale

float lmms::gui::EqHandle::m_scale
private

◆ m_type

EqHandleType lmms::gui::EqHandle::m_type
private

◆ m_width

float lmms::gui::EqHandle::m_width
private

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