Class SCNView

    • Constructor Detail

      • SCNView

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static SCNView alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearance

        public static java.lang.Object appearance()
      • appearanceForTraitCollection

        public static java.lang.Object appearanceForTraitCollection​(UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

        @Deprecated
        public static java.lang.Object appearanceForTraitCollectionWhenContainedIn​(UITraitCollection trait,
                                                                                   UIAppearanceContainer ContainerClass,
                                                                                   java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(UITraitCollection trait,
                                                                                                     NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @Deprecated
        public static java.lang.Object appearanceWhenContainedIn​(UIAppearanceContainer ContainerClass,
                                                                 java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        public static java.lang.Object appearanceWhenContainedInInstancesOfClasses​(NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • beginAnimationsContext

        public static void beginAnimationsContext​(java.lang.String animationID,
                                                  org.moe.natj.general.ptr.VoidPtr context)
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
      • commitAnimations

        public static void commitAnimations()
      • 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()
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • 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)
      • layerClass

        public static org.moe.natj.objc.Class layerClass()
      • new_objc

        public static java.lang.Object new_objc()
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

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

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

        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
      • setAnimationCurve

        public static void setAnimationCurve​(long curve)
      • setAnimationDelay

        public static void setAnimationDelay​(double delay)
      • setAnimationDelegate

        public static void setAnimationDelegate​(java.lang.Object delegate)
      • setAnimationDidStopSelector

        public static void setAnimationDidStopSelector​(org.moe.natj.objc.SEL selector)
      • setAnimationDuration_static

        public static void setAnimationDuration_static​(double duration)
      • setAnimationRepeatAutoreverses

        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
      • setAnimationRepeatCount_static

        public static void setAnimationRepeatCount_static​(float repeatCount)
      • setAnimationStartDate

        public static void setAnimationStartDate​(NSDate startDate)
      • setAnimationTransitionForViewCache

        public static void setAnimationTransitionForViewCache​(long transition,
                                                              UIView view,
                                                              boolean cache)
      • setAnimationWillStartSelector

        public static void setAnimationWillStartSelector​(org.moe.natj.objc.SEL selector)
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • allowsCameraControl

        public boolean allowsCameraControl()
        [@property] allowsCameraControl A Boolean value that determines whether the user can manipulate the point of view used to render the scene. When set to YES, a defaultCameraController is created and the view will handle UI events to pilot it so the user can manipulate the current point of view with the mouse or the trackpad. The scene graph and existing cameras won't be modified by this action. The default value of this property is NO. Note that the default event handling provided by the view may not suite your needs. You may want to implement you own evnet handler. The built-in camera controller let you: - pan with 1 finger to rotate the camera around the scene. - pan with 2 fingers to translate the camera on its local X,Y plan. - pan with 3 fingers vertically to move the the camera forward/backward. - double tap to switch to the next camera in the scene. - rotate with two fingers to roll the camera (rotation on the Z axis). - pinch to zoom-in / zoom-out (change the fov of the camera).
      • antialiasingMode

        public long antialiasingMode()
        [@property] antialiasingMode Defaults to SCNAntialiasingModeMultisampling4X on macOS and SCNAntialiasingModeNone on iOS.
      • _appearance

        public java.lang.Object _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UIView
      • _appearanceWhenContainedIn

        @Deprecated
        public java.lang.Object _appearanceWhenContainedIn​(UIAppearanceContainer ContainerClass,
                                                           java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down.
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • audioEngine

        public AVAudioEngine audioEngine()
        Description copied from interface: SCNSceneRenderer
        [@property] audioEngine Contains the instance of audio engine used by the scene. The audio engine can be used to add custom nodes to the audio graph.
        Specified by:
        audioEngine in interface SCNSceneRenderer
      • audioListener

        public SCNNode audioListener()
        Description copied from interface: SCNSceneRenderer
        [@property] audioListener Use this property to set the audio node to use as the listener position and orientation when rendering positional audio for this scene. The default is nil which means that the current point of view will be used dynamically.
        Specified by:
        audioListener in interface SCNSceneRenderer
      • autoenablesDefaultLighting

        public boolean autoenablesDefaultLighting()
        Description copied from interface: SCNSceneRenderer
        [@property] autoenablesDefaultLighting Specifies whether the receiver should automatically light up scenes that have no light source. The default is NO. When enabled, a diffuse light is automatically added and placed while rendering scenes that have no light or only ambient lights.
        Specified by:
        autoenablesDefaultLighting in interface SCNSceneRenderer
      • colorPixelFormat

        public long colorPixelFormat()
        Description copied from interface: SCNSceneRenderer
        [@property] colorPixelFormat The pixel format of the color attachment 0 of the renderer. This property is only valid on a renderer created with a Metal device.
        Specified by:
        colorPixelFormat in interface SCNSceneRenderer
      • commandQueue

        public MTLCommandQueue commandQueue()
        Description copied from interface: SCNSceneRenderer
        [@property] commandQueue The command queue of the renderer. This property is only valid on a renderer created with a Metal device. Otherwise it is set to nil.
        Specified by:
        commandQueue in interface SCNSceneRenderer
      • context

        public org.moe.natj.general.ptr.VoidPtr context()
        Description copied from interface: SCNSceneRenderer
        [@property] context A Core OpenGL render context that is used as the render target (a CGLContextObj on macOS, an EAGLContext on iOS).
        Specified by:
        context in interface SCNSceneRenderer
      • currentRenderCommandEncoder

        public MTLRenderCommandEncoder currentRenderCommandEncoder()
        Description copied from interface: SCNSceneRenderer
        [@property] currentRenderCommandEncoder The current render command encoder if any. This property is only valid within the SCNSceneRendererDelegate methods and when rendering with Metal. Otherwise it is set to nil.
        Specified by:
        currentRenderCommandEncoder in interface SCNSceneRenderer
      • debugOptions

        public long debugOptions()
        Description copied from interface: SCNSceneRenderer
        [@property] debugOptions Specifies the debug options of the receiver. Defaults to SCNDebugOptionNone.
        Specified by:
        debugOptions in interface SCNSceneRenderer
      • delegate

        public java.lang.Object delegate()
        Description copied from interface: SCNSceneRenderer
        [@property] delegate Specifies the renderer delegate.
        Specified by:
        delegate in interface SCNSceneRenderer
      • depthPixelFormat

        public long depthPixelFormat()
        Description copied from interface: SCNSceneRenderer
        [@property] depthPixelFormat The pixel format of the depth attachment of the renderer. This property is only valid on a renderer created with a Metal device.
        Specified by:
        depthPixelFormat in interface SCNSceneRenderer
      • device

        public MTLDevice device()
        Description copied from interface: SCNSceneRenderer
        [@property] device The metal device of the renderer. This property is only valid on a renderer created with a Metal device. Otherwise it is set to nil.
        Specified by:
        device in interface SCNSceneRenderer
      • eaglContext

        public EAGLContext eaglContext()
        SCN_GL_DEPRECATED(ios(8.0, 12.0), tvos(9.0, 12.0));
      • hitTestOptions

        public NSArray<? extends SCNHitTestResult> hitTestOptions​(CGPoint point,
                                                                  NSDictionary<java.lang.String,​?> options)
        Description copied from interface: SCNSceneRenderer
        hitTest:options: Returns an array of SCNHitTestResult for each node that contains a specified point.
        Specified by:
        hitTestOptions in interface SCNSceneRenderer
        Parameters:
        point - A point in the coordinate system of the receiver.
        options - Optional parameters (see the "Hit test options" group for the available options).
      • initWithFrameOptions

        public SCNView initWithFrameOptions​(CGRect frame,
                                            NSDictionary<java.lang.String,​?> options)
        initWithFrame:options: Initializes and returns a newly allocated SCNView object with a specified frame rectangle.
        Parameters:
        frame - The frame rectangle for the created view object.
        options - An optional dictionary. See "View initialization options" above.
      • isJitteringEnabled

        public boolean isJitteringEnabled()
        Description copied from interface: SCNSceneRenderer
        [@property] jitteringEnabled Specifies whether the receiver should jitter the rendered scene to reduce aliasing artifacts. When enabled, the jittering is performed asynchronously and automatically by SCNView and SCNLayer. It is done synchronously by SCNRenderer.
        Specified by:
        isJitteringEnabled in interface SCNSceneRenderer
      • setJitteringEnabled

        public void setJitteringEnabled​(boolean value)
        Description copied from interface: SCNSceneRenderer
        [@property] jitteringEnabled Specifies whether the receiver should jitter the rendered scene to reduce aliasing artifacts. When enabled, the jittering is performed asynchronously and automatically by SCNView and SCNLayer. It is done synchronously by SCNRenderer.
        Specified by:
        setJitteringEnabled in interface SCNSceneRenderer
      • isNodeInsideFrustumWithPointOfView

        public boolean isNodeInsideFrustumWithPointOfView​(SCNNode node,
                                                          SCNNode pointOfView)
        Description copied from interface: SCNSceneRenderer
        isNodeInsideFrustum:withPointOfView: Test whether node is visible from the specified point of view. Return YES if the node is inside or intersects the clipping planes of the point of view. This method doesn't test if 'node' is occluded by another node.
        Specified by:
        isNodeInsideFrustumWithPointOfView in interface SCNSceneRenderer
        Parameters:
        node - The node to test the visibility of.
        pointOfView - The point of view used to test the visibility.
      • isPlaying

        public boolean isPlaying()
        Description copied from interface: SCNSceneRenderer
        [@property] playing Returns YES if the scene is playing, NO otherwise.
        Specified by:
        isPlaying in interface SCNSceneRenderer
      • setPlaying

        public void setPlaying​(boolean value)
        Description copied from interface: SCNSceneRenderer
        [@property] playing Returns YES if the scene is playing, NO otherwise.
        Specified by:
        setPlaying in interface SCNSceneRenderer
      • loops

        public boolean loops()
        Description copied from interface: SCNSceneRenderer
        [@property] loops Indicates whether the receiver restarts playback when it reaches the end of its content. Default: YES. YES when the receiver restarts playback when it finishes, NO otherwise.
        Specified by:
        loops in interface SCNSceneRenderer
      • nodesInsideFrustumWithPointOfView

        public NSArray<? extends SCNNode> nodesInsideFrustumWithPointOfView​(SCNNode pointOfView)
        Description copied from interface: SCNSceneRenderer
        nodesInsideFrustumWithPointOfView: Returns an array containing the nodes visible from the specified point of view. Returns an array of all the nodes that are inside or intersects the clipping planes of the point of view. Starting in macOS10.13/iOS11 this method work with the presentation tree.
        Specified by:
        nodesInsideFrustumWithPointOfView in interface SCNSceneRenderer
        Parameters:
        pointOfView - The point of view used to test the visibility.
      • overlaySKScene

        public SKScene overlaySKScene()
        Description copied from interface: SCNSceneRenderer
        [@property] overlaySKScene Specifies the overlay of the receiver as a SpriteKit scene instance. Defaults to nil.
        Specified by:
        overlaySKScene in interface SCNSceneRenderer
      • pause

        public void pause​(java.lang.Object sender)
        pause: This action method pauses the scene playback. This method does not do anything if the scene is already paused.
        Parameters:
        sender - The object (such as a button or menu item) sending the message to pause the scene.
      • play

        public void play​(java.lang.Object sender)
        play: This action method begins playing the scene at its current location. This method does not do anything if the scene is already playing.
        Parameters:
        sender - The object (such as a button or menu item) sending the message to play the scene.
      • pointOfView

        public SCNNode pointOfView()
        Description copied from interface: SCNSceneRenderer
        [@property] pointOfView Specifies the point of view used to render the scene. A point of view must have either a camera or a spot light attached.
        Specified by:
        pointOfView in interface SCNSceneRenderer
      • preferredFramesPerSecond

        public long preferredFramesPerSecond()
        [@property] preferredFramesPerSecond The rate you want the view to redraw its contents. When your application sets its preferred frame rate, the view chooses a frame rate as close to that as possible based on the capabilities of the screen the view is displayed on. The actual frame rate chosen is usually a factor of the maximum refresh rate of the screen to provide a consistent frame rate. For example, if the maximum refresh rate of the screen is 60 frames per second, that is also the highest frame rate the view sets as the actual frame rate. However, if you ask for a lower frame rate, it might choose 30, 20, 15 or some other factor to be the actual frame rate. Your application should choose a frame rate that it can consistently maintain. The default value is 0 which means the display link will fire at the native cadence of the display hardware.
      • prepareObjectShouldAbortBlock

        public boolean prepareObjectShouldAbortBlock​(java.lang.Object object,
                                                     SCNSceneRenderer.Block_prepareObjectShouldAbortBlock block)
        Description copied from interface: SCNSceneRenderer
        prepareObject:shouldAbortBlock: Prepare the specified object for drawing. Returns YES if the object was prepared successfully, NO if it was canceled. This method may be triggered from a secondary thread. This method is observable using NSProgress.
        Specified by:
        prepareObjectShouldAbortBlock in interface SCNSceneRenderer
        Parameters:
        object - The object to prepare. It can be an instance of SCNScene, SCNNode, SCNGeometry, or SCNMaterial
        block - This block will be called repeatedly while the object is prepared. Return YES if you want the operation to abort.
      • prepareObjectsWithCompletionHandler

        public void prepareObjectsWithCompletionHandler​(NSArray<?> objects,
                                                        SCNSceneRenderer.Block_prepareObjectsWithCompletionHandler completionHandler)
        Description copied from interface: SCNSceneRenderer
        prepareObjects:withCompletionHandler: Prepare the specified objects for drawing on the background. This method is observable using NSProgress.
        Specified by:
        prepareObjectsWithCompletionHandler in interface SCNSceneRenderer
        Parameters:
        objects - The objects to prepare. It can be one or more instances of SCNScene, SCNNode, SCNGeometry, or SCNMaterial
        completionHandler - This block will be called when all objects has been prepared, or on failure.
      • projectPoint

        public SCNVector3 projectPoint​(SCNVector3 point)
        Description copied from interface: SCNSceneRenderer
        projectPoint Projects a point in the world coordinate system using the receiver's current point of view and viewport. A point projected from the near (resp. far) clip plane will have a z component of 0 (resp. 1). Starting in macOS 11.0, iOS 14, tvOS 14 and watchOS 7 the range of z component will be reversed (from 1 to 0) if the receiver uses 'reverseZ'.
        Specified by:
        projectPoint in interface SCNSceneRenderer
        Parameters:
        point - The world position to be projected.
      • renderingAPI

        public long renderingAPI()
        Description copied from interface: SCNSceneRenderer
        [@property] renderingAPI Specifies the rendering API associated to the receiver. This is the rendering API effectively used by the receiver. You can specify a preferred rendering API when initializing a view programmatically (see SCNPreferredRenderingAPI in SCNSceneRenderer.h) or using Interface Builder's SCNView inspector.
        Specified by:
        renderingAPI in interface SCNSceneRenderer
      • sceneTime

        public double sceneTime()
        Description copied from interface: SCNSceneRenderer
        [@property] sceneTime Specifies the current "scene time" to display the scene. The scene time only affect scene time based animations (see SCNAnimation.h "usesSceneTimeBase" and SCNSceneSource.h "SCNSceneSourceAnimationImportPolicyKey" for how to create scene time based animations). Scene time based animations and this property are typically used by tools and viewer to ease seeking in time while previewing a scene.
        Specified by:
        sceneTime in interface SCNSceneRenderer
      • setAllowsCameraControl

        public void setAllowsCameraControl​(boolean value)
        [@property] allowsCameraControl A Boolean value that determines whether the user can manipulate the point of view used to render the scene. When set to YES, a defaultCameraController is created and the view will handle UI events to pilot it so the user can manipulate the current point of view with the mouse or the trackpad. The scene graph and existing cameras won't be modified by this action. The default value of this property is NO. Note that the default event handling provided by the view may not suite your needs. You may want to implement you own evnet handler. The built-in camera controller let you: - pan with 1 finger to rotate the camera around the scene. - pan with 2 fingers to translate the camera on its local X,Y plan. - pan with 3 fingers vertically to move the the camera forward/backward. - double tap to switch to the next camera in the scene. - rotate with two fingers to roll the camera (rotation on the Z axis). - pinch to zoom-in / zoom-out (change the fov of the camera).
      • setAntialiasingMode

        public void setAntialiasingMode​(long value)
        [@property] antialiasingMode Defaults to SCNAntialiasingModeMultisampling4X on macOS and SCNAntialiasingModeNone on iOS.
      • setAudioListener

        public void setAudioListener​(SCNNode value)
        Description copied from interface: SCNSceneRenderer
        [@property] audioListener Use this property to set the audio node to use as the listener position and orientation when rendering positional audio for this scene. The default is nil which means that the current point of view will be used dynamically.
        Specified by:
        setAudioListener in interface SCNSceneRenderer
      • setAutoenablesDefaultLighting

        public void setAutoenablesDefaultLighting​(boolean value)
        Description copied from interface: SCNSceneRenderer
        [@property] autoenablesDefaultLighting Specifies whether the receiver should automatically light up scenes that have no light source. The default is NO. When enabled, a diffuse light is automatically added and placed while rendering scenes that have no light or only ambient lights.
        Specified by:
        setAutoenablesDefaultLighting in interface SCNSceneRenderer
      • setDebugOptions

        public void setDebugOptions​(long value)
        Description copied from interface: SCNSceneRenderer
        [@property] debugOptions Specifies the debug options of the receiver. Defaults to SCNDebugOptionNone.
        Specified by:
        setDebugOptions in interface SCNSceneRenderer
      • setDelegate_unsafe

        public void setDelegate_unsafe​(java.lang.Object value)
      • setDelegate

        public void setDelegate​(java.lang.Object value)
        Description copied from interface: SCNSceneRenderer
        [@property] delegate Specifies the renderer delegate.
        Specified by:
        setDelegate in interface SCNSceneRenderer
      • setEaglContext

        public void setEaglContext​(EAGLContext value)
        SCN_GL_DEPRECATED(ios(8.0, 12.0), tvos(9.0, 12.0));
      • setLoops

        public void setLoops​(boolean value)
        Description copied from interface: SCNSceneRenderer
        [@property] loops Indicates whether the receiver restarts playback when it reaches the end of its content. Default: YES. YES when the receiver restarts playback when it finishes, NO otherwise.
        Specified by:
        setLoops in interface SCNSceneRenderer
      • setOverlaySKScene

        public void setOverlaySKScene​(SKScene value)
        Description copied from interface: SCNSceneRenderer
        [@property] overlaySKScene Specifies the overlay of the receiver as a SpriteKit scene instance. Defaults to nil.
        Specified by:
        setOverlaySKScene in interface SCNSceneRenderer
      • setPointOfView

        public void setPointOfView​(SCNNode value)
        Description copied from interface: SCNSceneRenderer
        [@property] pointOfView Specifies the point of view used to render the scene. A point of view must have either a camera or a spot light attached.
        Specified by:
        setPointOfView in interface SCNSceneRenderer
      • setPreferredFramesPerSecond

        public void setPreferredFramesPerSecond​(long value)
        [@property] preferredFramesPerSecond The rate you want the view to redraw its contents. When your application sets its preferred frame rate, the view chooses a frame rate as close to that as possible based on the capabilities of the screen the view is displayed on. The actual frame rate chosen is usually a factor of the maximum refresh rate of the screen to provide a consistent frame rate. For example, if the maximum refresh rate of the screen is 60 frames per second, that is also the highest frame rate the view sets as the actual frame rate. However, if you ask for a lower frame rate, it might choose 30, 20, 15 or some other factor to be the actual frame rate. Your application should choose a frame rate that it can consistently maintain. The default value is 0 which means the display link will fire at the native cadence of the display hardware.
      • setSceneTime

        public void setSceneTime​(double value)
        Description copied from interface: SCNSceneRenderer
        [@property] sceneTime Specifies the current "scene time" to display the scene. The scene time only affect scene time based animations (see SCNAnimation.h "usesSceneTimeBase" and SCNSceneSource.h "SCNSceneSourceAnimationImportPolicyKey" for how to create scene time based animations). Scene time based animations and this property are typically used by tools and viewer to ease seeking in time while previewing a scene.
        Specified by:
        setSceneTime in interface SCNSceneRenderer
      • setShowsStatistics

        public void setShowsStatistics​(boolean value)
        Description copied from interface: SCNSceneRenderer
        [@property] showsStatistics Determines whether the receiver should display statistics info like FPS. Defaults to NO. When set to YES, statistics are displayed in a overlay on top of the rendered scene.
        Specified by:
        setShowsStatistics in interface SCNSceneRenderer
      • showsStatistics

        public boolean showsStatistics()
        Description copied from interface: SCNSceneRenderer
        [@property] showsStatistics Determines whether the receiver should display statistics info like FPS. Defaults to NO. When set to YES, statistics are displayed in a overlay on top of the rendered scene.
        Specified by:
        showsStatistics in interface SCNSceneRenderer
      • snapshot

        public UIImage snapshot()
        [@property] snapshot Draws the contents of the view and returns them as a new image object This method is thread-safe and may be called at any time.
      • stencilPixelFormat

        public long stencilPixelFormat()
        Description copied from interface: SCNSceneRenderer
        [@property] stencilPixelFormat The pixel format of the stencil attachment of the renderer. This property is only valid on a renderer created with a Metal device.
        Specified by:
        stencilPixelFormat in interface SCNSceneRenderer
      • stop

        public void stop​(java.lang.Object sender)
        stop: This action method stops the scene playback and resets the current time to the start time of the scene.
        Parameters:
        sender - The object (such as a button or menu item) sending the message to stop playing the scene.
      • unprojectPoint

        public SCNVector3 unprojectPoint​(SCNVector3 point)
        Description copied from interface: SCNSceneRenderer
        unprojectPoint Unprojects a screenspace 2D point with depth info using the receiver's current point of view and viewport. A point whose z component is 0 (resp. 1) is unprojected on the near (resp. far) clip plane. Starting in macOS 11.0, iOS 14, tvOS 14 and watchOS 7 the range of the z component will be reversed (from 1 to 0) if the receiver uses 'reverseZ'.
        Specified by:
        unprojectPoint in interface SCNSceneRenderer
        Parameters:
        point - The screenspace position to be unprojected.
      • cameraControlConfiguration

        public SCNCameraControlConfiguration cameraControlConfiguration()
        [@property] cameraControlConfiguration An object describing the current configuration of the event handler which pilot the default camera controller. This object will be used to configure the event handler when allowCameraControl is set to YES.
      • defaultCameraController

        public SCNCameraController defaultCameraController()
        [@property] defaultCameraController Returns the default SCNCameraController used to drive the current point of view when allowCameraController is set to YES.
      • rendersContinuously

        public boolean rendersContinuously()
        [@property] rendersContinuously When set to YES, the view continously redraw at the display link frame rate. When set to NO the view will only redraw when something change or animates in the receiver's scene. Defaults to NO.
      • setRendersContinuously

        public void setRendersContinuously​(boolean value)
        [@property] rendersContinuously When set to YES, the view continously redraw at the display link frame rate. When set to NO the view will only redraw when something change or animates in the receiver's scene. Defaults to NO.
      • currentViewport

        public CGRect currentViewport()
        Description copied from interface: SCNSceneRenderer
        [@property] currentViewport Returns the current viewport for this renderer, can be used to get the actual viewport from within the delegate callback during a live resize.
        Specified by:
        currentViewport in interface SCNSceneRenderer
      • isTemporalAntialiasingEnabled

        public boolean isTemporalAntialiasingEnabled()
        Description copied from interface: SCNSceneRenderer
        [@property] temporalAntialiasingEnabled Specifies whether the receiver should reduce aliasing artifacts in real time based on temporal coherency. Defaults to NO.
        Specified by:
        isTemporalAntialiasingEnabled in interface SCNSceneRenderer
      • setTemporalAntialiasingEnabled

        public void setTemporalAntialiasingEnabled​(boolean value)
        Description copied from interface: SCNSceneRenderer
        [@property] temporalAntialiasingEnabled Specifies whether the receiver should reduce aliasing artifacts in real time based on temporal coherency. Defaults to NO.
        Specified by:
        setTemporalAntialiasingEnabled in interface SCNSceneRenderer
      • setUsesReverseZ

        public void setUsesReverseZ​(boolean value)
        Description copied from interface: SCNSceneRenderer
        [@property] usesReverseZ Specifies if the renderer should use the reverse Z technique. Defaults to YES. This property is only valid on a renderer created with a Metal device.
        Specified by:
        setUsesReverseZ in interface SCNSceneRenderer
      • usesReverseZ

        public boolean usesReverseZ()
        Description copied from interface: SCNSceneRenderer
        [@property] usesReverseZ Specifies if the renderer should use the reverse Z technique. Defaults to YES. This property is only valid on a renderer created with a Metal device.
        Specified by:
        usesReverseZ in interface SCNSceneRenderer
      • currentRenderPassDescriptor

        public MTLRenderPassDescriptor currentRenderPassDescriptor()
        Description copied from interface: SCNSceneRenderer
        [@property] currentRenderPassDescriptor The render pass descriptor of the receiver. This property is only valid within the SCNSceneRendererDelegate methods and when rendering with Metal. Otherwise it is set to nil.
        Specified by:
        currentRenderPassDescriptor in interface SCNSceneRenderer