FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Model3D

    struct · ferroui-media3d · v0.5.0

    struct Model3D
    

    WPF's Model3D: the base of the models and the lights.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Model3D>
    

    Returns a strong reference to this object.

    Source

    bounds_core

    fn bounds_core(self: &Self) -> Rect3D
    

    The bounds of the model before its own transform (WPF's CalculateSubgraphBoundsInnerSpace).

    Source

    transform_property

    fn transform_property() -> &'static StyledProperty<Option<Ref<Transform3D>>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    transform

    fn transform(self: &Self) -> Option<Ref<Transform3D>>
    

    The transform of the model; none is the identity.

    Source

    set_transform

    fn set_transform(self: &Self, value: Option<Ref<Transform3D>>)
    

    Source

    bounds

    fn bounds(self: &Self) -> Rect3D
    

    The axis-aligned bounds of the model after its transform (WPF's Bounds): Rect3D::EMPTY for a light, the bounds of the geometry of a GeometryModel3D, the union of the children of a Model3DGroup.

    Source

    changed

    fn changed(self: &Self, handler: impl Fn(Scene3DChange) -> () + 'static) -> Subscription
    

    Calls handler on every change of the model, until the returned guard is dropped.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.