annotate trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.h @ 411:a908972d234e

- Added support for movies!
author tomwalters
date Thu, 21 Oct 2010 01:46:39 +0000
parents dd13c9834ceb
children b6d5c0cc1849
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@397 58
tomwalters@397 59 protected:
tomwalters@398 60 /*! \brief Plots a summary of relevant parameters on the output
tomwalters@398 61 *
tomwalters@398 62 * This is intended for use in a movie as the first frame, which has no
tomwalters@398 63 * interesting data anyway, since at least one buffer of data is needed
tomwalters@398 64 * to be able to show someting.
tomwalters@398 65 *
tomwalters@398 66 * The caller must do the gGrab() and gRelease().
tomwalters@398 67 */
tomwalters@398 68 void PlotParameterScreen();
tomwalters@397 69
tomwalters@398 70 //! \brief Name of the sound file to be merged with the video
tomwalters@411 71 string sound_filename_;
tomwalters@398 72 //! \brief Name of the movie file to produce
tomwalters@411 73 string movie_filename_;
tomwalters@397 74 };
tom@400 75 } // namespace aimc
tomwalters@397 76 #endif /* __GRAPHICS_OUTPUT_DEVICE_MOVIE_H__ */