pub struct ConvMarker<'a, ML: VertexSource, MS: VertexSource> { /* private fields */ }Expand description
Place marker shapes at positions along a path.
Takes a marker locator (which provides edge start/end vertex pairs) and marker shapes (which define the shape to place). Each marker is rotated to match the edge direction and optionally transformed.
Port of C++ conv_marker<MarkerLocator, MarkerShapes>.
Implementations§
Source§impl<'a, ML: VertexSource, MS: VertexSource> ConvMarker<'a, ML, MS>
impl<'a, ML: VertexSource, MS: VertexSource> ConvMarker<'a, ML, MS>
pub fn new(marker_locator: &'a mut ML, marker_shapes: &'a mut MS) -> Self
pub fn transform(&self) -> &TransAffine
pub fn transform_mut(&mut self) -> &mut TransAffine
Trait Implementations§
Source§impl<ML: VertexSource, MS: VertexSource> VertexSource for ConvMarker<'_, ML, MS>
impl<ML: VertexSource, MS: VertexSource> VertexSource for ConvMarker<'_, ML, MS>
Auto Trait Implementations§
impl<'a, ML, MS> Freeze for ConvMarker<'a, ML, MS>
impl<'a, ML, MS> RefUnwindSafe for ConvMarker<'a, ML, MS>where
ML: RefUnwindSafe,
MS: RefUnwindSafe,
impl<'a, ML, MS> Send for ConvMarker<'a, ML, MS>
impl<'a, ML, MS> Sync for ConvMarker<'a, ML, MS>
impl<'a, ML, MS> Unpin for ConvMarker<'a, ML, MS>
impl<'a, ML, MS> !UnwindSafe for ConvMarker<'a, ML, MS>
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