Audacity 3.2.0
|
Functions | |
wxInt64 | FrequencyToPosition (const WaveChannel &wc, double frequency, wxInt64 trackTopEdge, int trackHeight) |
Converts a frequency to screen y position. More... | |
double | PositionToFrequency (const WaveChannel &wc, bool maySnap, wxInt64 mouseYCoordinate, wxInt64 trackTopEdge, int trackHeight) |
long long | PositionToLongSample (const WaveTrack *wt, const ViewInfo &viewInfo, int trackTopEdgeX, int mousePosX) |
template<typename T > | |
void | SetIfNotNull (T *pValue, const T Value) |
bool | isSpectralSelectionView (const ChannelView *pChannelView) |
wxCursor * | CrosshairCursor () |
template<class A , class B , class DIST > | |
bool | within (A a, B b, DIST d) |
double | findMaxRatio (double center, double rate) |
wxCursor * anonymous_namespace{BrushHandle.cpp}::CrosshairCursor | ( | ) |
Definition at line 130 of file BrushHandle.cpp.
References MakeCursor().
Referenced by BrushHandle::Preview().
|
inline |
Definition at line 181 of file BrushHandle.cpp.
References min().
wxInt64 anonymous_namespace{BrushHandle.cpp}::FrequencyToPosition | ( | const WaveChannel & | wc, |
double | frequency, | ||
wxInt64 | trackTopEdge, | ||
int | trackHeight | ||
) |
Converts a frequency to screen y position.
Definition at line 65 of file BrushHandle.cpp.
References SpectrogramSettings::Get(), SpectrogramBounds::Get(), SpectrogramBounds::GetBounds(), settings(), and NumberScale::ValueToPosition().
|
inline |
Definition at line 124 of file BrushHandle.cpp.
References CommonChannelCell::FindChannel(), SpectrogramSettings::Get(), ChannelView::IsSpectral(), and SpectrogramSettings::SpectralSelectionEnabled().
double anonymous_namespace{BrushHandle.cpp}::PositionToFrequency | ( | const WaveChannel & | wc, |
bool | maySnap, | ||
wxInt64 | mouseYCoordinate, | ||
wxInt64 | trackTopEdge, | ||
int | trackHeight | ||
) |
Converts a position (mouse Y coordinate) to frequency, in Hz.
Definition at line 80 of file BrushHandle.cpp.
References FREQ_SNAP_DISTANCE, SpectrogramSettings::Get(), SpectrogramBounds::Get(), WaveChannel::GetRate(), NumberScale::PositionToValue(), and settings().
Referenced by BrushHandle::Drag().
long long anonymous_namespace{BrushHandle.cpp}::PositionToLongSample | ( | const WaveTrack * | wt, |
const ViewInfo & | viewInfo, | ||
int | trackTopEdgeX, | ||
int | mousePosX | ||
) |
Definition at line 105 of file BrushHandle.cpp.
References sampleCount::as_long_long(), ZoomInfo::PositionToTime(), and WideSampleSequence::TimeToLongSamples().
|
inline |
Definition at line 116 of file BrushHandle.cpp.
bool anonymous_namespace{BrushHandle.cpp}::within | ( | A | a, |
B | b, | ||
DIST | d | ||
) |
Definition at line 176 of file BrushHandle.cpp.