VTK
vtkAVIWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAVIWriter.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 =========================================================================*/
29 #ifndef vtkAVIWriter_h
30 #define vtkAVIWriter_h
31 
32 #include "vtkIOMovieModule.h" // For export macro
33 #include "vtkGenericMovieWriter.h"
34 
35 class vtkAVIWriterInternal;
36 
37 class VTKIOMOVIE_EXPORT vtkAVIWriter : public vtkGenericMovieWriter
38 {
39 public:
40  static vtkAVIWriter *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
49  void Start();
50  void Write();
51  void End();
53 
55 
58  vtkSetClampMacro(Rate, int, 1, 5000);
59  vtkGetMacro(Rate, int);
61 
63 
68  vtkSetClampMacro(Quality, int, 0, 2);
69  vtkGetMacro(Quality, int);
71 
73 
78  vtkSetMacro(PromptCompressionOptions, int);
79  vtkGetMacro(PromptCompressionOptions, int);
80  vtkBooleanMacro(PromptCompressionOptions, int);
82 
84 
102  vtkSetStringMacro(CompressorFourCC);
103  vtkGetStringMacro(CompressorFourCC);
105 
106 protected:
107  vtkAVIWriter();
108  ~vtkAVIWriter();
109 
110  vtkAVIWriterInternal *Internals;
111 
112  int Rate;
113  int Time;
114  int Quality;
117 
118 private:
119  vtkAVIWriter(const vtkAVIWriter&) VTK_DELETE_FUNCTION;
120  void operator=(const vtkAVIWriter&) VTK_DELETE_FUNCTION;
121 };
122 
123 #endif
124 
125 
126 
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...
char * CompressorFourCC
Definition: vtkAVIWriter.h:116
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 AVI files.
Definition: vtkAVIWriter.h:37
int PromptCompressionOptions
Definition: vtkAVIWriter.h:115
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkAVIWriterInternal * Internals
Definition: vtkAVIWriter.h:110
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
an abstract movie writer class.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.