From 4c4160fde476cc58efd2c51cada846b2596cb966 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@c-s.fr> Date: Thu, 12 Apr 2007 06:56:51 +0000 Subject: [PATCH] Remplacement des std::stringstream par itk::OStringStream. --- Code/Visu/otbImageViewer.txx | 4 ++-- Code/Visu/otbImageViewerFullWidget.h | 2 +- Code/Visu/otbImageViewerScrollWidget.h | 2 +- Code/Visu/otbImageViewerZoomWidget.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Code/Visu/otbImageViewer.txx b/Code/Visu/otbImageViewer.txx index 6c7785d4ba..de97332d2e 100644 --- a/Code/Visu/otbImageViewer.txx +++ b/Code/Visu/otbImageViewer.txx @@ -200,7 +200,7 @@ namespace otb { itkExceptionMacro(<<"No input image !"); } - std::stringstream oss; + itk::OStringStream oss; // Get the image dimension typename ImageType::SizeType size = m_InputImage->GetLargestPossibleRegion().GetSize(); m_ImageGeometry = static_cast<double>(size[0])/static_cast<double>(size[1]); @@ -495,7 +495,7 @@ namespace otb ImageViewer<TPixel> ::UpdateZoomWidget(void) { - std::stringstream oss; + itk::OStringStream oss; oss<<"Zoom Window (X"<<m_ZoomWidget->GetOpenGlIsotropicZoom()<<")"; m_ZoomWindow->copy_label(oss.str().c_str()); m_ZoomWindow->redraw(); diff --git a/Code/Visu/otbImageViewerFullWidget.h b/Code/Visu/otbImageViewerFullWidget.h index 0ad96d5710..3ecfd434d4 100644 --- a/Code/Visu/otbImageViewerFullWidget.h +++ b/Code/Visu/otbImageViewerFullWidget.h @@ -96,7 +96,7 @@ class ITK_EXPORT ImageViewerFullWidget IndexType newIndex = this->WindowToImageCoordinates(m_MousePos); if(this->GetInput()->GetBufferedRegion().IsInside(newIndex)) { - std::stringstream oss; + itk::OStringStream oss; typename ImageType::PixelType newPixel = this->GetInput()->GetPixel(newIndex); oss<<" Location: "<<newIndex<<", Values: "<<newPixel; m_Parent->PrintPixLocVal(oss.str()); diff --git a/Code/Visu/otbImageViewerScrollWidget.h b/Code/Visu/otbImageViewerScrollWidget.h index 058597e316..ac239252d6 100644 --- a/Code/Visu/otbImageViewerScrollWidget.h +++ b/Code/Visu/otbImageViewerScrollWidget.h @@ -106,7 +106,7 @@ class ITK_EXPORT ImageViewerScrollWidget IndexType realIndex; realIndex[0]=newIndex[0]*m_Parent->GetShrinkFactor(); realIndex[1]=newIndex[1]*m_Parent->GetShrinkFactor(); - std::stringstream oss; + itk::OStringStream oss; oss<<" Location: "<<realIndex<<", Values: "<<this->GetInput()->GetPixel(newIndex); m_Parent->PrintPixLocVal(oss.str()); m_MouseMoveCount=0; diff --git a/Code/Visu/otbImageViewerZoomWidget.h b/Code/Visu/otbImageViewerZoomWidget.h index 3d6b77b380..19858a2dd9 100644 --- a/Code/Visu/otbImageViewerZoomWidget.h +++ b/Code/Visu/otbImageViewerZoomWidget.h @@ -90,7 +90,7 @@ class ITK_EXPORT ImageViewerZoomWidget IndexType newIndex = this->WindowToImageCoordinates(m_MousePos); if(this->GetInput()->GetBufferedRegion().IsInside(newIndex)) { - std::stringstream oss; + itk::OStringStream oss; oss<<" Location: "<<newIndex<<", Values: "<<this->GetInput()->GetPixel(newIndex); m_Parent->PrintPixLocVal(oss.str()); m_MouseMoveCount=0; -- GitLab