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=096822cf3513065cfa25e378679339a5ae4684cf;hp=ca4f013e440bb5f2f237e843d1ed9aac981803aa;hpb=3d7dc8f5fc5f6acd6f79f455ef7d068d912653a1;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualViewPerpPlaneContour.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualViewPerpPlaneContour.cxx index ca4f013..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 +} +