mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
11 years ago
|
#ifndef SCATTERPLOTWRAPPER_H
|
||
|
#define SCATTERPLOTWRAPPER_H
|
||
|
|
||
|
#include <qapplication.h>
|
||
|
#include <complex>
|
||
|
|
||
|
class ScatterWidget;
|
||
|
|
||
|
class ScatterplotWrapper
|
||
|
: QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ScatterplotWrapper();
|
||
|
~ScatterplotWrapper();
|
||
|
|
||
|
void setNewData(std::complex<float>* data, int numPoints);
|
||
|
void setNewData(std::complex<double>* data, int numPoints);
|
||
|
void setTitle(std::string title);
|
||
|
void setXAxisScale(double xMin, double xMax);
|
||
|
void setYAxisScale(double yMin, double yMax);
|
||
|
void setXAxisAutoScale(bool on);
|
||
|
void setYAxisAutoScale(bool on);
|
||
|
void setAxisLabels(std::string xLabel, std::string yLabel);
|
||
|
|
||
|
public slots:
|
||
|
void createWidgetSlot();
|
||
|
void destroyWidgetSlot();
|
||
|
void widgetDestroyed();
|
||
|
|
||
|
signals:
|
||
|
void createWidgetSignal();
|
||
|
void destroyWidgetSignal();
|
||
|
void destroyWidgetSignalBlocking();
|
||
|
void setWidgetTitle(QString title);
|
||
|
void setWidgetAxisLabels(QString xLabel, QString yLabel);
|
||
|
void setWidgetXAxisScale(double xMin, double xMax);
|
||
|
void setWidgetYAxisScale(double yMin, double yMax);
|
||
|
void setWidgetXAxisAutoScale(bool on);
|
||
|
void setWidgetYAxisAutoScale(bool on);
|
||
|
|
||
|
private:
|
||
|
ScatterWidget* widget_;
|
||
|
bool destroyed_;
|
||
|
};
|
||
|
|
||
|
#endif // SCATTERPLOTWRAPPER_H
|