Audacity 3.2.0
Classes | Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SpectrumView Class Referencefinal

#include <SpectrumView.h>

Inheritance diagram for SpectrumView:
[legend]
Collaboration diagram for SpectrumView:
[legend]

Classes

class  SpectralDataSaver
 

Public Member Functions

 SpectrumView (WaveChannelView &waveChannelView, const SpectrumView &src)=delete
 
 SpectrumView (WaveChannelView &waveChannelView)
 
 ~SpectrumView () override
 
const TypeSubViewType () const override
 
std::shared_ptr< ChannelVRulerControlsDoGetVRulerControls () override
 
std::shared_ptr< SpectralDataGetSpectralData ()
 
bool IsSpectral () const override
 
void CopyToSubView (WaveChannelSubView *destSubView) const override
 
- Public Member Functions inherited from WaveChannelSubView
 WaveChannelSubView (WaveChannelView &waveChannelView)
 
std::shared_ptr< WaveChannelFindWaveChannel ()
 
virtual const TypeSubViewType () const =0
 
virtual void CopyToSubView (WaveChannelSubView *destSubView) const
 
std::pair< bool, std::vector< UIHandlePtr > > DoDetailedHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool, const std::shared_ptr< WaveChannel > &wt)
 
- Public Member Functions inherited from CommonChannelView
std::shared_ptr< TrackPanelCellContextMenuDelegate () override
 
std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &, const AudacityProject *pProject) final
 
void TimeShiftHitTest ()
 
virtual int GetMinimizedHeight () const override
 
 ChannelView (const std::shared_ptr< Channel > &pChannel)
 
- Public Member Functions inherited from ChannelView
 ChannelView (const std::shared_ptr< Channel > &pChannel)
 
virtual ~ChannelView ()=0
 
void Reparent (const std::shared_ptr< Track > &parent, size_t iChannel) override
 Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More...
 
void CopyTo (Track &track, size_t iChannel) const override
 Copy state, for undo/redo purposes. More...
 
bool GetMinimized () const
 
void SetMinimized (bool minimized)
 
int GetCumulativeHeightBefore () const
 
int GetExpandedHeight () const
 
virtual int GetMinimizedHeight () const =0
 
int GetHeight () const
 
void SetCumulativeHeightBefore (int y)
 Set cached value dependent on position within the track list. More...
 
void SetExpandedHeight (int height)
 
std::shared_ptr< ChannelVRulerControlsGetVRulerControls ()
 
std::shared_ptr< const ChannelVRulerControlsGetVRulerControls () const
 
virtual std::shared_ptr< CommonTrackCellGetAffordanceControls ()
 
void WriteXMLAttributes (XMLWriter &writer, size_t iChannel) const override
 Serialize persistent attributes. More...
 
bool HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView, size_t iChannel) override
 Deserialize an attribute, returning true if recognized. More...
 
virtual Refinement GetSubViews (const wxRect &rect)
 
virtual bool IsSpectral () const
 
virtual void DoSetMinimized (bool isMinimized)
 
- Public Member Functions inherited from CommonChannelCell
 CommonChannelCell (const std::shared_ptr< Channel > &pChannel)
 Construct from a channel. More...
 
 ~CommonChannelCell ()
 
std::shared_ptr< TrackDoFindTrack () override
 
void Reparent (const std::shared_ptr< Track > &parent, size_t iChannel) override
 Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More...
 
template<typename Subtype = Channel>
auto FindChannel () -> std::shared_ptr< Subtype >
 May return null. More...
 
template<typename Subtype = const Channel>
auto FindChannel () const -> std::enable_if_t< std::is_const_v< Subtype >, std::shared_ptr< Subtype > >
 May return null. More...
 
- Public Member Functions inherited from CommonTrackPanelCell
 CommonTrackPanelCell ()
 
virtual ~CommonTrackPanelCell ()=0
 
HitTestPreview DefaultPreview (const TrackPanelMouseState &, const AudacityProject *) override
 
std::shared_ptr< TrackFindTrack ()
 
std::shared_ptr< const TrackFindTrack () const
 
