/*#ifndef SPECTRUMPLOT_H #define SPECTRUMPLOT_H #include "qcustomplot.h" //stim libraries #include "stim/envi/envi.h" namespace Ui { class MainWindow; } class SpectrumPlot : public QCustomPlot { Q_OBJECT public: //explicit MainWindow(QWidget *parent = 0); //~MainWindow(); //void mousePressEvent(QMouseEvent* event); //handles when the image is clicked //void resizeEvent(QResizeEvent* event); //handles when the window is resized private: //Ui::MainWindow *ui; //QGraphicsScene* scene; //scene containing the image and any drawn UI elements //QPixmap image; //stores the pixels for the displayed image //QPoint p; //stores the picked position of the image //SpectrumWindow* s; //window displaying the spectrum of the selected pixel //stim::envi hsi; //data structure storing the current hyperspectral image //QVector x; //x values for the spectrum //QVector y; //y values for the spectrum //void draw_overlay(); //draws an overlay showing the picked position //void draw_viewport(); //draws the viewport, including the image and overlay //void load_spectrum(); //loads a spectrum from the HSI and stores it in the global variable y //void draw_spectrum(); //sends a spectrum to the SpectrumWindow for plotting }; #endif // SPECTRUMPLOT_H*/