VTK  9.2.6
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 class VTKIOMOVIE_EXPORT vtkMP4Writer : public vtkGenericMovieWriter
38 {
39 public:
40  static vtkMP4Writer* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
49  void Start() override;
50  void Write() override;
51  void End() override;
53 
55 
58  vtkSetClampMacro(Rate, int, 1, 5000);
59  vtkGetMacro(Rate, int);
61 
63 
67  vtkSetMacro(BitRate, int);
68  vtkGetMacro(BitRate, int);
70 
71 protected:
72  vtkMP4Writer();
73  ~vtkMP4Writer() override;
74 
75  class vtkMP4WriterInternals;
76  vtkMP4WriterInternals* Internals;
77 
78  bool Writing = false;
79  int Rate;
80  int BitRate;
81 
82 private:
83  vtkMP4Writer(const vtkMP4Writer&) = delete;
84  void operator=(const vtkMP4Writer&) = delete;
85 };
86 
87 #endif
virtual void Write()=0
These methods start writing an Movie file, write a frame to the file and then end the writing process...
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 End()=0
These methods start writing an Movie file, write a frame to the file and then end the writing process...
Writes Windows MP4 files on Windows platforms.
Definition: vtkMP4Writer.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
an abstract movie writer class.
vtkMP4WriterInternals * Internals
Definition: vtkMP4Writer.h:75
static vtkAlgorithm * New()