VTK  9.2.20221001
vtkMP4Writer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMP4Writer.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 =========================================================================*/
31 #ifndef vtkMP4Writer_h
32 #define vtkMP4Writer_h
33 
34 #include "vtkGenericMovieWriter.h"
35 #include "vtkIOMovieModule.h" // For export macro
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class VTKIOMOVIE_EXPORT vtkMP4Writer : public vtkGenericMovieWriter
39 {
40 public:
41  static vtkMP4Writer* New();
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
50  void Start() override;
51  void Write() override;
52  void End() override;
54 
56 
59  vtkSetClampMacro(Rate, int, 1, 5000);
60  vtkGetMacro(Rate, int);
62 
64 
68  vtkSetMacro(BitRate, int);
69  vtkGetMacro(BitRate, int);
71 
72 protected:
74  ~vtkMP4Writer() override;
75 
76  class vtkMP4WriterInternals;
77  vtkMP4WriterInternals* Internals;
78 
79  bool Writing = false;
80  int Rate;
81  int BitRate;
82 
83 private:
84  vtkMP4Writer(const vtkMP4Writer&) = delete;
85  void operator=(const vtkMP4Writer&) = delete;
86 };
87 
88 VTK_ABI_NAMESPACE_END
89 #endif
an abstract movie writer class.
a simple class to control print indentation
Definition: vtkIndent.h:120
Writes Windows MP4 files on Windows platforms.
Definition: vtkMP4Writer.h:39
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:76