Audacity 3.2.0
Namespaces | Enumerations | Functions
BrushHandle.cpp File Reference
#include "BrushHandle.h"
#include "Scrubbing.h"
#include "ChannelView.h"
#include "AColor.h"
#include "SpectrumAnalyst.h"
#include "NumberScale.h"
#include "Project.h"
#include "ProjectAudioIO.h"
#include "ProjectHistory.h"
#include "../../ProjectSettings.h"
#include "../../RefreshCode.h"
#include "../../SelectUtilities.h"
#include "SelectionState.h"
#include "../../SpectralDataManager.h"
#include "../../TrackArtist.h"
#include "TrackFocus.h"
#include "../../TrackPanel.h"
#include "../../TrackPanelDrawingContext.h"
#include "../../TrackPanelMouseEvent.h"
#include "ViewInfo.h"
#include "WaveClip.h"
#include "WaveTrack.h"
#include "SpectrogramSettings.h"
#include "../../../images/Cursors.h"
#include "../playabletrack/wavetrack/ui/SpectrumView.h"
#include <cmath>
#include <wx/event.h>
#include <iostream>
Include dependency graph for BrushHandle.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{BrushHandle.cpp}
 

Enumerations

enum  { SELECTION_RESIZE_REGION = 3 , FREQ_SNAP_DISTANCE = 10 }
 

Functions

wxInt64 anonymous_namespace{BrushHandle.cpp}::FrequencyToPosition (const WaveChannel &wc, double frequency, wxInt64 trackTopEdge, int trackHeight)
 Converts a frequency to screen y position. More...
 
double anonymous_namespace{BrushHandle.cpp}::PositionToFrequency (const WaveChannel &wc, bool maySnap, wxInt64 mouseYCoordinate, wxInt64 trackTopEdge, int trackHeight)
 
long long anonymous_namespace{BrushHandle.cpp}::PositionToLongSample (const WaveTrack *wt, const ViewInfo &viewInfo, int trackTopEdgeX, int mousePosX)
 
template<typename T >
void anonymous_namespace{BrushHandle.cpp}::SetIfNotNull (T *pValue, const T Value)
 
bool anonymous_namespace{BrushHandle.cpp}::isSpectralSelectionView (const ChannelView *pChannelView)
 
wxCursor * anonymous_namespace{BrushHandle.cpp}::CrosshairCursor ()
 
template<class A , class B , class DIST >
bool anonymous_namespace{BrushHandle.cpp}::within (A a, B b, DIST d)
 
double anonymous_namespace{BrushHandle.cpp}::findMaxRatio (double center, double rate)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SELECTION_RESIZE_REGION 
FREQ_SNAP_DISTANCE 

Definition at line 44 of file BrushHandle.cpp.

44 {
45 //This constant determines the size of the horizontal region (in pixels) around
46 //the right and left selection bounds that can be used for horizontal selection adjusting
47 //(or, vertical distance around top and bottom bounds in spectrograms,
48 // for vertical selection adjusting)
50
51 // Seems 4 is too small to work at the top. Why?
53};
@ FREQ_SNAP_DISTANCE
Definition: BrushHandle.cpp:52
@ SELECTION_RESIZE_REGION
Definition: BrushHandle.cpp:49