@@ -270,11 +270,11 @@ GCAgg::_set_snap( const Py::Object& gc) {
270270 Py::Callable method (method_obj);
271271 Py::Object py_snap = method.apply (Py::Tuple ());
272272 if (py_snap.isNone ()) {
273- quantize_mode = QUANTIZE_AUTO ;
273+ snap_mode = SNAP_AUTO ;
274274 } else if (py_snap.isTrue ()) {
275- quantize_mode = QUANTIZE_TRUE ;
275+ snap_mode = SNAP_TRUE ;
276276 } else {
277- quantize_mode = QUANTIZE_FALSE ;
277+ snap_mode = SNAP_FALSE ;
278278 }
279279}
280280
@@ -506,8 +506,8 @@ bool RendererAgg::render_clippath(const Py::Object& clippath, const agg::trans_a
506506Py::Object
507507RendererAgg::draw_markers (const Py::Tuple& args) {
508508 typedef agg::conv_transform<PathIterator> transformed_path_t ;
509- typedef PathQuantizer <transformed_path_t > quantize_t ;
510- typedef agg::conv_curve<quantize_t > curve_t ;
509+ typedef PathSnapper <transformed_path_t > snap_t ;
510+ typedef agg::conv_curve<snap_t > curve_t ;
511511 typedef agg::conv_stroke<curve_t > stroke_t ;
512512 typedef agg::pixfmt_amask_adaptor<pixfmt, alpha_mask_type> pixfmt_amask_type;
513513 typedef agg::renderer_base<pixfmt_amask_type> amask_ren_type;
@@ -533,19 +533,19 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
533533
534534 PathIterator marker_path (marker_path_obj);
535535 transformed_path_t marker_path_transformed (marker_path, marker_trans);
536- quantize_t marker_path_quantized (marker_path_transformed,
537- gc.quantize_mode ,
538- marker_path.total_vertices (),
539- gc.linewidth );
540- curve_t marker_path_curve (marker_path_quantized );
536+ snap_t marker_path_snapped (marker_path_transformed,
537+ gc.snap_mode ,
538+ marker_path.total_vertices (),
539+ gc.linewidth );
540+ curve_t marker_path_curve (marker_path_snapped );
541541
542542 PathIterator path (path_obj);
543543 transformed_path_t path_transformed (path, trans);
544- quantize_t path_quantized (path_transformed,
545- gc.quantize_mode ,
546- path.total_vertices (),
547- 1.0 );
548- curve_t path_curve (path_quantized );
544+ snap_t path_snapped (path_transformed,
545+ gc.snap_mode ,
546+ path.total_vertices (),
547+ 1.0 );
548+ curve_t path_curve (path_snapped );
549549 path_curve.rewind (0 );
550550
551551 facepair_t face = _get_rgba_face (face_obj, gc.alpha );
@@ -1079,8 +1079,8 @@ RendererAgg::draw_path(const Py::Tuple& args) {
10791079 typedef agg::conv_transform<PathIterator> transformed_path_t ;
10801080 typedef PathNanRemover<transformed_path_t > nan_removed_t ;
10811081 typedef PathClipper<nan_removed_t > clipped_t ;
1082- typedef PathQuantizer <clipped_t > quantized_t ;
1083- typedef PathSimplifier<quantized_t > simplify_t ;
1082+ typedef PathSnapper <clipped_t > snapped_t ;
1083+ typedef PathSimplifier<snapped_t > simplify_t ;
10841084 typedef agg::conv_curve<simplify_t > curve_t ;
10851085
10861086 _VERBOSE (" RendererAgg::draw_path" );
@@ -1108,8 +1108,8 @@ RendererAgg::draw_path(const Py::Tuple& args) {
11081108 transformed_path_t tpath (path, trans);
11091109 nan_removed_t nan_removed (tpath, true , path.has_curves ());
11101110 clipped_t clipped (nan_removed, clip, width, height);
1111- quantized_t quantized (clipped, gc.quantize_mode , path.total_vertices (), gc.linewidth );
1112- simplify_t simplified (quantized , simplify, path.simplify_threshold ());
1111+ snapped_t snapped (clipped, gc.snap_mode , path.total_vertices (), gc.linewidth );
1112+ simplify_t simplified (snapped , simplify, path.simplify_threshold ());
11131113 curve_t curve (simplified);
11141114
11151115 try {
@@ -1141,8 +1141,8 @@ RendererAgg::_draw_path_collection_generic
11411141 typedef agg::conv_transform<typename PathGenerator::path_iterator> transformed_path_t ;
11421142 typedef PathNanRemover<transformed_path_t > nan_removed_t ;
11431143 typedef PathClipper<nan_removed_t > clipped_t ;
1144- typedef PathQuantizer <clipped_t > quantized_t ;
1145- typedef agg::conv_curve<quantized_t > quantized_curve_t ;
1144+ typedef PathSnapper <clipped_t > snapped_t ;
1145+ typedef agg::conv_curve<snapped_t > snapped_curve_t ;
11461146 typedef agg::conv_curve<clipped_t > curve_t ;
11471147
11481148 PyArrayObject* offsets = NULL ;
@@ -1275,13 +1275,13 @@ RendererAgg::_draw_path_collection_generic
12751275 transformed_path_t tpath (path, trans);
12761276 nan_removed_t nan_removed (tpath, true , has_curves);
12771277 clipped_t clipped (nan_removed, do_clip, width, height);
1278- quantized_t quantized (clipped, gc.quantize_mode ,
1279- path.total_vertices (), gc.linewidth );
1278+ snapped_t snapped (clipped, gc.snap_mode ,
1279+ path.total_vertices (), gc.linewidth );
12801280 if (has_curves) {
1281- quantized_curve_t curve (quantized );
1281+ snapped_curve_t curve (snapped );
12821282 _draw_path (curve, has_clippath, face, gc);
12831283 } else {
1284- _draw_path (quantized , has_clippath, face, gc);
1284+ _draw_path (snapped , has_clippath, face, gc);
12851285 }
12861286 } else {
12871287 gc.isaa = bool (Py::Int (antialiaseds[i % Naa]));
0 commit comments