annotate trunk/src/Modules/Output/Graphics/GraphicsViewTime.h @ 706:f8e90b5d85fd
tip
Delete CARFAC code from this repository.
It has been moved to https://github.com/google/carfac
Please email me with your github username to get access.
I've also created a new mailing list to discuss CARFAC development:
https://groups.google.com/forum/#!forum/carfac-dev
author |
ronw@google.com |
date |
Thu, 18 Jul 2013 20:56:51 +0000 |
parents |
16a590fbc0ba |
children |
|
rev |
line source |
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:
|
tomwalters@569
|
37 virtual void PlotData(const vector<float> &signal,
|
tomwalters@569
|
38 float sample_rate,
|
tomwalters@569
|
39 float yOffset,
|
tomwalters@569
|
40 float height,
|
tomwalters@569
|
41 float xScale = 1.0);
|
tomwalters@569
|
42 virtual void PlotStrobes(const vector<float>& signal,
|
tomwalters@569
|
43 const vector<int>& strobes,
|
tomwalters@569
|
44 float sample_rate,
|
tomwalters@569
|
45 float y_offset,
|
tomwalters@569
|
46 float height,
|
tomwalters@569
|
47 float x_scale,
|
tomwalters@569
|
48 float diameter);
|
tomwalters@569
|
49 virtual void PlotAxes(const SignalBank &pBank);
|
tomwalters@397
|
50 };
|
tom@399
|
51 } // namesapce aimc
|
tomwalters@397
|
52 #endif /* __GRAPHICS_VIEW_TIME_H__ */
|