VTK  9.3.1
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
21 #ifndef vtkOggTheoraWriter_h
22 #define vtkOggTheoraWriter_h
23 
24 #include "vtkGenericMovieWriter.h"
25 #include "vtkIOOggTheoraModule.h" // For export macro
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkOggTheoraWriterInternal;
29 
30 class VTKIOOGGTHEORA_EXPORT vtkOggTheoraWriter : public vtkGenericMovieWriter
31 {
32 public:
33  static vtkOggTheoraWriter* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
42  void Start() override;
43  void Write() override;
44  void End() override;
46 
48 
53  vtkSetClampMacro(Quality, int, 0, 2);
54  vtkGetMacro(Quality, int);
56 
58 
61  vtkSetClampMacro(Rate, int, 1, 5000);
62  vtkGetMacro(Rate, int);
64 
66 
69  vtkSetMacro(Subsampling, vtkTypeBool);
70  vtkGetMacro(Subsampling, vtkTypeBool);
71  vtkBooleanMacro(Subsampling, vtkTypeBool);
73 
74 protected:
76  ~vtkOggTheoraWriter() override;
77 
78  vtkOggTheoraWriterInternal* Internals;
79 
81  int Quality;
82  int Rate;
84 
85 private:
86  vtkOggTheoraWriter(const vtkOggTheoraWriter&) = delete;
87  void operator=(const vtkOggTheoraWriter&) = delete;
88 };
89 
90 VTK_ABI_NAMESPACE_END
91 #endif
virtual void Write()=0
These methods start writing an Movie file, write a frame to the file and then end the writing process...
Uses the ogg and theora libraries to write video files.
vtkOggTheoraWriterInternal * Internals
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...
int vtkTypeBool
Definition: vtkABI.h:64
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
an abstract movie writer class.
static vtkAlgorithm * New()