kwave
18.07.70
|
#include <WindowFunction.h>
Classes | |
class | InitializedTypesMap |
Public Member Functions | |
WindowFunction (window_function_t type) | |
virtual | ~WindowFunction () |
QVector< double > | points (unsigned int len) const |
Static Public Member Functions | |
static window_function_t | findFromIndex (unsigned int index) |
static window_function_t | findFromName (const QString &name) |
static unsigned int | index (window_function_t type) |
static const QString | name (window_function_t type) |
static QString | description (window_function_t type, bool localized) |
static unsigned int | count () |
Private Attributes | |
window_function_t | m_type |
Static Private Attributes | |
static InitializedTypesMap | m_types_map |
Handles window functions for signal processing. Also holds a static map of known window functions.
Definition at line 47 of file WindowFunction.h.
|
explicit |
Constructor
type | initial window function type. |
Definition at line 49 of file WindowFunction.cpp.
|
virtual |
|
inlinestatic |
returns the number of available window functions
Definition at line 115 of file WindowFunction.h.
Referenced by Kwave::SonagramDialog::SonagramDialog().
|
inlinestatic |
Returns the description of a window function.
type | the type of the window function |
localized | if true, the localized description will be returned instead of the non-localized one |
Definition at line 108 of file WindowFunction.h.
Referenced by Kwave::SonagramDialog::SonagramDialog().
|
inlinestatic |
Returns the window function id through it's numeric index. If the index is out of range, the return value will be "WINDOW_FUNC_NONE".
index | numeric index to be searched [0...count-1] |
Definition at line 71 of file WindowFunction.h.
Referenced by Kwave::SonagramDialog::parameters().
|
inlinestatic |
Returns the window function id through it's name. If the name is unknown the return value will be "WINDOW_FUNC_NONE".
name | the name to be searched |
Definition at line 80 of file WindowFunction.h.
Referenced by Kwave::SonagramPlugin::interpreteParameters().
|
inlinestatic |
Returns the numeric index of a window function [0...count-1].
type | the type of the window function |
Definition at line 88 of file WindowFunction.h.
Referenced by Kwave::SonagramDialog::setWindowFunction().
|
inlinestatic |
Returns the name of a window function.
type | the type of the window function |
Definition at line 97 of file WindowFunction.h.
Referenced by Kwave::SonagramDialog::parameters().
QVector< double > Kwave::WindowFunction::points | ( | unsigned int | len | ) | const |
Returns the coefficients of a window function with the given number of points. This is similar to Kwave's Interpolation class.
Definition at line 60 of file WindowFunction.cpp.
References m_type, Kwave::toInt(), Kwave::WINDOW_FUNC_BLACKMAN, Kwave::WINDOW_FUNC_HAMMING, Kwave::WINDOW_FUNC_HANNING, Kwave::WINDOW_FUNC_NONE, and Kwave::WINDOW_FUNC_TRIANGULAR.
Referenced by Kwave::SonagramPlugin::makeAllValid().
|
private |
|
staticprivate |
Static map of window function types.
Definition at line 143 of file WindowFunction.h.
Referenced by Kwave::WindowFunction::InitializedTypesMap::fill().