]> Creatis software - clitk.git/blobdiff - vv/vvToolBase.h
- ggo is now used by the filter
[clitk.git] / vv / vvToolBase.h
index 005217fb30be94ad0fa8513fc332b2f5e3dd7663..e86b0407df78d6657e7f1ec7511a11d46203f6e0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   vv
   Module:    $RCSfile: vvToolBase.h,v $
   Language:  C++
-  Date:      $Date: 2010/02/24 11:42:42 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2010/03/01 07:37:25 $
+  Version:   $Revision: 1.4 $
   Author :   David Sarrut (david.sarrut@creatis.insa-lyon.fr)
 
   Copyright (C) 2008
@@ -43,6 +43,10 @@ public:
   static void SetToolIconFilename(QString n) { vvToolCreator<ToolType>::mSingleton->mToolIconFilename = n; }
   static void SetToolTip(QString n) { vvToolCreator<ToolType>::mSingleton->mToolTip = n; }
 
+  void AddImage(vvImage::Pointer image,std::string filename) {
+    CREATOR(ToolType)->GetMainWindow()->AddImage(image,filename); 
+  }
+
 };
 //------------------------------------------------------------------------------