diff --git a/Code/Visu/otbImageViewer.txx b/Code/Visu/otbImageViewer.txx index de97332d2ec0b67eb960f9e5e883e66791f28c01..2cdb7d6614aa31eadacdbca8e2f2713f6dc9da4b 100644 --- a/Code/Visu/otbImageViewer.txx +++ b/Code/Visu/otbImageViewer.txx @@ -307,8 +307,9 @@ namespace otb } } // Create the zoom window - std::string zoomLabel="Zoom Window"; - m_ZoomWindow = new Fl_Window(wfull+15,hscroll+110,m_ZoomMaxInitialSize,m_ZoomMaxInitialSize,zoomLabel.c_str()); + std::string zoomLabel="Zoom Window (X4)"; + m_ZoomWindow = new Fl_Window(wfull+15,hscroll+110,m_ZoomMaxInitialSize,m_ZoomMaxInitialSize,""); + m_ZoomWindow->copy_label(zoomLabel.c_str()); m_ZoomWidget = ZoomWidgetType::New(); m_ZoomWidget->SetParent(this); m_ZoomWindow->resizable(m_ZoomWidget); @@ -316,7 +317,7 @@ namespace otb m_ZoomWindow->end(); m_ZoomWidget->SetZoomFactor(4.0); m_ZoomWidget->SetInput(m_InputImage); - m_ZoomWidget->Init(0,0,m_ZoomMaxInitialSize,m_ZoomMaxInitialSize,zoomLabel.c_str()); + m_ZoomWidget->Init(0,0,m_ZoomMaxInitialSize,m_ZoomMaxInitialSize,""); m_ZoomWidget->box( FL_EMBOSSED_BOX ); m_ZoomWidget->SetFormOverlayVisible(true); diff --git a/Code/Visu/otbImageViewerFullWidget.h b/Code/Visu/otbImageViewerFullWidget.h index 3ecfd434d4956ac165eafbaf57424a81b8d4ae32..466bb8547cad40f1638f4b3a76515b89f185df90 100644 --- a/Code/Visu/otbImageViewerFullWidget.h +++ b/Code/Visu/otbImageViewerFullWidget.h @@ -99,7 +99,8 @@ class ITK_EXPORT ImageViewerFullWidget itk::OStringStream oss; typename ImageType::PixelType newPixel = this->GetInput()->GetPixel(newIndex); oss<<" Location: "<<newIndex<<", Values: "<<newPixel; - m_Parent->PrintPixLocVal(oss.str()); + std::string str(oss.str()); + m_Parent->PrintPixLocVal(str); m_MouseMoveCount=0; } } diff --git a/Code/Visu/otbImageViewerScrollWidget.h b/Code/Visu/otbImageViewerScrollWidget.h index ac239252d6e96a5389197cd5c165a918c42c35a9..3dfaa4a5eff3c428d3879f3c90c31ef77da8d60c 100644 --- a/Code/Visu/otbImageViewerScrollWidget.h +++ b/Code/Visu/otbImageViewerScrollWidget.h @@ -108,7 +108,8 @@ class ITK_EXPORT ImageViewerScrollWidget realIndex[1]=newIndex[1]*m_Parent->GetShrinkFactor(); itk::OStringStream oss; oss<<" Location: "<<realIndex<<", Values: "<<this->GetInput()->GetPixel(newIndex); - m_Parent->PrintPixLocVal(oss.str()); + std::string str(oss.str()); + m_Parent->PrintPixLocVal(str); m_MouseMoveCount=0; } m_MouseMoveCount++; diff --git a/Code/Visu/otbImageViewerZoomWidget.h b/Code/Visu/otbImageViewerZoomWidget.h index 19858a2dd9a3208a29b728cdf97669d011d6b38b..489c8594ecc09e032c99a999a3d20c9574c29629 100644 --- a/Code/Visu/otbImageViewerZoomWidget.h +++ b/Code/Visu/otbImageViewerZoomWidget.h @@ -92,7 +92,8 @@ class ITK_EXPORT ImageViewerZoomWidget { itk::OStringStream oss; oss<<" Location: "<<newIndex<<", Values: "<<this->GetInput()->GetPixel(newIndex); - m_Parent->PrintPixLocVal(oss.str()); + std::string str(oss.str()); + m_Parent->PrintPixLocVal(str); m_MouseMoveCount=0; } }