VTK  9.3.20240327
vtkOggTheoraWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Michael Wild
3 // SPDX-License-Identifier: BSD-3-Clause
40 #ifndef vtkOggTheoraWriter_h
41 #define vtkOggTheoraWriter_h
42 
43 #include "vtkGenericMovieWriter.h"
44 #include "vtkIOOggTheoraModule.h" // For export macro
45 
46 VTK_ABI_NAMESPACE_BEGIN
47 class vtkOggTheoraWriterInternal;
48 
49 class VTKIOOGGTHEORA_EXPORT vtkOggTheoraWriter : public vtkGenericMovieWriter
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57 
61  void Start() override;
62  void Write() override;
63  void End() override;
65 
67 
72  vtkSetClampMacro(Quality, int, 0, 2);
73  vtkGetMacro(Quality, int);
75 
77 
80  vtkSetClampMacro(Rate, int, 1, 5000);
81  vtkGetMacro(Rate, int);
83 
85 
88  vtkSetMacro(Subsampling, vtkTypeBool);
89  vtkGetMacro(Subsampling, vtkTypeBool);
90  vtkBooleanMacro(Subsampling, vtkTypeBool);
92 
93 protected:
95  ~vtkOggTheoraWriter() override;
96 
97  vtkOggTheoraWriterInternal* Internals;
98 
100  int Quality;
101  int Rate;
103 
104 private:
105  vtkOggTheoraWriter(const vtkOggTheoraWriter&) = delete;
106  void operator=(const vtkOggTheoraWriter&) = delete;
107 };
108 
109 VTK_ABI_NAMESPACE_END
110 #endif
an abstract movie writer class.
a simple class to control print indentation
Definition: vtkIndent.h:108
Uses the ogg and theora libraries to write video files.
void Start() override
These methods start writing an Movie file, write a frame to the file and then end the writing process...
vtkOggTheoraWriterInternal * Internals
~vtkOggTheoraWriter() override
void End() override
These methods start writing an Movie file, write a frame to the file and then end the writing process...
static vtkOggTheoraWriter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Write() override
These methods start writing an Movie file, write a frame to the file and then end the writing process...
int vtkTypeBool
Definition: vtkABI.h:64