53 mPen.setColor( color );
54 QColor fillColor( color.red(), color.green(), color.blue(), 63 );
55 mBrush.setColor( fillColor );
56 mBrush.setStyle( Qt::SolidPattern );
64 mPen.setWidth( width );
83 QPolygonF polygon( line.size() );
85 for (
int i = 0; i < line.size(); i++ )
90 p->drawPolyline( polygon );
101 for (
int i = 0; i < polygon.size(); i++ )
103 if ( polygon[i].empty() )
continue;
106 ring.reserve( polygon[i].
size() + 1 );
108 for (
int j = 0; j < polygon[i].size(); j++ )
112 if ( 0 == j || std::abs( ring.back().x() - cur.x() ) > 1 || std::abs( ring.back().y() - cur.y() ) > 1 )
114 ring.push_back( cur );
118 ring.push_back( ring[ 0 ] );
120 path.addPolygon( ring );
152 for (
int i = 0; i < m.size(); i++ )
171 for (
int i = 0; i < m.size(); i++ )
189 for (
int i = 0; i < m.size(); i++ )