pub struct DiagramObjectPoint<'a>(pub &'a Object);Expand description
A point in a given space defined by 3 coordinates and associated to a diagram object. The coordinates may be positive or negative as the origin does not have to be in the corner of a diagram.
Tuple Fields§
§0: &'a ObjectImplementations§
Source§impl<'a> DiagramObjectPoint<'a>
impl<'a> DiagramObjectPoint<'a>
Sourcepub fn diagram_object(&self) -> Option<TypedRef<DiagramObject<'static>>>
pub fn diagram_object(&self) -> Option<TypedRef<DiagramObject<'static>>>
The diagram object with which the points are associated.
Sourcepub fn diagram_object_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<DiagramObject<'d>>
pub fn diagram_object_in<'d>( &self, dataset: &'d Dataset, ) -> Option<DiagramObject<'d>>
Resolve DiagramObject through dataset.
Sourcepub fn diagram_object_glue_point(
&self,
) -> Option<TypedRef<DiagramObjectGluePoint<'static>>>
pub fn diagram_object_glue_point( &self, ) -> Option<TypedRef<DiagramObjectGluePoint<'static>>>
A diagram object glue point is associated with 2 or more object points that are considered to be ‘glued’ together.
Sourcepub fn diagram_object_glue_point_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<DiagramObjectGluePoint<'d>>
pub fn diagram_object_glue_point_in<'d>( &self, dataset: &'d Dataset, ) -> Option<DiagramObjectGluePoint<'d>>
Resolve DiagramObjectGluePoint through dataset.
Sourcepub fn sequence_number(&self) -> Option<i64>
pub fn sequence_number(&self) -> Option<i64>
The sequence position of the point, used for defining the order of points for diagram objects acting as a polyline or polygon with more than one point.
Sourcepub fn x_position(&self) -> Option<f64>
pub fn x_position(&self) -> Option<f64>
The X coordinate of this point.
Unit: none.
Sourcepub fn y_position(&self) -> Option<f64>
pub fn y_position(&self) -> Option<f64>
The Y coordinate of this point.
Unit: none.
Sourcepub fn z_position(&self) -> Option<f64>
pub fn z_position(&self) -> Option<f64>
The Z coordinate of this point.
Unit: none.
Trait Implementations§
Source§impl<'a> Clone for DiagramObjectPoint<'a>
impl<'a> Clone for DiagramObjectPoint<'a>
impl<'a> Copy for DiagramObjectPoint<'a>
Source§impl<'a> Debug for DiagramObjectPoint<'a>
impl<'a> Debug for DiagramObjectPoint<'a>
Source§impl<'a> TypedView<'a> for DiagramObjectPoint<'a>
impl<'a> TypedView<'a> for DiagramObjectPoint<'a>
Source§fn from_object(o: &'a Object) -> Self
fn from_object(o: &'a Object) -> Self
Wrap an object without checking its class.
Auto Trait Implementations§
impl<'a> Forget for DiagramObjectPoint<'a>
impl<'a> Freeze for DiagramObjectPoint<'a>
impl<'a> Move for DiagramObjectPoint<'a>
impl<'a> RefUnwindSafe for DiagramObjectPoint<'a>
impl<'a> Send for DiagramObjectPoint<'a>
impl<'a> Sync for DiagramObjectPoint<'a>
impl<'a> Unpin for DiagramObjectPoint<'a>
impl<'a> UnsafeUnpin for DiagramObjectPoint<'a>where
&'a Object: UnsafeUnpin,
impl<'a> UnwindSafe for DiagramObjectPoint<'a>where
&'a Object: 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