X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_ManagerContour_NDimensions%2FwxContourViewPanel.cxx;h=e0aa08666d0f7fa419996ebb333867fdaefada3b;hb=8273a848852ed2b83e0e1542fa379af58306cb64;hp=428fcecf9e0858b42393d39d093ce2e3c82f71ff;hpb=803877e98b79df963f17d83da7203fd972674d9e;p=creaContours.git diff --git a/lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx b/lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx index 428fcec..e0aa086 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx @@ -152,7 +152,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE ) wxContourViewPanel :: ~wxContourViewPanel() { - + delete _sceneManager; } void wxContourViewPanel::initializeScenceManager(){ @@ -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 + } +