xicPlot.cpp 503 Bytes
Newer Older
Edlira Nano's avatar
Edlira Nano committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "xicPlot.h"

XicPlot::XicPlot(QWidget * parent, XicProfile * xic_profile) :
  QwtPlot(parent), 
  _xic_profile(xic_profile) 
{
  setAutoReplot(false);
  connect(_xic_profile, SIGNAL(changed()), this, SLOT(plotXic()));
}

XicPlot::~XicPlot() {
}

void
XicPlot::setStyle(const PlotStyle * style) {
  _plot_style = style;
}


void
XicPlot::plotXic() {
  this->setStyle(_xic_profile->getStyle());
  _curve = new QwtPlotCurve(_plot_style->legend);
  // setSamples()
  // attach/add à main_window
}