+//-------------------------------------------------------------------
+void vtkImageViewer2_XYZ::setScalarsToColors(vtkScalarsToColors* colortable, int outputformat)
+{
+/* outputformat VTK-8.1.1/Common/Core/vtkSystemIncludes.h
+ VTK_LUMINANCE 1
+ VTK_LUMINANCE_ALPHA 2
+ VTK_RGB 3 OK
+ VTK_RGBA 4
+*/
+ if( _colortable!=colortable)
+ {
+ _colortable = colortable;
+ _vtkimageviewer2->GetWindowLevel()->SetOutputFormat( outputformat );
+ _vtkimageviewer2->GetWindowLevel()->SetLookupTable(colortable);
+ _vtkimageviewer2->GetWindowLevel()->SetOutputFormatToRGB();
+// vtkLookupTableDirectionVector2 *_LutEED = vtkLookupTableDirectionVector2::New();
+// _LutEED->SetVectorModeToRGBColors();
+// _vtkimageviewer2->GetWindowLevel()->SetLookupTable(_LutEED);
+ } // if colortable