Blame view

spectrumwindow.h 773 Bytes
adeae3a0   David Mayerich   Initial commit, s...
1
2
3
4
5
6
  #ifndef SPECTRUMWINDOW_H
  #define SPECTRUMWINDOW_H
  
  #include <QDialog>
  #include <QVector>
  #include <iostream>
2959aae6   David Mayerich   added support for...
7
  #include "qcustomplot.h"
adeae3a0   David Mayerich   Initial commit, s...
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  
  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);
adeae3a0   David Mayerich   Initial commit, s...
26
27
28
  
  private:
      Ui::SpectrumWindow *ui;
2959aae6   David Mayerich   added support for...
29
30
31
  
  	//line that displays the currently selected band
  	QCPItemStraightLine* bandline;
adeae3a0   David Mayerich   Initial commit, s...
32
33
34
  };
  
  #endif // SPECTRUMWINDOW_H