pub enum Shape<S: Scalar> {
Point {
at: Vector3<S>,
},
Polyline {
points: Vec<Vector3<S>>,
},
Triangles {
triangles: Vec<[Vector3<S>; 3]>,
},
Label {
at: Vector3<S>,
text: String,
offset: Vector3<S>,
},
Handle {
at: Vector3<S>,
direction: Vector3<S>,
},
}Expand description
What a visual is.
Variants§
Point
Polyline
Triangles
A filled area.
Label
Text at at, moved by offset — measured in the pointer’s reaches
(see super::Reach), so it keeps its size on screen — so that
labels of one point do not stack.
Handle
The number field of the visual’s key, as something to drag along
direction: moving it by direction adds one to the field. Only the
editor draws these, for a field with a handle (see
super::Track).
Implementations§
Trait Implementations§
impl<S: PartialEq + Scalar> StructuralPartialEq for Shape<S>
Auto Trait Implementations§
impl<S> Freeze for Shape<S>where
S: Freeze,
impl<S> RefUnwindSafe for Shape<S>where
S: RefUnwindSafe,
impl<S> Send for Shape<S>
impl<S> Sync for Shape<S>
impl<S> Unpin for Shape<S>where
S: Unpin,
impl<S> UnsafeUnpin for Shape<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Shape<S>where
S: UnwindSafe,
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