Lesson 38 of AGG some uncommonly used coordinate conversion pipes
5 agg::conv_smooth_poly1_curve
Vertices of smooth transition polygons (Bessel)
Header file: # include "agg/include/agg_conv_smooth_poly1.h"
Basic definition:
Template
Struct conv_smooth_poly1_curve:
Publicconv_curve
The construction parameter is the VertexSource,smooth_value attribute that determines the smoothness (default is 1)
Simple application examples:
Agg::path_storage ps
Ps.move_to (100200)
Ps.line_to (300500)
Ps.line_to (400400)
Ps.close_polygon (true)
Agg::conv_smooth_poly1_curve cspc (ps)
Ras.add_path (cspc)
6 agg::conv_bspline
Vertices of the smooth transition Polyline (Bessel)
Here you need to declare the concept of polylines:
It is commonly referred to as a Polyline, which is just a combination of segments. For example, if a Z-shaped line is drawn with a line segment, then there are three line segments. In fact, a polygon is a kind of polysemous line, a kind of polysemous line.
Header file: # include "agg/include/agg_conv_bspline.h"
Basic definition:
Template
Structconv_bspline: public conv_adaptor_vcgen
Constructor determines the step size for the VertexSource,interpolation_step attribute
Example:
Agg::path_storage ps
Ps.move_to (100200)
Ps.line_to (300500)
Ps.line_to (400400)
/ / ps.close_polygon (true); / / A very strange pattern
Agg::conv_strokestroke (ps)
Agg::conv_bsplinecbsp (stroke)
Ras.add_path (cbsp)
6 agg::conv_marker Establishment Marker
Detailed reference arrow
7 agg::conv_curve
It is based on the recognizable VertexSource that the construction parameter of curve information is VertexSource,conv_smooth_poly1_curve. The vertex in the routine has no curve information, so she will be used in the text output.