public class SCNScene extends NSObject implements NSSecureCoding, GKSceneRootNodeType
SCNScene is the class that describes a 3d scene. It encapsulates a node hierarchy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SCNScene.Block_writeToURLOptionsDelegateProgressHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SCNScene(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 |
addParticleSystemWithTransform(SCNParticleSystem system,
SCNMatrix4 transform)
Add a particle system at the given location.
|
static SCNScene |
alloc() |
static SCNScene |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
java.lang.Object |
attributeForKey(java.lang.String key)
attributeForKey:
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
SCNMaterialProperty |
background()
[@property] background
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(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.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
java.lang.Object |
fogColor()
[@property] fogColor
|
double |
fogDensityExponent()
[@property] fogDensityExponent
|
double |
fogEndDistance()
[@property] fogEndDistance
|
double |
fogStartDistance()
[@property] fogStartDistance
|
static long |
hash_static() |
SCNScene |
init() |
SCNScene |
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 |
isPaused()
[@property] paused
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
SCNMaterialProperty |
lightingEnvironment()
[@property] lightingEnvironment
|
static SCNScene |
new_objc() |
NSArray<? extends SCNParticleSystem> |
particleSystems()
The particle systems attached to the scene that are active.
|
SCNPhysicsWorld |
physicsWorld()
[@property] physicsWorld
|
void |
removeAllParticleSystems()
Remove all particle systems in the scene.
|
void |
removeParticleSystem(SCNParticleSystem system)
Remove the specified particle system from the receiver.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
SCNNode |
rootNode()
[@property] root
|
static SCNScene |
scene() |
static SCNScene |
sceneNamed(java.lang.String name)
sceneNamed:
|
static SCNScene |
sceneNamedInDirectoryOptions(java.lang.String name,
java.lang.String directory,
NSDictionary<java.lang.String,?> options)
sceneNamed:options:
|
static SCNScene |
sceneWithMDLAsset(MDLAsset mdlAsset) |
static SCNScene |
sceneWithURLOptionsError(NSURL url,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
sceneWithURL:options:error:
|
double |
screenSpaceReflectionMaximumDistance()
[@property] screenSpaceReflectionMaximumDistance
|
long |
screenSpaceReflectionSampleCount()
[@property] screenSpaceReflectionSampleCount
|
double |
screenSpaceReflectionStride()
[@property] screenSpaceReflectionStride
|
void |
setAttributeForKey(java.lang.Object attribute,
java.lang.String key)
setAttribute:forKey:
|
void |
setFogColor(java.lang.Object value)
[@property] fogColor
|
void |
setFogDensityExponent(double value)
[@property] fogDensityExponent
|
void |
setFogEndDistance(double value)
[@property] fogEndDistance
|
void |
setFogStartDistance(double value)
[@property] fogStartDistance
|
void |
setPaused(boolean value)
[@property] paused
|
void |
setScreenSpaceReflectionMaximumDistance(double value)
[@property] screenSpaceReflectionMaximumDistance
|
void |
setScreenSpaceReflectionSampleCount(long value)
[@property] screenSpaceReflectionSampleCount
|
void |
setScreenSpaceReflectionStride(double value)
[@property] screenSpaceReflectionStride
|
static void |
setVersion_static(long aVersion) |
void |
setWantsScreenSpaceReflection(boolean value)
[@property] wantsScreenSpaceReflection
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static long |
version_static() |
boolean |
wantsScreenSpaceReflection()
[@property] wantsScreenSpaceReflection
|
boolean |
writeToURLOptionsDelegateProgressHandler(NSURL url,
NSDictionary<java.lang.String,?> options,
SCNSceneExportDelegate delegate,
SCNScene.Block_writeToURLOptionsDelegateProgressHandler progressHandler)
writeToURL:options:delegate:progressHandler:
|
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 SCNScene alloc()
public static SCNScene allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
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 SCNScene new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static SCNScene scene()
public static SCNScene sceneNamed(java.lang.String name)
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.
name - The name of the file. The method looks for a file with the specified name in the application’s main bundle.public static SCNScene sceneNamedInDirectoryOptions(java.lang.String name, java.lang.String directory, NSDictionary<java.lang.String,?> 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.
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.public static SCNScene sceneWithURLOptionsError(NSURL url, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> 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.
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.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 addParticleSystemWithTransform(SCNParticleSystem system, SCNMatrix4 transform)
public java.lang.Object attributeForKey(java.lang.String key)
Retrieves a scene attribute.
The available keys are listed in the "Scene attributes" group.
key - An NSString object that specifies the attribute to be readpublic SCNMaterialProperty 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.
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic java.lang.Object fogColor()
Specifies the receiver's fog color (NSColor or CGColorRef). Animatable. Defaults to white.
The initial value is a NSColor.
public double 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.
public double fogEndDistance()
Specifies the receiver's fog end distance. Animatable. Defaults to 0.
public double fogStartDistance()
Specifies the receiver's fog start distance. Animatable. Defaults to 0.
public SCNScene initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic boolean isPaused()
Controls whether or not the scene is paused. Defaults to NO.
Pausing a scene will pause animations, actions, particles and physics.
public void setPaused(boolean value)
Controls whether or not the scene is paused. Defaults to NO.
Pausing a scene will pause animations, actions, particles and physics.
public SCNMaterialProperty 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.
public NSArray<? extends SCNParticleSystem> particleSystems()
public SCNPhysicsWorld 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.
public void removeAllParticleSystems()
public void removeParticleSystem(SCNParticleSystem system)
public SCNNode rootNode()
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.
public void setAttributeForKey(java.lang.Object attribute,
java.lang.String key)
Sets a scene attribute
The available keys are listed in the "Scene attributes" group.
attribute - An object that specifies the value of the attribute to be written.key - An NSString object that specifies the attribute to be writtenpublic void setFogColor(java.lang.Object value)
Specifies the receiver's fog color (NSColor or CGColorRef). Animatable. Defaults to white.
The initial value is a NSColor.
public void setFogDensityExponent(double value)
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.
public void setFogEndDistance(double value)
Specifies the receiver's fog end distance. Animatable. Defaults to 0.
public void setFogStartDistance(double value)
Specifies the receiver's fog start distance. Animatable. Defaults to 0.
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic boolean writeToURLOptionsDelegateProgressHandler(NSURL url, NSDictionary<java.lang.String,?> options, SCNSceneExportDelegate delegate, SCNScene.Block_writeToURLOptionsDelegateProgressHandler 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.
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.public double screenSpaceReflectionMaximumDistance()
Determines the maximum distance in world units.
Defaults to 1000.
public long screenSpaceReflectionSampleCount()
Determines the sample count of the screen space reflection.
Defaults to 64.
public double screenSpaceReflectionStride()
Raytracing step size in pixel. The lower the better, the higher the faster.
Defaults to 8.
public void setScreenSpaceReflectionMaximumDistance(double value)
Determines the maximum distance in world units.
Defaults to 1000.
public void setScreenSpaceReflectionSampleCount(long value)
Determines the sample count of the screen space reflection.
Defaults to 64.
public void setScreenSpaceReflectionStride(double value)
Raytracing step size in pixel. The lower the better, the higher the faster.
Defaults to 8.
public void setWantsScreenSpaceReflection(boolean value)
Determines if the scene use screen space reflection.
Defaults to NO.
public boolean wantsScreenSpaceReflection()
Determines if the scene use screen space reflection.
Defaults to NO.