|
kwave
18.07.70
|
#include <NotchFilterPlugin.h>


Public Member Functions | |
| NotchFilterPlugin (QObject *parent, const QVariantList &args) | |
| virtual | ~NotchFilterPlugin () 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 |
Public Member Functions inherited from Kwave::FilterPlugin | |
| 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 |
Public Member Functions inherited from Kwave::Plugin | |
| 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 () |
Public Member Functions inherited from Kwave::Runnable | |
| virtual | ~Runnable () |
Protected Slots | |
| void | setFreqValue (double frequency) |
| void | setBwValue (double bw) |
Protected Slots inherited from Kwave::FilterPlugin | |
| void | startPreListen () |
| void | stopPreListen () |
Protected Member Functions | |
| virtual int | interpreteParameters (QStringList ¶ms) Q_DECL_OVERRIDE |
Protected Member Functions inherited from Kwave::Plugin | |
| 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 |
| double | m_bw |
| double | m_last_bw |
Additional Inherited Members | |
Public Slots inherited from Kwave::Plugin | |
| virtual void | setProgressDialogEnabled (bool enable) |
| virtual void | updateProgress (qreal progress) |
| virtual void | cancel () |
| virtual void | close () |
| void | release () |
Signals inherited from Kwave::FilterPlugin | |
| void | sigCancelPressed () |
Signals inherited from Kwave::Plugin | |
| 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 37 of file NotchFilterPlugin.h.
| Kwave::NotchFilterPlugin::NotchFilterPlugin | ( | QObject * | parent, |
| const QVariantList & | args | ||
| ) |
Constructor
| parent | reference to our plugin manager |
| args | argument list [unused] |
Definition at line 35 of file NotchFilterPlugin.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 119 of file NotchFilterPlugin.cpp.
|
virtual |
Creates the setup dialog and connects it's signals
Implements Kwave::FilterPlugin.
Definition at line 70 of file NotchFilterPlugin.cpp.
References Kwave::connect(), setBwValue(), setFreqValue(), 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 86 of file NotchFilterPlugin.cpp.
|
protectedvirtual |
Reads values from the parameter list
Implements Kwave::FilterPlugin.
Definition at line 48 of file NotchFilterPlugin.cpp.
References m_bw, and m_frequency.
|
virtual |
Returns true if the parameters have changed during pre-listen.
Reimplemented from Kwave::FilterPlugin.
Definition at line 92 of file NotchFilterPlugin.cpp.
References m_bw, m_frequency, m_last_bw, and m_last_freq.
|
protectedslot |
set a new bandwidth
| bw | bandwidth [Hz] |
Definition at line 131 of file NotchFilterPlugin.cpp.
References m_bw.
Referenced by createDialog().

|
protectedslot |
Called when the parameter changed during pre-listen
| frequency | the frequency parameter in Hz |
Definition at line 125 of file NotchFilterPlugin.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 99 of file NotchFilterPlugin.cpp.
References m_bw, m_frequency, m_last_bw, m_last_freq, Kwave::StreamObject::setAttribute(), and Kwave::Plugin::signalRate().

|
private |
bandwidth value [Hz]
Definition at line 114 of file NotchFilterPlugin.h.
Referenced by interpreteParameters(), paramsChanged(), setBwValue(), and updateFilter().
|
private |
cutoff frequency [Hz]
Definition at line 108 of file NotchFilterPlugin.h.
Referenced by interpreteParameters(), paramsChanged(), setFreqValue(), and updateFilter().
|
private |
last value of m_bw
Definition at line 117 of file NotchFilterPlugin.h.
Referenced by paramsChanged(), and updateFilter().
|
private |
last value of m_frequency
Definition at line 111 of file NotchFilterPlugin.h.
Referenced by paramsChanged(), and updateFilter().