Model3D
struct · ferroui-media3d · v0.5.0
struct Model3D
WPF's Model3D: the base of the models and the lights.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Model3D>
Returns a strong reference to this object.
bounds_core
fn bounds_core(self: &Self) -> Rect3D
The bounds of the model before its own transform (WPF's CalculateSubgraphBoundsInnerSpace).
transform_property
fn transform_property() -> &'static StyledProperty<Option<Ref<Transform3D>>>
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
transform
fn transform(self: &Self) -> Option<Ref<Transform3D>>
The transform of the model; none is the identity.
set_transform
fn set_transform(self: &Self, value: Option<Ref<Transform3D>>)
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeModel3DImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<Model3D>StaticTypeObjectTypeSubclassable<T>FerroObjectImplModel3DImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.