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
35#include "vtkIOMovieModule.h" // For export macro
36
37class VTKIOMOVIE_EXPORT vtkMP4Writer : public vtkGenericMovieWriter
38{
39public:
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
71protected:
73 ~vtkMP4Writer() override;
74
75 class vtkMP4WriterInternals;
76 vtkMP4WriterInternals* Internals;
77
78 bool Writing = false;
79 int Rate;
81
82private:
83 vtkMP4Writer(const vtkMP4Writer&) = delete;
84 void operator=(const vtkMP4Writer&) = delete;
85};
86
87#endif
an abstract movie writer class.
a simple class to control print indentation
Definition vtkIndent.h:40
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