Package apple.scenekit
Class SCNScene
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.scenekit.SCNScene
-
- All Implemented Interfaces:
NSCoding,NSSecureCoding,GKSceneRootNodeType,NSObject
public class SCNScene extends NSObject implements NSSecureCoding, GKSceneRootNodeType
SCNScene SCNScene is the class that describes a 3d scene. It encapsulates a node hierarchy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSCNScene.Block_writeToURLOptionsDelegateProgressHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSCNScene(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()voidaddParticleSystemWithTransform(@NotNull SCNParticleSystem system, SCNMatrix4 transform)Add a particle system at the given location.static SCNScenealloc()static SCNSceneallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@Nullable java.lang.ObjectattributeForKey(@NotNull java.lang.String key)attributeForKey: Retrieves a scene attribute.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)@NotNull SCNMaterialPropertybackground()[@property] background Specifies the background of the receiver.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidencodeWithCoder(@NotNull NSCoder coder)@NotNull java.lang.ObjectfogColor()[@property] fogColor Specifies the receiver's fog color (NSColor or CGColorRef).doublefogDensityExponent()[@property] fogDensityExponent Specifies the receiver's fog power exponent.doublefogEndDistance()[@property] fogEndDistance Specifies the receiver's fog end distance.doublefogStartDistance()[@property] fogStartDistance Specifies the receiver's fog start distance.static longhash_static()SCNSceneinit()SCNSceneinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERstatic 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)booleanisPaused()[@property] paused Controls whether or not the scene is paused.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@NotNull SCNMaterialPropertylightingEnvironment()[@property] lightingEnvironment Specifies the receiver's environment for image-based lighting (IBL).static SCNScenenew_objc()@Nullable NSArray<? extends SCNParticleSystem>particleSystems()The particle systems attached to the scene that are active.@NotNull SCNPhysicsWorldphysicsWorld()[@property] physicsWorld Specifies the physics world of the receiver.voidremoveAllParticleSystems()Remove all particle systems in the scene.voidremoveParticleSystem(@NotNull SCNParticleSystem system)Remove the specified particle system from the receiver.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)@NotNull SCNNoderootNode()[@property] root Specifies the root node of the node hierarchy.static SCNScenescene()static SCNScenesceneNamed(@NotNull java.lang.String name)sceneNamed: Creates and returns a scene associated with the specified filename.static SCNScenesceneNamedInDirectoryOptions(@NotNull java.lang.String name, @Nullable java.lang.String directory, @Nullable NSDictionary<java.lang.String,?> options)sceneNamed:options: Creates and returns a scene associated with the specified filename.static SCNScenesceneWithMDLAsset(@NotNull MDLAsset mdlAsset)API-Since: 9.0static SCNScenesceneWithURLOptionsError(@NotNull NSURL url, @Nullable NSDictionary<java.lang.String,?> options, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)sceneWithURL:options:error: Creates and returns a scene from the specified URL.doublescreenSpaceReflectionMaximumDistance()[@property] screenSpaceReflectionMaximumDistance Determines the maximum distance in world units.longscreenSpaceReflectionSampleCount()[@property] screenSpaceReflectionSampleCount Determines the sample count of the screen space reflection.doublescreenSpaceReflectionStride()[@property] screenSpaceReflectionStride Raytracing step size in pixel.voidsetAttributeForKey(@Nullable java.lang.Object attribute, @NotNull java.lang.String key)setAttribute:forKey: Sets a scene attribute The available keys are listed in the "Scene attributes" group.voidsetFogColor(@NotNull java.lang.Object value)[@property] fogColor Specifies the receiver's fog color (NSColor or CGColorRef).voidsetFogDensityExponent(double value)[@property] fogDensityExponent Specifies the receiver's fog power exponent.voidsetFogEndDistance(double value)[@property] fogEndDistance Specifies the receiver's fog end distance.voidsetFogStartDistance(double value)[@property] fogStartDistance Specifies the receiver's fog start distance.voidsetPaused(boolean value)[@property] paused Controls whether or not the scene is paused.voidsetScreenSpaceReflectionMaximumDistance(double value)[@property] screenSpaceReflectionMaximumDistance Determines the maximum distance in world units.voidsetScreenSpaceReflectionSampleCount(long value)[@property] screenSpaceReflectionSampleCount Determines the sample count of the screen space reflection.voidsetScreenSpaceReflectionStride(double value)[@property] screenSpaceReflectionStride Raytracing step size in pixel.static voidsetVersion_static(long aVersion)voidsetWantsScreenSpaceReflection(boolean value)[@property] wantsScreenSpaceReflection Determines if the scene use screen space reflection.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()static booleanuseStoredAccessor()Deprecated.static longversion_static()booleanwantsScreenSpaceReflection()[@property] wantsScreenSpaceReflection Determines if the scene use screen space reflection.booleanwriteToURLOptionsDelegateProgressHandler(@NotNull NSURL url, @Nullable NSDictionary<java.lang.String,?> options, @Nullable SCNSceneExportDelegate delegate, @Nullable SCNScene.Block_writeToURLOptionsDelegateProgressHandler progressHandler)writeToURL:options:delegate:progressHandler: write the scene to the specified url.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SCNScene alloc()
-
allocWithZone
public static SCNScene allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static SCNScene new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
scene
public static SCNScene scene()
-
sceneNamed
public static SCNScene sceneNamed(@NotNull @NotNull java.lang.String name)
sceneNamed: Creates and returns a scene associated with the specified filename. This method initializes with no options and does not check for errors. The resulting object is not cached.- Parameters:
name- The name of the file. The method looks for a file with the specified name in the application’s main bundle.
-
sceneNamedInDirectoryOptions
public static SCNScene sceneNamedInDirectoryOptions(@NotNull @NotNull java.lang.String name, @Nullable @Nullable java.lang.String directory, @Nullable @Nullable NSDictionary<java.lang.String,?> options)
sceneNamed:options: Creates and returns a scene associated with the specified filename. This method initializes with no options and does not check for errors. The resulting object is not cached.- Parameters:
name- The name of the file. The method looks for a file with the specified name in the application’s main bundle.directory- The name of the bundle sub-directory to search into.options- An options dictionary. The relevant keys are documented in the SCNSceneSource class.
-
sceneWithMDLAsset
public static SCNScene sceneWithMDLAsset(@NotNull @NotNull MDLAsset mdlAsset)
API-Since: 9.0
-
sceneWithURLOptionsError
public static SCNScene sceneWithURLOptionsError(@NotNull @NotNull NSURL url, @Nullable @Nullable NSDictionary<java.lang.String,?> options, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
sceneWithURL:options:error: Creates and returns a scene from the specified URL. This method is here for convenience. It is equivalent to initializing a SCNSceneSource with the specified url and options, and asking it for its scene with the same options.- Parameters:
url- The URL to the 3D file.options- An options dictionary. The relevant keys are documented in the SCNSceneSource class.error- A NSError object passed by reference to get more information about the error when a nil is returned.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
version_static
public static long version_static()
-
addParticleSystemWithTransform
public void addParticleSystemWithTransform(@NotNull @NotNull SCNParticleSystem system, SCNMatrix4 transform)Add a particle system at the given location.
-
attributeForKey
@Nullable public @Nullable java.lang.Object attributeForKey(@NotNull @NotNull java.lang.String key)attributeForKey: Retrieves a scene attribute. The available keys are listed in the "Scene attributes" group.- Parameters:
key- An NSString object that specifies the attribute to be read
-
background
@NotNull public @NotNull SCNMaterialProperty background()
[@property] background Specifies the background of the receiver. The background is rendered before the rest of the scene. The background can be rendered as a skybox by setting a cube map as described in SCNMaterialProperty.h Colors are supported starting in macOS 10.12 and iOS 10. Prior to that you can use SCNView.backgroundColor. MDLSkyCubeTexture is supported starting in macOS 10.13 and iOS 11.
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
fogColor
@NotNull public @NotNull java.lang.Object fogColor()
[@property] fogColor Specifies the receiver's fog color (NSColor or CGColorRef). Animatable. Defaults to white. The initial value is a NSColor.
-
fogDensityExponent
public double fogDensityExponent()
[@property] fogDensityExponent Specifies the receiver's fog power exponent. Animatable. Defaults to 1. Controls the attenuation between the start and end fog distances. 0 means a constant fog, 1 a linear fog and 2 a quadratic fog, but any positive value will work.
-
fogEndDistance
public double fogEndDistance()
[@property] fogEndDistance Specifies the receiver's fog end distance. Animatable. Defaults to 0.
-
fogStartDistance
public double fogStartDistance()
[@property] fogStartDistance Specifies the receiver's fog start distance. Animatable. Defaults to 0.
-
initWithCoder
public SCNScene initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
isPaused
public boolean isPaused()
[@property] paused Controls whether or not the scene is paused. Defaults to NO. Pausing a scene will pause animations, actions, particles and physics.
-
setPaused
public void setPaused(boolean value)
[@property] paused Controls whether or not the scene is paused. Defaults to NO. Pausing a scene will pause animations, actions, particles and physics.
-
lightingEnvironment
@NotNull public @NotNull SCNMaterialProperty lightingEnvironment()
[@property] lightingEnvironment Specifies the receiver's environment for image-based lighting (IBL). The environment should be a cube map as described in SCNMaterialProperty.h. MDLSkyCubeTexture is supported starting in macOS 10.13 and iOS 11. API-Since: 10.0
-
particleSystems
@Nullable public @Nullable NSArray<? extends SCNParticleSystem> particleSystems()
The particle systems attached to the scene that are active.
-
physicsWorld
@NotNull public @NotNull SCNPhysicsWorld physicsWorld()
[@property] physicsWorld Specifies the physics world of the receiver. Every scene automatically creates a physics world object to simulate physics on nodes in the scene. You use this property to access the scene’s global physics properties, such as gravity. To add physics to a particular node, see physicsBody.
-
removeAllParticleSystems
public void removeAllParticleSystems()
Remove all particle systems in the scene.
-
removeParticleSystem
public void removeParticleSystem(@NotNull @NotNull SCNParticleSystem system)Remove the specified particle system from the receiver.
-
rootNode
@NotNull public @NotNull SCNNode rootNode()
[@property] root Specifies the root node of the node hierarchy. Note that we have only one root node, whereas some file formats might have many nodes at the root of their hierarchies. The root node(s) of the imported files will therefore be children of the SCNScene's root node.
-
setAttributeForKey
public void setAttributeForKey(@Nullable @Nullable java.lang.Object attribute, @NotNull @NotNull java.lang.String key)setAttribute:forKey: Sets a scene attribute The available keys are listed in the "Scene attributes" group.- Parameters:
attribute- An object that specifies the value of the attribute to be written.key- An NSString object that specifies the attribute to be written
-
setFogColor
public void setFogColor(@NotNull @NotNull java.lang.Object value)[@property] fogColor Specifies the receiver's fog color (NSColor or CGColorRef). Animatable. Defaults to white. The initial value is a NSColor.
-
setFogDensityExponent
public void setFogDensityExponent(double value)
[@property] fogDensityExponent Specifies the receiver's fog power exponent. Animatable. Defaults to 1. Controls the attenuation between the start and end fog distances. 0 means a constant fog, 1 a linear fog and 2 a quadratic fog, but any positive value will work.
-
setFogEndDistance
public void setFogEndDistance(double value)
[@property] fogEndDistance Specifies the receiver's fog end distance. Animatable. Defaults to 0.
-
setFogStartDistance
public void setFogStartDistance(double value)
[@property] fogStartDistance Specifies the receiver's fog start distance. Animatable. Defaults to 0.
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
writeToURLOptionsDelegateProgressHandler
public boolean writeToURLOptionsDelegateProgressHandler(@NotNull @NotNull NSURL url, @Nullable @Nullable NSDictionary<java.lang.String,?> options, @Nullable @Nullable SCNSceneExportDelegate delegate, @Nullable @Nullable SCNScene.Block_writeToURLOptionsDelegateProgressHandler progressHandler)writeToURL:options:delegate:progressHandler: write the scene to the specified url. macOS 10.10 and lower only supports exporting to .dae files. Starting macOS 10.11 exporting supports .dae, .scn as well as file all formats supported by Model I/O. Starting iOS 10 exporting supports .scn as well as all file formats supported by Model I/O. API-Since: 10.0- Parameters:
url- the destination url to write the scene to.options- A dictionary of options. The valid keys are described in the "Scene writing options" section.delegate- an optional delegate to manage external references such as images.progressHandler- an optional block to handle the progress of the operation.- Returns:
- Returns YES if the operation succeeded, NO otherwise. Errors checking can be done via the "error" parameter of the 'progressHandler'.
-
screenSpaceReflectionMaximumDistance
public double screenSpaceReflectionMaximumDistance()
[@property] screenSpaceReflectionMaximumDistance Determines the maximum distance in world units. Defaults to 1000. API-Since: 13.0
-
screenSpaceReflectionSampleCount
public long screenSpaceReflectionSampleCount()
[@property] screenSpaceReflectionSampleCount Determines the sample count of the screen space reflection. Defaults to 64. API-Since: 13.0
-
screenSpaceReflectionStride
public double screenSpaceReflectionStride()
[@property] screenSpaceReflectionStride Raytracing step size in pixel. The lower the better, the higher the faster. Defaults to 8. API-Since: 13.0
-
setScreenSpaceReflectionMaximumDistance
public void setScreenSpaceReflectionMaximumDistance(double value)
[@property] screenSpaceReflectionMaximumDistance Determines the maximum distance in world units. Defaults to 1000. API-Since: 13.0
-
setScreenSpaceReflectionSampleCount
public void setScreenSpaceReflectionSampleCount(long value)
[@property] screenSpaceReflectionSampleCount Determines the sample count of the screen space reflection. Defaults to 64. API-Since: 13.0
-
setScreenSpaceReflectionStride
public void setScreenSpaceReflectionStride(double value)
[@property] screenSpaceReflectionStride Raytracing step size in pixel. The lower the better, the higher the faster. Defaults to 8. API-Since: 13.0
-
setWantsScreenSpaceReflection
public void setWantsScreenSpaceReflection(boolean value)
[@property] wantsScreenSpaceReflection Determines if the scene use screen space reflection. Defaults to NO. API-Since: 13.0
-
wantsScreenSpaceReflection
public boolean wantsScreenSpaceReflection()
[@property] wantsScreenSpaceReflection Determines if the scene use screen space reflection. Defaults to NO. API-Since: 13.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-