annotate trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.h @ 546:e5ae2ed4249c

(none)
author Ulf.Hammarqvist@gmail.com
date Sat, 31 Mar 2012 17:36:22 +0000
parents b6d5c0cc1849
children c14c83f3d5d6
rev   line source
tomwalters@397 1 // Copyright 2006-2010, Willem van Engen, Thomas Walters
tomwalters@397 2 //
tomwalters@397 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@397 4 // http://www.acousticscale.org/AIMC
tomwalters@397 5 //
tomwalters@397 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@397 7 // you may not use this file except in compliance with the License.
tomwalters@397 8 // You may obtain a copy of the License at
tomwalters@397 9 //
tomwalters@397 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@397 11 //
tomwalters@397 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@397 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@397 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@397 15 // See the License for the specific language governing permissions and
tomwalters@397 16 // limitations under the License.
tomwalters@397 17
tomwalters@397 18 /*!
tomwalters@397 19 * \file
tomwalters@397 20 * \brief Output device for output to a movie
tomwalters@397 21 *
tomwalters@397 22 * \author Willem van Engen <cnbh@willem.engen.nl>
tomwalters@397 23 * \date created 2006/10/16
tomwalters@397 24 * \version \$Id: $
tomwalters@397 25 */
tomwalters@397 26
tomwalters@397 27 #ifndef __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__
tomwalters@397 28 #define __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__
tomwalters@397 29
tomwalters@411 30 #include <string>
tomwalters@397 31 #include "Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h"
tomwalters@397 32
tom@400 33 namespace aimc {
tom@400 34
tomwalters@397 35 /*!
tomwalters@397 36 * \class GraphicsOutputDeviceMovie "Output/GraphicsOutputDeviceMovie.h"
tomwalters@397 37 * \brief Output class for output to a movie
tomwalters@397 38 */
tomwalters@397 39 // GraphicsOutputDevicePlotutils is also possible here
tomwalters@397 40 class GraphicsOutputDeviceMovie : public GraphicsOutputDeviceCairo {
tomwalters@397 41 public:
tomwalters@411 42 GraphicsOutputDeviceMovie(Parameters *parameters);
tomwalters@398 43 virtual ~GraphicsOutputDeviceMovie() { };
tomwalters@397 44
tomwalters@398 45 /*! \brief Initializes this output device, prepares plotting tools.
tomwalters@398 46 * \param sSoundFile Sound file for the movie
tomwalters@398 47 * \param sMovieFile Movie filename to produce
tomwalters@398 48 * \return true on success, false on failure.
tomwalters@398 49 *
tomwalters@398 50 * As usual, make sure to call this function before any other. If this
tomwalters@398 51 * Initialize() failed, you shouldn't try the other functions either.
tomwalters@398 52 */
tomwalters@411 53 bool Initialize(Parameters *global_parameters);
tomwalters@397 54
tomwalters@398 55 void Start();
tomwalters@398 56 //! \brief This function now also generates the output movie.
tomwalters@398 57 void Stop();
tomwalters@418 58
tomwalters@418 59 void Reset(Parameters* global_parameters);
tomwalters@418 60
tomwalters@397 61
tomwalters@397 62 protected:
tomwalters@398 63 /*! \brief Plots a summary of relevant parameters on the output
tomwalters@398 64 *
tomwalters@398 65 * This is intended for use in a movie as the first frame, which has no
tomwalters@398 66 * interesting data anyway, since at least one buffer of data is needed
tomwalters@398 67 * to be able to show someting.
tomwalters@398 68 *
tomwalters@398 69 * The caller must do the gGrab() and gRelease().
tomwalters@398 70 */
tomwalters@398 71 void PlotParameterScreen();
tomwalters@397 72
tomwalters@398 73 //! \brief Name of the sound file to be merged with the video
tomwalters@411 74 string sound_filename_;
tomwalters@398 75 //! \brief Name of the movie file to produce
tomwalters@411 76 string movie_filename_;
tomwalters@397 77 };
tom@400 78 } // namespace aimc
tomwalters@397 79 #endif /* __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__ */