tomwalters@397
|
1 /*!
|
tomwalters@397
|
2 * \file
|
tomwalters@397
|
3 * \brief Time-representation graphics view definition
|
tomwalters@397
|
4 *
|
tomwalters@397
|
5 * \author Willem van Engen <cnbh@willem.engen.nl>
|
tomwalters@397
|
6 * \date created 2006/09/26
|
tomwalters@397
|
7 * \version \$Id: GraphicsViewTime.h 459 2007-11-08 11:50:04Z tom $
|
tomwalters@397
|
8 */
|
tomwalters@397
|
9 /* (c) 2006, University of Cambridge, Medical Research Council
|
tomwalters@397
|
10 * http://www.pdn.cam.ac.uk/groups/cnbh/aimmanual
|
tomwalters@397
|
11 */
|
tomwalters@397
|
12 #ifndef __GRAPHICS_VIEW_TIME_H__
|
tomwalters@397
|
13 #define __GRAPHICS_VIEW_TIME_H__
|
tomwalters@397
|
14
|
tomwalters@397
|
15 #include "Support/SignalBank.h"
|
tom@399
|
16 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h"
|
tom@399
|
17 #include "Modules/Output/Graphics/GraphicsView.h"
|
tomwalters@397
|
18
|
tom@399
|
19 namespace aimc {
|
tomwalters@397
|
20 /*!
|
tomwalters@397
|
21 * \class GraphicsViewTime "Output/GraphicsViewTime.h"
|
tomwalters@397
|
22 * \brief Time-definition graphics view class
|
tomwalters@397
|
23 *
|
tomwalters@397
|
24 * This plots a Signal or SignalBank in the time domain.
|
tomwalters@397
|
25 */
|
tomwalters@397
|
26 class GraphicsViewTime : public GraphicsView {
|
tomwalters@397
|
27 public:
|
tomwalters@398
|
28 /*! \brief Create a new view
|
tomwalters@398
|
29 * \param pParam Main parameter store
|
tomwalters@398
|
30 */
|
tom@399
|
31 GraphicsViewTime(Parameters *pParam);
|
tomwalters@398
|
32 virtual ~GraphicsViewTime() { };
|
tomwalters@397
|
33
|
tomwalters@398
|
34 virtual GraphicsViewTime *Clone(GraphicsOutputDevice *pDev);
|
tomwalters@397
|
35
|
tomwalters@397
|
36 private:
|
tom@399
|
37 void PlotData(const vector<float> &signal,
|
tomwalters@402
|
38 float sample_rate,
|
tomwalters@402
|
39 float yOffset,
|
tomwalters@402
|
40 float height,
|
tomwalters@402
|
41 float xScale = 1.0);
|
tom@399
|
42 void PlotAxes(const vector<float> &signal);
|
tom@399
|
43 void PlotAxes(const SignalBank &pBank);
|
tomwalters@397
|
44 };
|
tom@399
|
45 } // namesapce aimc
|
tomwalters@397
|
46 #endif /* __GRAPHICS_VIEW_TIME_H__ */
|