wxContourViewPanel :: ~wxContourViewPanel()
{
-
+ delete _sceneManager;
}
void wxContourViewPanel::initializeScenceManager(){
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);
}
}
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
+ }
+