VTK  9.3.20240416
vtkGenericMovieWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkGenericMovieWriter_h
17 #define vtkGenericMovieWriter_h
18 
19 #include "vtkIOMovieModule.h" // For export macro
20 #include "vtkImageAlgorithm.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkImageData;
24 
25 class VTKIOMOVIE_EXPORT vtkGenericMovieWriter : public vtkImageAlgorithm
26 {
27 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
38 
40 
44  virtual void Start() = 0;
45  virtual void Write() = 0;
46  virtual void End() = 0;
48 
50 
53  vtkGetMacro(Error, int);
55 
59  static const char* GetStringFromErrorCode(unsigned long error);
60 
62  {
63  UserError = 40000, // must match vtkErrorCode::UserError
68  ChangedResolutionError
69  };
70 
71 protected:
74 
75  char* FileName;
76  int Error;
77 
78 private:
80  void operator=(const vtkGenericMovieWriter&) = delete;
81 };
82 
83 VTK_ABI_NAMESPACE_END
84 #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
static const char * GetStringFromErrorCode(unsigned long error)
Converts vtkErrorCodes and vtkGenericMovieWriter errors to strings.
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...
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
a simple class to control print indentation
Definition: vtkIndent.h:108