pub struct DiagramObjectPoint {
pub id: String,
pub diagram_object: Option<MridRef>,
pub diagram_object_glue_point: Option<MridRef>,
pub sequence_number: Option<i64>,
pub x_position: Option<f64>,
pub y_position: Option<f64>,
pub z_position: Option<f64>,
}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.
Fields§
§id: String§diagram_object: Option<MridRef>The diagram object with which the points are associated.
diagram_object_glue_point: Option<MridRef>The ‘glue’ point to which this point is associated.
sequence_number: 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. The attribute shall be a positive value.
x_position: Option<f64>The X coordinate of this point.
y_position: Option<f64>The Y coordinate of this point.
z_position: Option<f64>The Z coordinate of this point.
Implementations§
Source§impl DiagramObjectPoint
impl DiagramObjectPoint
pub fn from_block(b: &RdfBlock) -> Self
Trait Implementations§
Source§impl CimElement for DiagramObjectPoint
impl CimElement for DiagramObjectPoint
Source§impl Clone for DiagramObjectPoint
impl Clone for DiagramObjectPoint
Source§fn clone(&self) -> DiagramObjectPoint
fn clone(&self) -> DiagramObjectPoint
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 DiagramObjectPoint
impl Debug for DiagramObjectPoint
Source§impl Default for DiagramObjectPoint
impl Default for DiagramObjectPoint
Source§fn default() -> DiagramObjectPoint
fn default() -> DiagramObjectPoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiagramObjectPoint
impl<'de> Deserialize<'de> for DiagramObjectPoint
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
Auto Trait Implementations§
impl Freeze for DiagramObjectPoint
impl RefUnwindSafe for DiagramObjectPoint
impl Send for DiagramObjectPoint
impl Sync for DiagramObjectPoint
impl Unpin for DiagramObjectPoint
impl UnsafeUnpin for DiagramObjectPoint
impl UnwindSafe for DiagramObjectPoint
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