MDLTransformComponent

Trait MDLTransformComponent 

Source
pub unsafe trait MDLTransformComponent: MDLComponent {
    // Provided methods
    unsafe fn resetsTransform(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn setResetsTransform(&self, resets_transform: bool)
       where Self: Sized + Message { ... }
    unsafe fn minimumTime(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn maximumTime(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn keyTimes(&self) -> Retained<NSArray<NSNumber>>
       where Self: Sized + Message { ... }
}
Available on crate features MDLTransform and MDLTypes only.
Expand description

MDLTransformComponent a container for a time sampled local transformation

Accessors to get the local transform and the global transform for a particular MDLObject are provided.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn resetsTransform(&self) -> bool
where Self: Sized + Message,

if YES, this transform is intended to be in global space, not parent space

Source

unsafe fn setResetsTransform(&self, resets_transform: bool)
where Self: Sized + Message,

Setter for resetsTransform.

Source

unsafe fn minimumTime(&self) -> NSTimeInterval
where Self: Sized + Message,

If no animation data is present, minimumTime and maximumTime will be zero

Source

unsafe fn maximumTime(&self) -> NSTimeInterval
where Self: Sized + Message,

Source

unsafe fn keyTimes(&self) -> Retained<NSArray<NSNumber>>
where Self: Sized + Message,

An array of sample times for which a key has been stored If no animation data is present, the array will contain a single value of zero

Trait Implementations§

Source§

impl ProtocolType for dyn MDLTransformComponent

Source§

const NAME: &'static str = "MDLTransformComponent"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn MDLTransformComponent

Implementations on Foreign Types§

Source§

impl<T> MDLTransformComponent for ProtocolObject<T>

Implementors§

Source§

impl MDLTransformComponent for MDLTransform

Source§

impl MDLTransformComponent for MDLTransformStack

Available on crate feature MDLTransformStack only.