VTK  9.3.20240419
vtkMP4Writer.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
19 #ifndef vtkMP4Writer_h
20 #define vtkMP4Writer_h
21 
22 #include "vtkGenericMovieWriter.h"
23 #include "vtkIOMovieModule.h" // For export macro
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class VTKIOMOVIE_EXPORT vtkMP4Writer : public vtkGenericMovieWriter
27 {
28 public:
29  static vtkMP4Writer* New();
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
38  void Start() override;
39  void Write() override;
40  void End() override;
42 
44 
47  vtkSetClampMacro(Rate, int, 1, 5000);
48  vtkGetMacro(Rate, int);
50 
52 
56  vtkSetMacro(BitRate, int);
57  vtkGetMacro(BitRate, int);
59 
60 protected:
62  ~vtkMP4Writer() override;
63 
64  class vtkMP4WriterInternals;
65  vtkMP4WriterInternals* Internals;
66 
67  bool Writing = false;
68  int Rate;
69  int BitRate;
70 
71 private:
72  vtkMP4Writer(const vtkMP4Writer&) = delete;
73  void operator=(const vtkMP4Writer&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #endif
an abstract movie writer class.
a simple class to control print indentation
Definition: vtkIndent.h:108
Writes Windows MP4 files on Windows platforms.
Definition: vtkMP4Writer.h:27
void Write() override
These methods start writing an MP4 file, write a frame to the file and then end the writing process.
void End() override
These methods start writing an MP4 file, write a frame to the file and then end the writing process.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkMP4Writer * New()
void Start() override
These methods start writing an MP4 file, write a frame to the file and then end the writing process.
~vtkMP4Writer() override
vtkMP4WriterInternals * Internals
Definition: vtkMP4Writer.h:64