ProjectionCamera
struct · ferroui-media3d · v0.5.0
struct ProjectionCamera
WPF's ProjectionCamera: a camera at Position looking along LookDirection with
UpDirection up, between NearPlaneDistance and FarPlaneDistance.
Members
TYPEto_refposition_propertylook_direction_propertyup_direction_propertynear_plane_distance_propertyfar_plane_distance_propertyconstructpositionset_positionlook_directionset_look_directionup_directionset_up_directionnear_plane_distanceset_near_plane_distancefar_plane_distanceset_far_plane_distance
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ProjectionCamera>
Returns a strong reference to this object.
position_property
fn position_property() -> &'static StyledProperty<Point3D>
look_direction_property
fn look_direction_property() -> &'static StyledProperty<Vector3D>
up_direction_property
fn up_direction_property() -> &'static StyledProperty<Vector3D>
near_plane_distance_property
fn near_plane_distance_property() -> &'static StyledProperty<f64>
far_plane_distance_property
fn far_plane_distance_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
Creates the class data.
position
fn position(self: &Self) -> Point3D
The position of the camera, before its transform.
set_position
fn set_position(self: &Self, value: Point3D)
look_direction
fn look_direction(self: &Self) -> Vector3D
The direction the camera looks in, before its transform.
set_look_direction
fn set_look_direction(self: &Self, value: Vector3D)
up_direction
fn up_direction(self: &Self) -> Vector3D
The direction of the top of the camera, before its transform.
set_up_direction
fn set_up_direction(self: &Self, value: Vector3D)
near_plane_distance
fn near_plane_distance(self: &Self) -> f64
The distance of the near clipping plane (0.125 by default).
set_near_plane_distance
fn set_near_plane_distance(self: &Self, value: f64)
far_plane_distance
fn far_plane_distance(self: &Self) -> f64
The distance of the far clipping plane (infinite by default: the snapshot then fits it to the scene).
set_far_plane_distance
fn set_far_plane_distance(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeCameraImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<ProjectionCamera>StaticTypeObjectTypeSubclassable<T>FerroObjectImplCameraImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.