Package apple.scenekit
Class SCNCameraController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.scenekit.SCNCameraController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSCNCameraController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static SCNCameraControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)booleanautomaticTarget()Automatically update the target in beginInteraction Defaults to NOvoidbeginInteractionWithViewport(CGPoint location, CGSize viewport)Begin/Continue/End interaction using an input location relative to viewport.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()voidclearRoll()clear the camera roll if anyvoidcontinueInteractionWithViewportSensitivity(CGPoint location, CGSize viewport, double sensitivity)static java.lang.StringdebugDescription_static()SCNCameraControllerDelegatedelegate()static java.lang.Stringdescription_static()voiddollyByOnScreenPointViewport(float delta, CGPoint point, CGSize viewport)Zoom by moving the camera along the axis by a screen space point.voiddollyToTarget(float delta)Zoom by moving the camera along the axis from the camera position to the target.voidendInteractionWithViewportVelocity(CGPoint location, CGSize viewport, CGPoint velocity)voidframeNodes(NSArray<? extends SCNNode> nodes)Move the camera to a position where the bounding sphere of all nodes is fully visible.static longhash_static()booleaninertiaEnabled()Set to YES to enable inertia on endInteraction.floatinertiaFriction()The friction coefficient applied to the inertia.SCNCameraControllerinit()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)longinteractionMode()booleanisInertiaRunning()Returns YES if inertia is running.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)floatmaximumHorizontalAngle()floatmaximumVerticalAngle()floatminimumHorizontalAngle()Minimum and maximum horizontal view angles in degrees for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable.floatminimumVerticalAngle()Minimum and maximum vertical view angles in degrees for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable.static java.lang.Objectnew_objc()SCNNodepointOfView()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidrollAroundTarget(float delta)Rotate the camera around the axis from the camera position to the target.voidrollByAroundScreenPointViewport(float delta, CGPoint point, CGSize viewport)Rotate the camera around the given screen space point.voidrotateByXY(float deltaX, float deltaY)Rotate delta is in degrees.voidsetAutomaticTarget(boolean value)Automatically update the target in beginInteraction Defaults to NOvoidsetDelegate(SCNCameraControllerDelegate value)voidsetDelegate_unsafe(SCNCameraControllerDelegate value)voidsetInertiaEnabled(boolean value)Set to YES to enable inertia on endInteraction.voidsetInertiaFriction(float value)The friction coefficient applied to the inertia.voidsetInteractionMode(long value)voidsetMaximumHorizontalAngle(float value)voidsetMaximumVerticalAngle(float value)voidsetMinimumHorizontalAngle(float value)Minimum and maximum horizontal view angles in degrees for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable.voidsetMinimumVerticalAngle(float value)Minimum and maximum vertical view angles in degrees for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable.voidsetPointOfView(SCNNode value)voidsetTarget(SCNVector3 value)The camera target in world space for orbit rotation.static voidsetVersion_static(long aVersion)voidsetWorldUp(SCNVector3 value)The up vector in world space used as reference for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable camera modes.voidstopInertia()Stop current inertia.static org.moe.natj.objc.Classsuperclass_static()SCNVector3target()The camera target in world space for orbit rotation.voidtranslateInCameraSpaceByXYZ(float deltaX, float deltaY, float deltaZ)Translate the camera along the local X/Y/Z axis.static longversion_static()SCNVector3worldUp()The up vector in world space used as reference for SCNInteractionModeFly and SCNInteractionModeOrbitTurntable camera modes.-
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 SCNCameraController alloc()
-
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()
-
delegate
public SCNCameraControllerDelegate delegate()
-
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.
-
init
public SCNCameraController init()
-
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)
-
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
-
setDelegate_unsafe
public void setDelegate_unsafe(SCNCameraControllerDelegate value)
-
setDelegate
public void setDelegate(SCNCameraControllerDelegate value)
-
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).
-
-