12 bool component_is_valid(CComponent
* comp
);
13 double component_scaling(CComponent
* comp
);
14 void compute_fill_and_overlap_ratio(CComponent
* comp
);
15 double fill_ratio() const { return fill_ratio_
; }
16 double overlap_ratio() const { return overlap_ratio_
; }
18 double get_max_overlap_ratio() const { return max_overlap_ratio_
; }
19 void set_max_overlap_ratio(double x
) { max_overlap_ratio_
= x
; }
20 double get_max_scaling() const { return max_scaling_
; }
21 void set_max_scaling(double x
) { max_scaling_
= x
; }
22 double get_min_fill_ratio() const { return min_fill_ratio_
; }
23 void set_min_fill_ratio(double x
) { min_fill_ratio_
= x
; }
26 void begin_rasterizer(CComponent
* comp
);
27 void end_rasterizer();
29 void rasterize_triangle(
30 const Vec2d
& p1
, const Vec2d
& p2
, const Vec2d
& p3
32 void transform(const Vec2d
& p
, int& x
, int& y
);
47 double overlap_ratio_
;
49 double max_overlap_ratio_
;
51 double min_fill_ratio_
;