CQwtDataSequenceViewComp.h
Go to the documentation of this file.
1 #ifndef iqwt_CQwtDataSequenceViewComp_included
2 #define iqwt_CQwtDataSequenceViewComp_included
3 
4 
5 // Qwt includes
6 #include "qwt_plot.h"
7 #include "qwt_plot_curve.h"
8 #include "qwt_plot_picker.h"
9 #include "qwt_plot_marker.h"
10 
11 
12 // ACF includes
13 #include "istd/TPointerVector.h"
14 
15 #include "imod/CModelProxy.h"
16 
18 
19 #include "imeas/IDataSequence.h"
21 #include "imeas/INumericValue.h"
22 
23 #include "GeneratedFiles/iqwt/ui_CQwtDataSequenceViewComp.h"
24 
25 
26 namespace iqwt
27 {
28 
29 
35  Ui::CQwtDataSequenceViewComp, imeas::IDataSequence>
36 {
37  Q_OBJECT
38 
39 public:
41  Ui::CQwtDataSequenceViewComp, imeas::IDataSequence> BaseClass;
42 
43  I_BEGIN_COMPONENT(CQwtDataSequenceViewComp);
44  I_ASSIGN_MULTI_0(m_horizontalLinesCompPtr, "HorizontalLines", "List of y-coordinates of horizontal lines", false);
45  I_ASSIGN_MULTI_0(m_verticalLinesCompPtr, "VerticalLines", "List of x-coordinates of vertical lines", false);
46  I_END_COMPONENT;
47 
48  // reimplemented (iqtgui::TGuiObserverWrap)
49  virtual void UpdateGui(int updateFlags = 0);
50 
51 protected:
52  // reimplemented (iqtgui::CGuiComponentBase)
53  virtual void OnGuiCreated();
54  virtual void OnGuiDestroyed();
55 
56 private Q_SLOTS:
57  void on_ChannelCombo_currentIndexChanged(int index);
58 
59 private:
60  void ClearPlot();
61  void ClearMarkers();
62 
63 private:
64  class DataSequencePlotPicker: public QwtPlotPicker
65  {
66  public:
67  typedef QwtPlotPicker BaseClass;
68 
69  DataSequencePlotPicker(CQwtDataSequenceViewComp& parent, int xAxis, int yAxis, QwtPlotCanvas* canvasPtr);
70 
71  // reimplemented (QwtPlotPicker)
72  virtual QwtText trackerText(const QPoint& position) const;
73 
74  private:
75  CQwtDataSequenceViewComp& m_parent;
76  };
77 
78 private:
79  istd::TDelPtr<QwtPlot> m_plotPtr;
80  istd::TPointerVector<QwtPlotCurve> m_channelCurves;
81  istd::TPointerVector<QwtPlotMarker> m_verticalMarkers;
82  istd::TPointerVector<QwtPlotMarker> m_horizontalMarkers;
83 
84  I_MULTIREF(imeas::INumericValue, m_verticalLinesCompPtr);
85  I_MULTIREF(imeas::INumericValue, m_horizontalLinesCompPtr);
86 };
87 
88 
89 } // namespace iqwt
90 
91 
92 #endif // !iqwt_CQwtDataSequenceViewComp_included
93 
94 
virtual void UpdateGui(int updateFlags=0)
iqtgui::TDesignerGuiObserverCompBase< Ui::CQwtDataSequenceViewComp, imeas::IDataSequence > BaseClass
Component for visualization of histogram data.

© 2007-2011 Witold Gantzke and Kirill Lepskiy