X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPlaneWidget_Base.cxx;h=c666b5fd8cc048774732d1da2d827839755015f0;hb=a3620d4e1b64678c8bc31791fd8cb86a80c04256;hp=029d552dfdb26ff81e5837a6bbdeb9e2fc1f24e6;hpb=6171943e84350719c7dfae2af1d2476f3df9abd1;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget_Base.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget_Base.cxx index 029d552..c666b5f 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget_Base.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget_Base.cxx @@ -29,10 +29,8 @@ void PlaneWidget_Base::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " < origin = bbGetInputIn()->GetCenter(); std::vector normal = bbGetInputIn()->GetNormal(); origin[0] = origin[0] + normal[0]*bbGetInputParam(); @@ -43,7 +41,18 @@ void PlaneWidget_Base::Process() bbGetInputIn()->Process(); bbGetInputIn()->Execute(); } // if Type == 1 - printf("EED PlaneWidget_Base::Process End \n"); + if((bbGetInputType()==2) && (bbGetInputIn()!=NULL) && (bbGetInputParamVector().size() == 3)) + { + bbGetInputIn()->SetNormalIn(bbGetInputParamVector()); + bbGetInputIn()->Process(); + //bbGetInputIn()->Execute(); + } // if Type == 2 + if((bbGetInputType()==3) && (bbGetInputIn()!=NULL) && (bbGetInputParamVector().size() == 3)) + { + bbGetInputIn()->SetOrigin(bbGetInputParamVector()); + bbGetInputIn()->Process(); +//EED bbGetInputIn()->Execute(); + } // if Type == 3 } //=====