Expand description
Foundation types, constants, and path command utilities.
Port of agg_basics.h — the most fundamental types in AGG that
everything else depends on.
Structs§
- Const
RowInfo - Const version of row info.
- Point
Base - A 2D point.
Port of C++
point_base<T>. - Rect
- A rectangle defined by two corner points.
Port of C++
rect_base<T>. - RowInfo
- Information about a row in a rendering buffer.
Port of C++
row_info<T>— used with raw pointers for pixel buffer access. - Vertex
Base - A vertex with coordinates and a path command.
Port of C++
vertex_base<T>.
Enums§
- Filling
Rule - Filling rule for polygon rasterization.
Constants§
- COVER_
FULL - COVER_
MASK - COVER_
NONE - COVER_
SHIFT - COVER_
SIZE - PATH_
CMD_ CATROM - PATH_
CMD_ CURV E3 - PATH_
CMD_ CURV E4 - PATH_
CMD_ CURVE_ N - PATH_
CMD_ END_ POLY - PATH_
CMD_ LINE_ TO - PATH_
CMD_ MASK - PATH_
CMD_ MOVE_ TO - PATH_
CMD_ STOP - PATH_
CMD_ UBSPLINE - PATH_
FLAGS_ CCW - PATH_
FLAGS_ CLOSE - PATH_
FLAGS_ CW - PATH_
FLAGS_ MASK - PATH_
FLAGS_ NONE - PI
- POLY_
SUBPIXEL_ MASK - POLY_
SUBPIXEL_ SCALE - POLY_
SUBPIXEL_ SHIFT - These constants determine the subpixel accuracy (number of fractional bits). With 8-bit fractional part and 32-bit integers, coordinate capacity is 24 bits.
Traits§
- Vertex
Source - The fundamental vertex source interface. Every shape, path, and converter in AGG implements this trait to produce a stream of vertices.
Functions§
- clear_
orientation - Remove orientation flags from a command.
- deg2rad
- Convert degrees to radians.
- get_
close_ flag - Extract the close flag from a command.
- get_
orientation - Extract the orientation flags from a command.
- iceil
- Ceiling of a double as a signed integer.
Matches C++ AGG’s
iceil. - ifloor
- Floor a double to the nearest integer toward negative infinity.
Matches C++ AGG’s
ifloor. - intersect_
rectangles - Compute the intersection of two rectangles.
- iround
- Round a double to the nearest integer (round half away from zero).
Matches C++ AGG’s
iround(non-FISTP, non-QIFIST path). - is_ccw
- Returns
trueifchas the counter-clockwise flag set. - is_
close - Returns
trueifcis a close polygon command. - is_
closed - Returns
trueifchas the close flag set. - is_
curve - Returns
trueifcis a curve command (curve3 or curve4). - is_
curve3 - Returns
trueifcis a quadratic curve command. - is_
curve4 - Returns
trueifcis a cubic curve command. - is_cw
- Returns
trueifchas the clockwise flag set. - is_
drawing - Returns
trueifcis a drawing command (line_to through curveN). - is_
end_ poly - Returns
trueifcis an end_poly command (with any flags). - is_
equal_ eps - Compare two floating-point values for approximate equality using
relative comparison scaled by the smaller exponent.
Port of C++
is_equal_eps. - is_
line_ to - Returns
trueifcis a line_to command. - is_
move_ to - Returns
trueifcis a move_to command. - is_
next_ poly - Returns
trueifcstarts a new polygon (stop, move_to, or end_poly). - is_
oriented - Returns
trueifchas any orientation flag set. - is_stop
- Returns
trueifcis the stop command. - is_
vertex - Returns
trueifcis a vertex command (move_to through curveN). - mul_one
- Fixed-point multiply:
(a * b + half) >> shift, with rounding. Replaces C++ templatemul_one<Shift>::mul. - rad2deg
- Convert radians to degrees.
- saturation_
iround - Round
vto int, clamping to[-limit, limit]. Replaces C++ templatesaturation<Limit>::iround. - set_
orientation - Set the orientation flags on a command.
- uceil
- Ceiling of a double as an unsigned integer.
Matches C++ AGG’s
uceil. - ufloor
- Floor a double to the nearest unsigned integer (truncation toward zero).
Matches C++ AGG’s
ufloor. - unite_
rectangles - Compute the union (bounding box) of two rectangles.
- uround
- Round a double to the nearest unsigned integer (round half up).
Matches C++ AGG’s
uround.