X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FmanualViewPerpPlaneContour.cxx;h=0fd5c3f9f6a4ad8018f521b65f375548871793f7;hb=6c68065ae9d9f5f45947602da971136d1a1bae8b;hp=4c07bdf501122669a8950539c0db6b1bb725e501;hpb=a4ee3758aa0477f677fb981e2c4d6e29995e8db8;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualViewPerpPlaneContour.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualViewPerpPlaneContour.cxx index 4c07bdf..0fd5c3f 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualViewPerpPlaneContour.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualViewPerpPlaneContour.cxx @@ -82,11 +82,11 @@ void manualViewPerpPlaneContour::FilterCordinateXYZ (double &x, double &y, doubl } // ---------------------------------------------------------------------------- -void manualViewPerpPlaneContour::TransfromeCoordViewWorld( double &X,double &Y,double &Z,int type ) +void manualViewPerpPlaneContour::TransfromCoordViewWorld( double &X,double &Y,double &Z,int type ) { Z = 0; vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)( this->GetWxVtkBaseView() ); - vtkplane2Dview->TransfromeCoordViewWorld2(X,Y,Z); + vtkplane2Dview->TransfromCoordViewWorld2(X,Y,Z); } @@ -192,7 +192,8 @@ bool manualViewPerpPlaneContour::ifTouchContour( int x, int y, int z) double X=x; double Y=y; double Z=z; - vtkplane2Dview->TransfromeCoordScreenToWorld(X,Y,Z); + vtkplane2Dview->TransFromCoordScreenToWorld(X,Y,Z); + double ppA[3]; _pts->GetPoint(0, ppA); if (sqrt( (ppA[0]-X)*(ppA[0]-X) + (ppA[1]-Y)*(ppA[1]-Y) ) <=2) @@ -200,4 +201,5 @@ bool manualViewPerpPlaneContour::ifTouchContour( int x, int y, int z) ok = true; } return ok; -} \ No newline at end of file +} +