GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

QWidget base plot to build QTGUI plotting tools. More...

#include <gnuradio/qtgui/DisplayPlot.h>

Public Slots

virtual void disableLegend ()
 
virtual void setYaxis (double min, double max)
 
virtual void setXaxis (double min, double max)
 
virtual void setLineLabel (int which, QString label)
 
virtual QString getLineLabel (int which)
 
virtual void setLineColor (int which, QColor color)
 
virtual QColor getLineColor (int which) const
 
virtual void setLineWidth (int which, int width)
 
virtual int getLineWidth (int which) const
 
virtual void setLineStyle (int which, Qt::PenStyle style)
 
virtual const Qt::PenStyle getLineStyle (int which) const
 
virtual void setLineMarker (int which, QwtSymbol::Style marker)
 
virtual const QwtSymbol::Style getLineMarker (int which) const
 
virtual void setMarkerAlpha (int which, int alpha)
 
virtual int getMarkerAlpha (int which) const
 
void setLineColor1 (QColor)
 
void setLineColor2 (QColor)
 
void setLineColor3 (QColor)
 
void setLineColor4 (QColor)
 
void setLineColor5 (QColor)
 
void setLineColor6 (QColor)
 
void setLineColor7 (QColor)
 
void setLineColor8 (QColor)
 
void setLineColor9 (QColor)
 
void setLineWidth1 (int)
 
void setLineWidth2 (int)
 
void setLineWidth3 (int)
 
void setLineWidth4 (int)
 
void setLineWidth5 (int)
 
void setLineWidth6 (int)
 
void setLineWidth7 (int)
 
void setLineWidth8 (int)
 
void setLineWidth9 (int)
 
void setLineStyle1 (Qt::PenStyle)
 
void setLineStyle2 (Qt::PenStyle)
 
void setLineStyle3 (Qt::PenStyle)
 
void setLineStyle4 (Qt::PenStyle)
 
void setLineStyle5 (Qt::PenStyle)
 
void setLineStyle6 (Qt::PenStyle)
 
void setLineStyle7 (Qt::PenStyle)
 
void setLineStyle8 (Qt::PenStyle)
 
void setLineStyle9 (Qt::PenStyle)
 
void setLineMarker1 (QwtSymbol::Style)
 
void setLineMarker2 (QwtSymbol::Style)
 
void setLineMarker3 (QwtSymbol::Style)
 
void setLineMarker4 (QwtSymbol::Style)
 
void setLineMarker5 (QwtSymbol::Style)
 
void setLineMarker6 (QwtSymbol::Style)
 
void setLineMarker7 (QwtSymbol::Style)
 
void setLineMarker8 (QwtSymbol::Style)
 
void setLineMarker9 (QwtSymbol::Style)
 
void setMarkerAlpha1 (int)
 
void setMarkerAlpha2 (int)
 
void setMarkerAlpha3 (int)
 
void setMarkerAlpha4 (int)
 
void setMarkerAlpha5 (int)
 
void setMarkerAlpha6 (int)
 
void setMarkerAlpha7 (int)
 
void setMarkerAlpha8 (int)
 
void setMarkerAlpha9 (int)
 
void setZoomerColor (QColor c)
 
void setPaletteColor (QColor c)
 
void setAxisLabelFontSize (int axisId, int fs)
 
void setYaxisLabelFontSize (int fs)
 
void setXaxisLabelFontSize (int fs)
 
void setAxesLabelFontSize (int fs)
 
void setStop (bool on)
 
void resizeSlot (QSize *s)
 
void onPickerPointSelected (const QwtDoublePoint &p)
 
void onPickerPointSelected6 (const QPointF &p)
 

Signals

void plotPointSelected (const QPointF p)
 

Public Member Functions

 DisplayPlot (int nplots, QWidget *)
 
virtual ~DisplayPlot ()
 
virtual void replot ()=0
 
const QColor getLineColor1 () const
 
const QColor getLineColor2 () const
 
const QColor getLineColor3 () const
 
const QColor getLineColor4 () const
 
const QColor getLineColor5 () const
 
const QColor getLineColor6 () const
 
const QColor getLineColor7 () const
 
const QColor getLineColor8 () const
 
const QColor getLineColor9 () const
 
int getLineWidth1 () const
 
int getLineWidth2 () const
 
int getLineWidth3 () const
 
int getLineWidth4 () const
 
