]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewManager.cxx
#3262 creaMaracasVisu Feature New Normal - Export LookupTable fron ColorLayerImageV...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ColorLayerImageViewManager.cxx
index 8fdaa7c2b4a53befbf1fc84cdeac8e8ea0bfef25..9f5de8ad3c63ee107d81ba23cb9a432b48b64706 100644 (file)
@@ -444,7 +444,6 @@ void ColorLayerImageViewManager::GetSpcOriginalLayer(int id,double *spc)
        } // if 
 }
 
-//----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
 void ColorLayerImageViewManager::SetNewSpacingLayer(double *spc)
 {
@@ -458,7 +457,16 @@ void ColorLayerImageViewManager::SetNewSpacingLayer(double *spc)
   } // for 
 }
 
-
+//----------------------------------------------------------------------------
+vtkScalarsToColors* ColorLayerImageViewManager::GetLookupTable(int id)
+{
+       vtkScalarsToColors* lookuptable;
+       if (_colorLayerImageViewLst[id]!=NULL)
+       {
+          lookuptable = _colorLayerImageViewLst[id]->GetLookupTable( );
+       } // if 
+       return lookuptable;
+}
 
 // EOF