From ef28bca095b7a72d2f6b132bac26832374e7bc8b Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 24 Feb 2011 15:47:44 +0000 Subject: [PATCH] + add push_vertex(x,y,command) method --- include/mapnik/geometry.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/mapnik/geometry.hpp b/include/mapnik/geometry.hpp index 3da599870..0dfbb1962 100644 --- a/include/mapnik/geometry.hpp +++ b/include/mapnik/geometry.hpp @@ -277,16 +277,21 @@ public: } } + void push_vertex(value_type x, value_type y, CommandType c) + { + cont_.push_back(x,y,c); + } + void line_to(value_type x,value_type y) { - cont_.push_back(x,y,SEG_LINETO); + push_vertex(x,y,SEG_LINETO); } void move_to(value_type x,value_type y) { - cont_.push_back(x,y,SEG_MOVETO); + push_vertex(x,y,SEG_MOVETO); } - + unsigned num_points() const { return cont_.size();