kwave
18.07.70
|
#include <LowPassPlugin.h>
Public Member Functions | |
LowPassPlugin (QObject *parent, const QVariantList &args) | |
virtual | ~LowPassPlugin () Q_DECL_OVERRIDE |
virtual Kwave::PluginSetupDialog * | createDialog (QWidget *parent) Q_DECL_OVERRIDE |
virtual Kwave::SampleSource * | createFilter (unsigned int tracks) Q_DECL_OVERRIDE |
virtual bool | paramsChanged () Q_DECL_OVERRIDE |
virtual void | updateFilter (Kwave::SampleSource *filter, bool force=false) Q_DECL_OVERRIDE |
virtual QString | actionName () Q_DECL_OVERRIDE |
![]() | |
FilterPlugin (QObject *parent, const QVariantList &args) | |
virtual | ~FilterPlugin () Q_DECL_OVERRIDE |
virtual QStringList * | setup (QStringList &previous_params) Q_DECL_OVERRIDE |
virtual void | run (QStringList params) Q_DECL_OVERRIDE |
virtual QString | progressText () Q_DECL_OVERRIDE |
![]() | |
Plugin (QObject *parent, const QVariantList &args) | |
virtual | ~Plugin () Q_DECL_OVERRIDE |
virtual QString | name () const |
virtual QString | description () const |
virtual bool | canClose () const |
bool | isRunning () const |
bool | shouldStop () const |
virtual void | load (QStringList ¶ms) |
virtual void | unload () |
virtual int | start (QStringList ¶ms) |
virtual int | stop () |
Kwave::PluginManager & | manager () const |
Kwave::SignalManager & | signalManager () |
QWidget * | parentWidget () const |
QString | signalName () |
virtual sample_index_t | signalLength () |
virtual double | signalRate () |
virtual const QList< unsigned int > | selectedTracks () |
virtual sample_index_t | selection (QList< unsigned int > *tracks=Q_NULLPTR, sample_index_t *left=Q_NULLPTR, sample_index_t *right=Q_NULLPTR, bool expand_if_empty=false) |
virtual void | selectRange (sample_index_t offset, sample_index_t length) |
virtual void | migrateToActiveContext () |
![]() | |
virtual | ~Runnable () |
Protected Slots | |
void | setValue (double frequency) |
![]() | |
void | startPreListen () |
void | stopPreListen () |
Protected Member Functions | |
virtual int | interpreteParameters (QStringList ¶ms) Q_DECL_OVERRIDE |
![]() | |
int | execute (QStringList ¶ms) |
void | emitCommand (const QString &command) |
void | use () |
void | setPluginManager (Kwave::PluginManager *new_plugin_manager) |
virtual void | run_wrapper (const QVariant ¶ms) Q_DECL_OVERRIDE |
Private Attributes | |
double | m_frequency |
double | m_last_freq |
Additional Inherited Members | |
![]() | |
virtual void | setProgressDialogEnabled (bool enable) |
virtual void | updateProgress (qreal progress) |
virtual void | cancel () |
virtual void | close () |
void | release () |
![]() | |
void | sigCancelPressed () |
![]() | |
void | sigRunning (Kwave::Plugin *plugin) |
void | sigDone (Kwave::Plugin *plugin) |
void | sigClosed (Kwave::Plugin *p) |
void | sigCommand (const QString &command) |
void | setProgressText (const QString &text) |
Definition at line 39 of file LowPassPlugin.h.
Kwave::LowPassPlugin::LowPassPlugin | ( | QObject * | parent, |
const QVariantList & | args | ||
) |
Constructor
parent | reference to our plugin manager |
args | argument list [unused] |
Definition at line 35 of file LowPassPlugin.cpp.
|
virtual |
|
virtual |
Returns a verbose name of the performed action. Used for giving the undo action a readable name.
Implements Kwave::FilterPlugin.
Definition at line 107 of file LowPassPlugin.cpp.
|
virtual |
Creates the setup dialog and connects it's signals
Implements Kwave::FilterPlugin.
Definition at line 65 of file LowPassPlugin.cpp.
References Kwave::connect(), setValue(), and Kwave::Plugin::signalRate().
|
virtual |
Creates a multi-track filter with the given number of tracks
tracks | number of tracks that the filter should have |
Implements Kwave::FilterPlugin.
Definition at line 80 of file LowPassPlugin.cpp.
|
protectedvirtual |
Reads values from the parameter list
Implements Kwave::FilterPlugin.
Definition at line 48 of file LowPassPlugin.cpp.
References m_frequency.
|
virtual |
Returns true if the parameters have changed during pre-listen.
Reimplemented from Kwave::FilterPlugin.
Definition at line 86 of file LowPassPlugin.cpp.
References m_frequency, and m_last_freq.
|
protectedslot |
Called when the parameter changed during pre-listen
frequency | the frequency parameter in Hz |
Definition at line 113 of file LowPassPlugin.cpp.
References m_frequency.
Referenced by createDialog().
|
virtual |
Update the filter with new parameters if it has changed changed during the pre-listen.
filter | the Kwave::SampleSource to be updated, should be the same one as created with createFilter() |
force | if true, even update if no settings have changed |
Reimplemented from Kwave::FilterPlugin.
Definition at line 92 of file LowPassPlugin.cpp.
References m_frequency, m_last_freq, Kwave::StreamObject::setAttribute(), and Kwave::Plugin::signalRate().
|
private |
cutoff frequency [Hz]
Definition at line 104 of file LowPassPlugin.h.
Referenced by interpreteParameters(), paramsChanged(), setValue(), and updateFilter().
|
private |
last value of m_frequency
Definition at line 107 of file LowPassPlugin.h.
Referenced by paramsChanged(), and updateFilter().