virtual std::vector< MenuItemGetMenuItems (const wxRect &rect, const wxPoint *pPosition, AudacityProject *pProject)
 Return a list of items for DoContextMenu() (empties for separators) More...
 
- Public Member Functions inherited from TrackPanelCell
 TrackPanelCell ()=default
 
 TrackPanelCell (const TrackPanelCell &)=delete
 
TrackPanelCelloperator= (const TrackPanelCell &)=delete
 
virtual ~TrackPanelCell ()=0
 
virtual HitTestPreview DefaultPreview (const TrackPanelMouseState &state, const AudacityProject *pProject)
 
virtual std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject)=0
 
virtual unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject)
 
virtual std::shared_ptr< TrackPanelCellContextMenuDelegate ()
 
virtual unsigned DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject)
 
virtual unsigned CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
 
virtual unsigned KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
 
virtual unsigned KeyUp (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
 
virtual unsigned Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
 
virtual unsigned LoseFocus (AudacityProject *project)
 
- Public Member Functions inherited from TrackPanelNode
 TrackPanelNode ()
 
virtual ~TrackPanelNode ()=0
 
- Public Member Functions inherited from TrackPanelDrawable
virtual ~TrackPanelDrawable ()=0
 
virtual void Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass)
 
virtual wxRect DrawingArea (TrackPanelDrawingContext &context, const wxRect &rect, const wxRect &panelRect, unsigned iPass)
 
- Public Member Functions inherited from ChannelAttachment
virtual ~ChannelAttachment ()
 
virtual void CopyTo (Track &track, size_t iChannel) const
 Copy state, for undo/redo purposes. More...
 
virtual void Reparent (const std::shared_ptr< Track > &parent, size_t iChannel)
 Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More...
 
virtual void WriteXMLAttributes (XMLWriter &writer, size_t iChannel) const
 Serialize persistent attributes. More...
 
virtual bool HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView, size_t iChannel)
 Deserialize an attribute, returning true if recognized. More...
 

Static Public Attributes

static int mBrushRadius
 

Private Member Functions

SpectrumViewoperator= (const SpectrumView &)=delete
 
void Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
 
void DoDraw (TrackPanelDrawingContext &context, const WaveChannel &channel, const WaveTrack::Interval *selectedClip, const wxRect &rect)
 
std::vector< UIHandlePtrDetailedHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool) override
 
unsigned CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override
 
unsigned KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override
 
unsigned Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override
 
void DoSetMinimized (bool minimized) override
 

Static Private Member Functions

static void ForAll (AudacityProject &project, std::function< void(SpectrumView &view)> fn)
 

Private Attributes

std::weak_ptr< BrushHandlemBrushHandle
 
std::shared_ptr< SpectralDatampSpectralData
 
std::shared_ptr< SpectralDatampBackupSpectralData
 
bool mOnBrushTool
 

Additional Inherited Members

- Public Types inherited from WaveChannelSubView
using Display = WaveChannelViewConstants::Display
 
using Type = WaveChannelSubViewType
 
- Public Types inherited from ChannelView
enum  : unsigned { DefaultHeight = 150 }
 
using Refinement = std::vector< std::pair< wxCoord, std::shared_ptr< ChannelView > > >
 
- Static Public Member Functions inherited from CommonChannelView
static void GetEnvelopeValues (const Envelope &env, double aligned_time, double sampleDur, double *buffer, int bufferLen, int leftOffset, const ZoomInfo &zoomInfo)
 Get many envelope points for pixel columns at once, but don't assume uniform time per pixel. More...
 
- Static Public Member Functions inherited from ChannelView
static ChannelViewGet (Channel &channel)
 
static const ChannelViewGet (const Channel &channel)
 
static ChannelViewFind (Channel *pChannel)
 
static const ChannelViewFind (const Channel *pChannel)
 
static int GetChannelGroupHeight (const Track *pTrack)
 
static int GetCumulativeHeight (const Channel *pChannel)
 
static int GetCumulativeHeight (const Track *pTrack)
 
