: PolyItem (c)
, n_samples (0)
, points_per_segment (16)
- , curve_type (CatmullRomCentripetal)
, curve_fill (None)
{
}
-Curve::Curve (Group* g)
- : PolyItem (g)
+Curve::Curve (Item* parent)
+ : PolyItem (parent)
, n_samples (0)
, points_per_segment (16)
- , curve_type (CatmullRomCentripetal)
, curve_fill (None)
{
}
return;
}
- Rect self = item_to_window (_bounding_box.get());
- boost::optional<Rect> d = self.intersection (area);
+ Rect self = item_to_window (_bounding_box);
+ Rect d = self.intersection (area);
assert (d);
- Rect draw = d.get ();
+ Rect draw = d;
/* Our approach is to always draw n_segments across our total size.
*
* section of the curve. For now we rely on cairo clipping to help
* with this.
*/
-
+
setup_outline_context (context);
draw = draw.expand (4.0);
/* now clip it to the actual points in the curve */
-
+
if (draw.x0 < w1.x) {
draw.x0 = w1.x;
}