]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourViewPanel.cxx
index 61dc811b10969cfa1748b9759bddd56e8522111a..e0aa08666d0f7fa419996ebb333867fdaefada3b 100644 (file)
@@ -753,7 +753,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE )
                return _sceneManager->GetImageData();
        }
 
-       void wxContourViewPanel::configureViewControlTo(std::string theName,manualContourModel* manModelContour,double* spc,int typeofcontour){
+       void wxContourViewPanel::configureViewControlTo(std::string theName,manualBaseModel* manModelContour,double* spc,int typeofcontour){
                _sceneManager->configureViewControlTo(theName, manModelContour, spc, typeofcontour);
        }
 
@@ -806,6 +806,9 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE )
        }
 
        void wxContourViewPanel::setImageSlice(int z){
-               _sceneManager->getWxVtkViewBase()->GetInteractorStyleBaseView()->GetWxVtk2DBaseView()->SetActualSlice(z);
+               vtkInteractorStyleBaseView* stylebaseview = (vtkInteractorStyleBaseView*) _sceneManager->getWxVtkViewBase()->GetInteractorStyleBaseView();
+               wxVtk2DBaseView* baseview = (wxVtk2DBaseView*)stylebaseview->GetWxVtk2DBaseView();
+               baseview->SetActualSlice(z);
                RefreshInterface();
-       }
\ No newline at end of file
+       }
+