]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Image.h
...
[cpPlugins.git] / lib / cpPlugins / Image.h
index fa7c7c366ea8706c3eb4b8210649b843493aaf61..2bdde709d7a01f920f84dc7830afdba9f83f25da 100644 (file)
@@ -13,20 +13,23 @@ namespace cpPlugins
     : public DataObject
   {
   public:
-    typedef Image      Self;
-    typedef DataObject Superclass;
+    typedef Image                           Self;
+    typedef DataObject                      Superclass;
+    typedef itk::SmartPointer< Self >       Pointer;
+    typedef itk::SmartPointer< const Self > ConstPointer;
 
   public:
+    itkNewMacro( Self );
+    itkTypeMacro( Image, DataObject );
     cpPlugins_Id_Macro( Image, Object );
 
   public:
-    Image( );
-    virtual ~Image( );
-
     virtual void SetITK( itk::LightObject* o ) override;
     virtual void SetVTK( vtkObjectBase* o ) override;
 
   protected:
+    Image( );
+    virtual ~Image( );
 
     template< unsigned int D >
       inline bool _ITK_2_VTK_0( itk::LightObject* o );