QXRD  0.11.16
qxrddistortioncorrectionplot.cpp
Go to the documentation of this file.
2 #include "qxrdwindow.h"
3 
5  QcepPlot(parent),
6  m_ObjectNamer(this, "distortionCorrectionPlot"),
7  m_Window(),
8  m_DataProcessor(),
9  m_DistortionCorrection(),
10  m_FirstTime(true)
11 {
12 }
13 
15 {
16  QcepPlot::init(settings);
17 
18  if (m_Legend) {
19  insertLegend(m_Legend, QwtPlot::RightLegend);
20  }
21 }
22 
24 {
25  m_Window = win;
26 
27  QxrdWindow *wp = m_Window;
28 
29  if (wp) {
30  m_DataProcessor = wp -> dataProcessor();
31  }
32 
34 
35  if (dp) {
36  m_DistortionCorrection = dp -> distortionCorrection();
37  }
38 }
QWeakPointer< QcepPlotSettings > QcepPlotSettingsWPtr
QSharedPointer< QxrdDataProcessor > QxrdDataProcessorPtr
QwtLegend * m_Legend
Definition: qcepplot.h:58
QxrdDistortionCorrectionWPtr m_DistortionCorrection
void init(QcepPlotSettingsWPtr settings)
Definition: qcepplot.cpp:36
void init(QcepPlotSettingsWPtr settings)