100 mPen.setColor( color );
101 QColor fillColor( color.red(), color.green(), color.blue(), 63 );
102 mBrush.setColor( fillColor );
103 mBrush.setStyle( Qt::SolidPattern );
116 if ( !symbol )
continue;
124 if ( !symbol )
return;
131 if ( color.lightness() < 200 )
144 if ( !symbolLayer )
continue;
167 mPen.setWidth( width );
186 QPolygonF polygon( line.size() );
188 for (
int i = 0; i < line.size(); i++ )
193 p->drawPolyline( polygon );
204 for (
int i = 0; i < polygon.size(); i++ )
206 if ( polygon[i].empty() )
continue;
209 ring.reserve( polygon[i].
size() + 1 );
211 for (
int j = 0; j < polygon[i].size(); j++ )
215 if ( 0 == j || std::abs( ring.back().x() - cur.x() ) > 1 || std::abs( ring.back().y() - cur.y() ) > 1 )
217 ring.push_back( cur );
221 ring.push_back( ring[ 0 ] );
223 path.addPolygon( ring );
252 for (
int i = 0; i < m.size(); i++ )
271 for (
int i = 0; i < m.size(); i++ )
289 for (
int i = 0; i < m.size(); i++ )
312 if ( extent !=
rect() )
321 double height = ll.y() - ur.y();
322 double width = ur.x() - ll.x();
327 QImage image = QImage((
int )width, (
int )height, QImage::Format_ARGB32 );
329 QPainter *imagePainter =
new QPainter( &image );
330 imagePainter->setRenderHint( QPainter::Antialiasing,
true );
346 QColor color = QColor(
mBrush.color() );
347 color.setAlpha( 63 );
348 QRgb colorRgb = color.rgba();
350 for (
int r = 0; r < image.height(); r++ )
352 QRgb *line = ( QRgb * ) image.scanLine( r );
353 for (
int c = 0; c < image.width(); c++ )
355 if ( line[c] == temporaryRgb )
362 p->drawImage( 0, 0, image );