comparison trunk/src/Modules/Output/Graphics/GraphicsViewTime.h @ 397:7a573750b186

- First add of a lot of graphics code from the old version. Not working yet, not even compiling yet.
author tomwalters
date Fri, 15 Oct 2010 05:40:53 +0000
parents
children 3ee03a6b95a0
comparison
equal deleted inserted replaced
396:06a26f5cdad7 397:7a573750b186
1 /*!
2 * \file
3 * \brief Time-representation graphics view definition
4 *
5 * \author Willem van Engen <cnbh@willem.engen.nl>
6 * \date created 2006/09/26
7 * \version \$Id: GraphicsViewTime.h 459 2007-11-08 11:50:04Z tom $
8 */
9 /* (c) 2006, University of Cambridge, Medical Research Council
10 * http://www.pdn.cam.ac.uk/groups/cnbh/aimmanual
11 */
12 #ifndef __GRAPHICS_VIEW_TIME_H__
13 #define __GRAPHICS_VIEW_TIME_H__
14
15 #include "Support/Signal.h"
16 #include "Support/SignalBank.h"
17 #include "Output/GraphicsOutputDevice.h"
18 #include "Output/GraphicsView.h"
19
20 /*!
21 * \class GraphicsViewTime "Output/GraphicsViewTime.h"
22 * \brief Time-definition graphics view class
23 *
24 * This plots a Signal or SignalBank in the time domain.
25 */
26 class GraphicsViewTime : public GraphicsView {
27 public:
28 /*! \brief Create a new view
29 * \param pParam Main parameter store
30 */
31 GraphicsViewTime(AimParameters *pParam);
32 virtual ~GraphicsViewTime() { };
33
34 virtual GraphicsViewTime *Clone(GraphicsOutputDevice *pDev);
35
36 private:
37 void PlotData(Signal* pSig, float yOffset, float height, float xScale = 1.0);
38 void PlotAxes(Signal* pSig);
39 void PlotAxes(SignalBank* pBank);
40
41 };
42
43 #endif /* __GRAPHICS_VIEW_TIME_H__ */