749inline bool QgsClipper::clipLineSegment(
double xLeft,
double xRight,
double yBottom,
double yTop,
double &x0,
double &y0,
double &x1,
double &y1 )
755 else if ( y1 > yTop )
760 else if ( x1 < xLeft )
765 else if ( y0 > yTop )
770 else if ( x0 < xLeft )
779 clipEndLeft( x0, y0, x1, y1, xLeft );
783 clipEndRight( x0, y0, x1, y1, xRight );
787 clipEndBottom( x0, y0, x1, y1, yBottom );
791 clipEndLeft( x0, y0, x1, y1, xLeft );
793 clipEndBottom( x0, y0, x1, y1, yBottom );
797 clipEndRight( x0, y0, x1, y1, xRight );
799 clipEndBottom( x0, y0, x1, y1, yBottom );
803 clipEndTop( x0, y0, x1, y1, yTop );
807 clipEndLeft( x0, y0, x1, y1, xLeft );
809 clipEndTop( x0, y0, x1, y1, yTop );
813 clipEndRight( x0, y0, x1, y1, xRight );
815 clipEndTop( x0, y0, x1, y1, yTop );
819 clipStartLeft( x0, y0, x1, y1, xLeft );
823 clipStartLeft( x0, y0, x1, y1, xLeft );
824 clipEndRight( x0, y0, x1, y1, xRight );
828 clipStartLeft( x0, y0, x1, y1, xLeft );
831 clipEndBottom( x0, y0, x1, y1, yBottom );
835 clipStartLeft( x0, y0, x1, y1, xLeft );
838 clipEndBottom( x0, y0, x1, y1, yBottom );
840 clipEndRight( x0, y0, x1, y1, xRight );
844 clipStartLeft( x0, y0, x1, y1, xLeft );
847 clipEndTop( x0, y0, x1, y1, yTop );
851 clipStartLeft( x0, y0, x1, y1, xLeft );
854 clipEndTop( x0, y0, x1, y1, yTop );
856 clipEndRight( x0, y0, x1, y1, xRight );
860 clipStartRight( x0, y0, x1, y1, xRight );
864 clipStartRight( x0, y0, x1, y1, xRight );
865 clipEndLeft( x0, y0, x1, y1, xLeft );
869 clipStartRight( x0, y0, x1, y1, xRight );
872 clipEndBottom( x0, y0, x1, y1, yBottom );
876 clipStartRight( x0, y0, x1, y1, xRight );
879 clipEndBottom( x0, y0, x1, y1, yBottom );
881 clipEndLeft( x0, y0, x1, y1, xLeft );
885 clipStartRight( x0, y0, x1, y1, xRight );
888 clipEndTop( x0, y0, x1, y1, yTop );
892 clipStartRight( x0, y0, x1, y1, xRight );
895 clipEndTop( x0, y0, x1, y1, yTop );
897 clipEndLeft( x0, y0, x1, y1, xLeft );
901 clipStartBottom( x0, y0, x1, y1, yBottom );
905 clipStartBottom( x0, y0, x1, y1, yBottom );
908 clipEndLeft( x0, y0, x1, y1, xLeft );
910 clipEndBottom( x0, y0, x1, y1, yBottom );
914 clipStartBottom( x0, y0, x1, y1, yBottom );
917 clipEndRight( x0, y0, x1, y1, xRight );
921 clipStartBottom( x0, y0, x1, y1, yBottom );
922 clipEndTop( x0, y0, x1, y1, yTop );
926 clipStartBottom( x0, y0, x1, y1, yBottom );
929 clipEndLeft( x0, y0, x1, y1, xLeft );
931 clipEndTop( x0, y0, x1, y1, yTop );
935 clipStartBottom( x0, y0, x1, y1, yBottom );
938 clipEndRight( x0, y0, x1, y1, xRight );
940 clipEndTop( x0, y0, x1, y1, yTop );
944 clipStartLeft( x0, y0, x1, y1, xLeft );
946 clipStartBottom( x0, y0, x1, y1, yBottom );
950 clipEndRight( x0, y0, x1, y1, xRight );
953 clipStartBottom( x0, y0, x1, y1, yBottom );
955 clipStartLeft( x0, y0, x1, y1, xLeft );
959 clipEndTop( x0, y0, x1, y1, yTop );
962 clipStartBottom( x0, y0, x1, y1, yBottom );
964 clipStartLeft( x0, y0, x1, y1, xLeft );
968 clipStartLeft( x0, y0, x1, y1, xLeft );
971 clipEndRight( x0, y0, x1, y1, xRight );
975 clipStartBottom( x0, y0, x1, y1, yBottom );
977 clipEndTop( x0, y0, x1, y1, yTop );
981 clipStartRight( x0, y0, x1, y1, xRight );
983 clipStartBottom( x0, y0, x1, y1, yBottom );
987 clipEndLeft( x0, y0, x1, y1, xLeft );
990 clipStartBottom( x0, y0, x1, y1, yBottom );
992 clipStartRight( x0, y0, x1, y1, xRight );
996 clipEndTop( x0, y0, x1, y1, yTop );
999 clipStartRight( x0, y0, x1, y1, xRight );
1001 clipStartBottom( x0, y0, x1, y1, yBottom );
1005 clipEndLeft( x0, y0, x1, y1, xLeft );
1008 clipStartRight( x0, y0, x1, y1, xRight );
1012 clipEndTop( x0, y0, x1, y1, yTop );
1014 clipStartBottom( x0, y0, x1, y1, yBottom );
1018 clipStartTop( x0, y0, x1, y1, yTop );
1022 clipStartTop( x0, y0, x1, y1, yTop );
1025 clipEndLeft( x0, y0, x1, y1, xLeft );
1029 clipStartTop( x0, y0, x1, y1, yTop );
1032 clipEndRight( x0, y0, x1, y1, xRight );
1036 clipStartTop( x0, y0, x1, y1, yTop );
1037 clipEndBottom( x0, y0, x1, y1, yBottom );
1041 clipStartTop( x0, y0, x1, y1, yTop );
1044 clipEndLeft( x0, y0, x1, y1, xLeft );
1046 clipEndBottom( x0, y0, x1, y1, yBottom );
1050 clipStartTop( x0, y0, x1, y1, yTop );
1053 clipEndRight( x0, y0, x1, y1, xRight );
1055 clipEndBottom( x0, y0, x1, y1, yBottom );
1059 clipStartLeft( x0, y0, x1, y1, xLeft );
1061 clipStartTop( x0, y0, x1, y1, yTop );
1065 clipEndRight( x0, y0, x1, y1, xRight );
1068 clipStartTop( x0, y0, x1, y1, yTop );
1070 clipStartLeft( x0, y0, x1, y1, xLeft );
1074 clipEndBottom( x0, y0, x1, y1, yBottom );
1077 clipStartLeft( x0, y0, x1, y1, xLeft );
1079 clipStartTop( x0, y0, x1, y1, yTop );
1083 clipStartLeft( x0, y0, x1, y1, xLeft );
1086 clipEndRight( x0, y0, x1, y1, xRight );
1090 clipStartTop( x0, y0, x1, y1, yTop );
1092 clipEndBottom( x0, y0, x1, y1, yBottom );
1096 clipStartRight( x0, y0, x1, y1, xRight );
1098 clipStartTop( x0, y0, x1, y1, yTop );
1102 clipEndLeft( x0, y0, x1, y1, xLeft );
1105 clipStartTop( x0, y0, x1, y1, yTop );
1107 clipStartRight( x0, y0, x1, y1, xRight );
1111 clipEndBottom( x0, y0, x1, y1, yBottom );
1114 clipStartRight( x0, y0, x1, y1, xRight );
1116 clipStartTop( x0, y0, x1, y1, yTop );
1120 clipEndLeft( x0, y0, x1, y1, xLeft );
1123 clipStartRight( x0, y0, x1, y1, xRight );
1127 clipEndBottom( x0, y0, x1, y1, yBottom );
1129 clipStartTop( x0, y0, x1, y1, yTop );