]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget.h
#3523 Add to BoxWidget box Transform option
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkBoxWidget.h
index cfa8bc6c0f1b13af00a0855a0ba7b14628d9fe0a..1659b768fc57b354fd5c868ecfaeceb8cd856dd7 100644 (file)
@@ -13,6 +13,7 @@
 #include "vtkImplicitFunction.h"
 #include "vtkPlanes.h"
 #include "vtkImageData.h"
+#include "vtkLinearTransform.h"
 
 namespace bbcreaVtk
 {
@@ -25,17 +26,26 @@ class bbcreaVtk_EXPORT BoxWidget
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
-  BBTK_DECLARE_INPUT( Active , bool );
-  BBTK_DECLARE_INPUT( Renderer , vtkRenderer* );
-  BBTK_DECLARE_INPUT( ImageInitSize , vtkImageData* );
-  BBTK_DECLARE_OUTPUT( ImplicitFunction , vtkImplicitFunction* );
+  BBTK_DECLARE_INPUT( Active                , bool );
+  BBTK_DECLARE_INPUT( InitBoxChangeImage    , bool );
+  BBTK_DECLARE_INPUT( TransformIn           , vtkLinearTransform* );
+  BBTK_DECLARE_INPUT( Renderer              , vtkRenderer* );
+  BBTK_DECLARE_INPUT( ImageInitSize         , vtkImageData* );
+  BBTK_DECLARE_OUTPUT( ImplicitFunction     , vtkImplicitFunction* );
+  BBTK_DECLARE_OUTPUT( TransformOut         , vtkLinearTransform* );
+  BBTK_DECLARE_OUTPUT( Box_BoxWidget        , BoxWidget* );
+
   BBTK_PROCESS(Process);
-  void Process();
+
+    void SetTransform( vtkLinearTransform* transform );
+    void Process();
 
        bool                    firsttime;
        vtkBoxWidget    *boxWidget;
        vtkPlanes               *planes;
-//===== 
+    vtkTransform    *transformOut;
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 };
@@ -47,10 +57,14 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(BoxWidget,bbtk::AtomicBlackBox);
   BBTK_CATEGORY("empty");
 
   BBTK_INPUT(BoxWidget,Active,"(default false)  true/false",bool,"");
+  BBTK_INPUT(BoxWidget,InitBoxChangeImage,"(default false)  true/false",bool,"");
+  BBTK_INPUT(BoxWidget,TransformIn,"vtkLinearTransform",vtkLinearTransform*,"");
   BBTK_INPUT(BoxWidget,ImageInitSize,"(default NULL=> 0,500,0,500,0,500) Boudaring image size ",vtkImageData*,"");
   BBTK_INPUT(BoxWidget,Renderer,"vtkRenderer",vtkRenderer*,"");
 
   BBTK_OUTPUT(BoxWidget,ImplicitFunction,"vtkImplicitFunction",vtkImplicitFunction*,"");
+  BBTK_OUTPUT(BoxWidget,TransformOut,"vtkLinearTransform",vtkLinearTransform*,"");
+  BBTK_OUTPUT(BoxWidget,Box_BoxWidget,"bbtk Box BoxWidget",BoxWidget*,"");
 
 BBTK_END_DESCRIBE_BLACK_BOX(BoxWidget);
 //=====