Skip to content
Permalink
Browse files

Added arrowheads (filled and unfilled) to simple markers

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14837 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Dec 4, 2010
1 parent 5c8fa08 commit fd09d505b208ac3d3f5bcdbfd6da815067f67aa4
@@ -281,6 +281,11 @@ bool QgsSimpleMarkerSymbolLayerV2::prepareShape()
<< QPointF( -0.5, -0.5 );
return true;
}
else if ( mName == "filled_arrowhead" )
{
mPolygon << QPointF( 0, 0 ) << QPointF( -1, 1 ) << QPointF( -1, -1 );
return true;
}

return false;
}
@@ -316,6 +321,14 @@ bool QgsSimpleMarkerSymbolLayerV2::preparePath()
mPath.lineTo( 0, 1 ); // vertical line
return true;
}
else if ( mName == "arrowhead" )
{
mPath.moveTo( 0, 0 );
mPath.lineTo( -1, -1 );
mPath.moveTo( 0, 0 );
mPath.lineTo( -1, 1 );
return true;
}

return false;
}
@@ -155,7 +155,7 @@ QgsSimpleMarkerSymbolLayerV2Widget::QgsSimpleMarkerSymbolLayerV2Widget( QWidget*
QSize size = lstNames->iconSize();
QStringList names;
names << "circle" << "rectangle" << "diamond" << "pentagon" << "cross" << "cross2" << "triangle"
<< "equilateral_triangle" << "star" << "regular_star" << "arrow" << "line";
<< "equilateral_triangle" << "star" << "regular_star" << "arrow" << "line" << "arrowhead" << "filled_arrowhead";
double markerSize = DEFAULT_POINT_SIZE * 2;
for ( int i = 0; i < names.count(); ++i )
{

0 comments on commit fd09d50

Please sign in to comment.
You can’t perform that action at this time.