Mercurial > hg > aimc
comparison src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.h @ 126:a9cb396529c2
- Added support for movies!
author | tomwalters |
---|---|
date | Thu, 21 Oct 2010 01:46:39 +0000 |
parents | 9d880fb93c39 |
children | 88df1647d1a0 |
comparison
equal
deleted
inserted
replaced
125:bf1417b5d83e | 126:a9cb396529c2 |
---|---|
25 */ | 25 */ |
26 | 26 |
27 #ifndef __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__ | 27 #ifndef __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__ |
28 #define __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__ | 28 #define __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__ |
29 | 29 |
30 //#include "Modules/Output/Graphics/Devices/GraphicsOutputDevicePlotutils.h" | 30 #include <string> |
31 #include "Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h" | 31 #include "Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h" |
32 | 32 |
33 namespace aimc { | 33 namespace aimc { |
34 | 34 |
35 /*! | 35 /*! |
37 * \brief Output class for output to a movie | 37 * \brief Output class for output to a movie |
38 */ | 38 */ |
39 // GraphicsOutputDevicePlotutils is also possible here | 39 // GraphicsOutputDevicePlotutils is also possible here |
40 class GraphicsOutputDeviceMovie : public GraphicsOutputDeviceCairo { | 40 class GraphicsOutputDeviceMovie : public GraphicsOutputDeviceCairo { |
41 public: | 41 public: |
42 GraphicsOutputDeviceMovie(Parameters *pParam); | 42 GraphicsOutputDeviceMovie(Parameters *parameters); |
43 virtual ~GraphicsOutputDeviceMovie() { }; | 43 virtual ~GraphicsOutputDeviceMovie() { }; |
44 | 44 |
45 /*! \brief Initializes this output device, prepares plotting tools. | 45 /*! \brief Initializes this output device, prepares plotting tools. |
46 * \param sSoundFile Sound file for the movie | 46 * \param sSoundFile Sound file for the movie |
47 * \param sMovieFile Movie filename to produce | 47 * \param sMovieFile Movie filename to produce |
48 * \return true on success, false on failure. | 48 * \return true on success, false on failure. |
49 * | 49 * |
50 * As usual, make sure to call this function before any other. If this | 50 * As usual, make sure to call this function before any other. If this |
51 * Initialize() failed, you shouldn't try the other functions either. | 51 * Initialize() failed, you shouldn't try the other functions either. |
52 */ | 52 */ |
53 bool Initialize(const char *sSoundFile, const char *sMovieFile); | 53 bool Initialize(Parameters *global_parameters); |
54 | 54 |
55 void Start(); | 55 void Start(); |
56 //! \brief This function now also generates the output movie. | 56 //! \brief This function now also generates the output movie. |
57 void Stop(); | 57 void Stop(); |
58 | 58 |
66 * The caller must do the gGrab() and gRelease(). | 66 * The caller must do the gGrab() and gRelease(). |
67 */ | 67 */ |
68 void PlotParameterScreen(); | 68 void PlotParameterScreen(); |
69 | 69 |
70 //! \brief Name of the sound file to be merged with the video | 70 //! \brief Name of the sound file to be merged with the video |
71 char m_sSoundFile[PATH_MAX]; | 71 string sound_filename_; |
72 //! \brief Name of the movie file to produce | 72 //! \brief Name of the movie file to produce |
73 char m_sMovieFile[PATH_MAX]; | 73 string movie_filename_; |
74 }; | 74 }; |
75 } // namespace aimc | 75 } // namespace aimc |
76 #endif /* __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__ */ | 76 #endif /* __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__ */ |