1 #ifndef __vvAnimatedGIFWriter_h
2 #define __vvAnimatedGIFWriter_h
6 #include <vtkGenericMovieWriter.h>
7 #include <vtkSmartPointer.h>
11 class vvAnimatedGIFWriter : public vtkGenericMovieWriter //test this if link error...
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 // Set/Get the dithering
37 vtkSetMacro(Dither, bool);
38 vtkGetMacro(Dither, bool);
41 vvAnimatedGIFWriter();
42 ~vvAnimatedGIFWriter();
48 vtkSmartPointer<vtkImageAppend> RGBvolume;
49 std::vector< vtkSmartPointer<vtkImageData> > RGBslices;
52 vvAnimatedGIFWriter(const vvAnimatedGIFWriter&); // Not implemented
53 void operator=(const vvAnimatedGIFWriter&); // Not implemented