41 unsigned int wkbType = *((
int* ) wkb );
42 wkb +=
sizeof(
unsigned int );
43 unsigned int nPoints = *((
int* ) wkb );
44 wkb +=
sizeof(
unsigned int );
48 double p0x, p0y, p1x = 0.0, p1y = 0.0;
50 double lastClipX = 0.0, lastClipY = 0.0;
52 line.reserve( nPoints + 1 );
55 for (
unsigned int i = 0; i < nPoints; ++i )
59 memcpy( &p1x, wkb,
sizeof(
double ) );
60 wkb +=
sizeof( double );
61 memcpy( &p1y, wkb,
sizeof(
double ) );
62 wkb +=
sizeof( double );
65 wkb +=
sizeof( double );
74 memcpy( &p1x, wkb,
sizeof(
double ) );
75 wkb +=
sizeof( double );
76 memcpy( &p1y, wkb,
sizeof(
double ) );
77 wkb +=
sizeof( double );
80 wkb +=
sizeof( double );
83 p1x_c = p1x; p1y_c = p1y;
85 p0x, p0y, p1x_c, p1y_c ) )
87 bool newLine = line.size() > 0 && ( p0x != lastClipX || p0y != lastClipY );
93 if ( line.size() < 1 || newLine )
96 line << QPointF( p0x, p0y );
100 lastClipX = p1x_c; lastClipY = p1y_c;
101 line << QPointF( p1x_c, p1y_c );