#[non_exhaustive]pub enum RepresentationPurpose {
Body,
Plan,
Axis,
FootPrint,
Annotation,
Surface,
Reference,
}Expand description
Caller intent for representation selection.
Body and Plan are policies over several identifiers
(SOLID_IDENTIFIERS, PLAN_IDENTIFIERS). The others name one
RepresentationIdentifier (#458): the first representation the product
authors with it, in authored order, whatever its context. A product
without one has none for that purpose, which is not a failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Body
Product shape suitable for model/body consumers.
Plan
Plan/annotation/axis geometry suitable for 2D drawing consumers.
Axis
The Axis representation: a wall’s or a member’s centreline.
FootPrint
The FootPrint representation: the product’s outline on its floor.
Annotation
The Annotation representation: drawing curves and text.
Surface
The Surface representation: a surface standing for the product,
such as a structural surface member’s mid-surface.
Reference
The Reference representation: geometry provided beside the Body
for reference, such as an IFC4 Reference View IfcOpeningElement’s
void, which is not subtracted from its host (IFC4 ADD2 TC1
IfcOpeningElement; ADR 0014).
Implementations§
Source§impl RepresentationPurpose
impl RepresentationPurpose
Sourcepub const fn identifier(self) -> Option<&'static str>
pub const fn identifier(self) -> Option<&'static str>
The one RepresentationIdentifier this purpose selects, or None
for the Body and Plan policies over several.
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
The purpose named name: Body, Plan, or one of the identifiers
Self::identifier names, exactly as IFC spells them.
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
The name Self::from_name reads.
Trait Implementations§
Source§impl Clone for RepresentationPurpose
impl Clone for RepresentationPurpose
Source§fn clone(&self) -> RepresentationPurpose
fn clone(&self) -> RepresentationPurpose
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more