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 1195 of file FreqWindow.cpp.

1196: wxWindow(parent, winid)
1197{
1198 freqWindow = (FrequencyPlotDialog *) parent;
1199}
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 1201 of file FreqWindow.cpp.

1202{
1203 return false;
1204}

◆ OnErase()

void FreqPlot::OnErase ( wxEraseEvent &  event)
private

Definition at line 1206 of file FreqWindow.cpp.

1207{
1208 // Ignore it to prevent flashing
1209}

◆ OnMouseEvent()

void FreqPlot::OnMouseEvent ( wxMouseEvent &  event)
private

Definition at line 1216 of file FreqWindow.cpp.

1217{
1218 freqWindow->PlotMouseEvent(event);
1219}
void PlotMouseEvent(wxMouseEvent &event)
Definition: FreqWindow.cpp:848

References freqWindow, and FrequencyPlotDialog::PlotMouseEvent().

Here is the call graph for this function:

◆ OnPaint()

void FreqPlot::OnPaint ( wxPaintEvent &  event)
private

Definition at line 1211 of file FreqWindow.cpp.

1212{
1213 freqWindow->PlotPaint(evt);
1214}
void PlotPaint(wxPaintEvent &event)
Definition: FreqWindow.cpp:910

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: