X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPlaneWidget.h;h=b54d4e869c352a9102ca0f398063a981748464f1;hb=bc05f1c46fe585eb95f077214569e00e0b90c27c;hp=02dcce08743fa91ffeda33a59d7d2798953f5d56;hpb=d4f6c5cb7ede3153395f46a4dbfd9e741672b3f4;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.h b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.h index 02dcce0..b54d4e8 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.h @@ -22,8 +22,15 @@ class PlaneWidget; class boxcreaVtkPlaneWidget : public creaVtkPlaneWidget { public: - virtual void Execute(); - PlaneWidget *box; + virtual void Execute(); + PlaneWidget *_box; + int _ReactiveType; + double _cxBack; // center + double _cyBack; + double _czBack; + double _nxBack; // normal + double _nyBack; + double _nzBack; }; @@ -36,16 +43,20 @@ class bbcreaVtk_EXPORT PlaneWidget //===== // 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(In,vtkImageData*); - BBTK_DECLARE_INPUT(Resolution,int); - BBTK_DECLARE_INPUT(Renderer,vtkRenderer*); - BBTK_DECLARE_INPUT(Representation,int); - BBTK_DECLARE_OUTPUT(Out,vtkDataSet*); - BBTK_DECLARE_OUTPUT(Center,std::vector); - BBTK_DECLARE_OUTPUT(Normal,std::vector); - BBTK_PROCESS(Process); - void Process(); + BBTK_DECLARE_INPUT(Active,bool); + BBTK_DECLARE_INPUT(In,vtkImageData*); + BBTK_DECLARE_INPUT(Resolution,int); + BBTK_DECLARE_INPUT(Renderer,vtkRenderer*); + BBTK_DECLARE_INPUT(Representation,int); + BBTK_DECLARE_INPUT(Origin,std::vector); + BBTK_DECLARE_INPUT(NormalIn,std::vector); + BBTK_DECLARE_INPUT(ReactiveType,int); + + BBTK_DECLARE_OUTPUT(Out,vtkDataSet*); + BBTK_DECLARE_OUTPUT(Center,std::vector); + BBTK_DECLARE_OUTPUT(Normal,std::vector); + BBTK_PROCESS(Process); + void Process(); boxcreaVtkPlaneWidget _boxcreavtkplanewidget; @@ -67,6 +78,9 @@ BBTK_CATEGORY("empty"); BBTK_INPUT(PlaneWidget,Resolution,"Resolution (60 default)",int,""); BBTK_INPUT(PlaneWidget,Renderer,"vtkRenderer",vtkRenderer*,""); BBTK_INPUT(PlaneWidget,Representation,"(default 1) 0:OutLine 1:Wireframe 2:Surface",int,""); + BBTK_INPUT(PlaneWidget,Origin,"Origin [x,y,z]",std::vector,""); + BBTK_INPUT(PlaneWidget,NormalIn,"Normal [x,y,z]",std::vector,""); + BBTK_INPUT(PlaneWidget,ReactiveType,"(default 0) 0=Centar and Normal change 1=Center change 2=Normal change",int,""); BBTK_OUTPUT(PlaneWidget,Out,"Dynamic plane result from vtkPlaneSource",vtkDataSet*,""); BBTK_OUTPUT(PlaneWidget,Center,"Center of the plane",std::vector,"");