#ifndef __vvAnimatedGIFWriter_h #define __vvAnimatedGIFWriter_h #include #include #include class vtkImageAppend; class vvAnimatedGIFWriter : public vtkGenericMovieWriter //test this if link error... { public: static vvAnimatedGIFWriter *New(); vtkTypeMacro(vvAnimatedGIFWriter,vtkGenericMovieWriter); void PrintSelf(ostream& os, vtkIndent indent); // Description: // These methods start writing an Movie file, write a frame to the file // and then end the writing process. void Start(); void Write(); void End(); // Description: // Set/Get the frame rate, in frame/s. vtkSetClampMacro(Rate, int, 1, 5000); vtkGetMacro(Rate, int); // Description: // Set/Get the number of loops, 0 means infinite vtkSetClampMacro(Loops, int, 0, 5000); vtkGetMacro(Loops, int); // Description: // Set/Get the dithering vtkSetMacro(Dither, bool); vtkGetMacro(Dither, bool); protected: vvAnimatedGIFWriter(); ~vvAnimatedGIFWriter(); int Rate; int Loops; bool Dither; vtkSmartPointer RGBvolume; std::vector< vtkSmartPointer > RGBslices; private: vvAnimatedGIFWriter(const vvAnimatedGIFWriter&); // Not implemented void operator=(const vvAnimatedGIFWriter&); // Not implemented }; #endif