780inline bool QgsClipper::clipLineSegment(
double xLeft,
double xRight,
double yBottom,
double yTop,
double &x0,
double &y0,
double &x1,
double &y1 )
786 else if ( y1 > yTop )
791 else if ( x1 < xLeft )
796 else if ( y0 > yTop )
801 else if ( x0 < xLeft )
810 clipEndLeft( x0, y0, x1, y1, xLeft );
814 clipEndRight( x0, y0, x1, y1, xRight );
818 clipEndBottom( x0, y0, x1, y1, yBottom );
822 clipEndLeft( x0, y0, x1, y1, xLeft );
824 clipEndBottom( x0, y0, x1, y1, yBottom );
828 clipEndRight( x0, y0, x1, y1, xRight );
830 clipEndBottom( x0, y0, x1, y1, yBottom );
834 clipEndTop( x0, y0, x1, y1, yTop );
838 clipEndLeft( x0, y0, x1, y1, xLeft );
840 clipEndTop( x0, y0, x1, y1, yTop );
844 clipEndRight( x0, y0, x1, y1, xRight );
846 clipEndTop( x0, y0, x1, y1, yTop );
850 clipStartLeft( x0, y0, x1, y1, xLeft );
854 clipStartLeft( x0, y0, x1, y1, xLeft );
855 clipEndRight( x0, y0, x1, y1, xRight );
859 clipStartLeft( x0, y0, x1, y1, xLeft );
862 clipEndBottom( x0, y0, x1, y1, yBottom );
866 clipStartLeft( x0, y0, x1, y1, xLeft );
869 clipEndBottom( x0, y0, x1, y1, yBottom );
871 clipEndRight( x0, y0, x1, y1, xRight );
875 clipStartLeft( x0, y0, x1, y1, xLeft );
878 clipEndTop( x0, y0, x1, y1, yTop );
882 clipStartLeft( x0, y0, x1, y1, xLeft );
885 clipEndTop( x0, y0, x1, y1, yTop );
887 clipEndRight( x0, y0, x1, y1, xRight );
891 clipStartRight( x0, y0, x1, y1, xRight );
895 clipStartRight( x0, y0, x1, y1, xRight );
896 clipEndLeft( x0, y0, x1, y1, xLeft );
900 clipStartRight( x0, y0, x1, y1, xRight );
903 clipEndBottom( x0, y0, x1, y1, yBottom );
907 clipStartRight( x0, y0, x1, y1, xRight );
910 clipEndBottom( x0, y0, x1, y1, yBottom );
912 clipEndLeft( x0, y0, x1, y1, xLeft );
916 clipStartRight( x0, y0, x1, y1, xRight );
919 clipEndTop( x0, y0, x1, y1, yTop );
923 clipStartRight( x0, y0, x1, y1, xRight );
926 clipEndTop( x0, y0, x1, y1, yTop );
928 clipEndLeft( x0, y0, x1, y1, xLeft );
932 clipStartBottom( x0, y0, x1, y1, yBottom );
936 clipStartBottom( x0, y0, x1, y1, yBottom );
939 clipEndLeft( x0, y0, x1, y1, xLeft );
941 clipEndBottom( x0, y0, x1, y1, yBottom );
945 clipStartBottom( x0, y0, x1, y1, yBottom );
948 clipEndRight( x0, y0, x1, y1, xRight );
952 clipStartBottom( x0, y0, x1, y1, yBottom );
953 clipEndTop( x0, y0, x1, y1, yTop );
957 clipStartBottom( x0, y0, x1, y1, yBottom );
960 clipEndLeft( x0, y0, x1, y1, xLeft );
962 clipEndTop( x0, y0, x1, y1, yTop );
966 clipStartBottom( x0, y0, x1, y1, yBottom );
969 clipEndRight( x0, y0, x1, y1, xRight );
971 clipEndTop( x0, y0, x1, y1, yTop );
975 clipStartLeft( x0, y0, x1, y1, xLeft );
977 clipStartBottom( x0, y0, x1, y1, yBottom );
981 clipEndRight( x0, y0, x1, y1, xRight );
984 clipStartBottom( x0, y0, x1, y1, yBottom );
986 clipStartLeft( x0, y0, x1, y1, xLeft );
990 clipEndTop( x0, y0, x1, y1, yTop );
993 clipStartBottom( x0, y0, x1, y1, yBottom );
995 clipStartLeft( x0, y0, x1, y1, xLeft );
999 clipStartLeft( x0, y0, x1, y1, xLeft );
1002 clipEndRight( x0, y0, x1, y1, xRight );
1006 clipStartBottom( x0, y0, x1, y1, yBottom );
1008 clipEndTop( x0, y0, x1, y1, yTop );
1012 clipStartRight( x0, y0, x1, y1, xRight );
1014 clipStartBottom( x0, y0, x1, y1, yBottom );
1018 clipEndLeft( x0, y0, x1, y1, xLeft );
1021 clipStartBottom( x0, y0, x1, y1, yBottom );
1023 clipStartRight( x0, y0, x1, y1, xRight );
1027 clipEndTop( x0, y0, x1, y1, yTop );
1030 clipStartRight( x0, y0, x1, y1, xRight );
1032 clipStartBottom( x0, y0, x1, y1, yBottom );
1036 clipEndLeft( x0, y0, x1, y1, xLeft );
1039 clipStartRight( x0, y0, x1, y1, xRight );
1043 clipEndTop( x0, y0, x1, y1, yTop );
1045 clipStartBottom( x0, y0, x1, y1, yBottom );
1049 clipStartTop( x0, y0, x1, y1, yTop );
1053 clipStartTop( x0, y0, x1, y1, yTop );
1056 clipEndLeft( x0, y0, x1, y1, xLeft );
1060 clipStartTop( x0, y0, x1, y1, yTop );
1063 clipEndRight( x0, y0, x1, y1, xRight );
1067 clipStartTop( x0, y0, x1, y1, yTop );
1068 clipEndBottom( x0, y0, x1, y1, yBottom );
1072 clipStartTop( x0, y0, x1, y1, yTop );
1075 clipEndLeft( x0, y0, x1, y1, xLeft );
1077 clipEndBottom( x0, y0, x1, y1, yBottom );
1081 clipStartTop( x0, y0, x1, y1, yTop );
1084 clipEndRight( x0, y0, x1, y1, xRight );
1086 clipEndBottom( x0, y0, x1, y1, yBottom );
1090 clipStartLeft( x0, y0, x1, y1, xLeft );
1092 clipStartTop( x0, y0, x1, y1, yTop );
1096 clipEndRight( x0, y0, x1, y1, xRight );
1099 clipStartTop( x0, y0, x1, y1, yTop );
1101 clipStartLeft( x0, y0, x1, y1, xLeft );
1105 clipEndBottom( x0, y0, x1, y1, yBottom );
1108 clipStartLeft( x0, y0, x1, y1, xLeft );
1110 clipStartTop( x0, y0, x1, y1, yTop );
1114 clipStartLeft( x0, y0, x1, y1, xLeft );
1117 clipEndRight( x0, y0, x1, y1, xRight );
1121 clipStartTop( x0, y0, x1, y1, yTop );
1123 clipEndBottom( x0, y0, x1, y1, yBottom );
1127 clipStartRight( x0, y0, x1, y1, xRight );
1129 clipStartTop( x0, y0, x1, y1, yTop );
1133 clipEndLeft( x0, y0, x1, y1, xLeft );
1136 clipStartTop( x0, y0, x1, y1, yTop );
1138 clipStartRight( x0, y0, x1, y1, xRight );
1142 clipEndBottom( x0, y0, x1, y1, yBottom );
1145 clipStartRight( x0, y0, x1, y1, xRight );
1147 clipStartTop( x0, y0, x1, y1, yTop );
1151 clipEndLeft( x0, y0, x1, y1, xLeft );
1154 clipStartRight( x0, y0, x1, y1, xRight );
1158 clipEndBottom( x0, y0, x1, y1, yBottom );
1160 clipStartTop( x0, y0, x1, y1, yTop );