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 (WaveTrackView &waveTrackView, const SpectrumView &src)=delete
 
 SpectrumView (WaveTrackView &waveTrackView)
 
 ~SpectrumView () override
 
const TypeSubViewType () const override
 
std::shared_ptr< TrackVRulerControlsDoGetVRulerControls () override
 
std::shared_ptr< SpectralDataGetSpectralData ()
 
bool IsSpectral () const override
 
void CopyToSubView (WaveTrackSubView *destSubView) const override
 
- Public Member Functions inherited from WaveTrackSubView
 WaveTrackSubView (WaveTrackView &waveTrackView)
 
virtual const TypeSubViewType () const =0
 
virtual void CopyToSubView (WaveTrackSubView *destSubView) const
 
std::pair< bool, std::vector< UIHandlePtr > > DoDetailedHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool, const std::shared_ptr< WaveTrack > &wt)
 
- Public Member Functions inherited from CommonTrackView
std::shared_ptr< TrackPanelCellContextMenuDelegate () override
 
std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &, const AudacityProject *pProject) final override
 
void TimeShiftHitTest ()
 
virtual int GetMinimizedHeight () const override
 
 TrackView (const std::shared_ptr< Track > &pTrack)
 
- Public Member Functions inherited from TrackView
 TrackView (const std::shared_ptr< Track > &pTrack)
 
virtual ~TrackView ()=0
 
void CopyTo (Track &track) 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< TrackVRulerControlsGetVRulerControls ()
 
std::shared_ptr< const TrackVRulerControlsGetVRulerControls () const
 
virtual std::shared_ptr< CommonTrackCellGetAffordanceControls ()
 
void WriteXMLAttributes (XMLWriter &) const override
 Serialize persistent attributes. More...
 
bool HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView) 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 CommonTrackCell
 CommonTrackCell (const std::shared_ptr< Track > &pTrack)
 
 ~CommonTrackCell ()
 
std::shared_ptr< TrackDoFindTrack () override
 
void Reparent (const std::shared_ptr< Track > &parent) override
 Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. 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 &) PROHIBITED
 
TrackPanelCelloperator= (const TrackPanelCell &) PROHIBITED
 
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 TrackAttachment
virtual ~TrackAttachment ()
 
virtual void CopyTo (Track &track) const
 Copy state, for undo/redo purposes. More...
 
virtual void Reparent (const std::shared_ptr< Track > &parent)
 Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More...
 
virtual void WriteXMLAttributes (XMLWriter &) const
 Serialize persistent attributes. More...
 
virtual bool HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView)
 Deserialize an attribute, returning true if recognized. More...
 
- Public Member Functions inherited from ClientData::Base
virtual ~Base ()
 

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 WaveTrack *track, const WaveClip *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 WaveTrackSubView
using Display = WaveTrackViewConstants::Display
 
using Type = WaveTrackSubViewType
 
- Public Types inherited from TrackView
enum  : unsigned { DefaultHeight = 150 }
 
using Refinement = std::vector< std::pair< wxCoord, std::shared_ptr< TrackView > > >
 
- Static Public Member Functions inherited from CommonTrackView
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 TrackView
static int GetTrackHeight (const Track *pTrack)
 
static int GetChannelGroupHeight (const Track *pTrack)
 
static int GetCumulativeHeight (const Track *pTrack)
 
static int GetTotalHeight (const TrackList &list)
 
static TrackViewGet (Track &)
 
static const TrackViewGet (const Track &)
 
static TrackViewFind (Track *)
 
static const TrackViewFind (const Track *)
 
- 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 CommonTrackView
std::weak_ptr< TimeShiftHandlemTimeShiftHandle
 
- Protected Member Functions inherited from WaveTrackSubView
std::weak_ptr< WaveTrackViewGetWaveTrackView () 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< TrackVRulerControlsDoGetVRulerControls ()=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 WaveTrackSubView
static void DrawBoldBoundaries (TrackPanelDrawingContext &context, const WaveTrack *track, const wxRect &rect)
 
