]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx
3472 TDx
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkBaseView.cxx
index 77d384390a912d2156b3bf4e9566c626592a013e..9875b72cec473d94a948410a2926eb28f68f06cd 100644 (file)
@@ -46,6 +46,13 @@ wxVtkBaseView::wxVtkBaseView(wxWindow *parent)
 {
        _parent                         = parent;
        _iren                           = (crea::wxVTKRenderWindowInteractor*)new wxVTKRenderWindowInteractorPlus(_parent,this);
+//EED 2021-10-12
+#ifdef VTK_USE_TDX
+    _iren->SetUseTDx(true);
+#endif
+
+    
+    
 //     _iren->UseCaptureMouseOn();
 //     _iren                           = new wxVTKRenderWindowInteractor(_parent,-1);
        _interactorStyle        = NULL;
@@ -60,7 +67,6 @@ wxVtkBaseView::~wxVtkBaseView()
 //-------------------------------------------------------------------
 crea::wxVTKRenderWindowInteractor* wxVtkBaseView::GetWxVTKRenderWindowInteractor() throw (char*)
 {
-
        if(_iren==NULL)
        {
                throw "wxVtkBaseView::GetWxVTKRenderWindowInteractor() _iren cwxVTKRenderWindowInteractorPlus =NULL";
@@ -117,7 +123,7 @@ void wxVtkBaseView::TransCoordScreenToWorld(double &X, double &Y, double &Z, int
        GetRenderer()->DisplayToWorld();
        double fP[4];
        GetRenderer()->GetWorldPoint( fP );
-       if ( fP[3] ){
+    if ( fP[3] ){
                fP[0] /= fP[3];
                fP[1] /= fP[3];
                fP[2] /= fP[3];
@@ -149,7 +155,7 @@ void wxVtkBaseView::TransFromCoordScreenToWorld(double &X, double &Y, double &Z,
 
        X = xx;
        Y = yy;
-       Z=zz;
+       Z = zz;
 
 // EEDx5
        //JCP 13/05/2009
@@ -175,7 +181,8 @@ void wxVtkBaseView::TransFromCoordScreenToWorld(double &X, double &Y, double &Z,
        if (type!=2)
        {
                Z=fP[2];
-       } 
+       }
+
 }
 
 //---------------------------------------------------------------------------