SpotLight
struct · ferroui-media3d · v0.5.0
struct SpotLight
WPF's SpotLight: light from Position in a cone along Direction, full inside
InnerConeAngle (180 degrees by default) and none beyond OuterConeAngle (90 degrees by
default), both full angles in degrees.
Members
TYPEto_refdirection_propertyinner_cone_angle_propertyouter_cone_angle_propertyconstructnewwith_valuesdirectionset_directioninner_cone_angleset_inner_cone_angleouter_cone_angleset_outer_cone_angle
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SpotLight>
Returns a strong reference to this object.
direction_property
fn direction_property() -> &'static StyledProperty<Vector3D>
inner_cone_angle_property
fn inner_cone_angle_property() -> &'static StyledProperty<f64>
outer_cone_angle_property
fn outer_cone_angle_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
A white light at the origin along the negative z axis.
with_values
fn with_values(color: Color, position: Point3D, direction: Vector3D, outer_cone_angle: f64, inner_cone_angle: f64) -> Ref<Self>
A light of color at position along direction with the outer and inner cone angles,
in the order of WPF's constructor.
direction
fn direction(self: &Self) -> Vector3D
The direction of the cone.
set_direction
fn set_direction(self: &Self, value: Vector3D)
inner_cone_angle
fn inner_cone_angle(self: &Self) -> f64
The full angle of the cone of full light, in degrees.
set_inner_cone_angle
fn set_inner_cone_angle(self: &Self, value: f64)
outer_cone_angle
fn outer_cone_angle(self: &Self) -> f64
The full angle of the cone beyond which there is no light, in degrees.
set_outer_cone_angle
fn set_outer_cone_angle(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeModel3DImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<SpotLight>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplModel3DImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.