Commit 4c4160fd authored by Julien Michel's avatar Julien Michel

Remplacement des std::stringstream par itk::OStringStream.

parent fafc85ee
......@@ -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();
......
......@@ -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());
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment