1 #ifndef __vvAnimatedGIFWriter_h
2 #define __vvAnimatedGIFWriter_h
6 #include <vtkGenericMovieWriter.h>
7 #include <vtkSmartPointer.h>
11 class VTK_IO_EXPORT vvAnimatedGIFWriter : public vtkGenericMovieWriter
14 static vvAnimatedGIFWriter *New();
15 vtkTypeMacro(vvAnimatedGIFWriter,vtkGenericMovieWriter);
16 void PrintSelf(ostream& os, vtkIndent indent);
19 // These methods start writing an Movie file, write a frame to the file
20 // and then end the writing process.
26 // Set/Get the frame rate, in frame/s.
27 vtkSetClampMacro(Rate, int, 1, 5000);
28 vtkGetMacro(Rate, int);
31 // Set/Get the number of loops, 0 means infinite
32 vtkSetClampMacro(Loops, int, 0, 5000);
33 vtkGetMacro(Loops, int);
36 vvAnimatedGIFWriter();
37 ~vvAnimatedGIFWriter();
42 vtkSmartPointer<vtkImageAppend> RGBvolume;
43 std::vector< vtkSmartPointer<vtkImageData> > RGBslices;
46 vvAnimatedGIFWriter(const vvAnimatedGIFWriter&); // Not implemented
47 void operator=(const vvAnimatedGIFWriter&); // Not implemented