static int GetTotalHeight (const TrackList &list)
 
- Static Public Member Functions inherited from TrackPanelDrawable
static wxRect MaximizeWidth (const wxRect &rect, const wxRect &panelRect)
 
static wxRect MaximizeHeight (const wxRect &rect, const wxRect &panelRect)
 
- Public Attributes inherited from CommonChannelView
std::weak_ptr< TimeShiftHandlemTimeShiftHandle
 
- Public Attributes inherited from ChannelView
std::pair< int, int > vrulerSize
 
- Protected Member Functions inherited from WaveChannelSubView
std::weak_ptr< WaveChannelViewGetWaveChannelView () const
 
std::vector< MenuItemGetMenuItems (const wxRect &rect, const wxPoint *pPosition, AudacityProject *pProject) override
 Return a list of items for DoContextMenu() (empties for separators) More...
 
virtual std::vector< UIHandlePtrDetailedHitTest (const TrackPanelMouseState &, const AudacityProject *pProject, int currentTool, bool bMultiTool)=0
 
virtual std::shared_ptr< ChannelVRulerControlsDoGetVRulerControls ()=0
 
- Protected Member Functions inherited from CommonTrackPanelCell
virtual std::shared_ptr< TrackDoFindTrack ()=0
 
unsigned DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject) override
 
unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
 
- Static Protected Member Functions inherited from WaveChannelSubView
static void DrawBoldBoundaries (TrackPanelDrawingContext &context, const WaveChannel &channel, const wxRect &rect)
 
- Protected Attributes inherited from CommonChannelView
std::weak_ptr< SelectHandlemSelectHandle
 
- Protected Attributes inherited from ChannelView
std::shared_ptr< ChannelVRulerControlsmpVRulerControls
 

Detailed Description

Definition at line 123 of file SpectrumView.h.

Constructor & Destructor Documentation

◆ SpectrumView() [1/2]

SpectrumView::SpectrumView ( WaveChannelView waveChannelView,
const SpectrumView src 
)
delete

◆ SpectrumView() [2/2]

SpectrumView::SpectrumView ( WaveChannelView waveChannelView)
explicit

Definition at line 59 of file SpectrumView.cpp.

60 : WaveChannelSubView(waveChannelView)
61{
62 const auto wt = FindWaveChannel();
63 mpSpectralData = std::make_shared<SpectralData>(wt->GetRate());
64 mOnBrushTool = false;
65}
std::shared_ptr< SpectralData > mpSpectralData
Definition: SpectrumView.h:148
std::shared_ptr< WaveChannel > FindWaveChannel()
WaveChannelSubView(WaveChannelView &waveChannelView)

References WaveChannelSubView::FindWaveChannel(), mOnBrushTool, and mpSpectralData.

Here is the call graph for this function:

◆ ~SpectrumView()

SpectrumView::~SpectrumView ( )
overridedefault

Member Function Documentation

◆ CaptureKey()

unsigned SpectrumView::CaptureKey ( wxKeyEvent &  event,
ViewInfo viewInfo,
wxWindow *  pParent,
AudacityProject project 
)
overrideprivatevirtual

Reimplemented from TrackPanelCell.

Definition at line 1066 of file SpectrumView.cpp.

1068{
1069 bool capture = ShouldCaptureEvent(event, mpSpectralData.get());
1070 event.Skip(!capture);
1072}
static bool ShouldCaptureEvent(wxKeyEvent &event, SpectralData *pData)

References mpSpectralData, RefreshCode::RefreshNone, and ShouldCaptureEvent().

Here is the call graph for this function:

◆ Char()

unsigned SpectrumView::Char ( wxKeyEvent &  event,
ViewInfo viewInfo,
wxWindow *  pParent,
AudacityProject project 
)
overrideprivatevirtual

Reimplemented from TrackPanelCell.

Definition at line 1084 of file SpectrumView.cpp.

1086{
1087 bool capture = ShouldCaptureEvent(event, mpSpectralData.get());
1088 event.Skip(!capture);
1090}

