Class SCNAnimation

    • Constructor Detail

      • SCNAnimation

        protected SCNAnimation​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static SCNAnimation allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • animationDidStop

        @Nullable
        public @Nullable 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.
      • animationNamed

        @NotNull
        public static @NotNull SCNAnimation animationNamed​(@NotNull
                                                           @NotNull 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

        @NotNull
        public static @NotNull SCNAnimation animationWithCAAnimation​(@NotNull
                                                                     @NotNull 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

        @NotNull
        public static @NotNull SCNAnimation animationWithContentsOfURL​(@NotNull
                                                                       @NotNull NSURL animationUrl)
        Loads and returns an animation loaded from the specified URL.
        Parameters:
        animationUrl - The url to load.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull 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​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • 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.
      • 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()
      • 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

        @Nullable
        public @Nullable 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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.
      • setAnimationDidStop

        public void setAnimationDidStop​(@Nullable
                                        @Nullable 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​(@Nullable
                                       @Nullable 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​(@Nullable
                               @Nullable 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​(@NotNull
                                      @NotNull 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: NSSecureCoding
        This 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:
        _supportsSecureCoding in interface NSSecureCoding
      • 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

        @NotNull
        public @NotNull 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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.