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.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 Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()SCNActionactionForKey(java.lang.String key)actionForKey: Returns an action associated with a specific key.NSArray<java.lang.String>actionKeys()[@property] actionKeys Returns an array containing the keys of all actions currently attached to the receiver.voidaddAnimationForKey(SCNAnimation animation, java.lang.String key)addAnimation:forKey: Adds and runs an animation Only SCNAnimation (preferred), CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are supported.voidaddAnimationPlayerForKey(SCNAnimationPlayer player, java.lang.String key)addAnimationPlayer:forKey: Add an animation player.voidaddAudioPlayer(SCNAudioPlayer player)addAudioPlayer: Add an audio player to the node and starts playing it right away.voidaddChildNode(SCNNode child)addChildNode: Appends the node to the receiver’s childNodes array.voidaddParticleSystem(SCNParticleSystem system)Add a particle system to the receiver.static SCNNodealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)CAAnimationanimationForKey(java.lang.String key)animationForKey: Returns the animation with the given identifier This will return nil if no such animation exists.NSArray<java.lang.String>animationKeys()[@property] animationKeys Returns an array containing the keys of all animations currently attached to the receiver.SCNAnimationPlayeranimationPlayerForKey(java.lang.String key)animationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists.NSArray<? extends SCNAudioPlayer>audioPlayers()[@property] audioPlayers Get an array with all the audio players connected and playing on this node.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)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(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, 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.NSArray<? extends SCNNode>childNodes()[@property] childNodes Returns the child node array of the receiver.NSArray<? extends SCNNode>childNodesPassingTest(SCNNode.Block_childNodesPassingTest predicate)childNodesPassingTest: Returns the child nodes of the receiver that passes a test in a given Block.SCNNodechildNodeWithNameRecursively(java.lang.String name, boolean recursively)childNodeWithName:recursively: Returns the first node found in the node tree with the specified name.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()java.lang.Objectclone()clone Returns a copy of the receiver.NSArray<? extends SCNConstraint>constraints()[@property] constraints An array of SCNConstraint that are applied to the receiver.SCNVector3convertPositionFromNode(SCNVector3 position, SCNNode node)convertPosition:fromNode: Converts a position from the coordinate system of a given node to that of the receiver.SCNVector3convertPositionToNode(SCNVector3 position, SCNNode node)convertPosition:toNode: Converts a position from the receiver’s coordinate system to that of the specified node.SCNMatrix4convertTransformFromNode(SCNMatrix4 transform, SCNNode node)convertTransform:fromNode: Converts a transform from the coordinate system of a given node to that of the receiver.SCNMatrix4convertTransformToNode(SCNMatrix4 transform, SCNNode node)convertTransform:toNode: Converts a transform from the receiver’s coordinate system to that of the specified node.SCNVector3convertVectorFromNode(SCNVector3 vector, SCNNode node)Converts a vector from the coordinate system of a given node to that of the receiver.SCNVector3convertVectorToNode(SCNVector3 vector, SCNNode node)Converts a vector from the coordinate system of a given node to that of the receiver.java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddidHintFocusMovement(UIFocusMovementHint hint)Called whenever this focus item is hinting to the user a focus movement might occur.voiddidUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)Called when the screen’s focused item has been updated to a new item.voidencodeWithCoder(NSCoder coder)GKEntityentity()The GKEntity associated with the node via a GKSCNNodeComponent.voidenumerateChildNodesUsingBlock(SCNNode.Block_enumerateChildNodesUsingBlock block)enumerateChildNodesUsingBlock: Executes a given block on each child node under the receiver.voidenumerateHierarchyUsingBlock(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.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.java.lang.ObjectflattenedClone()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.java.lang.StringfocusGroupIdentifier()The identifier of the focus group that this view belongs to.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.SCNGeometrygeometry()[@property] geometry Returns the geometry attached to the receiver.booleangetBoundingBoxMinMax(SCNVector3 min, SCNVector3 max)getBoundingBoxMin:max: Fill the min and max vectors with the min and max vertex of the bounding box.booleangetBoundingSphereCenterRadius(SCNVector3 center, 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()NSArray<? extends SCNHitTestResult>hitTestWithSegmentFromPointToPointOptions(SCNVector3 pointA, SCNVector3 pointB, 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(NSCoder coder)NS_DESIGNATED_INITIALIZERvoidinsertChildNodeAtIndex(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(java.lang.String key)isAnimationForKeyPaused: Returns whether the animation for the specified identifier is paused.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)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)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.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.java.lang.Stringname()[@property] name Determines the name of the receiver.static java.lang.Objectnew_objc()static SCNNodenode()node Creates and initializes a node instance.static SCNNodenodeWithGeometry(SCNGeometry geometry)nodeWithGeometry: Creates and initializes a node instance with the specified geometry attached.static SCNNodenodeWithMDLObject(MDLObject mdlObject)doubleopacity()[@property] opacity Determines the opacity of the receiver.SCNVector4orientation()[@property] orientation Determines the receiver's orientation as a unit quaternion.UIFocusEnvironmentparentFocusEnvironment()The parent focus environment of this environment, or nil if no parent exists.SCNNodeparentNode()[@property] parentNode Returns the parent node of the receiver.NSArray<? extends SCNParticleSystem>particleSystems()The particle systems attached to the node.voidpauseAnimationForKey(java.lang.String key)pauseAnimationForKey: Pause the animation with the given identifier.SCNPhysicsBodyphysicsBody()[@property] physicsBody The description of the physics body of the receiver.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.UIViewpreferredFocusedView()NSArray<?>preferredFocusEnvironments()The preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically.SCNNodepresentationNode()[@property] presentationNode Returns the presentation node.voidremoveActionForKey(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.voidremoveAllAudioPlayers()removeAllAudioPlayers Remove all audio players from this node and stop playing them.voidremoveAllParticleSystems()Remove all particle systems of the receiver.voidremoveAnimationForKey(java.lang.String key)removeAnimationForKey Remove the animation with the given identifier.voidremoveAnimationForKeyBlendOutDuration(java.lang.String key, double duration)Smoothly remove the animation with the given identifier.voidremoveAnimationForKeyFadeOutDuration(java.lang.String key, double duration)removeAnimationForKey:fadeOutDuration: Smoothly remove the animation with the given identifier.voidremoveAudioPlayer(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(SCNParticleSystem system)Remove the specified particle system from the receiver.SCNNodeRendererDelegaterendererDelegate()[@property] rendererDelegate Specifies the receiver's renderer delegate object.longrenderingOrder()[@property] renderingOrder Determines the rendering order of the receiver.voidreplaceChildNodeWith(SCNNode oldChild, 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(java.lang.String key)resumeAnimationForKey: Resume the animation with the given identifier.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(SCNAction action)runAction: Adds an action to the list of actions executed by the node.voidrunActionCompletionHandler(SCNAction action, SCNActionable.Block_runActionCompletionHandler block)runAction:completionHandler: Adds an action to the list of actions executed by the node.voidrunActionForKey(SCNAction action, java.lang.String key)runAction:forKey: Adds an identifiable action to the list of actions executed by the node.voidrunActionForKeyCompletionHandler(SCNAction action, 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(SCNVector3 min, SCNVector3 max)setBoundingBoxMin:max: Override the receiver bounding box with the min and max vectors provided (in local space of the receiver).voidsetCamera(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(NSArray<? extends SCNConstraint> value)[@property] constraints An array of SCNConstraint that are applied to the receiver.voidsetEntity(GKEntity value)The GKEntity associated with the node via a GKSCNNodeComponent.voidsetEntity_unsafe(GKEntity value)The GKEntity associated with the node via a GKSCNNodeComponent.voidsetEulerAngles(SCNVector3 value)[@property] eulerAngles Determines the receiver's euler angles.voidsetFilters(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(SCNGeometry value)[@property] geometry Returns the geometry attached to the receiver.voidsetHidden(boolean value)[@property] hidden Determines whether the receiver is displayed.voidsetLight(SCNLight value)[@property] light Determines the light attached to the receiver.voidsetMorpher(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(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(SCNPhysicsBody value)[@property] physicsBody The description of the physics body of the receiver.voidsetPhysicsField(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(SCNNodeRendererDelegate value)[@property] rendererDelegate Specifies the receiver's renderer delegate object.voidsetRendererDelegate_unsafe(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(SCNSkinner value)[@property] skinner Returns the skinner attached to the receiver.voidsetSpeedForAnimationKey(double speed, java.lang.String key)setSpeed:forAnimationKey: Update the animation speed of the animation with the given identifier.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)booleanshouldUpdateFocusInContext(UIFocusUpdateContext context)Asks whether the system should allow a focus update to occur.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 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, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SCNNode alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
node
public static SCNNode node()
node Creates and initializes a node instance.
-
nodeWithGeometry
public static SCNNode nodeWithGeometry(SCNGeometry geometry)
nodeWithGeometry: Creates and initializes a node instance with the specified geometry attached.- Parameters:
geometry- The geometry to attach.
-
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
public SCNAction actionForKey(java.lang.String key)
Description copied from interface:SCNActionableactionForKey: Returns an action associated with a specific key.- Specified by:
actionForKeyin interfaceSCNActionable
-
actionKeys
public 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(SCNAnimation animation, 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(SCNAudioPlayer player)
addAudioPlayer: Add an audio player to the node and starts playing it right away.
-
addChildNode
public void addChildNode(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(SCNParticleSystem system)
Add a particle system to the receiver.
-
animationForKey
public CAAnimation animationForKey(java.lang.String key)
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.- Specified by:
animationForKeyin interfaceSCNAnimatable- Parameters:
key- The identifier for the animation to retrieve.
-
animationKeys
public 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
public NSArray<? extends SCNAudioPlayer> audioPlayers()
[@property] audioPlayers Get an array with all the audio players connected and playing on this node.
-
camera
public 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
public SCNNode childNodeWithNameRecursively(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
public NSArray<? extends SCNNode> childNodes()
[@property] childNodes Returns the child node array of the receiver.
-
childNodesPassingTest
public NSArray<? extends SCNNode> childNodesPassingTest(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
public java.lang.Object 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
public 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, 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, 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, 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, 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
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateChildNodesUsingBlock
public void enumerateChildNodesUsingBlock(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(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.
-
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
public 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
public java.lang.Object 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
public SCNGeometry geometry()
[@property] geometry Returns the geometry attached to the receiver.
-
getBoundingBoxMinMax
public boolean getBoundingBoxMinMax(SCNVector3 min, 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(SCNVector3 center, 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
public NSArray<? extends SCNHitTestResult> hitTestWithSegmentFromPointToPointOptions(SCNVector3 pointA, SCNVector3 pointB, 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(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
insertChildNodeAtIndex
public void insertChildNodeAtIndex(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
public boolean isAnimationForKeyPaused(java.lang.String key)
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.
-
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
public SCNLight light()
[@property] light Determines the light attached to the receiver.
-
morpher
public 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.
-
name
public 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
public SCNNode parentNode()
[@property] parentNode Returns the parent node of the receiver.
-
particleSystems
public NSArray<? extends SCNParticleSystem> particleSystems()
The particle systems attached to the node.
-
pauseAnimationForKey
public void pauseAnimationForKey(java.lang.String key)
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.
-
physicsBody
public SCNPhysicsBody physicsBody()
[@property] physicsBody The description of the physics body of the receiver. Default is nil.
-
physicsField
public 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
public 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(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.
-
removeAllParticleSystems
public void removeAllParticleSystems()
Remove all particle systems of the receiver.
-
removeAnimationForKey
public void removeAnimationForKey(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
public void removeAnimationForKeyFadeOutDuration(java.lang.String key, double duration)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.
-
removeAudioPlayer
public void removeAudioPlayer(SCNAudioPlayer player)
removeAudioPlayer: Remove the given audio player from this node and stop playing it.
-
removeFromParentNode
public void removeFromParentNode()
removeFromParentNode Removes the node from the childNodes array of the receiver’s parentNode.
-
removeParticleSystem
public void removeParticleSystem(SCNParticleSystem system)
Remove the specified particle system from the receiver.
-
rendererDelegate
public 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(SCNNode oldChild, 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
public void resumeAnimationForKey(java.lang.String key)
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.
-
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(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(SCNAction action, 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(SCNAction action, 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(SCNAction action, java.lang.String key, 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(SCNVector3 min, 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(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(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(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(SCNGeometry value)
[@property] geometry Returns the geometry attached to the receiver.
-
setLight
public void setLight(SCNLight value)
[@property] light Determines the light attached to the receiver.
-
setMorpher
public void setMorpher(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.
-
setName
public void setName(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(SCNPhysicsBody value)
[@property] physicsBody The description of the physics body of the receiver. Default is nil.
-
setPhysicsField
public void setPhysicsField(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(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(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(SCNSkinner value)
[@property] skinner Returns the skinner attached to the receiver.
-
setSpeedForAnimationKey
public void setSpeedForAnimationKey(double speed, java.lang.String key)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.
-
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
public 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(SCNAnimationPlayer player, 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
public SCNAnimationPlayer animationPlayerForKey(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.- 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, 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.
-
convertVectorToNode
public SCNVector3 convertVectorToNode(SCNVector3 vector, 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.
-
didUpdateFocusInContextWithAnimationCoordinator
public void didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, 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
public GKEntity entity()
The GKEntity associated with the node via a GKSCNNodeComponent.- See Also:
GKEntity
-
focusBehavior
public long focusBehavior()
[@property] focusBehavior Controls the behavior of the receiver regarding the UIFocus system. Defaults to SCNNodeFocusBehaviorNone.
-
localFront
public static SCNVector3 localFront()
[@property] localFront The local unit -Z axis (0, 0, -1).
-
localRight
public static SCNVector3 localRight()
[@property] localRight The local unit X axis (1, 0, 0).
-
localRotateBy
public void localRotateBy(SCNVector4 rotation)
Apply a the given rotation to the current one.- Parameters:
rotation- rotation in local space.
-
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.
-
localUp
public static SCNVector3 localUp()
[@property] localUp The local unit Y axis (0, 1, 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.
-
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.
-
preferredFocusEnvironments
public 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
public UIView preferredFocusedView()
- Specified by:
preferredFocusedViewin interfaceUIFocusEnvironment
-
removeAnimationForKeyBlendOutDuration
public void removeAnimationForKeyBlendOutDuration(java.lang.String key, double duration)Description copied from interface:SCNAnimatableSmoothly 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.
-
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.
-
setEntity_unsafe
public void setEntity_unsafe(GKEntity value)
The GKEntity associated with the node via a GKSCNNodeComponent.- See Also:
GKEntity
-
setEntity
public void setEntity(GKEntity value)
The GKEntity associated with the node via a GKSCNNodeComponent.- See Also:
GKEntity
-
setFocusBehavior
public void setFocusBehavior(long value)
[@property] focusBehavior Controls the behavior of the receiver regarding the UIFocus system. Defaults to SCNNodeFocusBehaviorNone.
-
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.
-
setWorldPosition
public void setWorldPosition(SCNVector3 value)
[@property] worldPosition Determines the receiver's position in world space (relative to the scene's root node).
-
setWorldTransform
public void setWorldTransform(SCNMatrix4 worldTransform)
-
shouldUpdateFocusInContext
public boolean shouldUpdateFocusInContext(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.
-
worldOrientation
public SCNVector4 worldOrientation()
[@property] worldOrientation Determines the receiver's orientation in world space (relative to the scene's root node). Animatable.
-
worldPosition
public SCNVector3 worldPosition()
[@property] worldPosition Determines the receiver's position in world space (relative to the scene's root node).
-
worldRight
public SCNVector3 worldRight()
[@property] worldRight The local unit X axis (1, 0, 0) in world space.
-
worldUp
public SCNVector3 worldUp()
[@property] worldUp The local unit Y axis (0, 1, 0) in world space.
-
didHintFocusMovement
public void didHintFocusMovement(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.- Specified by:
didHintFocusMovementin interfaceUIFocusItem
-
focusItemContainer
public UIFocusItemContainer focusItemContainer()
Description copied from interface:UIFocusEnvironmentThe container of any child focus items in this focus environment, or nil if no container exists.- 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.- Specified by:
framein interfaceUIFocusItem
-
parentFocusEnvironment
public 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.- Specified by:
parentFocusEnvironmentin interfaceUIFocusEnvironment
-
focusGroupIdentifier
public 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.- Specified by:
focusGroupIdentifierin interfaceUIFocusEnvironment
-
-