References mpSpectralData, RefreshCode::RefreshNone, and ShouldCaptureEvent().

Here is the call graph for this function:

◆ CopyToSubView()

void SpectrumView::CopyToSubView ( WaveChannelSubView destSubView) const
overridevirtual

Reimplemented from WaveChannelSubView.

Definition at line 237 of file SpectrumView.cpp.

238{
239 if (const auto pDest = dynamic_cast< SpectrumView* >(destSubView)) {
240 pDest->mpSpectralData =
241 std::make_shared<SpectralData>(mpSpectralData->GetSR());
242 pDest->mpSpectralData->CopyFrom(*mpSpectralData);
243 }
244}

References mpSpectralData.

◆ DetailedHitTest()

std::vector< UIHandlePtr > SpectrumView::DetailedHitTest ( const TrackPanelMouseState state,
const AudacityProject pProject,
int  currentTool,
bool  bMultiTool 
)
overrideprivatevirtual

Implements CommonChannelView.

Definition at line 173 of file SpectrumView.cpp.

176{
177 const auto wt = FindWaveChannel();
178 std::vector<UIHandlePtr> results;
179
180#ifdef EXPERIMENTAL_BRUSH_TOOL
181 mOnBrushTool = (currentTool == ToolCodes::brushTool);
182 if(mOnBrushTool){
183 const auto result = BrushHandleHitTest(
184 mBrushHandle, state,
185 pProject, std::static_pointer_cast<SpectrumView>(shared_from_this()),
187 results.push_back(result);
188 return results;
189 }
190#endif
191
193 state, pProject, currentTool, bMultiTool, wt
194 ).second;
195}
static UIHandlePtr BrushHandleHitTest(std::weak_ptr< BrushHandle > &holder, const TrackPanelMouseState &st, const AudacityProject *pProject, const std::shared_ptr< SpectrumView > &pChannelView, const std::shared_ptr< SpectralData > &mpData)
std::weak_ptr< BrushHandle > mBrushHandle
Definition: SpectrumView.h:144
std::pair< bool, std::vector< UIHandlePtr > > DoDetailedHitTest(const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool, const std::shared_ptr< WaveChannel > &wt)

References BrushHandleHitTest(), WaveChannelSubView::DoDetailedHitTest(), WaveChannelSubView::FindWaveChannel(), mBrushHandle, mOnBrushTool, and mpSpectralData.

Here is the call graph for this function:

◆ DoDraw()

void SpectrumView::DoDraw ( TrackPanelDrawingContext context,
const WaveChannel channel,
const WaveTrack::Interval selectedClip,
const wxRect &  rect 
)
private

Definition at line 862 of file SpectrumView.cpp.

865{
866 const auto artist = TrackArtist::Get( context );
867 const auto &blankSelectedBrush = artist->blankSelectedBrush;
868 const auto &blankBrush = artist->blankBrush;
870 context, rect, channel, blankSelectedBrush, blankBrush );
871
872 for (const auto &pInterval : channel.Intervals()) {
873 bool selected = selectedClip &&
874 selectedClip == &pInterval->GetClip();
875 DrawClipSpectrum(context, channel, *pInterval, rect, mpSpectralData,
876 selected);
877 }
878
879 DrawBoldBoundaries(context, channel, rect);
880}
static TrackArtist * Get(TrackPanelDrawingContext &)
Definition: TrackArtist.cpp:81
IteratorRange< IntervalIterator< WaveClipChannel > > Intervals()
Definition: WaveTrack.cpp:762
static void DrawBoldBoundaries(TrackPanelDrawingContext &context, const WaveChannel &channel, const wxRect &rect)
AUDACITY_DLL_API void DrawBackgroundWithSelection(TrackPanelDrawingContext &context, const wxRect &rect, const Channel &channel, const wxBrush &selBrush, const wxBrush &unselBrush, bool useSelection=true, bool useBeatsAlternateColor=false)
Helper: draws background with selection rect.
Definition: TrackArt.cpp:648
void DrawClipSpectrum(TrackPanelDrawingContext &context, const WaveChannel &channel, const WaveChannelInterval &clip, const wxRect &rect, const std::shared_ptr< SpectralData > &mpSpectralData, bool selected)

