VTK
dox/IO/Movie/vtkGenericMovieWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGenericMovieWriter.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00027 #ifndef __vtkGenericMovieWriter_h
00028 #define __vtkGenericMovieWriter_h
00029 
00030 #include "vtkIOMovieModule.h" // For export macro
00031 #include "vtkImageAlgorithm.h"
00032 
00033 class vtkImageData;
00034 
00035 class VTKIOMOVIE_EXPORT vtkGenericMovieWriter : public vtkImageAlgorithm
00036 {
00037 public:
00038   vtkTypeMacro(vtkGenericMovieWriter,vtkImageAlgorithm);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040 
00042 
00043   vtkSetStringMacro(FileName);
00044   vtkGetStringMacro(FileName);
00046 
00048 
00050   virtual void Start() =0;
00051   virtual void Write() =0;
00052   virtual void End() =0;
00054 
00056 
00057   vtkGetMacro(Error,int);
00059 
00061   static const char *GetStringFromErrorCode(unsigned long event);
00062 
00063   //BTX
00064   enum MovieWriterErrorIds {
00065     UserError = 40000, //must match vtkErrorCode::UserError
00066     InitError,
00067     NoInputError,
00068     CanNotCompress,
00069     CanNotFormat,
00070     ChangedResolutionError
00071   };
00072   //ETX
00073 
00074 protected:
00075   vtkGenericMovieWriter();
00076   ~vtkGenericMovieWriter();
00077 
00078   char *FileName;
00079   int Error;
00080 
00081 private:
00082   vtkGenericMovieWriter(const vtkGenericMovieWriter&); // Not implemented
00083   void operator=(const vtkGenericMovieWriter&); // Not implemented
00084 };
00085 
00086 #endif
00087 
00088 
00089