Mercurial > hg > aimc
comparison src/Modules/Output/Graphics/GraphicsView.h @ 508:d609725e568a
Re-add support for plotting strobes (untested).
author | tomwalters@google.com |
---|---|
date | Fri, 22 Jun 2012 12:17:24 +0000 |
parents | af02b6addf7a |
children |
comparison
equal
deleted
inserted
replaced
507:7cc44d4e9b86 | 508:d609725e568a |
---|---|
93 * \param yOffset Vertical offset (between 0 and 1), where to plot 0 signal value. | 93 * \param yOffset Vertical offset (between 0 and 1), where to plot 0 signal value. |
94 * \param height Height of the signal to plot (between 0 and 1) | 94 * \param height Height of the signal to plot (between 0 and 1) |
95 * \param xScale Scaling in x-direction. 1.0 makes it cover the whole length. 0.5 only the left half. | 95 * \param xScale Scaling in x-direction. 1.0 makes it cover the whole length. 0.5 only the left half. |
96 */ | 96 */ |
97 virtual void PlotData(const vector<float> &signal, | 97 virtual void PlotData(const vector<float> &signal, |
98 float sample_rate, | 98 float sample_rate, |
99 float yOffset, | 99 float yOffset, |
100 float height, | 100 float height, |
101 float xScale) = 0; | 101 float xScale) = 0; |
102 | |
103 virtual void PlotStrobes(const vector<float>& signal, | |
104 const vector<int>& strobes, | |
105 float sample_rate, | |
106 float y_offset, | |
107 float height, | |
108 float x_scale, | |
109 float diameter) = 0; | |
110 | |
111 virtual void PlotStrobe(float x, | |
112 float y, | |
113 float val, | |
114 float height, | |
115 float diameter); | |
102 | 116 |
103 /*! \brief Plot the axes for a signal bank | 117 /*! \brief Plot the axes for a signal bank |
104 * \param pSig Signal to plot the axes for | 118 * \param pSig Signal to plot the axes for |
105 */ | 119 */ |
106 virtual void PlotAxes(const SignalBank &bank) = 0; | 120 virtual void PlotAxes(const SignalBank &bank) = 0; |
165 int m_iPrevValEqual; | 179 int m_iPrevValEqual; |
166 float frame_rate_; | 180 float frame_rate_; |
167 int previous_start_time_; | 181 int previous_start_time_; |
168 | 182 |
169 bool initialized_; | 183 bool initialized_; |
184 bool plotting_strobes_; | |
170 }; | 185 }; |
171 } // namespace aimc | 186 } // namespace aimc |
172 #endif /* __GRAPHICS_VIEW_H__ */ | 187 #endif /* __GRAPHICS_VIEW_H__ */ |