public class SCNMorpher extends NSObject implements SCNAnimatable, NSSecureCoding
SCNMorpher controls the deformation of morphed geometries
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SCNMorpher(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
void |
addAnimationForKey(SCNAnimation animation,
java.lang.String key)
addAnimation:forKey:
|
void |
addAnimationPlayerForKey(SCNAnimationPlayer player,
java.lang.String key)
addAnimationPlayer:forKey:
|
static SCNMorpher |
alloc() |
static SCNMorpher |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
CAAnimation |
animationForKey(java.lang.String key)
animationForKey:
|
NSArray<java.lang.String> |
animationKeys()
[@property] animationKeys
|
SCNAnimationPlayer |
animationPlayerForKey(java.lang.String key)
animationPlayerForKey:
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
long |
calculationMode()
[@property] calculationMode
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(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.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
static long |
hash_static() |
SCNMorpher |
init() |
SCNMorpher |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isAnimationForKeyPaused(java.lang.String key)
isAnimationForKeyPaused:
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static SCNMorpher |
new_objc() |
void |
pauseAnimationForKey(java.lang.String key)
pauseAnimationForKey:
|
void |
removeAllAnimations()
removeAllAnimations
|
void |
removeAllAnimationsWithBlendOutDuration(double duration)
removeAllAnimationsWithBlendOutDuration
|
void |
removeAnimationForKey(java.lang.String key)
removeAnimationForKey
|
void |
removeAnimationForKeyBlendOutDuration(java.lang.String key,
double duration)
removeAnimationForKey:blendOutDuration:
|
void |
removeAnimationForKeyFadeOutDuration(java.lang.String key,
double duration)
removeAnimationForKey:fadeOutDuration:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
resumeAnimationForKey(java.lang.String key)
resumeAnimationForKey:
|
void |
setCalculationMode(long value)
[@property] calculationMode
|
void |
setSpeedForAnimationKey(double speed,
java.lang.String key)
setSpeed:forAnimationKey:
|
void |
setTargets(NSArray<? extends SCNGeometry> value)
[@property] targets
|
void |
setUnifiesNormals(boolean value)
[@property] unifiesNormals
|
static void |
setVersion_static(long aVersion) |
void |
setWeightForTargetAtIndex(double weight,
long targetIndex)
setWeight:forTargetAtIndex:
|
void |
setWeightForTargetNamed(double weight,
java.lang.String targetName)
setWeight:forTargetNamed:
|
void |
setWeights(NSArray<? extends NSNumber> value)
[@property] weights
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSArray<? extends SCNGeometry> |
targets()
[@property] targets
|
boolean |
unifiesNormals()
[@property] unifiesNormals
|
static long |
version_static() |
double |
weightForTargetAtIndex(long targetIndex)
weightForTargetAtIndex:
|
double |
weightForTargetNamed(java.lang.String targetName)
weightForTargetNamed:
|
NSArray<? extends NSNumber> |
weights()
[@property] weights
|
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SCNMorpher alloc()
public static SCNMorpher allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SCNMorpher new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public void addAnimationForKey(SCNAnimation animation, java.lang.String key)
SCNAnimatableAdds 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.
addAnimationForKey in interface SCNAnimatableanimation - Added animation.key - May be any string such that only one animation per unique key is added per animatable object. removedOnCompletion] public CAAnimation animationForKey(java.lang.String key)
SCNAnimatableReturns 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.
animationForKey in interface SCNAnimatablekey - The identifier for the animation to retrieve.public NSArray<java.lang.String> animationKeys()
SCNAnimatableReturns an array containing the keys of all animations currently attached to the receiver.
animationKeys in interface SCNAnimatablepublic long calculationMode()
Specifies how the morph result is calculated by the receiver. Defaults to SCNMorpherCalculationModeNormalized.
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic SCNMorpher init()
public SCNMorpher initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic boolean isAnimationForKeyPaused(java.lang.String key)
SCNAnimatableReturns whether the animation for the specified identifier is paused.
isAnimationForKeyPaused in interface SCNAnimatablekey - The identifier for the animation to query.public void pauseAnimationForKey(java.lang.String key)
SCNAnimatablePause the animation with the given identifier.
pauseAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to pause.public void removeAllAnimations()
SCNAnimatableRemove all animations.
removeAllAnimations in interface SCNAnimatablepublic void removeAnimationForKey(java.lang.String key)
SCNAnimatableRemove the animation with the given identifier.
removeAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to remove.public void removeAnimationForKeyFadeOutDuration(java.lang.String key,
double duration)
SCNAnimatableSmoothly remove the animation with the given identifier.
removeAnimationForKeyFadeOutDuration in interface SCNAnimatablekey - The identifier for the animation to remove.duration - The fade out duration used to remove the animation.public void resumeAnimationForKey(java.lang.String key)
SCNAnimatableResume the animation with the given identifier.
resumeAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to resume.public void setCalculationMode(long value)
Specifies how the morph result is calculated by the receiver. Defaults to SCNMorpherCalculationModeNormalized.
public void setSpeedForAnimationKey(double speed,
java.lang.String key)
SCNAnimatableUpdate the animation speed of the animation with the given identifier.
setSpeedForAnimationKey in interface SCNAnimatablespeed - The new speed of the animation.key - The identifier for the animation to update.public void setTargets(NSArray<? extends SCNGeometry> value)
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.
public void setWeightForTargetAtIndex(double weight,
long targetIndex)
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).
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic NSArray<? extends SCNGeometry> 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.
public double weightForTargetAtIndex(long targetIndex)
Retrieves the weight for the target at the specified index.
public void addAnimationPlayerForKey(SCNAnimationPlayer player, java.lang.String key)
SCNAnimatableAdd 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.
addAnimationPlayerForKey in interface SCNAnimatableplayer - Added animation player.key - May be any string such that only one animation per unique key is added per animatable object.play]public SCNAnimationPlayer animationPlayerForKey(java.lang.String key)
SCNAnimatableReturns the animation player with the given identifier
This will return nil if no such animation player exists.
animationPlayerForKey in interface SCNAnimatablekey - The identifier for the animation player to retrieve.public void removeAnimationForKeyBlendOutDuration(java.lang.String key,
double duration)
SCNAnimatableSmoothly remove the animation with the given identifier.
removeAnimationForKeyBlendOutDuration in interface SCNAnimatablekey - The identifier for the animation to remove.duration - The blend out duration used to remove the animation.public void setUnifiesNormals(boolean value)
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.
public void setWeightForTargetNamed(double weight,
java.lang.String targetName)
Sets the weight for the target with the specified name (targetName is the name of the target geometry).
public void setWeights(NSArray<? extends NSNumber> value)
Access to all the weights of all the targets.
public boolean 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.
public double weightForTargetNamed(java.lang.String targetName)
Retrieves the weight for the target with the specified name (targetName is the name of the target geometry).
public NSArray<? extends NSNumber> weights()
Access to all the weights of all the targets.
public void removeAllAnimationsWithBlendOutDuration(double duration)
SCNAnimatableSmoothly remove all animations.
removeAllAnimationsWithBlendOutDuration in interface SCNAnimatableduration - The blend out duration used to remove the animation.