35 class PalRtree :
public RTree<T *, float, 2, float>
44 : mXMin( maxBounds.xMinimum() )
45 , mYMin( maxBounds.yMinimum() )
46 , mXRes( ( std::numeric_limits< float >::max() - 1 ) / ( maxBounds.xMaximum() - maxBounds.xMinimum() ) )
47 , mYRes( ( std::numeric_limits< float >::max() - 1 ) / ( maxBounds.yMaximum() - maxBounds.yMinimum() ) )
48 , mMaxBounds( maxBounds )
61 std::array< float, 4 > scaledBounds = scaleBounds( bounds );
64 scaledBounds[0], scaledBounds[ 1]
67 scaledBounds[2], scaledBounds[3]
80 std::array< float, 4 > scaledBounds = scaleBounds( bounds );
83 scaledBounds[0], scaledBounds[ 1]
86 scaledBounds[2], scaledBounds[3]
98 std::array< float, 4 > scaledBounds = scaleBounds( bounds );
101 scaledBounds[0], scaledBounds[ 1]
104 scaledBounds[2], scaledBounds[3]
118 std::array<float, 4> scaleBounds(
const QgsRectangle &bounds )
const
122 static_cast< float >( ( std::max( bounds.
xMinimum(), mMaxBounds.
xMinimum() ) - mXMin ) / mXRes ),
123 static_cast< float >( ( std::max( bounds.
yMinimum(), mMaxBounds.
yMinimum() ) - mYMin ) / mYRes ),
124 static_cast< float >( ( std::min( bounds.
xMaximum(), mMaxBounds.
xMaximum() ) - mXMin ) / mXRes ),
125 static_cast< float >( ( std::min( bounds.
yMaximum(), mMaxBounds.
yMaximum() ) - mYMin ) / mYRes )