]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.h
#3491 vtk9itk5wx3-macos
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPlaneWidget.h
index 89881fb17650e328f2f0041b1e4aa3939fbcb378..aed64f85636cde544bb18bb9793ee3fde51f68e5 100644 (file)
@@ -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,17 +43,21 @@ 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_INPUT(Origin,std::vector<double>);
-  BBTK_DECLARE_OUTPUT(Out,vtkDataSet*);
-  BBTK_DECLARE_OUTPUT(Center,std::vector<double>);
-  BBTK_DECLARE_OUTPUT(Normal,std::vector<double>);
-  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<double>);
+    BBTK_DECLARE_INPUT(NormalIn,std::vector<double>);
+    BBTK_DECLARE_INPUT(ReactiveType,int);
+
+    BBTK_DECLARE_OUTPUT(Out,vtkDataSet*);
+    BBTK_DECLARE_OUTPUT(Center,std::vector<double>);
+    BBTK_DECLARE_OUTPUT(Normal,std::vector<double>);
+    BBTK_DECLARE_OUTPUT(Base, creaVtkPlaneWidget* );
+    BBTK_PROCESS(Process);
+    void Process();
 
     boxcreaVtkPlaneWidget _boxcreavtkplanewidget;
 
@@ -69,10 +80,13 @@ BBTK_CATEGORY("empty");
   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<double>,"");
+  BBTK_INPUT(PlaneWidget,NormalIn,"Normal [x,y,z]",std::vector<double>,"");
+  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<double>,"");
   BBTK_OUTPUT(PlaneWidget,Normal,"Normal of the plane",std::vector<double>,"");
+  BBTK_OUTPUT(PlaneWidget,Base,"Base creaVtkPlaneWidget", creaVtkPlaneWidget* ,"");
 
 BBTK_END_DESCRIBE_BLACK_BOX(PlaneWidget);