VTK  9.1.0
vtkGenericMovieWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGenericMovieWriter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
28#ifndef vtkGenericMovieWriter_h
29#define vtkGenericMovieWriter_h
30
31#include "vtkIOMovieModule.h" // For export macro
32#include "vtkImageAlgorithm.h"
33
34class vtkImageData;
35
36class VTKIOMOVIE_EXPORT vtkGenericMovieWriter : public vtkImageAlgorithm
37{
38public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
49
51
55 virtual void Start() = 0;
56 virtual void Write() = 0;
57 virtual void End() = 0;
59
61
64 vtkGetMacro(Error, int);
66
70 static const char* GetStringFromErrorCode(unsigned long error);
71
73 {
74 UserError = 40000, // must match vtkErrorCode::UserError
79 ChangedResolutionError
80 };
81
82protected:
85
86 char* FileName;
87 int Error;
88
89private:
91 void operator=(const vtkGenericMovieWriter&) = delete;
92};
93
94#endif
an abstract movie writer class.
virtual void End()=0
These methods start writing an Movie file, write a frame to the file and then end the writing process...
vtkGetFilePathMacro(FileName)
Specify file name of avi file.
vtkSetFilePathMacro(FileName)
Specify file name of avi file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGenericMovieWriter() override
virtual void Start()=0
These methods start writing an Movie file, write a frame to the file and then end the writing process...
virtual void Write()=0
These methods start writing an Movie file, write a frame to the file and then end the writing process...
static const char * GetStringFromErrorCode(unsigned long error)
Converts vtkErrorCodes and vtkGenericMovieWriter errors to strings.
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113