]> Creatis software - clitk.git/blobdiff - vv/vvImageWriter.h
Added support for ffmpeg library if VTK_USE_FFMPEG_ENCODER is ON with extension ...
[clitk.git] / vv / vvImageWriter.h
index e9a9c3825f6837c4f7a5ee17c45736bee1faab0e..3effb474235fe19c48ee7f25c14fd358ee182431 100644 (file)
 #include "itkCommand.h"
 #include "vvImage.h"
 
-class vvImageWriter {
+class vvImageWriter : public itk::LightObject {
 
 public:
-  // constructor
-  vvImageWriter();
-  ~vvImageWriter();
+  typedef vvImageWriter Self;
+  typedef itk::SmartPointer<Self> Pointer;
+  itkNewMacro(Self);
 
   void SetOutputFileName(std::string filename);
   void SetObserver(itk::Command::Pointer o) {
@@ -56,6 +56,10 @@ public:
   void Update(int dim, std::string OutputPixelType);
 
 protected:
+  // constructor
+  vvImageWriter();
+  ~vvImageWriter();
+
   //====================================================================
   std::string mOutputFilename;
   itk::Command::Pointer mObserver;