Skip to main content

ParsedModel

Struct ParsedModel 

Source
pub struct ParsedModel { /* private fields */ }
Expand description

Parsed IFC model implementing the IfcModel trait

This is the main entry point for accessing IFC data. It provides access to entities, properties, and spatial structure through trait objects.

Implementations§

Source§

impl ParsedModel

Source

pub fn parse( content: &str, build_spatial: bool, _extract_properties: bool, ) -> Result<Self>

Parse IFC content and create a model

Source

pub fn parse_with_progress( content: &str, build_spatial: bool, _extract_properties: bool, on_progress: ProgressCallback, ) -> Result<Self>

Parse with progress reporting

Source

pub fn resolver_arc(&self) -> Arc<ResolverImpl>

Get the resolver (for geometry processing, etc.)

Trait Implementations§

Source§

impl IfcModel for ParsedModel

Source§

fn resolver(&self) -> &dyn EntityResolver

Get entity resolver for entity lookups and reference resolution Read more
Source§

fn properties(&self) -> &dyn PropertyReader

Get property reader for accessing property sets and quantities Read more
Source§

fn spatial(&self) -> &dyn SpatialQuery

Get spatial query interface for hierarchy traversal Read more
Source§

fn unit_scale(&self) -> f64

Get unit scale factor (file units to meters) Read more
Source§

fn metadata(&self) -> &ModelMetadata

Get file metadata (schema version, originating system, etc.)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.