Skip to content
Snippets Groups Projects
Commit a303542c authored by Julien Michel's avatar Julien Michel
Browse files

Essai correction bug visu.

parent 1123495e
Branches
Tags
No related merge requests found
......@@ -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);
......
......@@ -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;
}
}
......
......@@ -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++;
......
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment