VTK  9.4.20250429
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
23#include "vtkIOMovieModule.h" // For export macro
24
25VTK_ABI_NAMESPACE_BEGIN
26class VTKIOMOVIE_EXPORT vtkMP4Writer : public vtkGenericMovieWriter
27{
28public:
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
60protected:
62 ~vtkMP4Writer() override;
63
64 class vtkMP4WriterInternals;
65 vtkMP4WriterInternals* Internals;
66
67 bool Writing = false;
68 int Rate;
70
71private:
72 vtkMP4Writer(const vtkMP4Writer&) = delete;
73 void operator=(const vtkMP4Writer&) = delete;
74};
75
76VTK_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.
static vtkMP4Writer * New()
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.
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