References TrackArt::DrawBackgroundWithSelection(), WaveChannelSubView::DrawBoldBoundaries(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), TrackArtist::Get(), WaveChannel::Intervals(), and mpSpectralData.

Referenced by Draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DoGetVRulerControls()

std::shared_ptr< ChannelVRulerControls > SpectrumView::DoGetVRulerControls ( )
overridevirtual

Implements ChannelView.

Definition at line 228 of file SpectrumView.cpp.

229{
230 return std::make_shared<SpectrumVRulerControls>(shared_from_this());
231}

◆ DoSetMinimized()

void SpectrumView::DoSetMinimized ( bool  minimized)
overrideprivatevirtual

Reimplemented from ChannelView.

Definition at line 197 of file SpectrumView.cpp.

198{
199 const auto wt = FindWaveChannel();
200 if (!wt)
201 return;
202
203 bool bHalfWave;
204 gPrefs->Read(wxT("/GUI/CollapseToHalfWave"), &bHalfWave, false);
205 if( bHalfWave && minimized)
206 {
207 // It is all right to set the top of scale to a huge number,
208 // not knowing the track sampleRate here -- because when retrieving the
209 // value, then we pass in a sample rate and clamp it above to the
210 // Nyquist frequency.
211 constexpr auto max = std::numeric_limits<float>::max();
212 const bool spectrumLinear =
215 // Zoom out full
217 .SetBounds( spectrumLinear ? 0.0f : 1.0f, max );
218 }
219
221}
wxT("CloseDown"))
audacity::BasicSettings * gPrefs
Definition: Prefs.cpp:68
virtual void DoSetMinimized(bool isMinimized)
void SetBounds(float min, float max)
static SpectrogramBounds & Get(WaveTrack &track)
Get either the global default settings, or the track's own if previously created.
static SpectrogramSettings & Get(const WaveTrack &track)
virtual bool Read(const wxString &key, bool *value) const =0

References ChannelView::DoSetMinimized(), WaveChannelSubView::FindWaveChannel(), SpectrogramSettings::Get(), SpectrogramBounds::Get(), gPrefs, audacity::BasicSettings::Read(), SpectrogramSettings::scaleType, SpectrogramBounds::SetBounds(), SpectrogramSettings::stLinear, and wxT().

Here is the call graph for this function:

◆ Draw()

void SpectrumView::Draw ( TrackPanelDrawingContext context,
const wxRect &  rect,
unsigned  iPass 
)
overrideprivatevirtual

Reimplemented from TrackPanelDrawable.

Definition at line 882 of file SpectrumView.cpp.

884{
885 if ( iPass == TrackArtist::PassTracks ) {
886 const auto artist = TrackArtist::Get(context);
887 const auto &pendingTracks = *artist->pPendingTracks;
888
889 auto &dc = context.dc;
890
891 const auto pChannel = FindChannel();
892 if (!pChannel)
893 return;
894 const auto &wt = static_cast<const WaveChannel&>(
895 pendingTracks.SubstitutePendingChangedChannel(*pChannel));
896
897#if defined(__WXMAC__)
898 wxAntialiasMode aamode = dc.GetGraphicsContext()->GetAntialiasMode();
899 dc.GetGraphicsContext()->SetAntialiasMode(wxANTIALIAS_NONE);
900#endif
901
902 auto waveChannelView = GetWaveChannelView().lock();
903 wxASSERT(waveChannelView.use_count());
904
905 auto selectedClip = waveChannelView->GetSelectedClip();
906 DoDraw(context, wt, selectedClip.get(), rect);
907
908#if defined(__WXMAC__)
909 dc.GetGraphicsContext()->SetAntialiasMode(aamode);
910#endif
911 }
912 WaveChannelSubView::Draw(context, rect, iPass);
913}
auto FindChannel() -> std::shared_ptr< Subtype >
May return null.
void DoDraw(TrackPanelDrawingContext &context, const WaveChannel &channel, const WaveTrack::Interval *selectedClip, const wxRect &rect)
virtual void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass)
std::weak_ptr< WaveChannelView > GetWaveChannelView() const

