pub struct Curve<'m> { /* private fields */ }Expand description
The geometry under an Edge, or a curve a feature designates. Call
Curve::kind to dispatch.
Implementations§
Source§impl<'m> Curve<'m>
impl<'m> Curve<'m>
Sourcepub fn color(&self) -> Option<Rgb>
pub fn color(&self) -> Option<Rgb>
The colour of this curve’s line style (CURVE_STYLE.curve_colour), if any.
Sourcepub fn width(&self) -> Option<f64>
pub fn width(&self) -> Option<f64>
The line width of this curve’s style (CURVE_STYLE.curve_width, a raw
measure value), if any.
Sourcepub fn line_font(&self) -> Option<&'m str>
pub fn line_font(&self) -> Option<&'m str>
The line-font name of this curve’s style (CURVE_STYLE.curve_font, a line
pattern like continuous / dashed), if any.
Sourcepub fn to_nurbs(&self) -> Option<NurbsCurve>
pub fn to_nurbs(&self) -> Option<NurbsCurve>
The rational-B-spline (NurbsCurve)
form of this curve, if the kind is supported (circle, ellipse, B-spline
with knots). Returns the full analytic curve — trimming applied by an
edge that uses this curve is not reflected here. None for a curve
that needs bounds it alone lacks — an unbounded line, say; use
Edge::to_nurbs there.
pub fn kind(&self) -> CurveKind<'m>
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Curve<'m>
impl<'m> RefUnwindSafe for Curve<'m>
impl<'m> Send for Curve<'m>
impl<'m> Sync for Curve<'m>
impl<'m> Unpin for Curve<'m>
impl<'m> UnsafeUnpin for Curve<'m>
impl<'m> UnwindSafe for Curve<'m>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more