_displayIntervalTime = (1.0/10.0); // 1/10 of a second between updates
_numPoints = 1024;
+ _penSize = 5;
_realDataPoints = new double[_numPoints];
_imagDataPoints = new double[_numPoints];
// Automatically deleted when parent is deleted
_plot_curve = new QwtPlotCurve("Constellation Points");
_plot_curve->attach(this);
- _plot_curve->setPen(QPen(Qt::blue, 5, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
+ _plot_curve->setPen(QPen(Qt::blue, _penSize, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
_plot_curve->setStyle(QwtPlotCurve::Dots);
_plot_curve->setRawData(_realDataPoints, _imagDataPoints, _numPoints);
// _zoomer and _panner deleted when parent deleted
}
+void
+ConstellationDisplayPlot::set_pen_size(int size)
+{
+ if(size > 0 && size < 30){
+ _penSize = size;
+ _plot_curve->setPen(QPen(Qt::blue, _penSize, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
+ }
+}
+
+
void
ConstellationDisplayPlot::set_xaxis(double min, double max)
{
void set_yaxis(double min, double max);
void set_axis(double xmin, double xmax,
double ymin, double ymax);
+ void set_pen_size(int size);
public slots:
void resizeSlot( QSize *s );
timespec _lastReplot;
int64_t _numPoints;
+ int64_t _penSize;
double _displayIntervalTime;
};
}
+void
+SpectrumGUIClass::SetConstellationPenSize(int size){
+ _spectrumDisplayForm->SetConstellationPenSize(size);
+}
+
+
void
SpectrumGUIClass::SetFrequencyAxis(double min, double max)
{
void SetTimeDomainAxis(double min, double max);
void SetConstellationAxis(double xmin, double xmax,
double ymin, double ymax);
+ void SetConstellationPenSize(int size);
void SetFrequencyAxis(double min, double max);
protected:
void set_constellation_axis(double xmin, double xmax,
double ymin, double ymax);
void set_frequency_axis(double min, double max);
+ void set_constellation_pen_size(int size);
};
void set_constellation_axis(double xmin, double xmax,
double ymin, double ymax);
void set_frequency_axis(double min, double max);
+ void set_constellation_pen_size(int size);
};
d_main_gui->SetConstellationAxis(xmin, xmax, ymin, ymax);
}
+void
+qtgui_sink_c::set_constellation_pen_size(int size)
+{
+ d_main_gui->SetConstellationPenSize(size);
+}
+
+
void
qtgui_sink_c::set_frequency_axis(double min, double max)
{
void set_time_domain_axis(double min, double max);
void set_constellation_axis(double xmin, double xmax,
double ymin, double ymax);
+ void set_constellation_pen_size(int size);
void set_frequency_axis(double min, double max);
QApplication *d_qApplication;
d_main_gui->SetConstellationAxis(xmin, xmax, ymin, ymax);
}
+void
+qtgui_sink_f::set_constellation_pen_size(int size)
+{
+ d_main_gui->SetConstellationPenSize(size);
+}
+
+
void
qtgui_sink_f::set_frequency_axis(double min, double max)
{
void set_time_domain_axis(double min, double max);
void set_constellation_axis(double xmin, double xmax,
double ymin, double ymax);
+ void set_constellation_pen_size(int size);
void set_frequency_axis(double min, double max);
QApplication *d_qApplication;
void SetTimeDomainAxis(double min, double max);
void SetConstellationAxis(double xmin, double xmax,
double ymin, double ymax);
+ void SetConstellationPenSize(int size);
void SetFrequencyAxis(double min, double max);
private slots: