Package apple.scenekit
Class SCNAnimation
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.scenekit.SCNAnimation
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject,SCNAnimation
public class SCNAnimation extends NSObject implements SCNAnimation, NSCopying, NSSecureCoding
SCNAnimation represents an animation that targets a specific key path.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSCNAnimation.Block_animationDidStart_retstatic interfaceSCNAnimation.Block_animationDidStop_retstatic interfaceSCNAnimation.Block_setAnimationDidStartstatic interfaceSCNAnimation.Block_setAnimationDidStop-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSCNAnimation(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static SCNAnimationalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)SCNAnimation.Block_animationDidStart_retanimationDidStart()Called when the animation starts.SCNAnimation.Block_animationDidStop_retanimationDidStop()Called when the animation either completes its active duration or is removed from the object it is attached to (i.e. the layer).NSArray<? extends SCNAnimationEvent>animationEvents()Specifies the animation events attached to the receiver.static SCNAnimationanimationNamed(java.lang.String animationName)Loads and returns the animation with the specified name in the current application bundle.static SCNAnimationanimationWithCAAnimation(CAAnimation caAnimation)bridge with Core Animation Returns a SCNAnimation initialized from a CAAnimation.static SCNAnimationanimationWithContentsOfURL(NSURL animationUrl)Loads and returns an animation loaded from the specified URL.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)booleanautoreverses()When true, the object plays backwards after playing forwards.doubleblendInDuration()Determines the receiver's blend-in duration.doubleblendOutDuration()Determines the receiver's blend-out duration.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()doubleduration()The duration of the animation in seconds.voidencodeWithCoder(NSCoder coder)booleanfillsBackward()When true, the animation is active before its active duration and evaluates to its start value.booleanfillsForward()When true, the animation remains active after its active duration and evaluates to its end value.static longhash_static()SCNAnimationinit()SCNAnimationinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisAdditive()When true the value specified by the animation will be "added" to the current presentation value of the property to produce the new presentation value.booleanisAppliedOnCompletion()When true, the animation is applied to the model tree once its active duration has passed.booleanisCumulative()The `cumulative' property affects how repeating animations produce their result.booleanisRemovedOnCompletion()When true, the animation is removed from the render tree once its active duration has passed.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)java.lang.StringkeyPath()The key-path describing the property to be animated for single-property animations, nil for animations targetting multiple nodes. defaults to nil.static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()doublerepeatCount()The repeat count of the object.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAdditive(boolean value)When true the value specified by the animation will be "added" to the current presentation value of the property to produce the new presentation value.voidsetAnimationDidStart(SCNAnimation.Block_setAnimationDidStart value)Called when the animation starts.voidsetAnimationDidStop(SCNAnimation.Block_setAnimationDidStop value)Called when the animation either completes its active duration or is removed from the object it is attached to (i.e. the layer).voidsetAnimationEvents(NSArray<? extends SCNAnimationEvent> value)Specifies the animation events attached to the receiver.voidsetAppliedOnCompletion(boolean value)When true, the animation is applied to the model tree once its active duration has passed.voidsetAutoreverses(boolean value)When true, the object plays backwards after playing forwards.voidsetBlendInDuration(double value)Determines the receiver's blend-in duration.voidsetBlendOutDuration(double value)Determines the receiver's blend-out duration.voidsetCumulative(boolean value)The `cumulative' property affects how repeating animations produce their result.voidsetDuration(double value)The duration of the animation in seconds.voidsetFillsBackward(boolean value)When true, the animation is active before its active duration and evaluates to its start value.voidsetFillsForward(boolean value)When true, the animation remains active after its active duration and evaluates to its end value.voidsetKeyPath(java.lang.String value)The key-path describing the property to be animated for single-property animations, nil for animations targetting multiple nodes. defaults to nil.voidsetRemovedOnCompletion(boolean value)When true, the animation is removed from the render tree once its active duration has passed.voidsetRepeatCount(double value)The repeat count of the object.voidsetStartDelay(double value)The relative delay to start the animation, in relation to its parent animation if applicable.voidsetTimeOffset(double value)Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset.voidsetTimingFunction(SCNTimingFunction value)A timing function defining the pacing of the animation.voidsetUsesSceneTimeBase(boolean value)Determines whether the receiver is evaluated using the scene time or the system time.static voidsetVersion_static(long aVersion)doublestartDelay()The relative delay to start the animation, in relation to its parent animation if applicable.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()doubletimeOffset()Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset.SCNTimingFunctiontimingFunction()A timing function defining the pacing of the animation.booleanusesSceneTimeBase()Determines whether the receiver is evaluated using the scene time or the system time.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SCNAnimation alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animationDidStart
public SCNAnimation.Block_animationDidStart_ret animationDidStart()
Called when the animation starts.
-
animationDidStop
public SCNAnimation.Block_animationDidStop_ret animationDidStop()
Called when the animation either completes its active duration or is removed from the object it is attached to (i.e. the layer). The 'completed' argument of SCNAnimationDidStopBlock is true if the animation reached the end of its active duration without being removed.
-
animationEvents
public NSArray<? extends SCNAnimationEvent> animationEvents()
Specifies the animation events attached to the receiver.- See Also:
SCNAnimationEvent
-
animationNamed
public static SCNAnimation animationNamed(java.lang.String animationName)
Loads and returns the animation with the specified name in the current application bundle.- Parameters:
animationName- The name of the animation to load.
-
animationWithCAAnimation
public static SCNAnimation animationWithCAAnimation(CAAnimation caAnimation)
bridge with Core Animation Returns a SCNAnimation initialized from a CAAnimation. Only CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are currently supported.- Parameters:
caAnimation- The CAAnimation to initialize from.
-
animationWithContentsOfURL
public static SCNAnimation animationWithContentsOfURL(NSURL animationUrl)
Loads and returns an animation loaded from the specified URL.- Parameters:
animationUrl- The url to load.
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
autoreverses
public boolean autoreverses()
When true, the object plays backwards after playing forwards. Defaults to NO.
-
blendInDuration
public double blendInDuration()
Determines the receiver's blend-in duration. When the blendInDuration is greater than zero, the effect of the animation progressively increase from 0% to 100% during the specified duration.
-
blendOutDuration
public double blendOutDuration()
Determines the receiver's blend-out duration. When the blendOutDuration is greater than zero, the effect of the animation progressively decrease from 100% to 0% at the end of the animation duration.
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
duration
public double duration()
The duration of the animation in seconds. Defaults to 0.
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
fillsBackward
public boolean fillsBackward()
When true, the animation is active before its active duration and evaluates to its start value. Defaults to NO.
-
fillsForward
public boolean fillsForward()
When true, the animation remains active after its active duration and evaluates to its end value. Defaults to NO.
-
hash_static
public static long hash_static()
-
init
public SCNAnimation init()
-
initWithCoder
public SCNAnimation initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isAdditive
public boolean isAdditive()
When true the value specified by the animation will be "added" to the current presentation value of the property to produce the new presentation value. The addition function is type-dependent, e.g. for affine transforms the two matrices are concatenated. Defaults to NO.
-
isAppliedOnCompletion
public boolean isAppliedOnCompletion()
When true, the animation is applied to the model tree once its active duration has passed. Defaults to NO.
-
isCumulative
public boolean isCumulative()
The `cumulative' property affects how repeating animations produce their result. If true then the current value of the animation is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle. If false, the value is simply the value calculated for the current repeat cycle. Defaults to NO.
-
isRemovedOnCompletion
public boolean isRemovedOnCompletion()
When true, the animation is removed from the render tree once its active duration has passed. Defaults to YES.
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPath
public java.lang.String keyPath()
The key-path describing the property to be animated for single-property animations, nil for animations targetting multiple nodes. defaults to nil. The key-path uses the KVC syntax. It's also possible to target a specific sub-node with the following syntax: /.property1.property2.field (field is optional, is the name of the targeted node).
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
repeatCount
public double repeatCount()
The repeat count of the object. May be fractional. Defaults to 0.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setAdditive
public void setAdditive(boolean value)
When true the value specified by the animation will be "added" to the current presentation value of the property to produce the new presentation value. The addition function is type-dependent, e.g. for affine transforms the two matrices are concatenated. Defaults to NO.
-
setAnimationDidStart
public void setAnimationDidStart(SCNAnimation.Block_setAnimationDidStart value)
Called when the animation starts.
-
setAnimationDidStop
public void setAnimationDidStop(SCNAnimation.Block_setAnimationDidStop value)
Called when the animation either completes its active duration or is removed from the object it is attached to (i.e. the layer). The 'completed' argument of SCNAnimationDidStopBlock is true if the animation reached the end of its active duration without being removed.
-
setAnimationEvents
public void setAnimationEvents(NSArray<? extends SCNAnimationEvent> value)
Specifies the animation events attached to the receiver.- See Also:
SCNAnimationEvent
-
setAppliedOnCompletion
public void setAppliedOnCompletion(boolean value)
When true, the animation is applied to the model tree once its active duration has passed. Defaults to NO.
-
setAutoreverses
public void setAutoreverses(boolean value)
When true, the object plays backwards after playing forwards. Defaults to NO.
-
setBlendInDuration
public void setBlendInDuration(double value)
Determines the receiver's blend-in duration. When the blendInDuration is greater than zero, the effect of the animation progressively increase from 0% to 100% during the specified duration.
-
setBlendOutDuration
public void setBlendOutDuration(double value)
Determines the receiver's blend-out duration. When the blendOutDuration is greater than zero, the effect of the animation progressively decrease from 100% to 0% at the end of the animation duration.
-
setCumulative
public void setCumulative(boolean value)
The `cumulative' property affects how repeating animations produce their result. If true then the current value of the animation is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle. If false, the value is simply the value calculated for the current repeat cycle. Defaults to NO.
-
setDuration
public void setDuration(double value)
The duration of the animation in seconds. Defaults to 0.
-
setFillsBackward
public void setFillsBackward(boolean value)
When true, the animation is active before its active duration and evaluates to its start value. Defaults to NO.
-
setFillsForward
public void setFillsForward(boolean value)
When true, the animation remains active after its active duration and evaluates to its end value. Defaults to NO.
-
setKeyPath
public void setKeyPath(java.lang.String value)
The key-path describing the property to be animated for single-property animations, nil for animations targetting multiple nodes. defaults to nil. The key-path uses the KVC syntax. It's also possible to target a specific sub-node with the following syntax: /.property1.property2.field (field is optional, is the name of the targeted node).
-
setRemovedOnCompletion
public void setRemovedOnCompletion(boolean value)
When true, the animation is removed from the render tree once its active duration has passed. Defaults to YES.
-
setRepeatCount
public void setRepeatCount(double value)
The repeat count of the object. May be fractional. Defaults to 0.
-
setStartDelay
public void setStartDelay(double value)
The relative delay to start the animation, in relation to its parent animation if applicable. Defaults to 0. This property is bridged with CoreAnimations's beginTime. However, for top level animations, startDelay is relative to the current time (unlike CAAnimation's beginTime that is absolute). So if a CAAnimation has a non-zero beginTime, startDelay is initialized as caAnimation.beginTime - CACurrentMediaTime().
-
setTimeOffset
public void setTimeOffset(double value)
Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset. Defaults to 0.
-
setTimingFunction
public void setTimingFunction(SCNTimingFunction value)
A timing function defining the pacing of the animation. Defaults to nil indicating linear pacing.
-
setUsesSceneTimeBase
public void setUsesSceneTimeBase(boolean value)
Determines whether the receiver is evaluated using the scene time or the system time. Defaults to NO. A scene-time based animation is evaluated using the "sceneTime" value of the renderer that renders the scene. The "sceneTime" base is typically used by players or editors that need to preview, edit and being able to change the evaluation time.- See Also:
SCNSceneSourceAnimationImportPolicyKey
-
setVersion_static
public static void setVersion_static(long aVersion)
-
startDelay
public double startDelay()
The relative delay to start the animation, in relation to its parent animation if applicable. Defaults to 0. This property is bridged with CoreAnimations's beginTime. However, for top level animations, startDelay is relative to the current time (unlike CAAnimation's beginTime that is absolute). So if a CAAnimation has a non-zero beginTime, startDelay is initialized as caAnimation.beginTime - CACurrentMediaTime().
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
timeOffset
public double timeOffset()
Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset. Defaults to 0.
-
timingFunction
public SCNTimingFunction timingFunction()
A timing function defining the pacing of the animation. Defaults to nil indicating linear pacing.
-
usesSceneTimeBase
public boolean usesSceneTimeBase()
Determines whether the receiver is evaluated using the scene time or the system time. Defaults to NO. A scene-time based animation is evaluated using the "sceneTime" value of the renderer that renders the scene. The "sceneTime" base is typically used by players or editors that need to preview, edit and being able to change the evaluation time.- See Also:
SCNSceneSourceAnimationImportPolicyKey
-
version_static
public static long version_static()
-
-