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

56 : WaveChannelSubView(waveChannelView)
57{
58 const auto wt = FindWaveChannel();
59 mpSpectralData = std::make_shared<SpectralData>(wt->GetRate());
60 mOnBrushTool = false;
61}
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 1062 of file SpectrumView.cpp.

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

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

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

234{
235 if (const auto pDest = dynamic_cast< SpectrumView* >(destSubView)) {
236 pDest->mpSpectralData =
237 std::make_shared<SpectralData>(mpSpectralData->GetSR());
238 pDest->mpSpectralData->CopyFrom(*mpSpectralData);
239 }
240}

References mpSpectralData.

◆ DetailedHitTest()

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

Implements CommonChannelView.

Definition at line 169 of file SpectrumView.cpp.

172{
173 const auto wt = FindWaveChannel();
174 std::vector<UIHandlePtr> results;
175
176#ifdef EXPERIMENTAL_BRUSH_TOOL
177 mOnBrushTool = (currentTool == ToolCodes::brushTool);
178 if(mOnBrushTool){
179 const auto result = BrushHandleHitTest(
180 mBrushHandle, state,
181 pProject, std::static_pointer_cast<SpectrumView>(shared_from_this()),
183 results.push_back(result);
184 return results;
185 }
186#endif
187
189 state, pProject, currentTool, bMultiTool, wt
190 ).second;
191}
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 858 of file SpectrumView.cpp.

861{
862 const auto artist = TrackArtist::Get( context );
863 const auto &blankSelectedBrush = artist->blankSelectedBrush;
864 const auto &blankBrush = artist->blankBrush;
866 context, rect, channel, blankSelectedBrush, blankBrush );
867
868 for (const auto &pInterval : channel.Intervals()) {
869 bool selected = selectedClip &&
870 selectedClip == &pInterval->GetClip();
871 DrawClipSpectrum(context, channel, *pInterval, rect, mpSpectralData,
872 selected);
873 }
874
875 DrawBoldBoundaries(context, channel, rect);
876}
static TrackArtist * Get(TrackPanelDrawingContext &)
Definition: TrackArtist.cpp:69
IteratorRange< IntervalIterator< WaveClipChannel > > Intervals()
Definition: WaveTrack.cpp:745
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)
Definition: TrackArt.cpp:651
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 224 of file SpectrumView.cpp.

225{
226 return std::make_shared<SpectrumVRulerControls>(shared_from_this());
227}

◆ DoSetMinimized()

void SpectrumView::DoSetMinimized ( bool  minimized)
overrideprivatevirtual

Reimplemented from ChannelView.

Definition at line 193 of file SpectrumView.cpp.

194{
195 const auto wt = FindWaveChannel();
196 if (!wt)
197 return;
198
199 bool bHalfWave;
200 gPrefs->Read(wxT("/GUI/CollapseToHalfWave"), &bHalfWave, false);
201 if( bHalfWave && minimized)
202 {
203 // It is all right to set the top of scale to a huge number,
204 // not knowing the track sampleRate here -- because when retrieving the
205 // value, then we pass in a sample rate and clamp it above to the
206 // Nyquist frequency.
207 constexpr auto max = std::numeric_limits<float>::max();
208 const bool spectrumLinear =
211 // Zoom out full
213 .SetBounds( spectrumLinear ? 0.0f : 1.0f, max );
214 }
215
217}
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 878 of file SpectrumView.cpp.

880{
881 if ( iPass == TrackArtist::PassTracks ) {
882 const auto artist = TrackArtist::Get(context);
883 const auto &pendingTracks = *artist->pPendingTracks;
884
885 auto &dc = context.dc;
886
887 const auto pChannel = FindChannel();
888 if (!pChannel)
889 return;
890 const auto &wt = static_cast<const WaveChannel&>(
891 pendingTracks.SubstitutePendingChangedChannel(*pChannel));
892
893#if defined(__WXMAC__)
894 wxAntialiasMode aamode = dc.GetGraphicsContext()->GetAntialiasMode();
895 dc.GetGraphicsContext()->SetAntialiasMode(wxANTIALIAS_NONE);
896#endif
897
898 auto waveChannelView = GetWaveChannelView().lock();
899 wxASSERT(waveChannelView.use_count());
900
901 auto selectedClip = waveChannelView->GetSelectedClip();
902 DoDraw(context, wt, selectedClip.get(), rect);
903
904#if defined(__WXMAC__)
905 dc.GetGraphicsContext()->SetAntialiasMode(aamode);
906#endif
907 }
908 WaveChannelSubView::Draw(context, rect, iPass);
909}
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 151 of file SpectrumView.cpp.

153{
154 if (!fn)
155 return;
156 for (const auto wt : TrackList::Get(project).Any<WaveTrack>()) {
157 for (auto pChannel : wt->Channels()) {
158 if (auto pWaveChannelView =
159 dynamic_cast<WaveChannelView*>(&ChannelView::Get(*pChannel))) {
160 for (const auto &pSubView : pWaveChannelView->GetAllSubViews()) {
161 if (const auto sView = dynamic_cast<SpectrumView*>(pSubView.get()))
162 fn( *sView );
163 }
164 }
165 }
166 }
167}
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 229 of file SpectrumView.cpp.

229 {
230 return mpSpectralData;
231}

References mpSpectralData.

◆ IsSpectral()

bool SpectrumView::IsSpectral ( ) const
overridevirtual

Reimplemented from ChannelView.

Definition at line 65 of file SpectrumView.cpp.

66{
67 return true;
68}

◆ KeyDown()

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

Reimplemented from TrackPanelCell.

Definition at line 1070 of file SpectrumView.cpp.

1071{
1072 bool capture = ShouldCaptureEvent(event, mpSpectralData.get());
1073 event.Skip(!capture);
1075 // Not RefreshCell, because there might be effects in multiple tracks
1078}
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 219 of file SpectrumView.cpp.

220{
221 return sType;
222}
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: