]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkMPR3DDataViewer.cxx
index acbeb2fbab85102c475d0373251833fbe3f05912..8c369ffc6a05c636920e149108988607deb0cd9b 100644 (file)
@@ -24,20 +24,20 @@ vtkMPR3DDataViewer::vtkMPR3DDataViewer()
 //-------------------------------------------------------------------
 vtkMPR3DDataViewer::~vtkMPR3DDataViewer()
 {
-       _outlineData            -> Delete();
-       _mapOutline                     -> Delete();
-       _outline                        -> Delete();
-
-//     if (_bwLut)                             _bwLut                          -> Delete();
-//     if (_hueLut)                    _hueLut                         -> Delete();
-//     if (_satLut)                    _satLut                         -> Delete();
-       if (_ctfun)                             _ctfun                          -> Delete();
-       if (_saggitalColors)    _saggitalColors         -> Delete();
-       if (_saggital)                  _saggital                       -> Delete();
-       if (_axialColors)               _axialColors            -> Delete();
-       if (_axial)                             _axial                          -> Delete();
-       if (_coronalColors)             _coronalColors          -> Delete();
-       if (_coronal)                   _coronal                        -> Delete();
+       _outlineData-> Delete();
+       _mapOutline-> Delete();
+       _outline-> Delete();
+
+//     if (_bwLut)             _bwLut->Delete();
+//     if (_hueLut)            _hueLut->Delete();
+//     if (_satLut)            _satLut->Delete();
+       if (_ctfun)             _ctfun->Delete();
+       if (_saggitalColors)    _saggitalColors ->Delete();
+       if (_saggital)          _saggital->Delete();
+       if (_axialColors)       _axialColors->Delete();
+       if (_axial)             _axial->Delete();
+       if (_coronalColors)     _coronalColors->Delete();
+       if (_coronal)           _coronal->Delete();
 
 }
 //-------------------------------------------------------------------
@@ -209,7 +209,6 @@ void vtkMPR3DDataViewer::Configure()
 //    _saggitalColors->SetLookupTable(_bwLut);
        
     _saggitalColors->SetLookupTable(_ctfun);
-
        
 
        if(_saggital==NULL){
@@ -332,4 +331,11 @@ void vtkMPR3DDataViewer::SetVisiblePosition(int idPosition, bool visible)
 bool vtkMPR3DDataViewer::GetVisiblePosition(int idPosition)
 {
        return _visiblePosition[idPosition];
-}
\ No newline at end of file
+}
+
+void vtkMPR3DDataViewer::setColorTransferFunction(vtkColorTransferFunction* colortable){
+       _saggitalColors->SetLookupTable(colortable);
+        _coronalColors->SetLookupTable(colortable);
+       _axialColors->SetLookupTable(colortable);
+}
+