X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkBoxWidget.h;fp=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkBoxWidget.h;h=1659b768fc57b354fd5c868ecfaeceb8cd856dd7;hb=265497fce49b7e3d51970ad97d30471c3cad8b73;hp=cfa8bc6c0f1b13af00a0855a0ba7b14628d9fe0a;hpb=335723e0394dc7dd868660f33f1851f6c0ff0e7c;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget.h b/bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget.h index cfa8bc6..1659b76 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget.h @@ -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); //=====