]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewManager.cxx
3263 creaMaracasVisu Feature New Normal - ViewerNV sync ParallelScale Camera
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ColorLayerImageViewManager.cxx
index bc06bfded77c992a6d614819ed56fb3889a7c2ff..774d66383e84f740de12ced2a54fcb472bc3c47b 100644 (file)
@@ -207,6 +207,20 @@ void ColorLayerImageViewManager::SetRangeForColorBar(std::vector<double> &range)
   } // for 
 }
 
+//----------------------------------------------------------------------------
+void ColorLayerImageViewManager::SetColorBarPosition(std::vector<int> &colorbarposition)
+{
+  int i, size=_colorLayerImageViewLst.size();
+  for (i=0;i<size;i++)
+  {
+       if (_colorLayerImageViewLst[i]!=NULL)
+       {
+          _colorLayerImageViewLst[i]->SetColorBarPosition( colorbarposition );
+       } // if 
+  } // for 
+}
+
+
 
 
 //----------------------------------------------------------------------------
@@ -394,6 +408,19 @@ vtkImageData* ColorLayerImageViewManager::GetImageChangeInformation(int id)
        return NULL;
 }
 
+//----------------------------------------------------------------------------
+vtkLookupTable*        ColorLayerImageViewManager::GetLookupTable(int id)
+{
+printf("EED ColorLayerImageViewManager::GetLookupTable 0 \n");
+       if (_colorLayerImageViewLst[id]!=NULL)
+       {
+printf("EED ColorLayerImageViewManager::GetLookupTable 1 \n");
+          return _colorLayerImageViewLst[id]->GetThresholdTable( );
+       } // if 
+printf("EED ColorLayerImageViewManager::GetLookupTable 2 \n");
+       return NULL;
+}
+
 //----------------------------------------------------------------------------
 void ColorLayerImageViewManager::GetDimensionBase(int id,int *dim)
 {