#include <gapeaudioplot.h>
Inheritance diagram for GapeAudioPlot::
Public Slots | |
virtual void | receiveTick (const GapeFloat *values, int numValues) |
Recieves new data to plot. More... | |
void | setRefreshFrequency (int rf) |
Sets the inverse refresh frequency, ie higher numbers refresh less often and are less cpu intensive. More... | |
virtual void | setRangeAutoscale (bool autoScaleOn) |
Sets whether the graph automatically scales its ranges to take up the entire display. More... | |
Signals | |
void | emitSetRangeAutoScale (bool t) |
Emitted when user moves the number of samples slider. More... | |
Public Methods | |
GapeAudioPlot (QWidget *parent=NULL, const char *title="", const char *hlabel="", const char *vlabel="", int nSamples=AUDIOPLOT_DEFAULT_NUM_SAMPLES, double independentScalar=AUDIOPLOT_IVAR_SCALAR, int rFrequency=AUDIOPLOT_DEFAULT_REFRESH_FREQUENCY) | |
The Constructor. More... | |
~GapeAudioPlot () | |
The destructor. | |
void | setBackgroundColor (const QColor &color) |
Sets the background color. More... | |
void | setCurveColor (const QColor &color) |
Sets the curve color. More... | |
void | resize (const QSize &size) |
Resizes the display. More... | |
void | setAxisTitle (int axis, const char *t) |
Sets an axis title. More... | |
Protected Methods | |
virtual void | updateDisplay () |
Updates the screen. More... | |
Protected Attributes | |
QwtPlot* | plotDisplay |
The GUI end of either a time domain waveform display or fft frequency display, this class is more of a display than a controller, although it implements the GapeController interface in order to work with GapeUnits. It signals emitTick(), and as soon as the unit chain which has been hooked to it have all completed their work, it will signal emitTick() again. In this manner, it will drive units at the sampling rate if they are hooked up to a real time output, or as fast as possible if they are writing to disk or some other non real time situation. See the GapeSignalDisplay classes for more info (you should probably only be working with those classes anyway)
Definition at line 42 of file gapeaudioplot.h.
|
The Constructor.
Definition at line 24 of file gapeaudioplot.cpp. |
|
Sets the background color.
Definition at line 68 of file gapeaudioplot.h. |
|
Sets the curve color.
Definition at line 76 of file gapeaudioplot.h. |
|
Resizes the display.
Definition at line 84 of file gapeaudioplot.h. |
|
Sets an axis title.
Definition at line 94 of file gapeaudioplot.h. Referenced by GapeFreqDomainPlot::takeLogOfSpectrum().
|
|
Recieves new data to plot. Although this is a controller, not a GapeUnit, we implement recieve tick because the graphical plotter needs the actual data to plot it on the screen. This should recieve large bunches of samples, not one at a time
Definition at line 79 of file gapeaudioplot.cpp. |
|
Sets the inverse refresh frequency, ie higher numbers refresh less often and are less cpu intensive.
Definition at line 117 of file gapeaudioplot.h. |
|
Sets whether the graph automatically scales its ranges to take up the entire display.
Reimplemented in GapeFreqDomainPlot. Definition at line 125 of file gapeaudioplot.h. |
|
Emitted when user moves the number of samples slider. This notifes our underlying GapeSignalDisplayUnit of the new number of samples requested for the display.
Referenced by GapeFreqDomainPlot::setRangeAutoscale(), and setRangeAutoscale().
|
|
Updates the screen. We use GapeController's threadsafe screen refreshing because our display is receiving data on a GapeAudioDriver thread, which is independant of our GUI thread. Users will never call this. Reimplemented from GapeController. Definition at line 149 of file gapeaudioplot.h. |