]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/wxMaracasMPR.cxx
Diego Caceres: creaButtonContainer & creaPanelButtonContainer
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / wxMaracasMPR.cxx
index 756395ae7a0bd3a4a0c99bc8870d388b40205dfd..8349290b5f7e7866a84a4a1e0dd23cb86f42fc26 100644 (file)
@@ -3,8 +3,8 @@
   Program:   wxMaracas
   Module:    $RCSfile: wxMaracasMPR.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/31 16:32:10 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2009/05/14 13:54:31 $
+  Version:   $Revision: 1.4 $
 
   Copyright: (c) 2002, 2003
   License:
@@ -52,8 +52,14 @@ vtkPlane2DView *wxMaracasMPR::GetVtkPlane2DView()
        return _MPR->GetVtkPlane2DView();
 }
 //----------------------------------------------------------------------------
-wxVtkMPR3DView  *wxMaracasMPR::GetWxvtkmpr3Dview_BB()
+wxVtkMPR3DView  *wxMaracasMPR::GetWxvtkmpr3Dview_BB() throw(char*)
 { 
+       if(_MPR == NULL){ 
+        throw "wxVtkMPR3DView  *wxMaracasMPR::GetWxvtkmpr3Dview_BB() _MPR =NULL";
+       }
+       if(_MPR->GetWxvtkmpr3Dview_BB() ==NULL){
+               throw "wxVtkMPR3DView  *wxMaracasMPR::GetWxvtkmpr3Dview_BB() _MPR->GetWxvtkmpr3Dview_BB()=NULL";
+       }
        return _MPR->GetWxvtkmpr3Dview_BB();
 }
 
@@ -63,6 +69,10 @@ void wxMaracasMPR::RefreshView()
        _MPR->RefreshView();
 }
 
+void wxMaracasMPR::setImageData(vtkImageData *img, double voxelsize){
+       _MPR->setImageData(img, voxelsize);
+
+}
 
 // EOF - wxMaracasMPR.cxx