From a303542c022bfd60d6e588b184edb93d6a385d59 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@c-s.fr> Date: Fri, 13 Apr 2007 07:58:06 +0000 Subject: [PATCH] Essai correction bug visu. --- Code/Visu/otbImageViewer.txx | 7 ++++--- Code/Visu/otbImageViewerFullWidget.h | 3 ++- Code/Visu/otbImageViewerScrollWidget.h | 3 ++- Code/Visu/otbImageViewerZoomWidget.h | 3 ++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Code/Visu/otbImageViewer.txx b/Code/Visu/otbImageViewer.txx index de97332d2e..2cdb7d6614 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 3ecfd434d4..466bb8547c 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 ac239252d6..3dfaa4a5ef 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 19858a2dd9..489c8594ec 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; } } -- GitLab