777inline bool QgsClipper::clipLineSegment(
double xLeft,
double xRight,
double yBottom,
double yTop,
double &x0,
double &y0,
double &x1,
double &y1 )
783 else if ( y1 > yTop )
788 else if ( x1 < xLeft )
793 else if ( y0 > yTop )
798 else if ( x0 < xLeft )
807 clipEndLeft( x0, y0, x1, y1, xLeft );
811 clipEndRight( x0, y0, x1, y1, xRight );
815 clipEndBottom( x0, y0, x1, y1, yBottom );
819 clipEndLeft( x0, y0, x1, y1, xLeft );
821 clipEndBottom( x0, y0, x1, y1, yBottom );
825 clipEndRight( x0, y0, x1, y1, xRight );
827 clipEndBottom( x0, y0, x1, y1, yBottom );
831 clipEndTop( x0, y0, x1, y1, yTop );
835 clipEndLeft( x0, y0, x1, y1, xLeft );
837 clipEndTop( x0, y0, x1, y1, yTop );
841 clipEndRight( x0, y0, x1, y1, xRight );
843 clipEndTop( x0, y0, x1, y1, yTop );
847 clipStartLeft( x0, y0, x1, y1, xLeft );
851 clipStartLeft( x0, y0, x1, y1, xLeft );
852 clipEndRight( x0, y0, x1, y1, xRight );
856 clipStartLeft( x0, y0, x1, y1, xLeft );
859 clipEndBottom( x0, y0, x1, y1, yBottom );
863 clipStartLeft( x0, y0, x1, y1, xLeft );
866 clipEndBottom( x0, y0, x1, y1, yBottom );
868 clipEndRight( x0, y0, x1, y1, xRight );
872 clipStartLeft( x0, y0, x1, y1, xLeft );
875 clipEndTop( x0, y0, x1, y1, yTop );
879 clipStartLeft( x0, y0, x1, y1, xLeft );
882 clipEndTop( x0, y0, x1, y1, yTop );
884 clipEndRight( x0, y0, x1, y1, xRight );
888 clipStartRight( x0, y0, x1, y1, xRight );
892 clipStartRight( x0, y0, x1, y1, xRight );
893 clipEndLeft( x0, y0, x1, y1, xLeft );
897 clipStartRight( x0, y0, x1, y1, xRight );
900 clipEndBottom( x0, y0, x1, y1, yBottom );
904 clipStartRight( x0, y0, x1, y1, xRight );
907 clipEndBottom( x0, y0, x1, y1, yBottom );
909 clipEndLeft( x0, y0, x1, y1, xLeft );
913 clipStartRight( x0, y0, x1, y1, xRight );
916 clipEndTop( x0, y0, x1, y1, yTop );
920 clipStartRight( x0, y0, x1, y1, xRight );
923 clipEndTop( x0, y0, x1, y1, yTop );
925 clipEndLeft( x0, y0, x1, y1, xLeft );
929 clipStartBottom( x0, y0, x1, y1, yBottom );
933 clipStartBottom( x0, y0, x1, y1, yBottom );
936 clipEndLeft( x0, y0, x1, y1, xLeft );
938 clipEndBottom( x0, y0, x1, y1, yBottom );
942 clipStartBottom( x0, y0, x1, y1, yBottom );
945 clipEndRight( x0, y0, x1, y1, xRight );
949 clipStartBottom( x0, y0, x1, y1, yBottom );
950 clipEndTop( x0, y0, x1, y1, yTop );
954 clipStartBottom( x0, y0, x1, y1, yBottom );
957 clipEndLeft( x0, y0, x1, y1, xLeft );
959 clipEndTop( x0, y0, x1, y1, yTop );
963 clipStartBottom( x0, y0, x1, y1, yBottom );
966 clipEndRight( x0, y0, x1, y1, xRight );
968 clipEndTop( x0, y0, x1, y1, yTop );
972 clipStartLeft( x0, y0, x1, y1, xLeft );
974 clipStartBottom( x0, y0, x1, y1, yBottom );
978 clipEndRight( x0, y0, x1, y1, xRight );
981 clipStartBottom( x0, y0, x1, y1, yBottom );
983 clipStartLeft( x0, y0, x1, y1, xLeft );
987 clipEndTop( x0, y0, x1, y1, yTop );
990 clipStartBottom( x0, y0, x1, y1, yBottom );
992 clipStartLeft( x0, y0, x1, y1, xLeft );
996 clipStartLeft( x0, y0, x1, y1, xLeft );
999 clipEndRight( x0, y0, x1, y1, xRight );
1003 clipStartBottom( x0, y0, x1, y1, yBottom );
1005 clipEndTop( x0, y0, x1, y1, yTop );
1009 clipStartRight( x0, y0, x1, y1, xRight );
1011 clipStartBottom( x0, y0, x1, y1, yBottom );
1015 clipEndLeft( x0, y0, x1, y1, xLeft );
1018 clipStartBottom( x0, y0, x1, y1, yBottom );
1020 clipStartRight( x0, y0, x1, y1, xRight );
1024 clipEndTop( x0, y0, x1, y1, yTop );
1027 clipStartRight( x0, y0, x1, y1, xRight );
1029 clipStartBottom( x0, y0, x1, y1, yBottom );
1033 clipEndLeft( x0, y0, x1, y1, xLeft );
1036 clipStartRight( x0, y0, x1, y1, xRight );
1040 clipEndTop( x0, y0, x1, y1, yTop );
1042 clipStartBottom( x0, y0, x1, y1, yBottom );
1046 clipStartTop( x0, y0, x1, y1, yTop );
1050 clipStartTop( x0, y0, x1, y1, yTop );
1053 clipEndLeft( x0, y0, x1, y1, xLeft );
1057 clipStartTop( x0, y0, x1, y1, yTop );
1060 clipEndRight( x0, y0, x1, y1, xRight );
1064 clipStartTop( x0, y0, x1, y1, yTop );
1065 clipEndBottom( x0, y0, x1, y1, yBottom );
1069 clipStartTop( x0, y0, x1, y1, yTop );
1072 clipEndLeft( x0, y0, x1, y1, xLeft );
1074 clipEndBottom( x0, y0, x1, y1, yBottom );
1078 clipStartTop( x0, y0, x1, y1, yTop );
1081 clipEndRight( x0, y0, x1, y1, xRight );
1083 clipEndBottom( x0, y0, x1, y1, yBottom );
1087 clipStartLeft( x0, y0, x1, y1, xLeft );
1089 clipStartTop( x0, y0, x1, y1, yTop );
1093 clipEndRight( x0, y0, x1, y1, xRight );
1096 clipStartTop( x0, y0, x1, y1, yTop );
1098 clipStartLeft( x0, y0, x1, y1, xLeft );
1102 clipEndBottom( x0, y0, x1, y1, yBottom );
1105 clipStartLeft( x0, y0, x1, y1, xLeft );
1107 clipStartTop( x0, y0, x1, y1, yTop );
1111 clipStartLeft( x0, y0, x1, y1, xLeft );
1114 clipEndRight( x0, y0, x1, y1, xRight );
1118 clipStartTop( x0, y0, x1, y1, yTop );
1120 clipEndBottom( x0, y0, x1, y1, yBottom );
1124 clipStartRight( x0, y0, x1, y1, xRight );
1126 clipStartTop( x0, y0, x1, y1, yTop );
1130 clipEndLeft( x0, y0, x1, y1, xLeft );
1133 clipStartTop( x0, y0, x1, y1, yTop );
1135 clipStartRight( x0, y0, x1, y1, xRight );
1139 clipEndBottom( x0, y0, x1, y1, yBottom );
1142 clipStartRight( x0, y0, x1, y1, xRight );
1144 clipStartTop( x0, y0, x1, y1, yTop );
1148 clipEndLeft( x0, y0, x1, y1, xLeft );
1151 clipStartRight( x0, y0, x1, y1, xRight );
1155 clipEndBottom( x0, y0, x1, y1, yBottom );
1157 clipStartTop( x0, y0, x1, y1, yTop );