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