Package apple.scenekit
Class SCNNode
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.scenekit.SCNNode
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject,SCNActionable,SCNAnimatable,SCNBoundingVolume,UIFocusEnvironment,UIFocusItem
- Direct Known Subclasses:
SCNReferenceNode
public class SCNNode extends NSObject implements NSCopying, NSSecureCoding, SCNAnimatable, SCNActionable, SCNBoundingVolume, UIFocusItem
SCNNode SCNNode is the model class for node-tree objects. It encapsulates the position, rotations, and other transforms of a node, which define a coordinate system. The coordinate systems of all the sub-nodes are relative to the one of their parent node.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSCNNode.Block_childNodesPassingTeststatic interfaceSCNNode.Block_enumerateChildNodesUsingBlockstatic interfaceSCNNode.Block_enumerateHierarchyUsingBlock-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.scenekit.protocol.SCNActionable
SCNActionable.Block_runActionCompletionHandler, SCNActionable.Block_runActionForKeyCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSCNNode(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()@Nullable SCNActionactionForKey(@NotNull java.lang.String key)actionForKey: Returns an action associated with a specific key.@NotNull NSArray<java.lang.String>actionKeys()[@property] actionKeys Returns an array containing the keys of all actions currently attached to the receiver.voidaddAnimationForKey(@NotNull SCNAnimation animation, @Nullable java.lang.String key)addAnimation:forKey: Adds and runs an animation Only SCNAnimation (preferred), CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are supported.voidaddAnimationPlayerForKey(@NotNull SCNAnimationPlayer player, @Nullable java.lang.String key)addAnimationPlayer:forKey: Add an animation player.voidaddAudioPlayer(@NotNull SCNAudioPlayer player)addAudioPlayer: Add an audio player to the node and starts playing it right away.voidaddChildNode(@NotNull SCNNode child)addChildNode: Appends the node to the receiver’s childNodes array.voidaddParticleSystem(@NotNull SCNParticleSystem system)Add a particle system to the receiver.static SCNNodealloc()static SCNNodeallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@Nullable CAAnimationanimationForKey(@NotNull java.lang.String key)Deprecated.@NotNull NSArray<java.lang.String>animationKeys()[@property] animationKeys Returns an array containing the keys of all animations currently attached to the receiver.@Nullable SCNAnimationPlayeranimationPlayerForKey(@NotNull java.lang.String key)animationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists.@NotNull NSArray<? extends SCNAudioPlayer>audioPlayers()[@property] audioPlayers Get an array with all the audio players connected and playing on this node.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)@Nullable SCNCameracamera()[@property] camera Determines the camera attached to the receiver.booleancanBecomeFocused()Indicates whether or not this item is currently allowed to become focused.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)booleancastsShadow()[@property] castsShadow Determines if the node is rendered in shadow maps.longcategoryBitMask()[@property] categoryBitMask Defines what logical 'categories' the receiver belongs too.@NotNull NSArray<? extends SCNNode>childNodes()[@property] childNodes Returns the child node array of the receiver.@NotNull NSArray<? extends SCNNode>childNodesPassingTest(@NotNull SCNNode.Block_childNodesPassingTest predicate)childNodesPassingTest: Returns the child nodes of the receiver that passes a test in a given Block.@Nullable SCNNodechildNodeWithNameRecursively(@NotNull java.lang.String name, boolean recursively)childNodeWithName:recursively: Returns the first node found in the node tree with the specified name.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@NotNull SCNNodeclone()clone Returns a copy of the receiver.@Nullable NSArray<? extends SCNConstraint>constraints()[@property] constraints An array of SCNConstraint that are applied to the receiver.SCNVector3convertPositionFromNode(SCNVector3 position, @Nullable SCNNode node)convertPosition:fromNode: Converts a position from the coordinate system of a given node to that of the receiver.SCNVector3convertPositionToNode(SCNVector3 position, @Nullable SCNNode node)convertPosition:toNode: Converts a position from the receiver’s coordinate system to that of the specified node.SCNMatrix4convertTransformFromNode(SCNMatrix4 transform, @Nullable SCNNode node)convertTransform:fromNode: Converts a transform from the coordinate system of a given node to that of the receiver.SCNMatrix4convertTransformToNode(SCNMatrix4 transform, @Nullable SCNNode node)convertTransform:toNode: Converts a transform from the receiver’s coordinate system to that of the specified node.SCNVector3convertVectorFromNode(SCNVector3 vector, @Nullable SCNNode node)Converts a vector from the coordinate system of a given node to that of the receiver.SCNVector3convertVectorToNode(SCNVector3 vector, @Nullable SCNNode node)Converts a vector from the coordinate system of a given node to that of the receiver.@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddidHintFocusMovement(@NotNull UIFocusMovementHint hint)Called whenever this focus item is hinting to the user a focus movement might occur.voiddidUpdateFocusInContextWithAnimationCoordinator(@NotNull UIFocusUpdateContext context, @NotNull UIFocusAnimationCoordinator coordinator)Called when the screen’s focused item has been updated to a new item.voidencodeWithCoder(@NotNull NSCoder coder)@Nullable GKEntityentity()The GKEntity associated with the node via a GKSCNNodeComponent.voidenumerateChildNodesUsingBlock(@NotNull SCNNode.Block_enumerateChildNodesUsingBlock block)enumerateChildNodesUsingBlock: Executes a given block on each child node under the receiver.voidenumerateHierarchyUsingBlock(@NotNull SCNNode.Block_enumerateHierarchyUsingBlock block)enumerateHierarchyUsingBlock: Executes a given block on the receiver and its child nodes.SCNVector3eulerAngles()[@property] eulerAngles Determines the receiver's euler angles.@Nullable NSArray<? extends CIFilter>filters()[@property] filters An array of Core Image filters that are applied to the rendering of the receiver and its child nodes.@NotNull SCNNodeflattenedClone()flattenedClone Returns a clone of the node containing a geometry that concatenates all the geometries contained in the node hierarchy.longfocusBehavior()[@property] focusBehavior Controls the behavior of the receiver regarding the UIFocus system.@Nullable UIFocusEffectfocusEffect()Describes a visual effect to apply when this item is focused.@Nullable java.lang.StringfocusGroupIdentifier()The identifier of the focus group that this view belongs to.longfocusGroupPriority()The priority this item has in its focus group.@Nullable UIFocusItemContainerfocusItemContainer()The container of any child focus items in this focus environment, or nil if no container exists.CGRectframe()The geometric frame of this item, represented in the `coordinateSpace` of the UIFocusItemContainer in which it is contained.@Nullable SCNGeometrygeometry()[@property] geometry Returns the geometry attached to the receiver.booleangetBoundingBoxMinMax(@Nullable SCNVector3 min, @Nullable SCNVector3 max)getBoundingBoxMin:max: Fill the min and max vectors with the min and max vertex of the bounding box.booleangetBoundingSphereCenterRadius(@Nullable SCNVector3 center, @Nullable org.moe.natj.general.ptr.NFloatPtr radius)getBoundingSphereCenter:radius: Fill the center vector with the center of the bounding sphere and store the radius of the bounding sphere in 'radius'.booleanhasActions()[@property] hasActions Returns a Boolean value that indicates whether the node is executing actions.static longhash_static()@NotNull NSArray<? extends SCNHitTestResult>hitTestWithSegmentFromPointToPointOptions(SCNVector3 pointA, SCNVector3 pointB, @Nullable NSDictionary<java.lang.String,?> options)hitTestWithSegmentFromPoint:toPoint:options: Returns an array of SCNHitTestResult for each node in the receiver's sub tree that intersects the specified segment.SCNNodeinit()SCNNodeinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERvoidinsertChildNodeAtIndex(@NotNull SCNNode child, long index)insertChildNode:atIndex: Insert a node in the childNodes array at the specified index.static 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)booleanisAnimationForKeyPaused(@NotNull java.lang.String key)Deprecated.booleanisHidden()[@property] hidden Determines whether the receiver is displayed.booleanisPaused()[@property] paused Controls whether or not the node's actions and animations are updated or paused.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisTransparentFocusItem()If this returns YES, the focus item is considered transparent in terms of occlusion.static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@Nullable SCNLightlight()[@property] light Determines the light attached to the receiver.static SCNVector3localFront()[@property] localFront The local unit -Z axis (0, 0, -1).static SCNVector3localRight()[@property] localRight The local unit X axis (1, 0, 0).voidlocalRotateBy(SCNVector4 rotation)Apply a the given rotation to the current one.voidlocalTranslateBy(SCNVector3 translation)Translate the current node position along the given vector in local space.static SCNVector3localUp()[@property] localUp The local unit Y axis (0, 1, 0).voidlookAt(SCNVector3 worldTarget)Convenience for calling lookAt:up:localFront: with worldUp set to `self.worldUp` and localFront [SCNNode localFront].voidlookAtUpLocalFront(SCNVector3 worldTarget, SCNVector3 worldUp, SCNVector3 localFront)Set the orientation of the node so its front vector is pointing toward a given target.@Nullable SCNMorphermorpher()[@property] morpher Returns the morpher attached to the receiver.longmovabilityHint()[@property] movabilityHint Communicates to SceneKit’s rendering system about how you want to move content in your scene; it does not affect your ability to change the node’s position or add animations or physics to the node.@Nullable java.lang.Stringname()[@property] name Determines the name of the receiver.static SCNNodenew_objc()static SCNNodenode()node Creates and initializes a node instance.static @NotNull SCNNodenodeWithGeometry(@Nullable SCNGeometry geometry)nodeWithGeometry: Creates and initializes a node instance with the specified geometry attached.static SCNNodenodeWithMDLObject(@NotNull MDLObject mdlObject)API-Since: 9.0doubleopacity()[@property] opacity Determines the opacity of the receiver.SCNVector4orientation()[@property] orientation Determines the receiver's orientation as a unit quaternion.@Nullable UIFocusEnvironmentparentFocusEnvironment()The parent focus environment of this environment, or nil if no parent exists.@Nullable SCNNodeparentNode()[@property] parentNode Returns the parent node of the receiver.@Nullable NSArray<? extends SCNParticleSystem>particleSystems()The particle systems attached to the node.voidpauseAnimationForKey(@NotNull java.lang.String key)Deprecated.@Nullable SCNPhysicsBodyphysicsBody()[@property] physicsBody The description of the physics body of the receiver.@Nullable SCNPhysicsFieldphysicsField()[@property] physicsField The description of the physics field of the receiver.SCNMatrix4pivot()[@property] pivot Determines the receiver's pivot.SCNVector3position()[@property] position Determines the receiver's position.@Nullable UIViewpreferredFocusedView()Deprecated.@NotNull NSArray<?>preferredFocusEnvironments()The preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically.@NotNull SCNNodepresentationNode()[@property] presentationNode Returns the presentation node.voidremoveActionForKey(@NotNull java.lang.String key)removeActionForKey: Removes an action associated with a specific key.voidremoveAllActions()removeAllActions Ends and removes all actions from the node.voidremoveAllAnimations()removeAllAnimations Remove all animations.voidremoveAllAnimationsWithBlendOutDuration(double duration)removeAllAnimationsWithBlendOutDuration Smoothly remove all animations.voidremoveAllAudioPlayers()removeAllAudioPlayers Remove all audio players from this node and stop playing them.voidremoveAllParticleSystems()Remove all particle systems of the receiver.voidremoveAnimationForKey(@NotNull java.lang.String key)removeAnimationForKey Remove the animation with the given identifier.voidremoveAnimationForKeyBlendOutDuration(@NotNull java.lang.String key, double duration)removeAnimationForKey:blendOutDuration: Smoothly remove the animation with the given identifier.voidremoveAnimationForKeyFadeOutDuration(@NotNull java.lang.String key, double duration)Deprecated.voidremoveAudioPlayer(@NotNull SCNAudioPlayer player)removeAudioPlayer: Remove the given audio player from this node and stop playing it.voidremoveFromParentNode()removeFromParentNode Removes the node from the childNodes array of the receiver’s parentNode.voidremoveParticleSystem(@NotNull SCNParticleSystem system)Remove the specified particle system from the receiver.@Nullable SCNNodeRendererDelegaterendererDelegate()[@property] rendererDelegate Specifies the receiver's renderer delegate object.longrenderingOrder()[@property] renderingOrder Determines the rendering order of the receiver.voidreplaceChildNodeWith(@NotNull SCNNode oldChild, @NotNull SCNNode newChild)replaceChildNode:with: Remove `child' from the childNode array of the receiver and insert 'child2' if non-nil in its position.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidresumeAnimationForKey(@NotNull java.lang.String key)Deprecated.voidrotateByAroundTarget(SCNVector4 worldRotation, SCNVector3 worldTarget)Apply a rotation relative to a target point in parent space.SCNVector4rotation()[@property] rotation Determines the receiver's rotation.voidrunAction(@NotNull SCNAction action)runAction: Adds an action to the list of actions executed by the node.voidrunActionCompletionHandler(@NotNull SCNAction action, SCNActionable.Block_runActionCompletionHandler block)runAction:completionHandler: Adds an action to the list of actions executed by the node.voidrunActionForKey(@NotNull SCNAction action, @Nullable java.lang.String key)runAction:forKey: Adds an identifiable action to the list of actions executed by the node.voidrunActionForKeyCompletionHandler(@NotNull SCNAction action, @Nullable java.lang.String key, SCNActionable.Block_runActionForKeyCompletionHandler block)runAction:forKey:completionHandler: Adds an identifiable action to the list of actions executed by the node.SCNVector3scale()[@property] scale Determines the receiver's scale.voidsetBoundingBoxMinMax(@Nullable SCNVector3 min, @Nullable SCNVector3 max)setBoundingBoxMin:max: Override the receiver bounding box with the min and max vectors provided (in local space of the receiver).voidsetCamera(@Nullable SCNCamera value)[@property] camera Determines the camera attached to the receiver.voidsetCastsShadow(boolean value)[@property] castsShadow Determines if the node is rendered in shadow maps.voidsetCategoryBitMask(long value)[@property] categoryBitMask Defines what logical 'categories' the receiver belongs too.voidsetConstraints(@Nullable NSArray<? extends SCNConstraint> value)[@property] constraints An array of SCNConstraint that are applied to the receiver.voidsetEntity(@Nullable GKEntity value)The GKEntity associated with the node via a GKSCNNodeComponent.voidsetEntity_unsafe(@Nullable GKEntity value)The GKEntity associated with the node via a GKSCNNodeComponent.voidsetEulerAngles(SCNVector3 value)[@property] eulerAngles Determines the receiver's euler angles.voidsetFilters(@Nullable NSArray<? extends CIFilter> value)[@property] filters An array of Core Image filters that are applied to the rendering of the receiver and its child nodes.voidsetFocusBehavior(long value)[@property] focusBehavior Controls the behavior of the receiver regarding the UIFocus system.voidsetGeometry(@Nullable SCNGeometry value)[@property] geometry Returns the geometry attached to the receiver.voidsetHidden(boolean value)[@property] hidden Determines whether the receiver is displayed.voidsetLight(@Nullable SCNLight value)[@property] light Determines the light attached to the receiver.voidsetMorpher(@Nullable SCNMorpher value)[@property] morpher Returns the morpher attached to the receiver.voidsetMovabilityHint(long value)[@property] movabilityHint Communicates to SceneKit’s rendering system about how you want to move content in your scene; it does not affect your ability to change the node’s position or add animations or physics to the node.voidsetName(@Nullable java.lang.String value)[@property] name Determines the name of the receiver.voidsetNeedsFocusUpdate()Marks this environment as needing a focus update, which if accepted will attempt to reset focus to this environment, or one of its preferred focus environments, on the next update cycle.voidsetOpacity(double value)[@property] opacity Determines the opacity of the receiver.voidsetOrientation(SCNVector4 value)[@property] orientation Determines the receiver's orientation as a unit quaternion.voidsetPaused(boolean value)[@property] paused Controls whether or not the node's actions and animations are updated or paused.voidsetPhysicsBody(@Nullable SCNPhysicsBody value)[@property] physicsBody The description of the physics body of the receiver.voidsetPhysicsField(@Nullable SCNPhysicsField value)[@property] physicsField The description of the physics field of the receiver.voidsetPivot(SCNMatrix4 value)[@property] pivot Determines the receiver's pivot.voidsetPosition(SCNVector3 value)[@property] position Determines the receiver's position.voidsetRendererDelegate(@Nullable SCNNodeRendererDelegate value)[@property] rendererDelegate Specifies the receiver's renderer delegate object.voidsetRendererDelegate_unsafe(@Nullable SCNNodeRendererDelegate value)[@property] rendererDelegate Specifies the receiver's renderer delegate object.voidsetRenderingOrder(long value)[@property] renderingOrder Determines the rendering order of the receiver.voidsetRotation(SCNVector4 value)[@property] rotation Determines the receiver's rotation.voidsetScale(SCNVector3 value)[@property] scale Determines the receiver's scale.voidsetSkinner(@Nullable SCNSkinner value)[@property] skinner Returns the skinner attached to the receiver.voidsetSpeedForAnimationKey(double speed, @NotNull java.lang.String key)Deprecated.voidsetTransform(SCNMatrix4 value)[@property] transform Determines the receiver's transform.static voidsetVersion_static(long aVersion)voidsetWorldOrientation(SCNVector4 value)[@property] worldOrientation Determines the receiver's orientation in world space (relative to the scene's root node).voidsetWorldPosition(SCNVector3 value)[@property] worldPosition Determines the receiver's position in world space (relative to the scene's root node).voidsetWorldTransform(SCNMatrix4 worldTransform)API-Since: 11.0booleanshouldUpdateFocusInContext(@NotNull UIFocusUpdateContext context)Asks whether the system should allow a focus update to occur.@Nullable SCNSkinnerskinner()[@property] skinner Returns the skinner attached to the receiver.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()SCNMatrix4transform()[@property] transform Determines the receiver's transform.voidupdateFocusIfNeeded()Forces focus to be updated immediately.static booleanuseStoredAccessor()Deprecated.static longversion_static()SCNVector3worldFront()[@property] worldFront The local unit -Z axis (0, 0, -1) in world space.SCNVector4worldOrientation()[@property] worldOrientation Determines the receiver's orientation in world space (relative to the scene's root node).SCNVector3worldPosition()[@property] worldPosition Determines the receiver's position in world space (relative to the scene's root node).SCNVector3worldRight()[@property] worldRight The local unit X axis (1, 0, 0) in world space.SCNMatrix4worldTransform()[@property] worldTransform Determines the receiver's transform in world space (relative to the scene's root node).SCNVector3worldUp()[@property] worldUp The local unit Y axis (0, 1, 0) in world space.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SCNNode alloc()
-
allocWithZone
public static SCNNode 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()
-
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)
-
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)
-
new_objc
public static SCNNode new_objc()
-
node
public static SCNNode node()
node Creates and initializes a node instance.
-
nodeWithGeometry
@NotNull public static @NotNull SCNNode nodeWithGeometry(@Nullable @Nullable SCNGeometry geometry)
nodeWithGeometry: Creates and initializes a node instance with the specified geometry attached.- Parameters:
geometry- The geometry to attach.
-
nodeWithMDLObject
public static SCNNode nodeWithMDLObject(@NotNull @NotNull MDLObject mdlObject)
API-Since: 9.0
-
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()
-
actionForKey
@Nullable public @Nullable SCNAction actionForKey(@NotNull @NotNull java.lang.String key)
Description copied from interface:SCNActionableactionForKey: Returns an action associated with a specific key.- Specified by:
actionForKeyin interfaceSCNActionable
-
actionKeys
@NotNull public @NotNull NSArray<java.lang.String> actionKeys()
Description copied from interface:SCNActionable[@property] actionKeys Returns an array containing the keys of all actions currently attached to the receiver.- Specified by:
actionKeysin interfaceSCNActionable
-
addAnimationForKey
public void addAnimationForKey(@NotNull @NotNull SCNAnimation animation, @Nullable @Nullable java.lang.String key)Description copied from interface:SCNAnimatableaddAnimation: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:
addAnimationForKeyin interfaceSCNAnimatable- Parameters:
animation- Added animation.key- May be any string such that only one animation per unique key is added per animatable object.
-
addAudioPlayer
public void addAudioPlayer(@NotNull @NotNull SCNAudioPlayer player)addAudioPlayer: Add an audio player to the node and starts playing it right away. API-Since: 9.0
-
addChildNode
public void addChildNode(@NotNull @NotNull SCNNode child)addChildNode: Appends the node to the receiver’s childNodes array.- Parameters:
child- The node to be added to the receiver’s childNodes array.
-
addParticleSystem
public void addParticleSystem(@NotNull @NotNull SCNParticleSystem system)Add a particle system to the receiver.
-
animationForKey
@Nullable @Deprecated public @Nullable CAAnimation animationForKey(@NotNull @NotNull java.lang.String key)
Deprecated.Description copied from interface:SCNAnimatableanimationForKey: 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:
animationForKeyin interfaceSCNAnimatable- 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:
animationKeysin interfaceSCNAnimatable
-
audioPlayers
@NotNull public @NotNull NSArray<? extends SCNAudioPlayer> audioPlayers()
[@property] audioPlayers Get an array with all the audio players connected and playing on this node. API-Since: 9.0
-
camera
@Nullable public @Nullable SCNCamera camera()
[@property] camera Determines the camera attached to the receiver.
-
castsShadow
public boolean castsShadow()
[@property] castsShadow Determines if the node is rendered in shadow maps. Defaults to YES.
-
categoryBitMask
public long categoryBitMask()
[@property] categoryBitMask Defines what logical 'categories' the receiver belongs too. Defaults to 1. Categories can be used to 1. exclude nodes from the influence of a given light (see SCNLight.categoryBitMask) 2. include/exclude nodes from render passes (see SCNTechnique.h) 3. specify which nodes to use when hit-testing (see SCNHitTestOptionCategoryBitMask)
-
childNodeWithNameRecursively
@Nullable public @Nullable SCNNode childNodeWithNameRecursively(@NotNull @NotNull java.lang.String name, boolean recursively)
childNodeWithName:recursively: Returns the first node found in the node tree with the specified name. The search uses a pre-order tree traversal.- Parameters:
name- The name of the node you are searching for.recursively- Set to YES if you want the search to look through the sub-nodes recursively.
-
childNodes
@NotNull public @NotNull NSArray<? extends SCNNode> childNodes()
[@property] childNodes Returns the child node array of the receiver.
-
childNodesPassingTest
@NotNull public @NotNull NSArray<? extends SCNNode> childNodesPassingTest(@NotNull @NotNull SCNNode.Block_childNodesPassingTest predicate)
childNodesPassingTest: Returns the child nodes of the receiver that passes a test in a given Block. The search is recursive and uses a pre-order tree traversal.- Parameters:
predicate- The block to apply to child nodes of the receiver. The block takes two arguments: "child" is a child node and "stop" is a reference to a Boolean value. The block can set the value to YES to stop further processing of the node hierarchy. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. The Block returns a Boolean value that indicates whether "child" passed the test.
-
clone
@NotNull public @NotNull SCNNode clone()
clone Returns a copy of the receiver. The returned instance is autoreleased. The copy is recursive: every child node will be cloned, too. For a non-recursive copy, use copy instead. The copied nodes will share their attached objects (light, geometry, camera, ...) with the original instances; if you want, for example, to change the materials of the copy independently of the original object, you'll have to copy the geometry of the node separately.- Overrides:
clonein classjava.lang.Object
-
constraints
@Nullable public @Nullable NSArray<? extends SCNConstraint> constraints()
[@property] constraints An array of SCNConstraint that are applied to the receiver. Adding or removing a constraint can be implicitly animated based on the current transaction.
-
convertPositionFromNode
public SCNVector3 convertPositionFromNode(SCNVector3 position, @Nullable @Nullable SCNNode node)
convertPosition:fromNode: Converts a position from the coordinate system of a given node to that of the receiver.- Parameters:
position- A position specified in the local coordinate system of "node".node- The node from whose coordinate system "position" is to be converted. If "node" is nil, this method instead converts from world coordinates.
-
convertPositionToNode
public SCNVector3 convertPositionToNode(SCNVector3 position, @Nullable @Nullable SCNNode node)
convertPosition:toNode: Converts a position from the receiver’s coordinate system to that of the specified node.- Parameters:
position- A position specified in the local coordinate system of the receiver.node- The node into whose coordinate system "position" is to be converted. If "node" is nil, this method instead converts to world coordinates.
-
convertTransformFromNode
public SCNMatrix4 convertTransformFromNode(SCNMatrix4 transform, @Nullable @Nullable SCNNode node)
convertTransform:fromNode: Converts a transform from the coordinate system of a given node to that of the receiver.- Parameters:
transform- A transform specified in the local coordinate system of "node".node- The node from whose coordinate system "transform" is to be converted. If "node" is nil, this method instead converts from world coordinates.
-
convertTransformToNode
public SCNMatrix4 convertTransformToNode(SCNMatrix4 transform, @Nullable @Nullable SCNNode node)
convertTransform:toNode: Converts a transform from the receiver’s coordinate system to that of the specified node.- Parameters:
transform- A transform specified in the local coordinate system of the receiver.node- The node into whose coordinate system "transform" is to be converted. If "node" is nil, this method instead converts to world coordinates.
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateChildNodesUsingBlock
public void enumerateChildNodesUsingBlock(@NotNull @NotNull SCNNode.Block_enumerateChildNodesUsingBlock block)enumerateChildNodesUsingBlock: Executes a given block on each child node under the receiver. The search is recursive and uses a pre-order tree traversal.- Parameters:
block- The block to apply to child nodes of the receiver. The block takes two arguments: "child" is a child node and "stop" is a reference to a Boolean value. The block can set the value to YES to stop further processing of the node hierarchy. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.
-
enumerateHierarchyUsingBlock
public void enumerateHierarchyUsingBlock(@NotNull @NotNull SCNNode.Block_enumerateHierarchyUsingBlock block)enumerateHierarchyUsingBlock: Executes a given block on the receiver and its child nodes. The search is recursive and uses a pre-order tree traversal.- Parameters:
block- The block to apply to the receiver and its child nodes. The block takes two arguments: "node" is a node in the hierarchy of the receiver (including the receiver) and "stop" is a reference to a Boolean value. The block can set the value to YES to stop further processing of the node hierarchy. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. API-Since: 10.0
-
eulerAngles
public SCNVector3 eulerAngles()
[@property] eulerAngles Determines the receiver's euler angles. Animatable. [@dicussion] The order of components in this vector matches the axes of rotation: 1. Pitch (the x component) is the rotation about the node's x-axis (in radians) 2. Yaw (the y component) is the rotation about the node's y-axis (in radians) 3. Roll (the z component) is the rotation about the node's z-axis (in radians) SceneKit applies these rotations in the reverse order of the components: 1. first roll 2. then yaw 3. then pitch
-
filters
@Nullable public @Nullable NSArray<? extends CIFilter> filters()
[@property] filters An array of Core Image filters that are applied to the rendering of the receiver and its child nodes. Animatable. Defaults to nil. Filter properties should be modified by calling setValue:forKeyPath: on each node that the filter is attached to. If the inputs of the filter are modified directly after the filter is attached to a node, the behavior is undefined.
-
flattenedClone
@NotNull public @NotNull SCNNode flattenedClone()
flattenedClone Returns a clone of the node containing a geometry that concatenates all the geometries contained in the node hierarchy. The returned clone is autoreleased.
-
geometry
@Nullable public @Nullable SCNGeometry geometry()
[@property] geometry Returns the geometry attached to the receiver.
-
getBoundingBoxMinMax
public boolean getBoundingBoxMinMax(@Nullable @Nullable SCNVector3 min, @Nullable @Nullable SCNVector3 max)Description copied from interface:SCNBoundingVolumegetBoundingBoxMin:max: Fill the min and max vectors with the min and max vertex of the bounding box. the returned bounding box is in local space of the receiver.- Specified by:
getBoundingBoxMinMaxin interfaceSCNBoundingVolume- Parameters:
min- A pointer to a SCNVector3 to store the min vertex of the bounding box into.max- A pointer to a SCNVector3 to store the max vertex of the bounding box into.
-
getBoundingSphereCenterRadius
public boolean getBoundingSphereCenterRadius(@Nullable @Nullable SCNVector3 center, @Nullable @Nullable org.moe.natj.general.ptr.NFloatPtr radius)Description copied from interface:SCNBoundingVolumegetBoundingSphereCenter:radius: Fill the center vector with the center of the bounding sphere and store the radius of the bounding sphere in 'radius'. the returned bounding sphere is in local space of the receiver.- Specified by:
getBoundingSphereCenterRadiusin interfaceSCNBoundingVolume- Parameters:
center- A pointer to a SCNVector3 to store the center of the bounding sphere into.radius- A pointer to a CGFloat to store the radius of the bounding sphere into.
-
hasActions
public boolean hasActions()
Description copied from interface:SCNActionable[@property] hasActions Returns a Boolean value that indicates whether the node is executing actions.- Specified by:
hasActionsin interfaceSCNActionable
-
hitTestWithSegmentFromPointToPointOptions
@NotNull public @NotNull NSArray<? extends SCNHitTestResult> hitTestWithSegmentFromPointToPointOptions(SCNVector3 pointA, SCNVector3 pointB, @Nullable @Nullable NSDictionary<java.lang.String,?> options)
hitTestWithSegmentFromPoint:toPoint:options: Returns an array of SCNHitTestResult for each node in the receiver's sub tree that intersects the specified segment. See SCNSceneRenderer.h for a screen-space hit testing method.- Parameters:
pointA- The first point of the segment relative to the receiver.pointB- The second point of the segment relative to the receiver.options- Optional parameters (see the "Hit test options" section in SCNSceneRenderer.h for the available options).
-
initWithCoder
public SCNNode initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
insertChildNodeAtIndex
public void insertChildNodeAtIndex(@NotNull @NotNull SCNNode child, long index)insertChildNode:atIndex: Insert a node in the childNodes array at the specified index.- Parameters:
child- The node to insert.index- Index in the childNodes array to insert the node.
-
isAnimationForKeyPaused
@Deprecated public boolean isAnimationForKeyPaused(@NotNull @NotNull java.lang.String key)Deprecated.Description copied from interface:SCNAnimatableisAnimationForKeyPaused: Returns whether the animation for the specified identifier is paused.- Specified by:
isAnimationForKeyPausedin interfaceSCNAnimatable- Parameters:
key- The identifier for the animation to query. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer paused] instead
-
isHidden
public boolean isHidden()
[@property] hidden Determines whether the receiver is displayed. Defaults to NO. Animatable.
-
setHidden
public void setHidden(boolean value)
[@property] hidden Determines whether the receiver is displayed. Defaults to NO. Animatable.
-
isPaused
public boolean isPaused()
[@property] paused Controls whether or not the node's actions and animations are updated or paused. Defaults to NO.
-
setPaused
public void setPaused(boolean value)
[@property] paused Controls whether or not the node's actions and animations are updated or paused. Defaults to NO.
-
light
@Nullable public @Nullable SCNLight light()
[@property] light Determines the light attached to the receiver.
-
morpher
@Nullable public @Nullable SCNMorpher morpher()
[@property] morpher Returns the morpher attached to the receiver.
-
movabilityHint
public long movabilityHint()
[@property] movabilityHint Communicates to SceneKit’s rendering system about how you want to move content in your scene; it does not affect your ability to change the node’s position or add animations or physics to the node. Defaults to SCNMovabilityHintFixed. API-Since: 10.0
-
name
@Nullable public @Nullable java.lang.String name()
[@property] name Determines the name of the receiver.
-
opacity
public double opacity()
[@property] opacity Determines the opacity of the receiver. Default is 1. Animatable.
-
orientation
public SCNVector4 orientation()
[@property] orientation Determines the receiver's orientation as a unit quaternion. Animatable.
-
parentNode
@Nullable public @Nullable SCNNode parentNode()
[@property] parentNode Returns the parent node of the receiver.
-
particleSystems
@Nullable public @Nullable NSArray<? extends SCNParticleSystem> particleSystems()
The particle systems attached to the node.
-
pauseAnimationForKey
@Deprecated public void pauseAnimationForKey(@NotNull @NotNull java.lang.String key)Deprecated.Description copied from interface:SCNAnimatablepauseAnimationForKey: Pause the animation with the given identifier.- Specified by:
pauseAnimationForKeyin interfaceSCNAnimatable- Parameters:
key- The identifier for the animation to pause. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer setPaused:] instead
-
physicsBody
@Nullable public @Nullable SCNPhysicsBody physicsBody()
[@property] physicsBody The description of the physics body of the receiver. Default is nil.
-
physicsField
@Nullable public @Nullable SCNPhysicsField physicsField()
[@property] physicsField The description of the physics field of the receiver. Default is nil.
-
pivot
public SCNMatrix4 pivot()
[@property] pivot Determines the receiver's pivot. Animatable.
-
position
public SCNVector3 position()
[@property] position Determines the receiver's position. Animatable.
-
presentationNode
@NotNull public @NotNull SCNNode presentationNode()
[@property] presentationNode Returns the presentation node. Returns a copy of the node containing all the properties as they were at the start of the current transaction, with any active animations applied. This gives a close approximation to the version of the node that is currently displayed. The effect of attempting to modify the returned node in any way is undefined. The returned node has no parent and no child nodes.
-
removeActionForKey
public void removeActionForKey(@NotNull @NotNull java.lang.String key)Description copied from interface:SCNActionableremoveActionForKey: Removes an action associated with a specific key.- Specified by:
removeActionForKeyin interfaceSCNActionable
-
removeAllActions
public void removeAllActions()
Description copied from interface:SCNActionableremoveAllActions Ends and removes all actions from the node.- Specified by:
removeAllActionsin interfaceSCNActionable
-
removeAllAnimations
public void removeAllAnimations()
Description copied from interface:SCNAnimatableremoveAllAnimations Remove all animations.- Specified by:
removeAllAnimationsin interfaceSCNAnimatable
-
removeAllAudioPlayers
public void removeAllAudioPlayers()
removeAllAudioPlayers Remove all audio players from this node and stop playing them. API-Since: 9.0
-
removeAllParticleSystems
public void removeAllParticleSystems()
Remove all particle systems of the receiver.
-
removeAnimationForKey
public void removeAnimationForKey(@NotNull @NotNull java.lang.String key)Description copied from interface:SCNAnimatableremoveAnimationForKey Remove the animation with the given identifier.- Specified by:
removeAnimationForKeyin interfaceSCNAnimatable- 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:SCNAnimatableremoveAnimationForKey:fadeOutDuration: Smoothly remove the animation with the given identifier.- Specified by:
removeAnimationForKeyFadeOutDurationin interfaceSCNAnimatable- 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
-
removeAudioPlayer
public void removeAudioPlayer(@NotNull @NotNull SCNAudioPlayer player)removeAudioPlayer: Remove the given audio player from this node and stop playing it. API-Since: 9.0
-
removeFromParentNode
public void removeFromParentNode()
removeFromParentNode Removes the node from the childNodes array of the receiver’s parentNode.
-
removeParticleSystem
public void removeParticleSystem(@NotNull @NotNull SCNParticleSystem system)Remove the specified particle system from the receiver.
-
rendererDelegate
@Nullable public @Nullable SCNNodeRendererDelegate rendererDelegate()
[@property] rendererDelegate Specifies the receiver's renderer delegate object. Setting a renderer delegate prevents the SceneKit renderer from drawing the node and lets you use custom OpenGL code instead. The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code.
-
renderingOrder
public long renderingOrder()
[@property] renderingOrder Determines the rendering order of the receiver. Nodes with greater rendering orders are rendered last. Defaults to 0.
-
replaceChildNodeWith
public void replaceChildNodeWith(@NotNull @NotNull SCNNode oldChild, @NotNull @NotNull SCNNode newChild)replaceChildNode:with: Remove `child' from the childNode array of the receiver and insert 'child2' if non-nil in its position. If the parentNode of `child' is not the receiver, the behavior is undefined.- Parameters:
oldChild- The node to replace in the childNodes array.newChild- The new node that will replace the previous one.
-
resumeAnimationForKey
@Deprecated public void resumeAnimationForKey(@NotNull @NotNull java.lang.String key)Deprecated.Description copied from interface:SCNAnimatableresumeAnimationForKey: Resume the animation with the given identifier.- Specified by:
resumeAnimationForKeyin interfaceSCNAnimatable- Parameters:
key- The identifier for the animation to resume. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer setPaused:] instead
-
rotation
public SCNVector4 rotation()
[@property] rotation Determines the receiver's rotation. Animatable. The rotation is axis angle rotation. The three first components are the axis, the fourth one is the rotation (in radian).
-
runAction
public void runAction(@NotNull @NotNull SCNAction action)Description copied from interface:SCNActionablerunAction: Adds an action to the list of actions executed by the node.- Specified by:
runActionin interfaceSCNActionable
-
runActionCompletionHandler
public void runActionCompletionHandler(@NotNull @NotNull SCNAction action, @Nullable SCNActionable.Block_runActionCompletionHandler block)Description copied from interface:SCNActionablerunAction:completionHandler: Adds an action to the list of actions executed by the node. Your block is called when the action completes.- Specified by:
runActionCompletionHandlerin interfaceSCNActionable
-
runActionForKey
public void runActionForKey(@NotNull @NotNull SCNAction action, @Nullable @Nullable java.lang.String key)Description copied from interface:SCNActionablerunAction:forKey: Adds an identifiable action to the list of actions executed by the node.- Specified by:
runActionForKeyin interfaceSCNActionable
-
runActionForKeyCompletionHandler
public void runActionForKeyCompletionHandler(@NotNull @NotNull SCNAction action, @Nullable @Nullable java.lang.String key, @Nullable SCNActionable.Block_runActionForKeyCompletionHandler block)Description copied from interface:SCNActionablerunAction:forKey:completionHandler: Adds an identifiable action to the list of actions executed by the node. Your block is called when the action completes.- Specified by:
runActionForKeyCompletionHandlerin interfaceSCNActionable
-
scale
public SCNVector3 scale()
[@property] scale Determines the receiver's scale. Animatable.
-
setBoundingBoxMinMax
public void setBoundingBoxMinMax(@Nullable @Nullable SCNVector3 min, @Nullable @Nullable SCNVector3 max)Description copied from interface:SCNBoundingVolumesetBoundingBoxMin:max: Override the receiver bounding box with the min and max vectors provided (in local space of the receiver). Passing nil as arguments will recompute the original bounding box of the receiver.- Specified by:
setBoundingBoxMinMaxin interfaceSCNBoundingVolume- Parameters:
min- A pointer to a SCNVector3 representing the min vertex of the desired bounding box.max- A pointer to a SCNVector3 representing the max vertex of the desired bounding box.
-
setCamera
public void setCamera(@Nullable @Nullable SCNCamera value)[@property] camera Determines the camera attached to the receiver.
-
setCastsShadow
public void setCastsShadow(boolean value)
[@property] castsShadow Determines if the node is rendered in shadow maps. Defaults to YES.
-
setCategoryBitMask
public void setCategoryBitMask(long value)
[@property] categoryBitMask Defines what logical 'categories' the receiver belongs too. Defaults to 1. Categories can be used to 1. exclude nodes from the influence of a given light (see SCNLight.categoryBitMask) 2. include/exclude nodes from render passes (see SCNTechnique.h) 3. specify which nodes to use when hit-testing (see SCNHitTestOptionCategoryBitMask)
-
setConstraints
public void setConstraints(@Nullable @Nullable NSArray<? extends SCNConstraint> value)[@property] constraints An array of SCNConstraint that are applied to the receiver. Adding or removing a constraint can be implicitly animated based on the current transaction.
-
setEulerAngles
public void setEulerAngles(SCNVector3 value)
[@property] eulerAngles Determines the receiver's euler angles. Animatable. [@dicussion] The order of components in this vector matches the axes of rotation: 1. Pitch (the x component) is the rotation about the node's x-axis (in radians) 2. Yaw (the y component) is the rotation about the node's y-axis (in radians) 3. Roll (the z component) is the rotation about the node's z-axis (in radians) SceneKit applies these rotations in the reverse order of the components: 1. first roll 2. then yaw 3. then pitch
-
setFilters
public void setFilters(@Nullable @Nullable NSArray<? extends CIFilter> value)[@property] filters An array of Core Image filters that are applied to the rendering of the receiver and its child nodes. Animatable. Defaults to nil. Filter properties should be modified by calling setValue:forKeyPath: on each node that the filter is attached to. If the inputs of the filter are modified directly after the filter is attached to a node, the behavior is undefined.
-
setGeometry
public void setGeometry(@Nullable @Nullable SCNGeometry value)[@property] geometry Returns the geometry attached to the receiver.
-
setLight
public void setLight(@Nullable @Nullable SCNLight value)[@property] light Determines the light attached to the receiver.
-
setMorpher
public void setMorpher(@Nullable @Nullable SCNMorpher value)[@property] morpher Returns the morpher attached to the receiver.
-
setMovabilityHint
public void setMovabilityHint(long value)
[@property] movabilityHint Communicates to SceneKit’s rendering system about how you want to move content in your scene; it does not affect your ability to change the node’s position or add animations or physics to the node. Defaults to SCNMovabilityHintFixed. API-Since: 10.0
-
setName
public void setName(@Nullable @Nullable java.lang.String value)[@property] name Determines the name of the receiver.
-
setOpacity
public void setOpacity(double value)
[@property] opacity Determines the opacity of the receiver. Default is 1. Animatable.
-
setOrientation
public void setOrientation(SCNVector4 value)
[@property] orientation Determines the receiver's orientation as a unit quaternion. Animatable.
-
setPhysicsBody
public void setPhysicsBody(@Nullable @Nullable SCNPhysicsBody value)[@property] physicsBody The description of the physics body of the receiver. Default is nil.
-
setPhysicsField
public void setPhysicsField(@Nullable @Nullable SCNPhysicsField value)[@property] physicsField The description of the physics field of the receiver. Default is nil.
-
setPivot
public void setPivot(SCNMatrix4 value)
[@property] pivot Determines the receiver's pivot. Animatable.
-
setPosition
public void setPosition(SCNVector3 value)
[@property] position Determines the receiver's position. Animatable.
-
setRendererDelegate_unsafe
public void setRendererDelegate_unsafe(@Nullable @Nullable SCNNodeRendererDelegate value)[@property] rendererDelegate Specifies the receiver's renderer delegate object. Setting a renderer delegate prevents the SceneKit renderer from drawing the node and lets you use custom OpenGL code instead. The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code.
-
setRendererDelegate
public void setRendererDelegate(@Nullable @Nullable SCNNodeRendererDelegate value)[@property] rendererDelegate Specifies the receiver's renderer delegate object. Setting a renderer delegate prevents the SceneKit renderer from drawing the node and lets you use custom OpenGL code instead. The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code.
-
setRenderingOrder
public void setRenderingOrder(long value)
[@property] renderingOrder Determines the rendering order of the receiver. Nodes with greater rendering orders are rendered last. Defaults to 0.
-
setRotation
public void setRotation(SCNVector4 value)
[@property] rotation Determines the receiver's rotation. Animatable. The rotation is axis angle rotation. The three first components are the axis, the fourth one is the rotation (in radian).
-
setScale
public void setScale(SCNVector3 value)
[@property] scale Determines the receiver's scale. Animatable.
-
setSkinner
public void setSkinner(@Nullable @Nullable SCNSkinner value)[@property] skinner Returns the skinner attached to the receiver.
-
setSpeedForAnimationKey
@Deprecated public void setSpeedForAnimationKey(double speed, @NotNull @NotNull java.lang.String key)Deprecated.Description copied from interface:SCNAnimatablesetSpeed:forAnimationKey: Update the animation speed of the animation with the given identifier.- Specified by:
setSpeedForAnimationKeyin interfaceSCNAnimatable- 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
-
setTransform
public void setTransform(SCNMatrix4 value)
[@property] transform Determines the receiver's transform. Animatable. The transform is the combination of the position, rotation and scale defined below. So when the transform is set, the receiver's position, rotation and scale are changed to match the new transform.
-
skinner
@Nullable public @Nullable SCNSkinner skinner()
[@property] skinner Returns the skinner attached to the receiver.
-
_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
-
transform
public SCNMatrix4 transform()
[@property] transform Determines the receiver's transform. Animatable. The transform is the combination of the position, rotation and scale defined below. So when the transform is set, the receiver's position, rotation and scale are changed to match the new transform.
-
worldTransform
public SCNMatrix4 worldTransform()
[@property] worldTransform Determines the receiver's transform in world space (relative to the scene's root node). Animatable.
-
addAnimationPlayerForKey
public void addAnimationPlayerForKey(@NotNull @NotNull SCNAnimationPlayer player, @Nullable @Nullable java.lang.String key)Description copied from interface:SCNAnimatableaddAnimationPlayer: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:
addAnimationPlayerForKeyin interfaceSCNAnimatable- 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:SCNAnimatableanimationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists. API-Since: 11.0- Specified by:
animationPlayerForKeyin interfaceSCNAnimatable- Parameters:
key- The identifier for the animation player to retrieve.
-
canBecomeFocused
public boolean canBecomeFocused()
Description copied from interface:UIFocusItemIndicates whether or not this item is currently allowed to become focused. Returning NO restricts the item from being focusable, even if it is visible in the user interface. For example, UIControls return NO if they are disabled.- Specified by:
canBecomeFocusedin interfaceUIFocusItem
-
convertVectorFromNode
public SCNVector3 convertVectorFromNode(SCNVector3 vector, @Nullable @Nullable SCNNode node)
Converts a vector from the coordinate system of a given node to that of the receiver.- Parameters:
vector- A vector specified in the local coordinate system of "node".node- The node defining the space to which the vector should be transformed to. If "node" is nil, this method instead converts from world coordinates.- Returns:
- vector transformed from node space to reveiver local space. API-Since: 11.0
-
convertVectorToNode
public SCNVector3 convertVectorToNode(SCNVector3 vector, @Nullable @Nullable SCNNode node)
Converts a vector from the coordinate system of a given node to that of the receiver.- Parameters:
vector- A vector specified in the local coordinate system the receiver.node- The node defining the space from which the vector should be transformed. If "node" is nil, this method instead converts from world coordinates.- Returns:
- vector transformed from receiver local space to node local space. API-Since: 11.0
-
didUpdateFocusInContextWithAnimationCoordinator
public void didUpdateFocusInContextWithAnimationCoordinator(@NotNull @NotNull UIFocusUpdateContext context, @NotNull @NotNull UIFocusAnimationCoordinator coordinator)Description copied from interface:UIFocusEnvironmentCalled when the screen’s focused item has been updated to a new item. Use the animation coordinator to schedule focus-related animations in response to the update.- Specified by:
didUpdateFocusInContextWithAnimationCoordinatorin interfaceUIFocusEnvironment
-
entity
@Nullable public @Nullable GKEntity entity()
The GKEntity associated with the node via a GKSCNNodeComponent.- See Also:
API-Since: 11.0
-
focusBehavior
public long focusBehavior()
[@property] focusBehavior Controls the behavior of the receiver regarding the UIFocus system. Defaults to SCNNodeFocusBehaviorNone. API-Since: 11.0
-
localFront
public static SCNVector3 localFront()
[@property] localFront The local unit -Z axis (0, 0, -1). API-Since: 11.0
-
localRight
public static SCNVector3 localRight()
[@property] localRight The local unit X axis (1, 0, 0). API-Since: 11.0
-
localRotateBy
public void localRotateBy(SCNVector4 rotation)
Apply a the given rotation to the current one.- Parameters:
rotation- rotation in local space. API-Since: 11.0
-
localTranslateBy
public void localTranslateBy(SCNVector3 translation)
Translate the current node position along the given vector in local space.- Parameters:
translation- the translation in local space. API-Since: 11.0
-
localUp
public static SCNVector3 localUp()
[@property] localUp The local unit Y axis (0, 1, 0). API-Since: 11.0
-
lookAt
public void lookAt(SCNVector3 worldTarget)
Convenience for calling lookAt:up:localFront: with worldUp set to `self.worldUp` and localFront [SCNNode localFront].- Parameters:
worldTarget- target position in world space. API-Since: 11.0
-
lookAtUpLocalFront
public void lookAtUpLocalFront(SCNVector3 worldTarget, SCNVector3 worldUp, SCNVector3 localFront)
Set the orientation of the node so its front vector is pointing toward a given target. Using a reference up vector in world space and a front vector in local space.- Parameters:
worldTarget- position in world space.worldUp- the up vector in world space.localFront- the front vector in local space. API-Since: 11.0
-
preferredFocusEnvironments
@NotNull public @NotNull NSArray<?> preferredFocusEnvironments()
Description copied from interface:UIFocusEnvironmentThe preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically. Starting from the target environment, each preferred focus environment is recursively searched in the order of the array until an eligible, focusable item is found. Preferred focus environments can include focusable and non-focusable items, in addition to non-item environments. Returning an empty array is equivalent to returning an array containing only 'self'.- Specified by:
preferredFocusEnvironmentsin interfaceUIFocusEnvironment
-
preferredFocusedView
@Nullable @Deprecated public @Nullable UIView preferredFocusedView()
Deprecated.Description copied from interface:UIFocusEnvironmentAPI-Since: 9.0 Deprecated-Since: 10.0- Specified by:
preferredFocusedViewin interfaceUIFocusEnvironment
-
removeAnimationForKeyBlendOutDuration
public void removeAnimationForKeyBlendOutDuration(@NotNull @NotNull java.lang.String key, double duration)Description copied from interface:SCNAnimatableremoveAnimationForKey:blendOutDuration: Smoothly remove the animation with the given identifier.- Specified by:
removeAnimationForKeyBlendOutDurationin interfaceSCNAnimatable- Parameters:
key- The identifier for the animation to remove.duration- The blend out duration used to remove the animation. API-Since: 11.0
-
rotateByAroundTarget
public void rotateByAroundTarget(SCNVector4 worldRotation, SCNVector3 worldTarget)
Apply a rotation relative to a target point in parent space.- Parameters:
worldRotation- rotation to apply in world space.worldTarget- position of the target in world space. API-Since: 11.0
-
setEntity_unsafe
public void setEntity_unsafe(@Nullable @Nullable GKEntity value)The GKEntity associated with the node via a GKSCNNodeComponent.- See Also:
API-Since: 11.0
-
setEntity
public void setEntity(@Nullable @Nullable GKEntity value)The GKEntity associated with the node via a GKSCNNodeComponent.- See Also:
API-Since: 11.0
-
setFocusBehavior
public void setFocusBehavior(long value)
[@property] focusBehavior Controls the behavior of the receiver regarding the UIFocus system. Defaults to SCNNodeFocusBehaviorNone. API-Since: 11.0
-
setNeedsFocusUpdate
public void setNeedsFocusUpdate()
Description copied from interface:UIFocusEnvironmentMarks this environment as needing a focus update, which if accepted will attempt to reset focus to this environment, or one of its preferred focus environments, on the next update cycle. If this environment does not currently contain the focused item, then calling this method has no effect. If a parent of this environment is also requesting focus, then this environment's request is rejected in favor of the parent's. NOTE: If you provide your own implementation, it must call `[[UIFocusSystem focusSystemForEnvironment:self] requestFocusUpdateToEnvironment:self]`;- Specified by:
setNeedsFocusUpdatein interfaceUIFocusEnvironment
-
setWorldOrientation
public void setWorldOrientation(SCNVector4 value)
[@property] worldOrientation Determines the receiver's orientation in world space (relative to the scene's root node). Animatable. API-Since: 11.0
-
setWorldPosition
public void setWorldPosition(SCNVector3 value)
[@property] worldPosition Determines the receiver's position in world space (relative to the scene's root node). API-Since: 11.0
-
setWorldTransform
public void setWorldTransform(SCNMatrix4 worldTransform)
API-Since: 11.0
-
shouldUpdateFocusInContext
public boolean shouldUpdateFocusInContext(@NotNull @NotNull UIFocusUpdateContext context)Description copied from interface:UIFocusEnvironmentAsks whether the system should allow a focus update to occur.- Specified by:
shouldUpdateFocusInContextin interfaceUIFocusEnvironment
-
updateFocusIfNeeded
public void updateFocusIfNeeded()
Description copied from interface:UIFocusEnvironmentForces focus to be updated immediately. If there is an environment that has requested a focus update via -setNeedsFocusUpdate, and the request was accepted, then focus will be updated to that environment or one of its preferred focus environments. NOTE: If you provide your own implementation, it must call `[[UIFocusSystem focusSystemForEnvironment:self] updateFocusIfNeeded];`.- Specified by:
updateFocusIfNeededin interfaceUIFocusEnvironment
-
worldFront
public SCNVector3 worldFront()
[@property] worldFront The local unit -Z axis (0, 0, -1) in world space. API-Since: 11.0
-
worldOrientation
public SCNVector4 worldOrientation()
[@property] worldOrientation Determines the receiver's orientation in world space (relative to the scene's root node). Animatable. API-Since: 11.0
-
worldPosition
public SCNVector3 worldPosition()
[@property] worldPosition Determines the receiver's position in world space (relative to the scene's root node). API-Since: 11.0
-
worldRight
public SCNVector3 worldRight()
[@property] worldRight The local unit X axis (1, 0, 0) in world space. API-Since: 11.0
-
worldUp
public SCNVector3 worldUp()
[@property] worldUp The local unit Y axis (0, 1, 0) in world space. API-Since: 11.0
-
didHintFocusMovement
public void didHintFocusMovement(@NotNull @NotNull UIFocusMovementHint hint)Description copied from interface:UIFocusItemCalled whenever this focus item is hinting to the user a focus movement might occur. The provided object is mutated by the focus engine whenever the user's finger moves. API-Since: 12.0- Specified by:
didHintFocusMovementin interfaceUIFocusItem
-
focusItemContainer
@Nullable public @Nullable UIFocusItemContainer focusItemContainer()
Description copied from interface:UIFocusEnvironmentThe container of any child focus items in this focus environment, or nil if no container exists. API-Since: 12.0- Specified by:
focusItemContainerin interfaceUIFocusEnvironment
-
frame
public CGRect frame()
Description copied from interface:UIFocusItemThe geometric frame of this item, represented in the `coordinateSpace` of the UIFocusItemContainer in which it is contained. API-Since: 12.0- Specified by:
framein interfaceUIFocusItem
-
parentFocusEnvironment
@Nullable public @Nullable UIFocusEnvironment parentFocusEnvironment()
Description copied from interface:UIFocusEnvironmentThe parent focus environment of this environment, or nil if no parent exists. NOTE: If you implement this method, you must return a non-nil value for parent focus environment, otherwise your focus environment will not participate in focus interactions. API-Since: 12.0- Specified by:
parentFocusEnvironmentin interfaceUIFocusEnvironment
-
focusGroupIdentifier
@Nullable public @Nullable java.lang.String focusGroupIdentifier()
Description copied from interface:UIFocusEnvironmentThe identifier of the focus group that this view belongs to. If this is nil, subviews inherit their superview's focus group. API-Since: 14.0- Specified by:
focusGroupIdentifierin interfaceUIFocusEnvironment
-
focusEffect
@Nullable public @Nullable UIFocusEffect focusEffect()
Description copied from interface:UIFocusItemDescribes a visual effect to apply when this item is focused. When not implemented, the system may create a default effect for this item. Returning nil indicates that the system should not apply any visual effects, and that the app will handle applying the appropriate visuals. API-Since: 15.0- Specified by:
focusEffectin interfaceUIFocusItem
-
focusGroupPriority
public long focusGroupPriority()
Description copied from interface:UIFocusItemThe priority this item has in its focus group. The higher the priority, the more likely it is to get picked when focus moves into this group. Note: this method can only be used to increase an item's priority, not decrease it. For example if an item is currently selected, the actual priority of this item will be determined by MAX(focusGroupPriority, UIFocusGroupPrioritySelected). API-Since: 15.0- Specified by:
focusGroupPriorityin interfaceUIFocusItem
-
isTransparentFocusItem
public boolean isTransparentFocusItem()
Description copied from interface:UIFocusItemIf this returns YES, the focus item is considered transparent in terms of occlusion. Items that are behind it are focusable. This value is ignored when the item is focusable, in which case the item is never considered transparent. API-Since: 15.0- Specified by:
isTransparentFocusItemin interfaceUIFocusItem
-
removeAllAnimationsWithBlendOutDuration
public void removeAllAnimationsWithBlendOutDuration(double duration)
Description copied from interface:SCNAnimatableremoveAllAnimationsWithBlendOutDuration Smoothly remove all animations.- Specified by:
removeAllAnimationsWithBlendOutDurationin interfaceSCNAnimatable- Parameters:
duration- The blend out duration used to remove the animation. API-Since: 15.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-