spectrumwindow.h 773 Bytes
#ifndef SPECTRUMWINDOW_H
#define SPECTRUMWINDOW_H

#include <QDialog>
#include <QVector>
#include <iostream>
#include "qcustomplot.h"

namespace Ui {
class SpectrumWindow;
}

class SpectrumWindow : public QDialog
{
    Q_OBJECT

public:
    explicit SpectrumWindow(QWidget *parent = 0);
    ~SpectrumWindow();

	void plotSpectrum(QVector<double> x, QVector<double> y);
	void initPlot(double x_min, double x_max, double y_min, double y_max, QString x_title, QString y_title);

	void resizeEvent(QResizeEvent* event);		//handles when the window is resized
	bool SpectrumWindow::eventFilter(QObject *target, QEvent *event);

private:
    Ui::SpectrumWindow *ui;

	//line that displays the currently selected band
	QCPItemStraightLine* bandline;
};

#endif // SPECTRUMWINDOW_H