int getLineWidth5 () const
 
int getLineWidth6 () const
 
int getLineWidth7 () const
 
int getLineWidth8 () const
 
int getLineWidth9 () const
 
const Qt::PenStyle getLineStyle1 () const
 
const Qt::PenStyle getLineStyle2 () const
 
const Qt::PenStyle getLineStyle3 () const
 
const Qt::PenStyle getLineStyle4 () const
 
const Qt::PenStyle getLineStyle5 () const
 
const Qt::PenStyle getLineStyle6 () const
 
const Qt::PenStyle getLineStyle7 () const
 
const Qt::PenStyle getLineStyle8 () const
 
const Qt::PenStyle getLineStyle9 () const
 
const QwtSymbol::Style getLineMarker1 () const
 
const QwtSymbol::Style getLineMarker2 () const
 
const QwtSymbol::Style getLineMarker3 () const
 
const QwtSymbol::Style getLineMarker4 () const
 
const QwtSymbol::Style getLineMarker5 () const
 
const QwtSymbol::Style getLineMarker6 () const
 
const QwtSymbol::Style getLineMarker7 () const
 
const QwtSymbol::Style getLineMarker8 () const
 
const QwtSymbol::Style getLineMarker9 () const
 
int getMarkerAlpha1 () const
 
int getMarkerAlpha2 () const
 
int getMarkerAlpha3 () const
 
int getMarkerAlpha4 () const
 
int getMarkerAlpha5 () const
 
int getMarkerAlpha6 () const
 
int getMarkerAlpha7 () const
 
int getMarkerAlpha8 () const
 
int getMarkerAlpha9 () const
 
QColor getZoomerColor () const
 
QColor getPaletteColor () const
 
int getAxisLabelFontSize (int axisId) const
 
int getYaxisLabelFontSize () const
 
int getXaxisLabelFontSize () const
 
int getAxesLabelFontSize () const
 

Protected Slots

virtual void legendEntryChecked (QwtPlotItem *plotItem, bool on)
 
virtual void legendEntryChecked (const QVariant &plotItem, bool on, int index)
 

Protected Attributes

int d_nplots
 
std::vector< QwtPlotCurve * > d_plot_curve
 
QwtPlotPanner * d_panner
 
QwtPlotZoomer * d_zoomer
 
QwtDblClickPlotPickerd_picker
 
QwtPlotMagnifier * d_magnifier
 
int64_t d_numPoints
 
bool d_stop
 
QList< QColor > d_trace_colors
 
bool d_autoscale_state
 

Detailed Description

QWidget base plot to build QTGUI plotting tools.

Constructor & Destructor Documentation

DisplayPlot::DisplayPlot ( int  nplots,
QWidget *   
)
virtual DisplayPlot::~DisplayPlot ( )
virtual

Member Function Documentation

