Class SCNScene

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class SCNScene
extends NSObject
implements NSSecureCoding
  • Constructor Details

    • SCNScene

      public SCNScene()
    • SCNScene

      protected SCNScene​(NSObject.Handle h, long handle)
    • SCNScene

      protected SCNScene​(NSObject.SkipInit skipInit)
    • SCNScene

      public SCNScene​(NSCoder coder)
  • Method Details

    • getRootNode

      public SCNNode getRootNode()
    • getPhysicsWorld

      public SCNPhysicsWorld getPhysicsWorld()
    • getBackground

      public SCNMaterialProperty getBackground()
    • getLightingEnvironment

      public SCNMaterialProperty getLightingEnvironment()
      Since:
      Available in iOS 10.0 and later.
    • getFogStartDistance

      public double getFogStartDistance()
    • setFogStartDistance

      public void setFogStartDistance​(double v)
    • getFogEndDistance

      public double getFogEndDistance()
    • setFogEndDistance

      public void setFogEndDistance​(double v)
    • getFogDensityExponent

      public double getFogDensityExponent()
    • setFogDensityExponent

      public void setFogDensityExponent​(double v)
    • getFogColor

      public UIColor getFogColor()
    • setFogColor

      public void setFogColor​(UIColor v)
    • wantsScreenSpaceReflection

      public boolean wantsScreenSpaceReflection()
      Since:
      Available in iOS 13.0 and later.
    • setWantsScreenSpaceReflection

      public void setWantsScreenSpaceReflection​(boolean v)
      Since:
      Available in iOS 13.0 and later.
    • getScreenSpaceReflectionSampleCount

      public long getScreenSpaceReflectionSampleCount()
      Since:
      Available in iOS 13.0 and later.
    • setScreenSpaceReflectionSampleCount

      public void setScreenSpaceReflectionSampleCount​(long v)
      Since:
      Available in iOS 13.0 and later.
    • getScreenSpaceReflectionMaximumDistance

      public double getScreenSpaceReflectionMaximumDistance()
      Since:
      Available in iOS 13.0 and later.
    • setScreenSpaceReflectionMaximumDistance

      public void setScreenSpaceReflectionMaximumDistance​(double v)
      Since:
      Available in iOS 13.0 and later.
    • getScreenSpaceReflectionStride

      public double getScreenSpaceReflectionStride()
      Since:
      Available in iOS 13.0 and later.
    • setScreenSpaceReflectionStride

      public void setScreenSpaceReflectionStride​(double v)
      Since:
      Available in iOS 13.0 and later.
    • isPaused

      public boolean isPaused()
    • setPaused

      public void setPaused​(boolean v)
    • getParticleSystems

      public NSArray<SCNParticleSystem> getParticleSystems()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • setAttribute

      public void setAttribute​(SCNSceneAttribute key, NSObject attribute)
    • getStartTime

      public double getStartTime()
    • setStartTime

      public SCNScene setStartTime​(double startTime)
    • getEndTime

      public double getEndTime()
    • setEndTime

      public SCNScene setEndTime​(double endTime)
    • getFrameRate

      public double getFrameRate()
    • setFrameRate

      public SCNScene setFrameRate​(double frameRate)
    • getUpAxis

      public SCNVector3 getUpAxis()
    • setUpAxis

      public SCNScene setUpAxis​(SCNVector3 upAxis)
    • getAttribute

      public NSObject getAttribute​(SCNSceneAttribute key)
    • setAttribute

      protected void setAttribute​(NSObject attribute, SCNSceneAttribute key)
    • writeToURL

      public boolean writeToURL​(NSURL url, NSDictionary<NSString,​?> options, SCNSceneExportDelegate delegate, VoidBlock3<Float,​NSError,​BooleanPtr> progressHandler)
      Since:
      Available in iOS 10.0 and later.
    • create

      public static SCNScene create()
    • create

      public static SCNScene create​(String name)
    • create

      public static SCNScene create​(String name, String directory, SCNSceneSourceOptions options)
    • create

      public static SCNScene create​(NSURL url, SCNSceneSourceOptions options) throws NSErrorException
      Throws:
      NSErrorException
    • addParticleSystem

      public void addParticleSystem​(SCNParticleSystem system, SCNMatrix4 transform)
    • removeAllParticleSystems

      public void removeAllParticleSystems()
    • removeParticleSystem

      public void removeParticleSystem​(SCNParticleSystem system)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)