Audacity 3.2.0
|
#include <SpectrogramSettings.h>
Public Member Functions | |
~SpectrogramBounds () override | |
PointerType | Clone () const override |
void | GetBounds (const WaveChannel &wc, float &min, float &max) const |
void | SetBounds (float min, float max) |
Public Member Functions inherited from ClientData::Cloneable< Covariant, Owner > | |
Cloneable ()=default | |
Cloneable (const Cloneable &)=default | |
Cloneable & | operator= (const Cloneable &)=default |
virtual | ~Cloneable ()=default |
virtual PointerType | Clone () const =0 |
Static Public Member Functions | |
static SpectrogramBounds & | Get (WaveTrack &track) |
Get either the global default settings, or the track's own if previously created. More... | |
static const SpectrogramBounds & | Get (const WaveTrack &track) |
Get either the global default settings, or the track's own if previously created. More... | |
static SpectrogramBounds & | Get (WaveChannel &channel) |
Get either the global default settings, or the track's own if previously created. More... | |
static const SpectrogramBounds & | Get (const WaveChannel &channel) |
Get either the global default settings, or the track's own if previously created. More... | |
Private Attributes | |
float | mSpectrumMin = -1 |
float | mSpectrumMax = -1 |
Additional Inherited Members | |
Public Types inherited from ClientData::Cloneable< Covariant, Owner > | |
using | Base = std::conditional_t< std::is_void_v< Covariant >, Cloneable, Covariant > |
using | PointerType = Owner< Base > |
Definition at line 209 of file SpectrogramSettings.h.
|
overridedefault |
|
overridevirtual |
Implements ClientData::Cloneable< Covariant, Owner >.
Definition at line 722 of file SpectrogramSettings.cpp.
|
static |
Get either the global default settings, or the track's own if previously created.
Definition at line 715 of file SpectrogramSettings.cpp.
References SpectrogramSettings::Get().
|
static |
Get either the global default settings, or the track's own if previously created.
Definition at line 704 of file SpectrogramSettings.cpp.
References SpectrogramSettings::Get().
|
static |
Get either the global default settings, or the track's own if previously created.
Definition at line 710 of file SpectrogramSettings.cpp.
References SpectrogramSettings::Get(), and WaveChannel::GetTrack().
|
static |
Get either the global default settings, or the track's own if previously created.
Definition at line 699 of file SpectrogramSettings.cpp.
References key2.
Referenced by SpectrumVRulerControls::DoHandleWheelRotation(), SpectrumView::DoSetMinimized(), SpectrumVRulerControls::DoUpdateVRuler(), SpectrumVZoomHandle::DoZoom(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{BrushHandle.cpp}::FrequencyToPosition(), anonymous_namespace{SelectHandle.cpp}::FrequencyToPosition(), anonymous_namespace{BrushHandle.cpp}::PositionToFrequency(), anonymous_namespace{SelectHandle.cpp}::PositionToFrequency(), SpectrumPrefs::Preview(), SpectrumPrefs::Rollback(), and SpectrumPrefs::SpectrumPrefs().
void SpectrogramBounds::GetBounds | ( | const WaveChannel & | wc, |
float & | min, | ||
float & | max | ||
) | const |
Definition at line 727 of file SpectrogramSettings.cpp.
References SpectrogramSettings::Get(), WaveTrack::GetRate(), WaveChannel::GetTrack(), min(), settings(), SpectrogramSettings::stLinear, and SpectrogramSettings::stPeriod.
Referenced by SpectrumVRulerControls::DoHandleWheelRotation(), SpectrumVRulerControls::DoUpdateVRuler(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{BrushHandle.cpp}::FrequencyToPosition(), anonymous_namespace{SelectHandle.cpp}::FrequencyToPosition(), anonymous_namespace{SelectHandle.cpp}::PositionToFrequency(), and SpectrumPrefs::SpectrumPrefs().
|
inline |
Definition at line 231 of file SpectrogramSettings.h.
References min().
Referenced by SpectrumVRulerControls::DoHandleWheelRotation(), SpectrumView::DoSetMinimized(), SpectrumPrefs::Preview(), and SpectrumPrefs::Rollback().
|
private |
Definition at line 235 of file SpectrogramSettings.h.
|
private |
Definition at line 235 of file SpectrogramSettings.h.