References TrackPanelDrawingContext::dc, DoDraw(), TrackPanelDrawable::Draw(), CommonChannelCell::FindChannel(), TrackArtist::Get(), WaveChannelSubView::GetWaveChannelView(), and TrackArtist::PassTracks.

Here is the call graph for this function:

◆ ForAll()

void SpectrumView::ForAll ( AudacityProject project,
std::function< void(SpectrumView &view)>  fn 
)
staticprivate

Definition at line 155 of file SpectrumView.cpp.

157{
158 if (!fn)
159 return;
160 for (const auto wt : TrackList::Get(project).Any<WaveTrack>()) {
161 for (auto pChannel : wt->Channels()) {
162 if (auto pWaveChannelView =
163 dynamic_cast<WaveChannelView*>(&ChannelView::Get(*pChannel))) {
164 for (const auto &pSubView : pWaveChannelView->GetAllSubViews()) {
165 if (const auto sView = dynamic_cast<SpectrumView*>(pSubView.get()))
166 fn( *sView );
167 }
168 }
169 }
170 }
171}
const auto project
static const auto fn
static ChannelView & Get(Channel &channel)
static TrackList & Get(AudacityProject &project)
Definition: Track.cpp:314

References fn, TrackList::Get(), ChannelView::Get(), and project.

Referenced by SpectrumView::SpectralDataSaver::Init(), and SpectrumView::SpectralDataSaver::~SpectralDataSaver().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSpectralData()

std::shared_ptr< SpectralData > SpectrumView::GetSpectralData ( )

Definition at line 233 of file SpectrumView.cpp.

233 {
234 return mpSpectralData;
235}

References mpSpectralData.

◆ IsSpectral()

bool SpectrumView::IsSpectral ( ) const
overridevirtual

Reimplemented from ChannelView.

Definition at line 69 of file SpectrumView.cpp.

70{
71 return true;
72}

◆ KeyDown()

unsigned SpectrumView::KeyDown ( wxKeyEvent &  event,
ViewInfo viewInfo,
wxWindow *  pParent,
AudacityProject project 
)
overrideprivatevirtual

Reimplemented from TrackPanelCell.

Definition at line 1074 of file SpectrumView.cpp.

1075{
1076 bool capture = ShouldCaptureEvent(event, mpSpectralData.get());
1077 event.Skip(!capture);
1079 // Not RefreshCell, because there might be effects in multiple tracks
1082}
static bool ProcessTracks(AudacityProject &project)

References mpSpectralData, SpectralDataManager::ProcessTracks(), project, RefreshCode::RefreshAll, RefreshCode::RefreshNone, and ShouldCaptureEvent().

Here is the call graph for this function:

◆ operator=()

SpectrumView & SpectrumView::operator= ( const SpectrumView )
privatedelete

◆ SubViewType()

auto SpectrumView::SubViewType ( ) const
overridevirtual

Implements WaveChannelSubView.

Definition at line 223 of file SpectrumView.cpp.

224{
225 return sType;
226}
static WaveChannelSubView::Type sType

References sType.

Member Data Documentation

◆ mBrushHandle

std::weak_ptr<BrushHandle> SpectrumView::mBrushHandle
private

Definition at line 147 of file SpectrumView.h.

Referenced by DetailedHitTest().

◆ mBrushRadius

int SpectrumView::mBrushRadius
static

Definition at line 140 of file SpectrumView.h.

◆ mOnBrushTool

bool SpectrumView::mOnBrushTool
private

Definition at line 149 of file SpectrumView.h.

Referenced by DetailedHitTest(), and SpectrumView().

◆ mpBackupSpectralData

std::shared_ptr<SpectralData> SpectrumView::mpBackupSpectralData
private

◆ mpSpectralData

std::shared_ptr<SpectralData> SpectrumView::mpSpectralData
private

The documentation for this class was generated from the following files: