pub struct TextDiagramObject<'a>(pub &'a Object);Expand description
A diagram object for placing free-text or text derived from an associated domain object.
Tuple Fields§
§0: &'a ObjectImplementations§
Source§impl<'a> TextDiagramObject<'a>
impl<'a> TextDiagramObject<'a>
pub fn energy_ident_code_eic(&self) -> Option<&'a str>
Sourcepub fn short_name(&self) -> Option<&'a str>
pub fn short_name(&self) -> Option<&'a str>
The attribute is used for an exchange of a human readable short name with length of the string 12 characters maximum.
Sourcepub fn diagram_objects(
&self,
) -> impl Iterator<Item = TypedRef<DiagramObject<'static>>> + use<'a>
pub fn diagram_objects( &self, ) -> impl Iterator<Item = TypedRef<DiagramObject<'static>>> + use<'a>
The domain object to which this diagram object is associated.
Sourcepub fn diagram_objects_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = DiagramObject<'d>> + use<'a, 'd>
pub fn diagram_objects_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = DiagramObject<'d>> + use<'a, 'd>
Resolve every DiagramObjects through dataset, skipping unresolved references.
Sourcepub fn description(&self) -> Option<&'a str>
pub fn description(&self) -> Option<&'a str>
The description is a free human readable text describing or naming the object. It may be non unique and may not correlate to a naming hierarchy.
Sourcepub fn m_rid(&self) -> Option<&'a str>
pub fn m_rid(&self) -> Option<&'a str>
Master resource identifier issued by a model authority. The mRID is globally unique within an exchange context. Global uniqueness is easily achieved by using a UUID, as specified in RFC 4122, for the mRID. The use of UUID is strongly recommended. For CIMXML data files in RDF syntax conforming to IEC 61970-552 Edition 1, the mRID is mapped to rdf:ID or rdf:about attributes that identify CIM object elements.
Sourcepub fn name(&self) -> Option<&'a str>
pub fn name(&self) -> Option<&'a str>
The name is any free human readable and possibly non unique text naming the object.
Sourcepub fn diagram(&self) -> Option<TypedRef<Diagram<'static>>>
pub fn diagram(&self) -> Option<TypedRef<Diagram<'static>>>
A diagram object is part of a diagram.
Sourcepub fn diagram_in<'d>(&self, dataset: &'d Dataset) -> Option<Diagram<'d>>
pub fn diagram_in<'d>(&self, dataset: &'d Dataset) -> Option<Diagram<'d>>
Resolve Diagram through dataset.
Sourcepub fn diagram_object_points(
&self,
) -> impl Iterator<Item = TypedRef<DiagramObjectPoint<'static>>> + use<'a>
pub fn diagram_object_points( &self, ) -> impl Iterator<Item = TypedRef<DiagramObjectPoint<'static>>> + use<'a>
A diagram object can have 0 or more points to reflect its layout position, routing (for polylines) or boundary (for polygons).
Sourcepub fn diagram_object_points_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = DiagramObjectPoint<'d>> + use<'a, 'd>
pub fn diagram_object_points_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = DiagramObjectPoint<'d>> + use<'a, 'd>
Resolve every DiagramObjectPoints through dataset, skipping unresolved references.
Sourcepub fn diagram_object_style(
&self,
) -> Option<TypedRef<DiagramObjectStyle<'static>>>
pub fn diagram_object_style( &self, ) -> Option<TypedRef<DiagramObjectStyle<'static>>>
A diagram object has a style associated that provides a reference for the style used in the originating system.
Sourcepub fn diagram_object_style_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<DiagramObjectStyle<'d>>
pub fn diagram_object_style_in<'d>( &self, dataset: &'d Dataset, ) -> Option<DiagramObjectStyle<'d>>
Resolve DiagramObjectStyle through dataset.
Sourcepub fn identified_object(&self) -> Option<TypedRef<IdentifiedObject<'static>>>
pub fn identified_object(&self) -> Option<TypedRef<IdentifiedObject<'static>>>
The diagram objects that are associated with the domain object.
Sourcepub fn identified_object_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<IdentifiedObject<'d>>
pub fn identified_object_in<'d>( &self, dataset: &'d Dataset, ) -> Option<IdentifiedObject<'d>>
Resolve IdentifiedObject through dataset.
Sourcepub fn visibility_layers(
&self,
) -> impl Iterator<Item = TypedRef<VisibilityLayer<'static>>> + use<'a>
pub fn visibility_layers( &self, ) -> impl Iterator<Item = TypedRef<VisibilityLayer<'static>>> + use<'a>
A diagram object can be part of multiple visibility layers.
Sourcepub fn visibility_layers_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = VisibilityLayer<'d>> + use<'a, 'd>
pub fn visibility_layers_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = VisibilityLayer<'d>> + use<'a, 'd>
Resolve every VisibilityLayers through dataset, skipping unresolved references.
Sourcepub fn drawing_order(&self) -> Option<i64>
pub fn drawing_order(&self) -> Option<i64>
The drawing order of this element. The higher the number, the later the element is drawn in sequence. This is used to ensure that elements that overlap are rendered in the correct order.
Sourcepub fn is_polygon(&self) -> Option<bool>
pub fn is_polygon(&self) -> Option<bool>
Defines whether or not the diagram objects points define the boundaries of a polygon or the routing of a polyline. If this value is true then a receiving application should consider the first and last points to be connected.
Sourcepub fn offset_x(&self) -> Option<f64>
pub fn offset_x(&self) -> Option<f64>
The offset in the X direction. This is used for defining the offset from centre for rendering an icon (the default is that a single point specifies the centre of the icon).
The offset is in per-unit with 0 indicating there is no offset from the horizontal centre of the icon. -0.5 indicates it is offset by 50% to the left and 0.5 indicates an offset of 50% to the right.
Unit: none.
Sourcepub fn offset_y(&self) -> Option<f64>
pub fn offset_y(&self) -> Option<f64>
The offset in the Y direction. This is used for defining the offset from centre for rendering an icon (the default is that a single point specifies the centre of the icon).
The offset is in per-unit with 0 indicating there is no offset from the vertical centre of the icon. The offset direction is dependent on the orientation of the diagram, with -0.5 and 0.5 indicating an offset of +/- 50% on the vertical axis.
Unit: none.