public class SCNCamera extends NSObject implements SCNAnimatable, SCNTechniqueSupport, NSCopying, NSSecureCoding
SCNCamera represents a camera that can be attached to a SCNNode.
A node with a camera can be used as a point of view to visualize a 3D scene.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SCNCamera(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
void |
addAnimationForKey(SCNAnimation animation,
java.lang.String key)
addAnimation:forKey:
|
void |
addAnimationPlayerForKey(SCNAnimationPlayer player,
java.lang.String key)
addAnimationPlayer:forKey:
|
static SCNCamera |
alloc() |
static SCNCamera |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
CAAnimation |
animationForKey(java.lang.String key)
animationForKey:
|
NSArray<java.lang.String> |
animationKeys()
[@property] animationKeys
|
SCNAnimationPlayer |
animationPlayerForKey(java.lang.String key)
animationPlayerForKey:
|
double |
aperture()
[@property] aperture
|
long |
apertureBladeCount()
[@property] apertureBladeCount
|
boolean |
automaticallyAdjustsZRange()
[@property] automaticallyAdjustsZRange
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
double |
averageGray()
[@property] averageGray
|
double |
bloomBlurRadius()
[@property] bloomBlurRadius
|
double |
bloomIntensity()
[@property] bloomIntensity
|
long |
bloomIterationCount()
[@property] bloomIteration
|
double |
bloomIterationSpread()
[@property] bloomIterationSpread
|
double |
bloomThreshold()
[@property] bloomThreshold
|
static SCNCamera |
camera()
camera
|
static SCNCamera |
cameraWithMDLCamera(MDLCamera mdlCamera) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
long |
categoryBitMask()
[@property] categoryBitMask
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
double |
colorFringeIntensity()
[@property] colorFringeIntensity
|
double |
colorFringeStrength()
[@property] colorFringeStrength
|
SCNMaterialProperty |
colorGrading()
[@property] colorGrading
|
double |
contrast()
[@property] contrast
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
double |
exposureAdaptationBrighteningSpeedFactor()
[@property] exposureAdaptationBrighteningSpeedFactor
|
double |
exposureAdaptationDarkeningSpeedFactor()
[@property] exposureAdaptationDarkeningSpeedFactor
|
double |
exposureOffset()
[@property] exposureOffset
|
double |
fieldOfView()
[@property] fieldOfView
|
double |
focalBlurRadius()
[@property] focalBlurRadius
|
long |
focalBlurSampleCount()
[@property] focalBlurSampleCount
|
double |
focalDistance()
[@property] focalDistance
|
double |
focalLength()
[@property] focalLength
|
double |
focalSize()
[@property] focalSize
|
double |
focusDistance()
[@property] focusDistance
|
double |
fStop()
[@property] fStop
|
double |
grainIntensity()
[@property] grainIntensity
|
boolean |
grainIsColored()
[@property] grainIsColored
|
double |
grainScale()
[@property] grainScale
|
static long |
hash_static() |
SCNCamera |
init() |
SCNCamera |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isAnimationForKeyPaused(java.lang.String key)
isAnimationForKeyPaused:
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
double |
maximumExposure()
[@property] maximumExposure
|
double |
minimumExposure()
[@property] minimumExposure
|
double |
motionBlurIntensity()
[@property] motionBlurIntensity
|
java.lang.String |
name()
[@property] name
|
static SCNCamera |
new_objc() |
double |
orthographicScale()
[@property] orthographicScale
|
void |
pauseAnimationForKey(java.lang.String key)
pauseAnimationForKey:
|
long |
projectionDirection()
[@property] projectionDirection
|
SCNMatrix4 |
projectionTransform()
[@property] projectionTransform
|
SCNMatrix4 |
projectionTransformWithViewportSize(CGSize viewportSize) |
void |
removeAllAnimations()
removeAllAnimations
|
void |
removeAllAnimationsWithBlendOutDuration(double duration)
removeAllAnimationsWithBlendOutDuration
|
void |
removeAnimationForKey(java.lang.String key)
removeAnimationForKey
|
void |
removeAnimationForKeyBlendOutDuration(java.lang.String key,
double duration)
removeAnimationForKey:blendOutDuration:
|
void |
removeAnimationForKeyFadeOutDuration(java.lang.String key,
double duration)
removeAnimationForKey:fadeOutDuration:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
resumeAnimationForKey(java.lang.String key)
resumeAnimationForKey:
|
double |
saturation()
[@property] saturation
|
double |
screenSpaceAmbientOcclusionBias()
[@property] screenSpaceAmbientOcclusionBias
|
double |
screenSpaceAmbientOcclusionDepthThreshold()
[@property] screenSpaceAmbientOcclusionDepthThreshold
|
double |
screenSpaceAmbientOcclusionIntensity()
[@property] screenSpaceAmbientOcclusionIntensity
|
double |
screenSpaceAmbientOcclusionNormalThreshold()
[@property] screenSpaceAmbientOcclusionNormalThreshold
|
double |
screenSpaceAmbientOcclusionRadius()
[@property] screenSpaceAmbientOcclusionRadius
|
double |
sensorHeight()
[@property] sensorHeight
|
void |
setAperture(double value)
[@property] aperture
|
void |
setApertureBladeCount(long value)
[@property] apertureBladeCount
|
void |
setAutomaticallyAdjustsZRange(boolean value)
[@property] automaticallyAdjustsZRange
|
void |
setAverageGray(double value)
[@property] averageGray
|
void |
setBloomBlurRadius(double value)
[@property] bloomBlurRadius
|
void |
setBloomIntensity(double value)
[@property] bloomIntensity
|
void |
setBloomIterationCount(long value)
[@property] bloomIteration
|
void |
setBloomIterationSpread(double value)
[@property] bloomIterationSpread
|
void |
setBloomThreshold(double value)
[@property] bloomThreshold
|
void |
setCategoryBitMask(long value)
[@property] categoryBitMask
|
void |
setColorFringeIntensity(double value)
[@property] colorFringeIntensity
|
void |
setColorFringeStrength(double value)
[@property] colorFringeStrength
|
void |
setContrast(double value)
[@property] contrast
|
void |
setExposureAdaptationBrighteningSpeedFactor(double value)
[@property] exposureAdaptationBrighteningSpeedFactor
|
void |
setExposureAdaptationDarkeningSpeedFactor(double value)
[@property] exposureAdaptationDarkeningSpeedFactor
|
void |
setExposureOffset(double value)
[@property] exposureOffset
|
void |
setFieldOfView(double value)
[@property] fieldOfView
|
void |
setFocalBlurRadius(double value)
[@property] focalBlurRadius
|
void |
setFocalBlurSampleCount(long value)
[@property] focalBlurSampleCount
|
void |
setFocalDistance(double value)
[@property] focalDistance
|
void |
setFocalLength(double value)
[@property] focalLength
|
void |
setFocalSize(double value)
[@property] focalSize
|
void |
setFocusDistance(double value)
[@property] focusDistance
|
void |
setFStop(double value)
[@property] fStop
|
void |
setGrainIntensity(double value)
[@property] grainIntensity
|
void |
setGrainIsColored(boolean value)
[@property] grainIsColored
|
void |
setGrainScale(double value)
[@property] grainScale
|
void |
setMaximumExposure(double value)
[@property] maximumExposure
|
void |
setMinimumExposure(double value)
[@property] minimumExposure
|
void |
setMotionBlurIntensity(double value)
[@property] motionBlurIntensity
|
void |
setName(java.lang.String value)
[@property] name
|
void |
setOrthographicScale(double value)
[@property] orthographicScale
|
void |
setProjectionDirection(long value)
[@property] projectionDirection
|
void |
setProjectionTransform(SCNMatrix4 value)
[@property] projectionTransform
|
void |
setSaturation(double value)
[@property] saturation
|
void |
setScreenSpaceAmbientOcclusionBias(double value)
[@property] screenSpaceAmbientOcclusionBias
|
void |
setScreenSpaceAmbientOcclusionDepthThreshold(double value)
[@property] screenSpaceAmbientOcclusionDepthThreshold
|
void |
setScreenSpaceAmbientOcclusionIntensity(double value)
[@property] screenSpaceAmbientOcclusionIntensity
|
void |
setScreenSpaceAmbientOcclusionNormalThreshold(double value)
[@property] screenSpaceAmbientOcclusionNormalThreshold
|
void |
setScreenSpaceAmbientOcclusionRadius(double value)
[@property] screenSpaceAmbientOcclusionRadius
|
void |
setSensorHeight(double value)
[@property] sensorHeight
|
void |
setSpeedForAnimationKey(double speed,
java.lang.String key)
setSpeed:forAnimationKey:
|
void |
setTechnique(SCNTechnique value)
[@property] technique
|
void |
setUsesOrthographicProjection(boolean value)
[@property] usesOrthographicProjection
|
static void |
setVersion_static(long aVersion) |
void |
setVignettingIntensity(double value)
[@property] vignettingIntensity
|
void |
setVignettingPower(double value)
[@property] vignettingPower
|
void |
setWantsDepthOfField(boolean value)
[@property] wantsDepthOfField
|
void |
setWantsExposureAdaptation(boolean value)
[@property] wantsExposureAdaptation
|
void |
setWantsHDR(boolean value)
[@property] wantsHDR
|
void |
setWhiteBalanceTemperature(double value)
[@property] whiteBalanceTemperature
|
void |
setWhiteBalanceTint(double value)
[@property] whiteBalanceTint
|
void |
setWhitePoint(double value)
[@property] whitePoint
|
void |
setXFov(double value)
[@property] xFov
|
void |
setYFov(double value)
[@property] yFov
|
void |
setZFar(double value)
[@property] zFar
|
void |
setZNear(double value)
[@property] zNear
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
SCNTechnique |
technique()
[@property] technique
|
boolean |
usesOrthographicProjection()
[@property] usesOrthographicProjection
|
static long |
version_static() |
double |
vignettingIntensity()
[@property] vignettingIntensity
|
double |
vignettingPower()
[@property] vignettingPower
|
boolean |
wantsDepthOfField()
[@property] wantsDepthOfField
|
boolean |
wantsExposureAdaptation()
[@property] wantsExposureAdaptation
|
boolean |
wantsHDR()
[@property] wantsHDR
|
double |
whiteBalanceTemperature()
[@property] whiteBalanceTemperature
|
double |
whiteBalanceTint()
[@property] whiteBalanceTint
|
double |
whitePoint()
[@property] whitePoint
|
double |
xFov()
[@property] xFov
|
double |
yFov()
[@property] yFov
|
double |
zFar()
[@property] zFar
|
double |
zNear()
[@property] zNear
|
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SCNCamera alloc()
public static SCNCamera allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static SCNCamera camera()
Creates and returns a camera instance.
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SCNCamera new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public void addAnimationForKey(SCNAnimation animation, java.lang.String key)
SCNAnimatableAdds 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.
addAnimationForKey in interface SCNAnimatableanimation - Added animation.key - May be any string such that only one animation per unique key is added per animatable object. removedOnCompletion] public CAAnimation animationForKey(java.lang.String key)
SCNAnimatableReturns 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.
animationForKey in interface SCNAnimatablekey - The identifier for the animation to retrieve.public NSArray<java.lang.String> animationKeys()
SCNAnimatableReturns an array containing the keys of all animations currently attached to the receiver.
animationKeys in interface SCNAnimatablepublic double aperture()
Determines the receiver's aperture. Animatable.
Defaults to 1/8.0.
public boolean automaticallyAdjustsZRange()
Determines whether the receiver automatically adjusts the zFar value. Defaults to NO.
When set to YES, the near and far planes are automatically set to fit the bounding box of the entire scene at render time.
public double averageGray()
Determines the average gray level desired in the final image. Defaults to 0.18.
public double bloomBlurRadius()
Determines the radius of the bloom effect in points. Animatable. Defaults to 4.
public double bloomIntensity()
Determines the intensity of the bloom effect. Animatable. Defaults to 0 (no effect).
public double bloomThreshold()
Determines the luminance threshold for the bloom effect. Animatable. Defaults to 1.
public long categoryBitMask()
Determines the node categories that are visible from the receiver. Defaults to all bits set.
public double colorFringeIntensity()
Controls the intensity of the color shift effect. Defaults to 1.
public double colorFringeStrength()
Controls the strength of the color shift effect. Defaults to 0 (no effect).
public SCNMaterialProperty colorGrading()
Specifies a lookup texture to apply color grading. The contents must a 2D image representing `n` slices of a unit color cube texture, arranged in an horizontal row of `n` images. For instance, a color cube of dimension 16x16x16 should be provided as an image of size 256x16.
public double contrast()
Controls the overall contrast of the scene. Defaults to 0 (no effect).
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic double exposureAdaptationBrighteningSpeedFactor()
Determines the exposure adaptation speed when going from bright areas to dark areas. Defaults to 0.4.
public double exposureAdaptationDarkeningSpeedFactor()
Determines the exposure adaptation speed when going from dark areas to bright areas. Defaults to 0.6.
public double exposureOffset()
Determines the logarithmic exposure biasing, in EV. Defaults to 0.
public double focalBlurRadius()
Determines the receiver's focal radius. Animatable.
Determines the maximum amount of blur for objects out of focus. Defaults to 0.
public double focalDistance()
Determines the receiver's focal distance. Animatable.
When non zero, the focal distance determines how the camera focuses the objects in the 3d scene. Defaults to 10.0 prior to macOS 10.13, iOS 11, tvOS 11 and watchOS 4. Defaults to 2.5 otherwise.
public double focalSize()
Determines the receiver's focal size. Animatable.
Determines the size of the area around focalDistance where the objects are in focus. Defaults to 0.
public SCNCamera initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic boolean isAnimationForKeyPaused(java.lang.String key)
SCNAnimatableReturns whether the animation for the specified identifier is paused.
isAnimationForKeyPaused in interface SCNAnimatablekey - The identifier for the animation to query.public double maximumExposure()
Determines the maximum exposure offset of the adaptation, in EV. Defaults to -15.
public double minimumExposure()
Determines the minimum exposure offset of the adaptation, in EV. Defaults to -15.
public double motionBlurIntensity()
Determines the intensity of the motion blur. Animatable. Defaults to 0.
An intensity of zero means no motion blur. The intensity should not exceeed 1.
public java.lang.String name()
Determines the name of the receiver.
public double orthographicScale()
Determines the receiver's orthographic scale value. Animatable. Defaults to 1.
This setting determines the size of the camera's visible area. This is only enabled when usesOrthographicProjection is set to YES.
public void pauseAnimationForKey(java.lang.String key)
SCNAnimatablePause the animation with the given identifier.
pauseAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to pause.public SCNMatrix4 projectionTransform()
Determines the projection transform used by the camera to project the world onscreen.
public void removeAllAnimations()
SCNAnimatableRemove all animations.
removeAllAnimations in interface SCNAnimatablepublic void removeAnimationForKey(java.lang.String key)
SCNAnimatableRemove the animation with the given identifier.
removeAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to remove.public void removeAnimationForKeyFadeOutDuration(java.lang.String key,
double duration)
SCNAnimatableSmoothly remove the animation with the given identifier.
removeAnimationForKeyFadeOutDuration in interface SCNAnimatablekey - The identifier for the animation to remove.duration - The fade out duration used to remove the animation.public void resumeAnimationForKey(java.lang.String key)
SCNAnimatableResume the animation with the given identifier.
resumeAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to resume.public double saturation()
Controls the overall saturation of the scene. Defaults to 1 (no effect).
public void setAperture(double value)
Determines the receiver's aperture. Animatable.
Defaults to 1/8.0.
public void setAutomaticallyAdjustsZRange(boolean value)
Determines whether the receiver automatically adjusts the zFar value. Defaults to NO.
When set to YES, the near and far planes are automatically set to fit the bounding box of the entire scene at render time.
public void setAverageGray(double value)
Determines the average gray level desired in the final image. Defaults to 0.18.
public void setBloomBlurRadius(double value)
Determines the radius of the bloom effect in points. Animatable. Defaults to 4.
public void setBloomIntensity(double value)
Determines the intensity of the bloom effect. Animatable. Defaults to 0 (no effect).
public void setBloomThreshold(double value)
Determines the luminance threshold for the bloom effect. Animatable. Defaults to 1.
public void setCategoryBitMask(long value)
Determines the node categories that are visible from the receiver. Defaults to all bits set.
public void setColorFringeIntensity(double value)
Controls the intensity of the color shift effect. Defaults to 1.
public void setColorFringeStrength(double value)
Controls the strength of the color shift effect. Defaults to 0 (no effect).
public void setContrast(double value)
Controls the overall contrast of the scene. Defaults to 0 (no effect).
public void setExposureAdaptationBrighteningSpeedFactor(double value)
Determines the exposure adaptation speed when going from bright areas to dark areas. Defaults to 0.4.
public void setExposureAdaptationDarkeningSpeedFactor(double value)
Determines the exposure adaptation speed when going from dark areas to bright areas. Defaults to 0.6.
public void setExposureOffset(double value)
Determines the logarithmic exposure biasing, in EV. Defaults to 0.
public void setFocalBlurRadius(double value)
Determines the receiver's focal radius. Animatable.
Determines the maximum amount of blur for objects out of focus. Defaults to 0.
public void setFocalDistance(double value)
Determines the receiver's focal distance. Animatable.
When non zero, the focal distance determines how the camera focuses the objects in the 3d scene. Defaults to 10.0 prior to macOS 10.13, iOS 11, tvOS 11 and watchOS 4. Defaults to 2.5 otherwise.
public void setFocalSize(double value)
Determines the receiver's focal size. Animatable.
Determines the size of the area around focalDistance where the objects are in focus. Defaults to 0.
public void setMaximumExposure(double value)
Determines the maximum exposure offset of the adaptation, in EV. Defaults to -15.
public void setMinimumExposure(double value)
Determines the minimum exposure offset of the adaptation, in EV. Defaults to -15.
public void setMotionBlurIntensity(double value)
Determines the intensity of the motion blur. Animatable. Defaults to 0.
An intensity of zero means no motion blur. The intensity should not exceeed 1.
public void setName(java.lang.String value)
Determines the name of the receiver.
public void setOrthographicScale(double value)
Determines the receiver's orthographic scale value. Animatable. Defaults to 1.
This setting determines the size of the camera's visible area. This is only enabled when usesOrthographicProjection is set to YES.
public void setProjectionTransform(SCNMatrix4 value)
Determines the projection transform used by the camera to project the world onscreen.
public void setSaturation(double value)
Controls the overall saturation of the scene. Defaults to 1 (no effect).
public void setSpeedForAnimationKey(double speed,
java.lang.String key)
SCNAnimatableUpdate the animation speed of the animation with the given identifier.
setSpeedForAnimationKey in interface SCNAnimatablespeed - The new speed of the animation.key - The identifier for the animation to update.public void setTechnique(SCNTechnique value)
SCNTechniqueSupportSpecifies the technique of the receiver. Defaults to nil.
setTechnique in interface SCNTechniqueSupportpublic void setUsesOrthographicProjection(boolean value)
Determines whether the receiver uses an orthographic projection or not. Defaults to NO.
public void setVignettingIntensity(double value)
Controls the intensity of the vignetting effect. Defaults to 0 (no effect).
public void setVignettingPower(double value)
Controls the shape of the vignetting effect. Defaults to 0 (no effect).
public void setWantsExposureAdaptation(boolean value)
Determines if the receiver should simulate an eye and continuously adjust to luminance. Defaults to YES.
public void setWantsHDR(boolean value)
Determines if the receiver has a high dynamic range. Defaults to NO.
public void setWhitePoint(double value)
Determines the smallest luminance level that will be mapped to white in the final image. Defaults to 1.
public void setXFov(double value)
Determines the receiver's field of view on the X axis (in degree). Animatable.
When both xFov and yFov are null an yFov of 60° is used. When both are set, the one that best fits the renderer's aspect ratio is used. When only one is set, it is used. Defaults to 0.
public void setYFov(double value)
Determines the receiver's field of view on the Y axis (in degree). Animatable.
When both xFov and yFov are null an yFov of 60° is used. When both are set, the one that best fits the renderer's aspect ratio is used. When only one is set, it is used. Defaults to 0.
public void setZFar(double value)
Determines the receiver's far value. Animatable.
The far value determines the maximal distance between the camera and a visible surface. If a surface is further from the camera than this maximal distance, then the surface is clipped. Defaults to 100.
public void setZNear(double value)
Determines the receiver's near value. Animatable.
The near value determines the minimal distance between the camera and a visible surface. If a surface is closer to the camera than this minimal distance, then the surface is clipped. The near value must be different than zero. Defaults to 1.
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic SCNTechnique technique()
SCNTechniqueSupportSpecifies the technique of the receiver. Defaults to nil.
technique in interface SCNTechniqueSupportpublic boolean usesOrthographicProjection()
Determines whether the receiver uses an orthographic projection or not. Defaults to NO.
public double vignettingIntensity()
Controls the intensity of the vignetting effect. Defaults to 0 (no effect).
public double vignettingPower()
Controls the shape of the vignetting effect. Defaults to 0 (no effect).
public boolean wantsExposureAdaptation()
Determines if the receiver should simulate an eye and continuously adjust to luminance. Defaults to YES.
public boolean wantsHDR()
Determines if the receiver has a high dynamic range. Defaults to NO.
public double whitePoint()
Determines the smallest luminance level that will be mapped to white in the final image. Defaults to 1.
public double xFov()
Determines the receiver's field of view on the X axis (in degree). Animatable.
When both xFov and yFov are null an yFov of 60° is used. When both are set, the one that best fits the renderer's aspect ratio is used. When only one is set, it is used. Defaults to 0.
public double yFov()
Determines the receiver's field of view on the Y axis (in degree). Animatable.
When both xFov and yFov are null an yFov of 60° is used. When both are set, the one that best fits the renderer's aspect ratio is used. When only one is set, it is used. Defaults to 0.
public double zFar()
Determines the receiver's far value. Animatable.
The far value determines the maximal distance between the camera and a visible surface. If a surface is further from the camera than this maximal distance, then the surface is clipped. Defaults to 100.
public double zNear()
Determines the receiver's near value. Animatable.
The near value determines the minimal distance between the camera and a visible surface. If a surface is closer to the camera than this minimal distance, then the surface is clipped. The near value must be different than zero. Defaults to 1.
public void addAnimationPlayerForKey(SCNAnimationPlayer player, java.lang.String key)
SCNAnimatableAdd 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.
addAnimationPlayerForKey in interface SCNAnimatableplayer - Added animation player.key - May be any string such that only one animation per unique key is added per animatable object.play]public SCNAnimationPlayer animationPlayerForKey(java.lang.String key)
SCNAnimatableReturns the animation player with the given identifier
This will return nil if no such animation player exists.
animationPlayerForKey in interface SCNAnimatablekey - The identifier for the animation player to retrieve.public long apertureBladeCount()
Determines the receiver's blade count of the aperture.
Defaults to 6.
public double fStop()
Determines the receiver's fstop. Animatable.
Defaults to 5.6.
public double fieldOfView()
Determines the receiver's field of view (in degree). Defaults to 60°. Animatable.
The fieldOfView is automatically updated when the sensorHeight or focalLength are set. Setting the fieldOfView will update the focalLength according to the new fieldOfView and the current sensorHeight.
public long focalBlurSampleCount()
Determines the receiver's sample count for depth of field effect.
Defaults to 25.
public double focalLength()
Determines the receiver's focal length in millimeter. Defaults to 50mm. Animatable.
The focalLength is automatically updated when the sensorHeight or fieldOfView are set. Setting the focalLength will update the fieldOfView according to the new focalLength and the current sensorHeight.
public double focusDistance()
Determines the receiver's focus distance. Animatable.
Defaults to 2.5
public long projectionDirection()
Determines whether the fieldOfView (or orthographicScale) is vertical or horizontal. Defaults to vertical.
public void removeAnimationForKeyBlendOutDuration(java.lang.String key,
double duration)
SCNAnimatableSmoothly remove the animation with the given identifier.
removeAnimationForKeyBlendOutDuration in interface SCNAnimatablekey - The identifier for the animation to remove.duration - The blend out duration used to remove the animation.public double screenSpaceAmbientOcclusionBias()
Determines self occlusion bias in scene unit.
defaults to 0.03.
public double screenSpaceAmbientOcclusionDepthThreshold()
Determines the depth blur threshold in scene unit.
defaults to 0.2.
public double screenSpaceAmbientOcclusionIntensity()
Determines the intensity of the screen space ambient occlusion. Animatable.
defaults to 0.
public double screenSpaceAmbientOcclusionNormalThreshold()
Determines the normal blur threshold.
defaults to 0.3.
public double screenSpaceAmbientOcclusionRadius()
Determines the screen space ambient occlusion radius in scene unit. Animatable.
defaults to 5.
public double sensorHeight()
Determines the vertical size of the sensor in millimeter. Defaults to 24mm. Animatable.
Setting the sensorHeight will automatically update the fieldOfView according to the new sensorHeight and the current focalLength.
public void setApertureBladeCount(long value)
Determines the receiver's blade count of the aperture.
Defaults to 6.
public void setFStop(double value)
Determines the receiver's fstop. Animatable.
Defaults to 5.6.
public void setFieldOfView(double value)
Determines the receiver's field of view (in degree). Defaults to 60°. Animatable.
The fieldOfView is automatically updated when the sensorHeight or focalLength are set. Setting the fieldOfView will update the focalLength according to the new fieldOfView and the current sensorHeight.
public void setFocalBlurSampleCount(long value)
Determines the receiver's sample count for depth of field effect.
Defaults to 25.
public void setFocalLength(double value)
Determines the receiver's focal length in millimeter. Defaults to 50mm. Animatable.
The focalLength is automatically updated when the sensorHeight or fieldOfView are set. Setting the focalLength will update the fieldOfView according to the new focalLength and the current sensorHeight.
public void setFocusDistance(double value)
Determines the receiver's focus distance. Animatable.
Defaults to 2.5
public void setProjectionDirection(long value)
Determines whether the fieldOfView (or orthographicScale) is vertical or horizontal. Defaults to vertical.
public void setScreenSpaceAmbientOcclusionBias(double value)
Determines self occlusion bias in scene unit.
defaults to 0.03.
public void setScreenSpaceAmbientOcclusionDepthThreshold(double value)
Determines the depth blur threshold in scene unit.
defaults to 0.2.
public void setScreenSpaceAmbientOcclusionIntensity(double value)
Determines the intensity of the screen space ambient occlusion. Animatable.
defaults to 0.
public void setScreenSpaceAmbientOcclusionNormalThreshold(double value)
Determines the normal blur threshold.
defaults to 0.3.
public void setScreenSpaceAmbientOcclusionRadius(double value)
Determines the screen space ambient occlusion radius in scene unit. Animatable.
defaults to 5.
public void setSensorHeight(double value)
Determines the vertical size of the sensor in millimeter. Defaults to 24mm. Animatable.
Setting the sensorHeight will automatically update the fieldOfView according to the new sensorHeight and the current focalLength.
public void setWantsDepthOfField(boolean value)
Determines if the receiver has depth of field. Defaults to NO.
public boolean wantsDepthOfField()
Determines if the receiver has depth of field. Defaults to NO.
public long bloomIterationCount()
Determines the number of blur iterations. Defaults to 1.
public double bloomIterationSpread()
Determines how the bloom iterations are spread. Defaults to 0.
public double grainIntensity()
Controls the intensity of the grain. Defaults to 0 (no effect).
public boolean grainIsColored()
Determines if the grain is colored or not. Defaults to NO.
public double grainScale()
Controls the scale of the grain. Defaults to 1.
public SCNMatrix4 projectionTransformWithViewportSize(CGSize viewportSize)
public void setBloomIterationCount(long value)
Determines the number of blur iterations. Defaults to 1.
public void setBloomIterationSpread(double value)
Determines how the bloom iterations are spread. Defaults to 0.
public void setGrainIntensity(double value)
Controls the intensity of the grain. Defaults to 0 (no effect).
public void setGrainIsColored(boolean value)
Determines if the grain is colored or not. Defaults to NO.
public void setGrainScale(double value)
Controls the scale of the grain. Defaults to 1.
public void setWhiteBalanceTemperature(double value)
Controls the overall white balance temperature of the scene. Defaults to 0 (no effect).
public void setWhiteBalanceTint(double value)
Controls the overall white balance tint of the scene. Defaults to 0 (no effect).
public double whiteBalanceTemperature()
Controls the overall white balance temperature of the scene. Defaults to 0 (no effect).
public double whiteBalanceTint()
Controls the overall white balance tint of the scene. Defaults to 0 (no effect).
public void removeAllAnimationsWithBlendOutDuration(double duration)
SCNAnimatableSmoothly remove all animations.
removeAllAnimationsWithBlendOutDuration in interface SCNAnimatableduration - The blend out duration used to remove the animation.