pub enum PatternDirection {
Edge(ElementReference<NamedModel, Line>),
Face(ElementReference<NamedModel, Plane>),
Datum(ElementReference<Datums, Line>),
DatumPlane(ElementReference<Datums, Plane>),
Sketch(ElementReference<PlacedSketch, Line>),
SketchPlane(ElementReference<PlacedSketch, Plane>),
}Expand description
A direction to go along: a line — a straight edge, a datum axis or a frame’s, a sketch’s line — or a plane, along its normal: a flat face, a datum plane, a sketch’s plane.
Variants§
Edge(ElementReference<NamedModel, Line>)
Face(ElementReference<NamedModel, Plane>)
Datum(ElementReference<Datums, Line>)
DatumPlane(ElementReference<Datums, Plane>)
Sketch(ElementReference<PlacedSketch, Line>)
SketchPlane(ElementReference<PlacedSketch, Plane>)
Implementations§
Source§impl PatternDirection
impl PatternDirection
Sourcepub fn direction(&self, reader: &Reader<'_>) -> GeopResult<Vector3>
pub fn direction(&self, reader: &Reader<'_>) -> GeopResult<Vector3>
The unit vector it goes along, where the part reader reads has
it: a line’s direction, a plane’s normal — of the part itself, or of
a part placed in it, turned as that is.
Trait Implementations§
Source§impl Clone for PatternDirection
impl Clone for PatternDirection
Source§fn clone(&self) -> PatternDirection
fn clone(&self) -> PatternDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatternDirection
impl Debug for PatternDirection
Source§impl<'de> Deserialize<'de> for PatternDirection
impl<'de> Deserialize<'de> for PatternDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PatternDirection
impl PartialEq for PatternDirection
Source§impl Selectable for PatternDirection
impl Selectable for PatternDirection
Source§fn picked_from() -> Vec<&'static str>
fn picked_from() -> Vec<&'static str>
The kinds of what an editor draws that a click picks one from.
Source§fn from_picked(picked: &PickedElement) -> Option<Self>
fn from_picked(picked: &PickedElement) -> Option<Self>
The value
picked names as Selectable::picked does: what a
field sent back held already.Source§fn picked(&self) -> PickedElement
fn picked(&self) -> PickedElement
The value as a pick names it: what the front end shows held.
Source§fn select(reader: &Reader<'_>, hit: &PickedElement) -> Option<Self>
fn select(reader: &Reader<'_>, hit: &PickedElement) -> Option<Self>
The value a click on
hit selects, read through reader: none, for
a hit that selects none.Source§fn drawn(&self, reader: &Reader<'_>) -> Vec<PickedElement>
fn drawn(&self, reader: &Reader<'_>) -> Vec<PickedElement>
What an editor draws of it, to light while it is held.
Source§fn visuals(&self, reader: &Reader<'_>) -> Vec<Visual>
fn visuals(&self, reader: &Reader<'_>) -> Vec<Visual>
What an editor draws of it besides lighting what it is picked from
(
Selectable::drawn), while it is held or a click would pick it:
nothing, for an element drawn as itself; a frame, as a triad along
its axes. In the world, as the part is drawn; styled by the editor
as held or as hovered.Source§impl Serialize for PatternDirection
impl Serialize for PatternDirection
impl StructuralPartialEq for PatternDirection
Auto Trait Implementations§
impl Freeze for PatternDirection
impl RefUnwindSafe for PatternDirection
impl Send for PatternDirection
impl Sync for PatternDirection
impl Unpin for PatternDirection
impl UnsafeUnpin for PatternDirection
impl UnwindSafe for PatternDirection
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