annotate src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.h @ 116:47b009f2c936

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