PointLightBase
struct · ferroui-media3d · v0.5.0
struct PointLightBase
WPF's PointLightBase: light from Position, as far as Range (infinite by default),
attenuated by 1 / (ConstantAttenuation + LinearAttenuation d + QuadraticAttenuation d^2)
(1, 0 and 0 by default).
Members
TYPEto_refposition_propertyrange_propertyconstant_attenuation_propertylinear_attenuation_propertyquadratic_attenuation_propertyconstructpositionset_positionrangeset_rangeconstant_attenuationset_constant_attenuationlinear_attenuationset_linear_attenuationquadratic_attenuationset_quadratic_attenuation
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<PointLightBase>
Returns a strong reference to this object.
position_property
fn position_property() -> &'static StyledProperty<Point3D>
range_property
fn range_property() -> &'static StyledProperty<f64>
constant_attenuation_property
fn constant_attenuation_property() -> &'static StyledProperty<f64>
linear_attenuation_property
fn linear_attenuation_property() -> &'static StyledProperty<f64>
quadratic_attenuation_property
fn quadratic_attenuation_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
Creates the class data.
position
fn position(self: &Self) -> Point3D
The position of the light.
set_position
fn set_position(self: &Self, value: Point3D)
range
fn range(self: &Self) -> f64
The distance beyond which the light has no effect.
set_range
fn set_range(self: &Self, value: f64)
constant_attenuation
fn constant_attenuation(self: &Self) -> f64
The constant attenuation.
set_constant_attenuation
fn set_constant_attenuation(self: &Self, value: f64)
linear_attenuation
fn linear_attenuation(self: &Self) -> f64
The attenuation proportional to the distance.
set_linear_attenuation
fn set_linear_attenuation(self: &Self, value: f64)
quadratic_attenuation
fn quadratic_attenuation(self: &Self) -> f64
The attenuation proportional to the square of the distance.
set_quadratic_attenuation
fn set_quadratic_attenuation(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeModel3DImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<PointLightBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplModel3DImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.