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 37 of file FreqWindow.h.

Constructor & Destructor Documentation

◆ FreqPlot()

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

Definition at line 1172 of file FreqWindow.cpp.

1173: wxWindow(parent, winid)
1174{
1175 freqWindow = (FrequencyPlotDialog *) parent;
1176}
FrequencyPlotDialog * freqWindow
Definition: FreqWindow.h:51
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 1178 of file FreqWindow.cpp.

1179{
1180 return false;
1181}

◆ OnErase()

void FreqPlot::OnErase ( wxEraseEvent &  event)
private

Definition at line 1183 of file FreqWindow.cpp.

1184{
1185 // Ignore it to prevent flashing
1186}

◆ OnMouseEvent()

void FreqPlot::OnMouseEvent ( wxMouseEvent &  event)
private

Definition at line 1193 of file FreqWindow.cpp.

1194{
1195 freqWindow->PlotMouseEvent(event);
1196}
void PlotMouseEvent(wxMouseEvent &event)
Definition: FreqWindow.cpp:825

References freqWindow, and FrequencyPlotDialog::PlotMouseEvent().

Here is the call graph for this function:

◆ OnPaint()

void FreqPlot::OnPaint ( wxPaintEvent &  event)
private

Definition at line 1188 of file FreqWindow.cpp.

1189{
1190 freqWindow->PlotPaint(evt);
1191}
void PlotPaint(wxPaintEvent &event)
Definition: FreqWindow.cpp:887

References freqWindow, and FrequencyPlotDialog::PlotPaint().

Here is the call graph for this function:

Member Data Documentation

◆ freqWindow

FrequencyPlotDialog* FreqPlot::freqWindow
private

Definition at line 51 of file FreqWindow.h.

Referenced by OnMouseEvent(), and OnPaint().


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