comparison trunk/src/Modules/Output/Graphics/GraphicsViewTime.h @ 399:7bfed53caacf

- A few changes to get graphics working. In progress.
author tom@acousticscale.org
date Sat, 16 Oct 2010 22:27:03 +0000
parents 3ee03a6b95a0
children 69466da9745e
comparison
equal deleted inserted replaced
398:3ee03a6b95a0 399:7bfed53caacf
10 * http://www.pdn.cam.ac.uk/groups/cnbh/aimmanual 10 * http://www.pdn.cam.ac.uk/groups/cnbh/aimmanual
11 */ 11 */
12 #ifndef __GRAPHICS_VIEW_TIME_H__ 12 #ifndef __GRAPHICS_VIEW_TIME_H__
13 #define __GRAPHICS_VIEW_TIME_H__ 13 #define __GRAPHICS_VIEW_TIME_H__
14 14
15 #include "Support/Signal.h"
16 #include "Support/SignalBank.h" 15 #include "Support/SignalBank.h"
17 #include "Output/GraphicsOutputDevice.h" 16 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h"
18 #include "Output/GraphicsView.h" 17 #include "Modules/Output/Graphics/GraphicsView.h"
19 18
19 namespace aimc {
20 /*! 20 /*!
21 * \class GraphicsViewTime "Output/GraphicsViewTime.h" 21 * \class GraphicsViewTime "Output/GraphicsViewTime.h"
22 * \brief Time-definition graphics view class 22 * \brief Time-definition graphics view class
23 * 23 *
24 * This plots a Signal or SignalBank in the time domain. 24 * This plots a Signal or SignalBank in the time domain.
26 class GraphicsViewTime : public GraphicsView { 26 class GraphicsViewTime : public GraphicsView {
27 public: 27 public:
28 /*! \brief Create a new view 28 /*! \brief Create a new view
29 * \param pParam Main parameter store 29 * \param pParam Main parameter store
30 */ 30 */
31 GraphicsViewTime(AimParameters *pParam); 31 GraphicsViewTime(Parameters *pParam);
32 virtual ~GraphicsViewTime() { }; 32 virtual ~GraphicsViewTime() { };
33 33
34 virtual GraphicsViewTime *Clone(GraphicsOutputDevice *pDev); 34 virtual GraphicsViewTime *Clone(GraphicsOutputDevice *pDev);
35 35
36 private: 36 private:
37 void PlotData(Signal* pSig, float yOffset, float height, float xScale = 1.0); 37 void PlotData(const vector<float> &signal,
38 void PlotAxes(Signal* pSig); 38 float sample_rate,
39 void PlotAxes(SignalBank* pBank); 39 float yOffset,
40 40 float height,
41 float xScale = 1.0);
42 void PlotAxes(const vector<float> &signal);
43 void PlotAxes(const SignalBank &pBank);
41 }; 44 };
42 45 } // namesapce aimc
43 #endif /* __GRAPHICS_VIEW_TIME_H__ */ 46 #endif /* __GRAPHICS_VIEW_TIME_H__ */