VTK  9.3.1
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 
35  vtkSetFilePathMacro(FileName);
36  vtkGetFilePathMacro(FileName);
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:
73  ~vtkGenericMovieWriter() override;
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
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
an abstract movie writer class.
Generic algorithm superclass for image algs.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.