virtual void DisplayPlot::disableLegend ( )
virtualslot
int DisplayPlot::getAxesLabelFontSize ( ) const
int DisplayPlot::getAxisLabelFontSize ( int  axisId) const
virtual QColor DisplayPlot::getLineColor ( int  which) const
virtualslot
const QColor DisplayPlot::getLineColor1 ( ) const
const QColor DisplayPlot::getLineColor2 ( ) const
const QColor DisplayPlot::getLineColor3 ( ) const
const QColor DisplayPlot::getLineColor4 ( ) const
const QColor DisplayPlot::getLineColor5 ( ) const
const QColor DisplayPlot::getLineColor6 ( ) const
const QColor DisplayPlot::getLineColor7 ( ) const
const QColor DisplayPlot::getLineColor8 ( ) const
const QColor DisplayPlot::getLineColor9 ( ) const
virtual QString DisplayPlot::getLineLabel ( int  which)
virtualslot
virtual const QwtSymbol::Style DisplayPlot::getLineMarker ( int  which) const
virtualslot
const QwtSymbol::Style DisplayPlot::getLineMarker1 ( ) const
const QwtSymbol::Style DisplayPlot::getLineMarker2 ( ) const
const QwtSymbol::Style DisplayPlot::getLineMarker3 ( ) const
const QwtSymbol::Style DisplayPlot::getLineMarker4 ( ) const
const QwtSymbol::Style DisplayPlot::getLineMarker5 ( ) const
const QwtSymbol::Style DisplayPlot::getLineMarker6 ( ) const
const QwtSymbol::Style DisplayPlot::getLineMarker7 ( ) const
const QwtSymbol::Style DisplayPlot::getLineMarker8 ( ) const
const QwtSymbol::Style DisplayPlot::getLineMarker9 ( ) const
virtual const Qt::PenStyle DisplayPlot::getLineStyle ( int  which) const
virtualslot
const Qt::PenStyle DisplayPlot::getLineStyle1 ( ) const
const Qt::PenStyle DisplayPlot::getLineStyle2 ( ) const
const Qt::PenStyle DisplayPlot::getLineStyle3 ( ) const
const Qt::PenStyle DisplayPlot::getLineStyle4 ( ) const
const Qt::PenStyle DisplayPlot::getLineStyle5 ( ) const
const Qt::PenStyle DisplayPlot::getLineStyle6 ( ) const
const Qt::PenStyle DisplayPlot::getLineStyle7 ( ) const
const Qt::PenStyle DisplayPlot::getLineStyle8 ( ) const
const Qt::PenStyle DisplayPlot::getLineStyle9 ( ) const
virtual int DisplayPlot::getLineWidth ( int  which) const
virtualslot
int DisplayPlot::getLineWidth1 ( ) const
int DisplayPlot::getLineWidth2 ( ) const
int DisplayPlot::getLineWidth3 ( ) const
int DisplayPlot::getLineWidth4 ( ) const
int DisplayPlot::getLineWidth5 ( ) const
int DisplayPlot::getLineWidth6 ( ) const
int DisplayPlot::getLineWidth7 ( ) const
int DisplayPlot::getLineWidth8 ( ) const
int DisplayPlot::getLineWidth9 ( ) const
virtual int DisplayPlot::getMarkerAlpha ( int  which) const
virtualslot
int DisplayPlot::getMarkerAlpha1 ( ) const
int DisplayPlot::getMarkerAlpha2 ( ) const
int DisplayPlot::getMarkerAlpha3 ( ) const
int DisplayPlot::getMarkerAlpha4 ( ) const
int DisplayPlot::getMarkerAlpha5 ( ) const
int DisplayPlot::getMarkerAlpha6 ( ) const
int DisplayPlot::getMarkerAlpha7 ( ) const
int DisplayPlot::getMarkerAlpha8 ( ) const
int DisplayPlot::getMarkerAlpha9 ( ) const
QColor DisplayPlot::getPaletteColor ( ) const
int DisplayPlot::getXaxisLabelFontSize ( ) const
int DisplayPlot::getYaxisLabelFontSize ( ) const
QColor DisplayPlot::getZoomerColor ( ) const
virtual void DisplayPlot::legendEntryChecked ( QwtPlotItem *  plotItem,
bool  on 
)
protectedvirtualslot
virtual void DisplayPlot::legendEntryChecked ( const QVariant &  plotItem,
bool  on,
int  index 
)
protectedvirtualslot
void DisplayPlot::onPickerPointSelected ( const QwtDoublePoint &  p)
slot
void DisplayPlot::onPickerPointSelected6 ( const QPointF &  p)
slot
void DisplayPlot::plotPointSelected ( const QPointF  p)
signal
void DisplayPlot::resizeSlot ( QSize *  s)
slot
void DisplayPlot::setAxesLabelFontSize ( int  fs)
slot
void DisplayPlot::setAxisLabelFontSize ( int  axisId,
int  fs 
)
slot
virtual void DisplayPlot::setLineColor ( int  which,
QColor  color 
)
virtualslot
void DisplayPlot::setLineColor1 ( QColor  )
slot
void DisplayPlot::setLineColor2 ( QColor  )
slot
void DisplayPlot::setLineColor3 ( QColor  )
slot
void DisplayPlot::setLineColor4 ( QColor  )
slot
void DisplayPlot::setLineColor5 ( QColor  )
slot
void DisplayPlot::setLineColor6 ( QColor  )
slot
void DisplayPlot::setLineColor7 ( QColor  )
slot
void DisplayPlot::setLineColor8 ( QColor  )
slot
void DisplayPlot::setLineColor9 ( QColor  )
slot
virtual void DisplayPlot::setLineLabel ( int  which,
QString  label 
)
virtualslot
virtual void DisplayPlot::setLineMarker ( int  which,
QwtSymbol::Style  marker 
)
virtualslot
void DisplayPlot::setLineMarker1 ( QwtSymbol::Style  )
slot
void DisplayPlot::setLineMarker2 ( QwtSymbol::Style  )
slot
void DisplayPlot::setLineMarker3 ( QwtSymbol::Style  )
slot
void DisplayPlot::setLineMarker4 ( QwtSymbol::Style  )
slot
void DisplayPlot::setLineMarker5 ( QwtSymbol::Style  )
slot
void DisplayPlot::setLineMarker6 ( QwtSymbol::Style  )
slot
void DisplayPlot::setLineMarker7 ( QwtSymbol::Style  )
slot
void DisplayPlot::setLineMarker8 ( QwtSymbol::Style  )
slot
void DisplayPlot::setLineMarker9 ( QwtSymbol::Style  )
slot
virtual void DisplayPlot::setLineStyle ( int  which,
Qt::PenStyle  style 
)
virtualslot
void DisplayPlot::setLineStyle1 ( Qt::PenStyle  )
slot
void DisplayPlot::setLineStyle2 ( Qt::PenStyle  )
slot
void DisplayPlot::setLineStyle3 ( Qt::PenStyle  )
slot
void DisplayPlot::setLineStyle4 ( Qt::PenStyle  )
slot
void DisplayPlot::setLineStyle5 ( Qt::PenStyle  )
slot
void DisplayPlot::setLineStyle6 ( Qt::PenStyle  )
slot
void DisplayPlot::setLineStyle7 ( Qt::PenStyle  )
slot
void DisplayPlot::setLineStyle8 ( Qt::PenStyle  )
slot
void DisplayPlot::setLineStyle9 ( Qt::PenStyle  )
slot
virtual void DisplayPlot::setLineWidth ( int  which,
int  width 
)
virtualslot
void DisplayPlot::setLineWidth1 ( int  )
slot
void DisplayPlot::setLineWidth2 ( int  )
slot
void DisplayPlot::setLineWidth3 ( int  )
slot
void DisplayPlot::setLineWidth4 ( int  )
slot
void DisplayPlot::setLineWidth5 ( int  )
slot
void DisplayPlot::setLineWidth6 ( int  )
slot
void DisplayPlot::setLineWidth7 ( int  )
slot
void DisplayPlot::setLineWidth8 ( int  )
slot
void DisplayPlot::setLineWidth9 ( int  )
slot
virtual void DisplayPlot::setMarkerAlpha ( int  which,
int  alpha 
)
virtualslot
void DisplayPlot::setMarkerAlpha1 ( int  )
slot
void DisplayPlot::setMarkerAlpha2 ( int  )
slot
void DisplayPlot::setMarkerAlpha3 ( int  )
slot
void DisplayPlot::setMarkerAlpha4 ( int  )
slot
void DisplayPlot::setMarkerAlpha5 ( int  )
slot
void DisplayPlot::setMarkerAlpha6 ( int  )
slot
void DisplayPlot::setMarkerAlpha7 ( int  )
slot
void DisplayPlot::setMarkerAlpha8 ( int  )
slot
void DisplayPlot::setMarkerAlpha9 ( int  )
slot
void DisplayPlot::setPaletteColor ( QColor  c)
slot
void DisplayPlot::setStop ( bool  on)
slot
virtual void DisplayPlot::setXaxis ( double  min,
double  max 
)
virtualslot
void DisplayPlot::setXaxisLabelFontSize ( int  fs)
slot
virtual void DisplayPlot::setYaxis ( double  min,
double  max 
)
virtualslot

Reimplemented in FrequencyDisplayPlot, and VectorDisplayPlot.

void DisplayPlot::setYaxisLabelFontSize ( int  fs)
slot
void DisplayPlot::setZoomerColor ( QColor  c)
slot

Member Data Documentation

bool DisplayPlot::d_autoscale_state
protected
QwtPlotMagnifier* DisplayPlot::d_magnifier
protected
int DisplayPlot::d_nplots
protected
int64_t DisplayPlot::d_numPoints
protected
QwtPlotPanner* DisplayPlot::d_panner
protected
QwtDblClickPlotPicker* DisplayPlot::d_picker
protected
std::vector<QwtPlotCurve*> DisplayPlot::d_plot_curve
protected
bool DisplayPlot::d_stop
protected
QList<QColor> DisplayPlot::d_trace_colors
protected
QwtPlotZoomer* DisplayPlot::d_zoomer
protected

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