X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPlaneSource.cxx;h=2f8b50dff43c9ac9a48605a76d7a537029883084;hb=d4d007ec0086a1145c20e922e87e0fee1b2f12d8;hp=ff09f5d166cd904350375ebdd316ea1c2ba7c5a4;hpb=15673d41b054dd2543c80b842b3ebde8cea76eb6;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.cxx index ff09f5d..2f8b50d 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.cxx @@ -24,18 +24,18 @@ void PlaneSource::Process() p0[2]=0; double p1[3]; p1[0]=0; - p1[1]=0; + p1[1]=1; p1[2]=0; double p2[3]; p2[0]=0; p2[1]=0; - p2[2]=0; + p2[2]=1; double c[3]; c[0]=bbGetInputCenter()[0]; c[1]=bbGetInputCenter()[1]; c[2]=bbGetInputCenter()[2]; - plane->SetResolution( 100, 100); + plane->SetResolution( bbGetInputXResolution(), bbGetInputYResolution() ); plane->SetOrigin( p0 ); plane->SetPoint1( p1 ); plane->SetPoint2( p2 ); @@ -45,15 +45,26 @@ void PlaneSource::Process() plane->SetCenter( c ); plane->Update( ); bbSetOutputPlane( (vtkDataSet*)plane ); - std::cout << "CFT End of Process() CFT" << std::endl; - + bbSetOutputPolyData( plane->GetOutput() ); + } //===== // 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) //===== void PlaneSource::bbUserSetDefaultValues() { - + std::vector c; + std::vector n; + c.push_back(0); + c.push_back(0); + c.push_back(0); + n.push_back(1); + n.push_back(0); + n.push_back(0); + bbSetInputCenter(c); + bbSetInputNormal(n); + bbSetInputXResolution(100); + bbSetInputYResolution(100); } //===== // 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)