![]() |
Audacity 3.2.0
|
Enumerations | |
enum | SelectionBoundary { SBNone , SBLeft , SBRight } |
Functions | |
wxInt64 | FrequencyToPosition (const WaveTrack *wt, double frequency, wxInt64 trackTopEdge, int trackHeight) |
Converts a frequency to screen y position. More... | |
double | PositionToFrequency (const WaveTrack *wt, bool maySnap, wxInt64 mouseYCoordinate, wxInt64 trackTopEdge, int trackHeight) |
template<typename T > | |
void | SetIfNotNull (T *pValue, const T Value) |
bool | isSpectralSelectionView (const ChannelView *pChannelView) |
SelectionBoundary | ChooseTimeBoundary (const double t0, const double t1, const ViewInfo &viewInfo, double selend, bool onlyWithinSnapDistance, wxInt64 *pPixelDist, double *pPinValue) |
SelectionBoundary | ChooseBoundary (const ViewInfo &viewInfo, wxCoord xx, wxCoord yy, const ChannelView *pChannelView, const wxRect &rect, bool mayDragWidth, bool onlyWithinSnapDistance, double *pPinValue=NULL) |
wxCursor * | SelectCursor () |
wxCursor * | EnvelopeCursor () |
void | SetTipAndCursorForBoundary (SelectionBoundary boundary, bool frequencySnapping, TranslatableString &tip, wxCursor *&pCursor) |
template<class A , class B , class DIST > | |
bool | within (A a, B b, DIST d) |
double | findMaxRatio (double center, double rate) |
enum anonymous_namespace{SelectHandle.cpp}::SelectionBoundary |
Enumerator | |
---|---|
SBNone | |
SBLeft | |
SBRight |
Definition at line 128 of file SelectHandle.cpp.
SelectionBoundary anonymous_namespace{SelectHandle.cpp}::ChooseBoundary | ( | const ViewInfo & | viewInfo, |
wxCoord | xx, | ||
wxCoord | yy, | ||
const ChannelView * | pChannelView, | ||
const wxRect & | rect, | ||
bool | mayDragWidth, | ||
bool | onlyWithinSnapDistance, | ||
double * | pPinValue = NULL |
||
) |
Definition at line 176 of file SelectHandle.cpp.
References ChooseTimeBoundary(), NotifyingSelectedRegion::f0(), NotifyingSelectedRegion::f1(), NotifyingSelectedRegion::fc(), CommonTrackPanelCell::FindTrack(), FREQ_SNAP_DISTANCE, FrequencyToPosition(), NotifyingSelectedRegion::isPoint(), isSpectralSelectionView(), ZoomInfo::PositionToTime(), SBNone, ViewInfo::selectedRegion, SetIfNotNull(), NotifyingSelectedRegion::t0(), and NotifyingSelectedRegion::t1().
Referenced by SelectHandle::Click(), and SelectHandle::Preview().
SelectionBoundary anonymous_namespace{SelectHandle.cpp}::ChooseTimeBoundary | ( | const double | t0, |
const double | t1, | ||
const ViewInfo & | viewInfo, | ||
double | selend, | ||
bool | onlyWithinSnapDistance, | ||
wxInt64 * | pPixelDist, | ||
double * | pPinValue | ||
) |
Definition at line 136 of file SelectHandle.cpp.
References SBLeft, SBNone, SBRight, SELECTION_RESIZE_REGION, SetIfNotNull(), and ZoomInfo::TimeToPosition().
Referenced by ChooseBoundary().
wxCursor * anonymous_namespace{SelectHandle.cpp}::EnvelopeCursor | ( | ) |
Definition at line 291 of file SelectHandle.cpp.
References MakeCursor().
Referenced by SetTipAndCursorForBoundary().
|
inline |
Definition at line 476 of file SelectHandle.cpp.
References min().
Referenced by SelectHandle::AdjustFreqSelection(), SelectHandle::MoveSnappingFreqSelection(), and SelectHandle::SnapCenterOnce().
wxInt64 anonymous_namespace{SelectHandle.cpp}::FrequencyToPosition | ( | const WaveTrack * | wt, |
double | frequency, | ||
wxInt64 | trackTopEdge, | ||
int | trackHeight | ||
) |
Converts a frequency to screen y position.
Definition at line 67 of file SelectHandle.cpp.
References SpectrogramSettings::Get(), SpectrogramBounds::Get(), SpectrogramBounds::GetBounds(), settings(), and NumberScale::ValueToPosition().
Referenced by ChooseBoundary().
|
inline |
Definition at line 116 of file SelectHandle.cpp.
References CommonTrackPanelCell::FindTrack(), SpectrogramSettings::Get(), ChannelView::IsSpectral(), and settings().
Referenced by ChooseBoundary(), SelectHandle::Click(), SelectHandle::MoveSnappingFreqSelection(), SelectHandle::Preview(), and SelectHandle::StartFreqSelection().
double anonymous_namespace{SelectHandle.cpp}::PositionToFrequency | ( | const WaveTrack * | wt, |
bool | maySnap, | ||
wxInt64 | mouseYCoordinate, | ||
wxInt64 | trackTopEdge, | ||
int | trackHeight | ||
) |
Converts a position (mouse Y coordinate) to frequency, in Hz.
Definition at line 82 of file SelectHandle.cpp.
References FREQ_SNAP_DISTANCE, SpectrogramSettings::Get(), SpectrogramBounds::Get(), SpectrogramBounds::GetBounds(), WaveTrack::GetRate(), NumberScale::PositionToValue(), and settings().
Referenced by SelectHandle::AdjustFreqSelection(), SelectHandle::MoveSnappingFreqSelection(), and SelectHandle::StartFreqSelection().
wxCursor * anonymous_namespace{SelectHandle.cpp}::SelectCursor | ( | ) |
Definition at line 284 of file SelectHandle.cpp.
References MakeCursor().
Referenced by SelectHandle::Preview(), and SetTipAndCursorForBoundary().
|
inline |
Definition at line 108 of file SelectHandle.cpp.
Referenced by ChooseBoundary(), and ChooseTimeBoundary().
void anonymous_namespace{SelectHandle.cpp}::SetTipAndCursorForBoundary | ( | SelectionBoundary | boundary, |
bool | frequencySnapping, | ||
TranslatableString & | tip, | ||
wxCursor *& | pCursor | ||
) |
Definition at line 299 of file SelectHandle.cpp.
References EnvelopeCursor(), MakeCursor(), SBLeft, SBNone, SBRight, SelectCursor(), and XO().
Referenced by SelectHandle::Preview().
bool anonymous_namespace{SelectHandle.cpp}::within | ( | A | a, |
B | b, | ||
DIST | d | ||
) |
Definition at line 471 of file SelectHandle.cpp.