Class SCNCameraController

  • All Implemented Interfaces:
    NSObject

    public class SCNCameraController
    extends NSObject
    • Constructor Detail

      • SCNCameraController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

        public boolean automaticTarget()
        Automatically update the target in beginInteraction Defaults to NO
      • automaticallyNotifiesObserversForKey

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

        public void beginInteractionWithViewport​(CGPoint location,
                                                 CGSize viewport)
        Begin/Continue/End interaction using an input location relative to viewport. The behavior depends on the current interactionMode.
      • 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()
      • clearRoll

        public void clearRoll()
        clear the camera roll if any
      • continueInteractionWithViewportSensitivity

        public void continueInteractionWithViewportSensitivity​(CGPoint location,
                                                               CGSize viewport,
                                                               double sensitivity)
      • debugDescription_static

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

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

        public void dollyByOnScreenPointViewport​(float delta,
                                                 CGPoint point,
                                                 CGSize viewport)
        Zoom by moving the camera along the axis by a screen space point.
      • dollyToTarget

        public void dollyToTarget​(float delta)
        Zoom by moving the camera along the axis from the camera position to the target.
      • endInteractionWithViewportVelocity

        public void endInteractionWithViewportVelocity​(CGPoint location,
                                                       CGSize viewport,
                                                       CGPoint velocity)
      • frameNodes

        public void frameNodes​(NSArray<? extends SCNNode> nodes)
        Move the camera to a position where the bounding sphere of all nodes is fully visible. Also set the camera target as the center of the bounding sphere.
      • hash_static

        public static long hash_static()
      • inertiaEnabled

        public boolean inertiaEnabled()
        Set to YES to enable inertia on endInteraction. Defaults to NO.
      • inertiaFriction

        public float inertiaFriction()
        The friction coefficient applied to the inertia. Defaults to 0.05.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • interactionMode

        public long interactionMode()
      • isInertiaRunning

        public boolean isInertiaRunning()
        Returns YES if inertia is running.
      • isSubclassOfClass

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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • maximumHorizontalAngle

        public float maximumHorizontalAngle()
      • maximumVerticalAngle

        public float maximumVerticalAngle()
      • minimumHorizontalAngle

        public float minimumHorizontalAngle()
        Minimum and maximum horizontal view angles in degrees for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable. The angle constraints is not enforced if both horizontal angle properties values are set to 0. The angle constraints will not be enforced if the initial orientation is outside the given range. The minimum angle must be inferior to the maximum angle. Angles are in world space and within the range [-180, 180]. Defaults to 0.0.
      • minimumVerticalAngle

        public float minimumVerticalAngle()
        Minimum and maximum vertical view angles in degrees for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable. The angle constraints is not enforced if both vertical angle properties values are set to 0. The angle constraints will not be enforced if the initial orientation is outside the given range. The minimum angle must be inferior to the maximum angle. Angles are in world space and within the range [-90, 90]. Defaults to 0.0. For example: set to minimum to 0 and maximum to 90 to only allow orbit around the top hemisphere.
      • new_objc

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

        public SCNNode pointOfView()
      • resolveClassMethod

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

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

        public void rollAroundTarget​(float delta)
        Rotate the camera around the axis from the camera position to the target. Delta is in degrees.
      • rollByAroundScreenPointViewport

        public void rollByAroundScreenPointViewport​(float delta,
                                                    CGPoint point,
                                                    CGSize viewport)
        Rotate the camera around the given screen space point. Delta is in degrees.
      • rotateByXY

        public void rotateByXY​(float deltaX,
                               float deltaY)
        Rotate delta is in degrees.
      • setAutomaticTarget

        public void setAutomaticTarget​(boolean value)
        Automatically update the target in beginInteraction Defaults to NO
      • setInertiaEnabled

        public void setInertiaEnabled​(boolean value)
        Set to YES to enable inertia on endInteraction. Defaults to NO.
      • setInertiaFriction

        public void setInertiaFriction​(float value)
        The friction coefficient applied to the inertia. Defaults to 0.05.
      • setInteractionMode

        public void setInteractionMode​(long value)
      • setMaximumHorizontalAngle

        public void setMaximumHorizontalAngle​(float value)
      • setMaximumVerticalAngle

        public void setMaximumVerticalAngle​(float value)
      • setMinimumHorizontalAngle

        public void setMinimumHorizontalAngle​(float value)
        Minimum and maximum horizontal view angles in degrees for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable. The angle constraints is not enforced if both horizontal angle properties values are set to 0. The angle constraints will not be enforced if the initial orientation is outside the given range. The minimum angle must be inferior to the maximum angle. Angles are in world space and within the range [-180, 180]. Defaults to 0.0.
      • setMinimumVerticalAngle

        public void setMinimumVerticalAngle​(float value)
        Minimum and maximum vertical view angles in degrees for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable. The angle constraints is not enforced if both vertical angle properties values are set to 0. The angle constraints will not be enforced if the initial orientation is outside the given range. The minimum angle must be inferior to the maximum angle. Angles are in world space and within the range [-90, 90]. Defaults to 0.0. For example: set to minimum to 0 and maximum to 90 to only allow orbit around the top hemisphere.
      • setPointOfView

        public void setPointOfView​(SCNNode value)
      • setTarget

        public void setTarget​(SCNVector3 value)
        The camera target in world space for orbit rotation.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • setWorldUp

        public void setWorldUp​(SCNVector3 value)
        The up vector in world space used as reference for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable camera modes. Defaults to (0, 1, 0).
      • stopInertia

        public void stopInertia()
        Stop current inertia.
      • superclass_static

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

        public SCNVector3 target()
        The camera target in world space for orbit rotation.
      • translateInCameraSpaceByXYZ

        public void translateInCameraSpaceByXYZ​(float deltaX,
                                                float deltaY,
                                                float deltaZ)
        Translate the camera along the local X/Y/Z axis.
      • version_static

        public static long version_static()
      • worldUp

        public SCNVector3 worldUp()
        The up vector in world space used as reference for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable camera modes. Defaults to (0, 1, 0).