Class SCNMorpher

    • Constructor Detail

      • SCNMorpher

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static SCNMorpher allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • 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()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • 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)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • addAnimationForKey

        public void addAnimationForKey​(@NotNull
                                       @NotNull SCNAnimation animation,
                                       @Nullable
                                       @Nullable java.lang.String key)
        Description copied from interface: SCNAnimatable
        addAnimation:forKey: Adds and runs an animation Only SCNAnimation (preferred), CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are supported. The animation starts playing right away. The animation is automatically removed on completion unless if removedOnCompletion is explicitly set to NO.
        Specified by:
        addAnimationForKey in interface SCNAnimatable
        Parameters:
        animation - Added animation.
        key - May be any string such that only one animation per unique key is added per animatable object.
      • animationForKey

        @Nullable
        @Deprecated
        public @Nullable CAAnimation animationForKey​(@NotNull
                                                     @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        animationForKey: Returns the animation with the given identifier This will return nil if no such animation exists. Attempting to modify any properties of the returned object will result in undefined behavior. API-Since: 8.0 Deprecated-Since: 11.0
        Specified by:
        animationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to retrieve.
      • animationKeys

        @NotNull
        public @NotNull NSArray<java.lang.String> animationKeys()
        Description copied from interface: SCNAnimatable
        [@property] animationKeys Returns an array containing the keys of all animations currently attached to the receiver.
        Specified by:
        animationKeys in interface SCNAnimatable
      • calculationMode

        public long calculationMode()
        [@property] calculationMode Specifies how the morph result is calculated by the receiver. Defaults to SCNMorpherCalculationModeNormalized.
      • isAnimationForKeyPaused

        @Deprecated
        public boolean isAnimationForKeyPaused​(@NotNull
                                               @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        isAnimationForKeyPaused: Returns whether the animation for the specified identifier is paused.
        Specified by:
        isAnimationForKeyPaused in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to query. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer paused] instead
      • pauseAnimationForKey

        @Deprecated
        public void pauseAnimationForKey​(@NotNull
                                         @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        pauseAnimationForKey: Pause the animation with the given identifier.
        Specified by:
        pauseAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to pause. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer setPaused:] instead
      • removeAnimationForKey

        public void removeAnimationForKey​(@NotNull
                                          @NotNull java.lang.String key)
        Description copied from interface: SCNAnimatable
        removeAnimationForKey Remove the animation with the given identifier.
        Specified by:
        removeAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
      • removeAnimationForKeyFadeOutDuration

        @Deprecated
        public void removeAnimationForKeyFadeOutDuration​(@NotNull
                                                         @NotNull java.lang.String key,
                                                         double duration)
        Deprecated.
        Description copied from interface: SCNAnimatable
        removeAnimationForKey:fadeOutDuration: Smoothly remove the animation with the given identifier.
        Specified by:
        removeAnimationForKeyFadeOutDuration in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
        duration - The fade out duration used to remove the animation. API-Since: 8.0 Deprecated-Since: 11.0
      • resumeAnimationForKey

        @Deprecated
        public void resumeAnimationForKey​(@NotNull
                                          @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        resumeAnimationForKey: Resume the animation with the given identifier.
        Specified by:
        resumeAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to resume. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer setPaused:] instead
      • setCalculationMode

        public void setCalculationMode​(long value)
        [@property] calculationMode Specifies how the morph result is calculated by the receiver. Defaults to SCNMorpherCalculationModeNormalized.
      • setSpeedForAnimationKey

        @Deprecated
        public void setSpeedForAnimationKey​(double speed,
                                            @NotNull
                                            @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        setSpeed:forAnimationKey: Update the animation speed of the animation with the given identifier.
        Specified by:
        setSpeedForAnimationKey in interface SCNAnimatable
        Parameters:
        speed - The new speed of the animation.
        key - The identifier for the animation to update. API-Since: 10.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer setSpeed:] instead
      • setTargets

        public void setTargets​(@NotNull
                               @NotNull NSArray<? extends SCNGeometry> value)
        [@property] targets Specifies the morph targets as an array of SCNGeometry. The target geometries must have the same number of entries in their geometry sources and the same topology as the base geometry.
      • setWeightForTargetAtIndex

        public void setWeightForTargetAtIndex​(double weight,
                                              long targetIndex)
        setWeight:forTargetAtIndex: Sets the weight for the target at the specified index. Animatable implicitly or explicitly with the keyPath "weights[index]" or "weights["targetName"]" (targetName is the name of the target geometry).
      • _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
      • targets

        @NotNull
        public @NotNull NSArray<? extends SCNGeometry> targets()
        [@property] targets Specifies the morph targets as an array of SCNGeometry. The target geometries must have the same number of entries in their geometry sources and the same topology as the base geometry.
      • weightForTargetAtIndex

        public double weightForTargetAtIndex​(long targetIndex)
        weightForTargetAtIndex: Retrieves the weight for the target at the specified index.
      • addAnimationPlayerForKey

        public void addAnimationPlayerForKey​(@NotNull
                                             @NotNull SCNAnimationPlayer player,
                                             @Nullable
                                             @Nullable java.lang.String key)
        Description copied from interface: SCNAnimatable
        addAnimationPlayer:forKey: Add an animation player. The animation player is not removed automatically on completion. The animation doesn't start playing immediatelly. Call "play" on the player to start playing it.
        Specified by:
        addAnimationPlayerForKey in interface SCNAnimatable
        Parameters:
        player - Added animation player.
        key - May be any string such that only one animation per unique key is added per animatable object.
      • animationPlayerForKey

        @Nullable
        public @Nullable SCNAnimationPlayer animationPlayerForKey​(@NotNull
                                                                  @NotNull java.lang.String key)
        Description copied from interface: SCNAnimatable
        animationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists. API-Since: 11.0
        Specified by:
        animationPlayerForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation player to retrieve.
      • removeAnimationForKeyBlendOutDuration

        public void removeAnimationForKeyBlendOutDuration​(@NotNull
                                                          @NotNull java.lang.String key,
                                                          double duration)
        Description copied from interface: SCNAnimatable
        removeAnimationForKey:blendOutDuration: Smoothly remove the animation with the given identifier.
        Specified by:
        removeAnimationForKeyBlendOutDuration in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
        duration - The blend out duration used to remove the animation. API-Since: 11.0
      • setUnifiesNormals

        public void setUnifiesNormals​(boolean value)
        [@property] unifiesNormals When set to YES the normals are not morphed but are recomputed after morphing the vertex instead. When set to NO, the morpher will morph the normals if the geometry targets have normals. Defaults to NO. API-Since: 11.0
      • setWeightForTargetNamed

        public void setWeightForTargetNamed​(double weight,
                                            @NotNull
                                            @NotNull java.lang.String targetName)
        setWeight:forTargetNamed: Sets the weight for the target with the specified name (targetName is the name of the target geometry). API-Since: 11.0
      • setWeights

        public void setWeights​(@NotNull
                               @NotNull NSArray<? extends NSNumber> value)
        [@property] weights Access to all the weights of all the targets. API-Since: 11.0
      • unifiesNormals

        public boolean unifiesNormals()
        [@property] unifiesNormals When set to YES the normals are not morphed but are recomputed after morphing the vertex instead. When set to NO, the morpher will morph the normals if the geometry targets have normals. Defaults to NO. API-Since: 11.0
      • weightForTargetNamed

        public double weightForTargetNamed​(@NotNull
                                           @NotNull java.lang.String targetName)
        weightForTargetNamed: Retrieves the weight for the target with the specified name (targetName is the name of the target geometry). API-Since: 11.0
      • weights

        @NotNull
        public @NotNull NSArray<? extends NSNumber> weights()
        [@property] weights Access to all the weights of all the targets. API-Since: 11.0
      • removeAllAnimationsWithBlendOutDuration

        public void removeAllAnimationsWithBlendOutDuration​(double duration)
        Description copied from interface: SCNAnimatable
        removeAllAnimationsWithBlendOutDuration Smoothly remove all animations.
        Specified by:
        removeAllAnimationsWithBlendOutDuration in interface SCNAnimatable
        Parameters:
        duration - The blend out duration used to remove the animation. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.