Rotate3DTransform
struct · ferroui-base · v0.5.0
struct Rotate3DTransform
Non-affine 3D transformation for rotating a visual around a definable axis.
Members
TYPEto_refangle_x_propertyangle_y_propertyangle_z_propertycenter_x_propertycenter_y_propertycenter_z_propertydepth_propertyconstructnewwith_valuesangle_xset_angle_xangle_yset_angle_yangle_zset_angle_zcenter_xset_center_xcenter_yset_center_ycenter_zset_center_zdepthset_depth
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Rotate3DTransform>
Returns a strong reference to this object.
angle_x_property
fn angle_x_property() -> &'static StyledProperty<f64>
angle_y_property
fn angle_y_property() -> &'static StyledProperty<f64>
angle_z_property
fn angle_z_property() -> &'static StyledProperty<f64>
center_x_property
fn center_x_property() -> &'static StyledProperty<f64>
center_y_property
fn center_y_property() -> &'static StyledProperty<f64>
center_z_property
fn center_z_property() -> &'static StyledProperty<f64>
depth_property
fn depth_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
with_values
fn with_values(angle_x: f64, angle_y: f64, angle_z: f64, center_x: f64, center_y: f64, center_z: f64, depth: f64) -> Ref<Self>
Creates a transform with the given rotation angles (in degrees), rotation center and depth.
angle_x
fn angle_x(self: &Self) -> f64
The rotation around the X-axis, in degrees.
set_angle_x
fn set_angle_x(self: &Self, value: f64)
angle_y
fn angle_y(self: &Self) -> f64
The rotation around the Y-axis, in degrees.
set_angle_y
fn set_angle_y(self: &Self, value: f64)
angle_z
fn angle_z(self: &Self) -> f64
The rotation around the Z-axis, in degrees.
set_angle_z
fn set_angle_z(self: &Self, value: f64)
center_x
fn center_x(self: &Self) -> f64
The X-coordinate of the rotation center.
set_center_x
fn set_center_x(self: &Self, value: f64)
center_y
fn center_y(self: &Self) -> f64
The Y-coordinate of the rotation center.
set_center_y
fn set_center_y(self: &Self, value: f64)
center_z
fn center_z(self: &Self) -> f64
The Z-coordinate of the rotation center.
set_center_z
fn set_center_z(self: &Self, value: f64)
depth
fn depth(self: &Self) -> f64
The focal length of the camera.
set_depth
fn set_depth(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTransformImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<Rotate3DTransform>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplTransformImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.