X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FvtkMPR3DDataViewer.cxx;h=8c369ffc6a05c636920e149108988607deb0cd9b;hb=d8edef346f2d6c64f6ed3bea7225aeb3a8b3970c;hp=acbeb2fbab85102c475d0373251833fbe3f05912;hpb=cea19159becbb13fffac6d87a914480c385f8026;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx index acbeb2f..8c369ff 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx @@ -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); +} +