#include "vtkInfoTextImage.h"
+#include "vtkProperty2D.h"
#include "vtkTextProperty.h"
#include <vtkImageMapToWindowLevelColors.h>
//-------------------------------------------------------------------
} // if vtkText_WindowLevel
}
+void vtkInfoTextImage::SetOpacity(double opacity)
+{
+ if (_vtkText_WindowLevel!=NULL)
+ {
+ _vtkText_WindowLevel->GetProperty()->SetOpacity( opacity );
+ }
+ if (_vtkText_ColorLevel!=NULL)
+ {
+ _vtkText_ColorLevel->GetProperty()->SetOpacity( opacity );
+ }
+ if (_vtkText_position!=NULL)
+ {
+ _vtkText_position->GetProperty()->SetOpacity( opacity );
+ }
+ if (_vtkText_pixelIntensity!=NULL)
+ {
+ _vtkText_pixelIntensity->GetProperty()->SetOpacity( opacity );
+ }
+ if (_vtkText_plane!=NULL)
+ {
+ _vtkText_plane->GetProperty()->SetOpacity( opacity );
+ }
+}
//-------------------------------------------------------------------