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§
Sourceunsafe fn resetsTransform(&self) -> bool
unsafe fn resetsTransform(&self) -> bool
if YES, this transform is intended to be in global space, not parent space
Sourceunsafe fn setResetsTransform(&self, resets_transform: bool)
unsafe fn setResetsTransform(&self, resets_transform: bool)
Setter for resetsTransform.
Sourceunsafe fn minimumTime(&self) -> NSTimeInterval
unsafe fn minimumTime(&self) -> NSTimeInterval
If no animation data is present, minimumTime and maximumTime will be zero
unsafe fn maximumTime(&self) -> NSTimeInterval
Trait Implementations§
Source§impl ProtocolType for dyn MDLTransformComponent
impl ProtocolType for dyn MDLTransformComponent
impl<T> ImplementedBy<T> for dyn MDLTransformComponent
Implementations on Foreign Types§
impl<T> MDLTransformComponent for ProtocolObject<T>where
T: ?Sized + MDLTransformComponent,
Implementors§
impl MDLTransformComponent for MDLTransform
impl MDLTransformComponent for MDLTransformStack
Available on crate feature
MDLTransformStack only.