Audacity 3.2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FreqPlot Class Referencefinal

Works with FrequencyPlotDialog to display a spectrum plot of the waveform. This class actually does the graph display. More...

#include <FreqWindow.h>

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

Public Member Functions

 FreqPlot (wxWindow *parent, wxWindowID winid)
 
bool AcceptsFocus () const
 

Private Member Functions

void OnPaint (wxPaintEvent &event)
 
void OnErase (wxEraseEvent &event)
 
void OnMouseEvent (wxMouseEvent &event)
 

Private Attributes

FrequencyPlotDialogfreqWindow
 

Detailed Description

Works with FrequencyPlotDialog to display a spectrum plot of the waveform. This class actually does the graph display.

Has a feature that finds peaks and reports their value as you move the mouse around.

Definition at line 35 of file FreqWindow.h.

Constructor & Destructor Documentation

◆ FreqPlot()

FreqPlot::FreqPlot ( wxWindow *  parent,
wxWindowID  winid 
)

Definition at line 1113 of file FreqWindow.cpp.

1114: wxWindow(parent, winid)
1115{
1116 freqWindow = (FrequencyPlotDialog *) parent;
1117}
FrequencyPlotDialog * freqWindow
Definition: FreqWindow.h:49
Displays a spectrum plot of the waveform. Has options for selecting parameters of the plot.
Definition: FreqWindow.h:58

Member Function Documentation

◆ AcceptsFocus()

bool FreqPlot::AcceptsFocus ( ) const

Definition at line 1119 of file FreqWindow.cpp.

1120{
1121 return false;
1122}

◆ OnErase()

void FreqPlot::OnErase ( wxEraseEvent &  event)
private

Definition at line 1124 of file FreqWindow.cpp.

1125{
1126 // Ignore it to prevent flashing
1127}

◆ OnMouseEvent()

void FreqPlot::OnMouseEvent ( wxMouseEvent &  event)
private

Definition at line 1134 of file FreqWindow.cpp.

1135{
1136 freqWindow->PlotMouseEvent(event);
1137}
void PlotMouseEvent(wxMouseEvent &event)
Definition: FreqWindow.cpp:755

References freqWindow, and FrequencyPlotDialog::PlotMouseEvent().

Here is the call graph for this function:

◆ OnPaint()

void FreqPlot::OnPaint ( wxPaintEvent &  event)
private

Definition at line 1129 of file FreqWindow.cpp.

1130{
1131 freqWindow->PlotPaint(evt);
1132}
void PlotPaint(wxPaintEvent &event)
Definition: FreqWindow.cpp:817

References freqWindow, and FrequencyPlotDialog::PlotPaint().

Here is the call graph for this function:

Member Data Documentation

◆ freqWindow

FrequencyPlotDialog* FreqPlot::freqWindow
private

Definition at line 49 of file FreqWindow.h.

Referenced by OnMouseEvent(), and OnPaint().


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