VTK  9.1.0
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=========================================================================*/
28#ifndef vtkMP4Writer_h
29#define vtkMP4Writer_h
30
32#include "vtkIOMovieModule.h" // For export macro
33
34class VTKIOMOVIE_EXPORT vtkMP4Writer : public vtkGenericMovieWriter
35{
36public:
37 static vtkMP4Writer* New();
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
46 void Start() override;
47 void Write() override;
48 void End() override;
50
52
55 vtkSetClampMacro(Rate, int, 1, 5000);
56 vtkGetMacro(Rate, int);
58
60
64 vtkSetMacro(BitRate, int);
65 vtkGetMacro(BitRate, int);
67
68protected:
70 ~vtkMP4Writer() override;
71
72 class vtkMP4WriterInternals;
73 vtkMP4WriterInternals* Internals;
74
75 bool Writing = false;
76 int Rate;
78
79private:
80 vtkMP4Writer(const vtkMP4Writer&) = delete;
81 void operator=(const vtkMP4Writer&) = delete;
82};
83
84#endif
an abstract movie writer class.
a simple class to control print indentation
Definition: vtkIndent.h:113
Writes Windows MP4 files on Windows platforms.
Definition: vtkMP4Writer.h:35
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
Definition: vtkMP4Writer.h:73