11#ifndef __AUDACITY_SPECTRUM_VIEW__
12#define __AUDACITY_SPECTRUM_VIEW__
103 if(dataBuf.find(hopNum) != dataBuf.end()){
104 dataBuf[hopNum].erase(freqBin);
154 const wxRect &rect,
unsigned iPass )
override;
158 const wxRect & rect);
166 (wxKeyEvent& event,
ViewInfo& viewInfo, wxWindow* pParent,
169 unsigned KeyDown(wxKeyEvent& event,
ViewInfo& viewInfo, wxWindow* pParent,
173 (wxKeyEvent& event,
ViewInfo& viewInfo, wxWindow* pParent,
std::map< long long, std::set< int > > HopsAndBinsMap
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
SpectralData(const SpectralData &src)=delete
long long GetStartSample() const
int GetWindowSize() const
long long GetEndSample() const
void addHopBinData(int hopNum, int freqBin)
void removeHopBinData(int hopNum, int freqBin)
long long GetLength() const
std::vector< HopsAndBinsMap > dataHistory
void CopyFrom(const SpectralData &src)
long long GetCorrectedStartSample() const
void saveAndClearBuffer()
std::vector< std::pair< int, int > > coordHistory
HopsAndBinsMap dataBuffer
static void ForAll(AudacityProject &project, std::function< void(SpectrumView &view)> fn)
void DoSetMinimized(bool minimized) override
unsigned CaptureKey(wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override
bool IsSpectral() const override
void DoDraw(TrackPanelDrawingContext &context, const WaveChannel &channel, const WaveTrack::Interval *selectedClip, const wxRect &rect)
std::shared_ptr< SpectralData > mpSpectralData
std::weak_ptr< BrushHandle > mBrushHandle
unsigned KeyDown(wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override
SpectrumView & operator=(const SpectrumView &)=delete
std::shared_ptr< SpectralData > mpBackupSpectralData
const Type & SubViewType() const override
unsigned Char(wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override
std::shared_ptr< SpectralData > GetSpectralData()
SpectrumView(WaveChannelView &waveChannelView, const SpectrumView &src)=delete
std::shared_ptr< ChannelVRulerControls > DoGetVRulerControls() override
std::vector< UIHandlePtr > DetailedHitTest(const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool) override
void CopyToSubView(WaveChannelSubView *destSubView) const override
void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
This allows multiple clips to be a part of one WaveTrack.
A Track that contains audio waveform data.