Commit ba537299 authored by Ludovic Hussonnois's avatar Ludovic Hussonnois
Browse files

BUG: Mantis-1396: Remove overview ROI projection calculation.

The red ROI coordinates of the overview were recomputed to correspond
to the current projection but it sometimes failed because of some
ossimRpcModel::lineSaampleHeightToWorld inaccurate results.

Nevertheless the QuicklookViewRenderer already set the ROI's coordinates
 to the current projection so this calculation is not necessary.
parent a6bb2a95
......@@ -102,29 +102,16 @@ void GlROIActor::ProcessViewSettings()
UpdateTransforms();
assert( GetSettings()!=NULL );
assert( GetSettings() != NULL );
if( GetGeometryChanged() ||
GetSettings()->GetGeometryChanged() )
if( GetGeometryChanged() || GetSettings()->GetGeometryChanged() )
{
// std::cout << "otb::GlRoiActor@" << std::hex << this << " -> ROI" << std::endl;
PointType ur;
PointType ll;
ur = m_UL;
ur[ 0 ] = m_LR[ 0 ];
ll = m_LR;
ll[ 0 ] = m_UL[ 0 ];
assert( !m_ImageToViewportTransform.IsNull() );
assert( !m_ViewportToImageTransform.IsNull() );
m_VpUL = m_ImageToViewportTransform->TransformPoint( m_UL );
m_VpUR = m_ImageToViewportTransform->TransformPoint( ur );
m_VpLL = m_ImageToViewportTransform->TransformPoint( ll );
m_VpLR = m_ImageToViewportTransform->TransformPoint( m_LR );
m_VpUL = m_UL;
m_VpUR = m_UL;
m_VpUR[0] = m_LR[0];
m_VpLL = m_LR;
m_VpLL[0] = m_UL[0];
m_VpLR = m_LR;
}
}
......
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