- Protected Attributes inherited from CommonTrackView
std::weak_ptr< SelectHandlemSelectHandle
 
- Protected Attributes inherited from TrackView
std::shared_ptr< TrackVRulerControlsmpVRulerControls
 

Detailed Description

Definition at line 113 of file SpectrumView.h.

Constructor & Destructor Documentation

◆ SpectrumView() [1/2]

SpectrumView::SpectrumView ( WaveTrackView waveTrackView,
const SpectrumView src 
)
delete

◆ SpectrumView() [2/2]

SpectrumView::SpectrumView ( WaveTrackView waveTrackView)
explicit

Definition at line 55 of file SpectrumView.cpp.

55 : WaveTrackSubView(waveTrackView) {
56 auto wt = static_cast<WaveTrack*>( FindTrack().get() );
57 mpSpectralData = std::make_shared<SpectralData>(wt->GetRate());
58 mOnBrushTool = false;
59}
std::shared_ptr< Track > FindTrack()
std::shared_ptr< SpectralData > mpSpectralData
Definition: SpectrumView.h:137
A Track that contains audio waveform data.
Definition: WaveTrack.h:51
WaveTrackSubView(WaveTrackView &waveTrackView)

References CommonTrackPanelCell::FindTrack(), 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 1064 of file SpectrumView.cpp.

1066{
1067 bool capture = ShouldCaptureEvent(event, mpSpectralData.get());
1068 event.Skip(!capture);
1070}
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 1082 of file SpectrumView.cpp.

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

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

Here is the call graph for this function:

◆ CopyToSubView()

void SpectrumView::CopyToSubView ( WaveTrackSubView destSubView) const
overridevirtual

Reimplemented from WaveTrackSubView.

Definition at line 230 of file SpectrumView.cpp.

230 {
231 if ( const auto pDest = dynamic_cast< SpectrumView* >( destSubView ) ) {
232 pDest->mpSpectralData = std::make_shared<SpectralData>(mpSpectralData->GetSR());
233 pDest->mpSpectralData->CopyFrom(*mpSpectralData);
234 }
235}

References mpSpectralData.

◆ DetailedHitTest()

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

Implements CommonTrackView.

Definition at line 166 of file SpectrumView.cpp.

169{
170 const auto wt = std::static_pointer_cast< WaveTrack >( FindTrack() );
171 std::vector<UIHandlePtr> results;
172
173#ifdef EXPERIMENTAL_BRUSH_TOOL
174 mOnBrushTool = (currentTool == ToolCodes::brushTool);
175 if(mOnBrushTool){
176 const auto result = BrushHandleHitTest(
177 mBrushHandle, state,
178 pProject, std::static_pointer_cast<SpectrumView>(shared_from_this()),
180 results.push_back(result);
181 return results;
182 }
183#endif
184
186 state, pProject, currentTool, bMultiTool, wt
187 ).second;
188}
static UIHandlePtr BrushHandleHitTest(std::weak_ptr< BrushHandle > &holder, const TrackPanelMouseState &st, const AudacityProject *pProject, const std::shared_ptr< SpectrumView > &pTrackView, const std::shared_ptr< SpectralData > &mpData)
std::weak_ptr< BrushHandle > mBrushHandle
Definition: SpectrumView.h:133
std::pair< bool, std::vector< UIHandlePtr > > DoDetailedHitTest(const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool, const std::shared_ptr< WaveTrack > &wt)

References BrushHandleHitTest(), WaveTrackSubView::DoDetailedHitTest(), CommonTrackPanelCell::FindTrack(), mBrushHandle, mOnBrushTool, and mpSpectralData.

Here is the call graph for this function:

◆ DoDraw()

void SpectrumView::DoDraw ( TrackPanelDrawingContext context,
const WaveTrack track,
const WaveClip selectedClip,
const wxRect &  rect 
)
private

Definition at line 855 of file SpectrumView.cpp.

859{
860 const auto artist = TrackArtist::Get( context );
861 const auto &blankSelectedBrush = artist->blankSelectedBrush;
862 const auto &blankBrush = artist->blankBrush;
864 context, rect, track, blankSelectedBrush, blankBrush );
865
866 SampleTrackCache cache(track->SharedPointer<const WaveTrack>());
867 for (const auto &clip: track->GetClips()){
868 DrawClipSpectrum( context, cache, clip.get(), rect,
869 mpSpectralData, clip.get() == selectedClip);
870 }
871
872 DrawBoldBoundaries( context, track, rect );
873}
A short-lived object, during whose lifetime, the contents of the WaveTrack are assumed not to change.
static TrackArtist * Get(TrackPanelDrawingContext &)
Definition: TrackArtist.cpp:69
std::shared_ptr< Subclass > SharedPointer()
Definition: Track.h:298
WaveClipHolders & GetClips()
Definition: WaveTrack.h:322
static void DrawBoldBoundaries(TrackPanelDrawingContext &context, const WaveTrack *track, const wxRect &rect)
AUDACITY_DLL_API void DrawBackgroundWithSelection(TrackPanelDrawingContext &context, const wxRect &rect, const Track *track, const wxBrush &selBrush, const wxBrush &unselBrush, bool useSelection=true)
Definition: TrackArt.cpp:422
void DrawClipSpectrum(TrackPanelDrawingContext &context, SampleTrackCache &waveTrackCache, const WaveClip *clip, const wxRect &rect, const std::shared_ptr< SpectralData > &mpSpectralData, bool selected)

References TrackArt::DrawBackgroundWithSelection(), WaveTrackSubView::DrawBoldBoundaries(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), TrackArtist::Get(), WaveTrack::GetClips(), mpSpectralData, and Track::SharedPointer().

Referenced by Draw().

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

◆ DoGetVRulerControls()

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

Implements TrackView.

Definition at line 221 of file SpectrumView.cpp.

222{
223 return std::make_shared<SpectrumVRulerControls>( shared_from_this() );
224}

◆ DoSetMinimized()

void SpectrumView::DoSetMinimized ( bool  minimized)
overrideprivatevirtual

Reimplemented from TrackView.

Definition at line 190 of file SpectrumView.cpp.

191{
192 auto wt = static_cast<WaveTrack*>( FindTrack().get() );
193
194#ifdef EXPERIMENTAL_HALF_WAVE
195 bool bHalfWave;
196 gPrefs->Read(wxT("/GUI/CollapseToHalfWave"), &bHalfWave, false);
197 if( bHalfWave && minimized)
198 {
199 // It is all right to set the top of scale to a huge number,
200 // not knowing the track rate here -- because when retrieving the
201 // value, then we pass in a sample rate and clamp it above to the
202 // Nyquist frequency.
203 constexpr auto max = std::numeric_limits<float>::max();
204 const bool spectrumLinear =
207 // Zoom out full
209 .SetBounds( spectrumLinear ? 0.0f : 1.0f, max );
210 }
211#endif
212
213 TrackView::DoSetMinimized( minimized );
214}
wxT("CloseDown"))
FileConfig * gPrefs
Definition: Prefs.cpp:70
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)
Mutative access to attachment even if the track argument is const.
virtual void DoSetMinimized(bool isMinimized)
Definition: TrackView.cpp:141

References TrackView::DoSetMinimized(), CommonTrackPanelCell::FindTrack(), SpectrogramSettings::Get(), SpectrogramBounds::Get(), gPrefs, 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 875 of file SpectrumView.cpp.

877{
878 if ( iPass == TrackArtist::PassTracks ) {
879 auto &dc = context.dc;
880 // Update cache for locations, e.g. cutlines and merge points
881 // Bug2588: do this for both channels, even if one is not drawn, so that
882 // cut-line editing (which depends on the locations cache) works properly.
883 // If both channels are visible, we will duplicate this effort, but that
884 // matters little.
885 for( auto channel:
886 TrackList::Channels(static_cast<WaveTrack*>(FindTrack().get())) ) {
887 auto &locationsCache = WaveTrackLocations::Get( *channel );
888 locationsCache.Update( *channel );
889 }
890
891 const auto wt = std::static_pointer_cast<const WaveTrack>(
892 FindTrack()->SubstitutePendingChangedTrack());
893
894 const auto artist = TrackArtist::Get( context );
895
896#if defined(__WXMAC__)
897 wxAntialiasMode aamode = dc.GetGraphicsContext()->GetAntialiasMode();
898 dc.GetGraphicsContext()->SetAntialiasMode(wxANTIALIAS_NONE);
899#endif
900
901 auto waveTrackView = GetWaveTrackView().lock();
902 wxASSERT(waveTrackView.use_count());
903
904 auto seletedClip = waveTrackView->GetSelectedClip().lock();
905 DoDraw( context, wt.get(), seletedClip.get(), rect );
906
907#if defined(__WXMAC__)
908 dc.GetGraphicsContext()->SetAntialiasMode(aamode);
909#endif
910 }
911 WaveTrackSubView::Draw( context, rect, iPass );
912}
void DoDraw(TrackPanelDrawingContext &context, const WaveTrack *track, const WaveClip *selectedClip, const wxRect &rect)
static auto Channels(TrackType *pTrack) -> TrackIterRange< TrackType >
Definition: Track.h:1544
virtual void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass)
const std::vector< Location > & Get() const
std::weak_ptr< WaveTrackView > GetWaveTrackView() const

References TrackList::Channels(), TrackPanelDrawingContext::dc, DoDraw(), TrackPanelDrawable::Draw(), CommonTrackPanelCell::FindTrack(), WaveTrackLocations::Get(), TrackArtist::Get(), WaveTrackSubView::GetWaveTrackView(), 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 150 of file SpectrumView.cpp.

152{
153 if (!fn)
154 return;
155 for ( const auto wt : TrackList::Get(project).Any< WaveTrack >() ) {
156 if (auto pWaveTrackView =
157 dynamic_cast<WaveTrackView*>( &TrackView::Get(*wt)) ) {
158 for (const auto &pSubView : pWaveTrackView->GetAllSubViews()) {
159 if (const auto sView = dynamic_cast<SpectrumView*>(pSubView.get()))
160 fn( *sView );
161 }
162 }
163 }
164}
static const auto fn
static TrackList & Get(AudacityProject &project)
Definition: Track.cpp:487
static TrackView & Get(Track &)
Definition: TrackView.cpp:69

References fn, TrackList::Get(), and TrackView::Get().

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 226 of file SpectrumView.cpp.

226 {
227 return mpSpectralData;
228}

References mpSpectralData.

◆ IsSpectral()

bool SpectrumView::IsSpectral ( ) const
overridevirtual

Reimplemented from TrackView.

Definition at line 63 of file SpectrumView.cpp.

64{
65 return true;
66}

◆ KeyDown()

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

Reimplemented from TrackPanelCell.

Definition at line 1072 of file SpectrumView.cpp.

1073{
1074 bool capture = ShouldCaptureEvent(event, mpSpectralData.get());
1075 event.Skip(!capture);
1076 if (capture && SpectralDataManager::ProcessTracks(*project))
1077 // Not RefreshCell, because there might be effects in multiple tracks
1080}
static bool ProcessTracks(AudacityProject &project)

References mpSpectralData, SpectralDataManager::ProcessTracks(), 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 WaveTrackSubView.

Definition at line 216 of file SpectrumView.cpp.

217{
218 return sType;
219}
static WaveTrackSubView::Type sType

References sType.

Member Data Documentation

◆ mBrushHandle

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

Definition at line 136 of file SpectrumView.h.

Referenced by DetailedHitTest().

◆ mBrushRadius

int SpectrumView::mBrushRadius
static

Definition at line 129 of file SpectrumView.h.

◆ mOnBrushTool

bool SpectrumView::mOnBrushTool
private

Definition at line 138 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: