CHistogramViewComp.h
Go to the documentation of this file.
1 #ifndef iqwt_CHistogramViewComp_included
2 #define iqwt_CHistogramViewComp_included
3 
4 
5 // Qwt includes
6 #include "qwt_plot.h"
7 #include "qwt_plot_curve.h"
8 #include "qwt_plot_picker.h"
9 
10 
11 // ACF includes
12 #include "istd/TPointerVector.h"
13 
14 #include "imod/CModelProxy.h"
15 
17 
18 #include "imeas/IDataSequence.h"
20 
21 #include "GeneratedFiles/iqwt/ui_CHistogramViewComp.h"
22 
23 
24 namespace iqwt
25 {
26 
27 
33  Ui::CHistogramViewComp, imeas::IDataSequence>
34 {
35  Q_OBJECT
36 
37 public:
39  Ui::CHistogramViewComp, imeas::IDataSequence> BaseClass;
40 
41  I_BEGIN_COMPONENT(CHistogramViewComp);
42  I_ASSIGN(m_dataStatisticsGuiCompPtr, "StatisticsGui", "GUI for the data statistics", false, "StatisticsGui");
43  I_ASSIGN_TO(m_dataStatisticsObserverCompPtr, m_dataStatisticsGuiCompPtr, false);
44  I_ASSIGN(m_dataSequenceStatisticsCompPtr, "DataSequenceStatistics", "Data sequence statistics", false, "DataSequenceStatistics");
45  I_END_COMPONENT;
46 
47  // reimplemenented (iqtgui::TGuiObserverWrap)
48  virtual void UpdateGui(int updateFlags = 0);
49 
50 protected:
51  // reimplemented (iqtgui::CGuiComponentBase)
52  virtual void OnGuiCreated();
53  virtual void OnGuiDestroyed();
54 
55 private Q_SLOTS:
56  void on_ChannelCombo_currentIndexChanged(int index);
57 
58 private:
59  void ClearPlot();
60 
61 private:
62  class HistogramPlotPicker: public QwtPlotPicker
63  {
64  public:
65  typedef QwtPlotPicker BaseClass;
66 
67  HistogramPlotPicker(CHistogramViewComp& parent, int xAxis, int yAxis, QwtPlotCanvas* canvasPtr);
68 
69  // reimplemented (QwtPlotPicker)
70  virtual QwtText trackerText(const QPoint& position) const;
71 
72  private:
73  CHistogramViewComp& m_parent;
74  };
75 
76 private:
77  istd::TDelPtr<QwtPlot> m_plotPtr;
78  istd::TPointerVector<QwtPlotCurve> m_channelCurves;
79 
80  imod::CModelProxy m_curentChannelStatisticsModel;
81 
82  I_REF(iqtgui::IGuiObject, m_dataStatisticsGuiCompPtr);
83  I_REF(imod::IObserver, m_dataStatisticsObserverCompPtr);
84  I_REF(imeas::IDataSequenceStatistics, m_dataSequenceStatisticsCompPtr);
85 };
86 
87 
88 } // namespace iqwt
89 
90 
91 #endif // !iqwt_CHistogramViewComp_included
92 
93 
virtual void OnGuiCreated()
iqtgui::TDesignerGuiObserverCompBase< Ui::CHistogramViewComp, imeas::IDataSequence > BaseClass
virtual void OnGuiDestroyed()
Component for visualization of histogram data.
I_ASSIGN_TO(m_dataStatisticsObserverCompPtr, m_dataStatisticsGuiCompPtr, false)
virtual void UpdateGui(int updateFlags=0)

© 2007-2011 Witold Gantzke and Kirill Lepskiy