Support for ploting single and multiple plots

This commit is contained in:
jfmcarreira committed 2015-03-13 03:45:13 +00:00
1 parent 7f6e4dc14f
commit f8061bd4d1
4 files changed
+213 -58

No files matched your search

+24 -6
View File
@@ -33,7 +33,8 @@
#include <QtGui>
#endif
#include "SubWindowHandle.h"
#include "qcustomplot.h"
class QCustomPlot;
namespace plaYUVer
{
@@ -44,13 +45,22 @@ Q_OBJECT
private:
QCustomPlot* m_cPlotArea;
QVector<QColor> m_arrayColorList;
QPen m_cPlotPen;
enum Axis
{
HORIZONTAL,
VERTICAL,
};
Double m_aAxisRange[2][2];
Double m_dScaleFactor;
UInt m_uiNumberPlots;
Void Example();
public:
PlotSubWindow( QWidget * parent = 0 );
PlotSubWindow( QWidget * parent, const QString& windowTitle );
~PlotSubWindow();
Void definePlotColors();
@@ -69,7 +79,7 @@ public:
Double getScaleFactor()
{
return 0;
return m_dScaleFactor;
}
/**
@@ -78,7 +88,15 @@ public:
QSize sizeHint() const;
QSize sizeHint( const QSize & ) const;
Void addPlot(const QVector<Double> &key, const QVector<Double> &value);
Void setAxisName( const QString& nameAxisX, const QString& nameAxisY );
Void setAxisRange( const QLine& axisLimits );
Void setAxisRange( PlotSubWindow::Axis eAxis, const Int& axisStart, const Int& axisEnd );
Void setKey( const QString& key );
Void addPlot( const QVector<Double> &arrayX, const QVector<Double> &arrayY, const QString& key = QString() );
};
} // NAMESPACE