FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GeometryModel3D

    struct · ferroui-media3d · v0.5.0

    struct GeometryModel3D
    

    WPF's GeometryModel3D: a Geometry drawn with Material on its front faces (counterclockwise to the camera) and BackMaterial on its back faces.

    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<GeometryModel3D>
    

    Returns a strong reference to this object.

    Source

    geometry_property

    fn geometry_property() -> &'static StyledProperty<Option<Ref<Geometry3D>>>
    

    Source

    material_property

    fn material_property() -> &'static StyledProperty<Option<Ref<Material>>>
    

    Source

    back_material_property

    fn back_material_property() -> &'static StyledProperty<Option<Ref<Material>>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A model without a geometry.

    Source

    with_geometry_and_material

    fn with_geometry_and_material(geometry: Ref<Geometry3D>, material: Ref<Material>) -> Ref<Self>
    

    A model of geometry drawn with material.

    Source

    geometry

    fn geometry(self: &Self) -> Option<Ref<Geometry3D>>
    

    The geometry.

    Source

    set_geometry

    fn set_geometry(self: &Self, value: Option<Ref<Geometry3D>>)
    

    Source

    material

    fn material(self: &Self) -> Option<Ref<Material>>
    

    The material of the front faces.

    Source

    set_material

    fn set_material(self: &Self, value: Option<Ref<Material>>)
    

    Source

    back_material

    fn back_material(self: &Self) -> Option<Ref<Material>>
    

    The material of the back faces.

    Source

    set_back_material

    fn set_back_material(self: &Self, value: Option<Ref<Material>>)
    

    Source

    Trait implementations

    Availability

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