Class

cesium

Scene

Related Doc: package cesium

Permalink

class Scene extends Object

The container for all 3D graphical objects and state in a Cesium virtual scene. Generally, a scene is not created directly; instead, it is implicitly created by CesiumWidget

contextOptions parameter details:

The default values are: { webgl : { alpha : false, depth : true, stencil : false, antialias : true, premultipliedAlpha : true, preserveDrawingBuffer : false, failIfMajorPerformanceCaveat : false }, allowTextureFilterAnisotropic : true }

The webgl property corresponds to the http://www.khronos.org/registry/webgl/specs/latest/#5.2|WebGLContextAttributes object used to create the WebGL context.

webgl.alpha defaults to false, which can improve performance compared to the standard WebGL default of true. If an application needs to composite Cesium above other HTML elements using alpha-blending, set webgl.alpha to true.

The other webgl properties match the WebGL defaults for http://www.khronos.org/registry/webgl/specs/latest/#5.2|WebGLContextAttributes

allowTextureFilterAnisotropic defaults to true, which enables anisotropic texture filtering when the WebGL extension is supported. Setting this to false will improve performance, but hurt visual quality, especially for horizon views.

alias Scene

- The options object takes the following properties - {Canvas} options.canvas The HTML canvas element to create the scene for. - {Object} [options.contextOptions] Context and WebGL creation properties. See details above. - {Element} [options.creditContainer] The HTML element in which the credits will be displayed. - {MapProjection} [options.mapProjection=new GeographicProjection()] The map projection to use in 2D and Columbus View modes. - {Boolean} [options.orderIndependentTranslucency=true] If true and the configuration supports it, use order independent translucency. - {Boolean} [options.scene3DOnly=false] If true, optimizes memory use and performance for 3D mode but disables the ability to use 2D or Columbus View. - {Number} [options.terrainExaggeration=1.0] A scalar used to exaggerate the terrain. Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.

Annotations
@RawJSType() @native() @JSName( "Cesium.Scene" )
Example:
  1. // Create scene without anisotropic texture filtering var scene = new Cesium.Scene({ canvas : canvas, contextOptions : { allowTextureFilterAnisotropic : false } });

See also

http://www.khronos.org/registry/webgl/specs/latest/#5.2|WebGLContextAttributes exception {DeveloperError} options and options.canvas are required.

CesiumWidget

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Scene
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Scene(options: SceneOptions)

    Permalink
  2. new Scene()

    Permalink
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. var backgroundColor: Color

    Permalink
  6. var camera: Camera

    Permalink
  7. var canvas: HTMLCanvasElement

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def completeMorph(): Dynamic

    Permalink
  10. var completeMorphOnUserInput: Boolean

    Permalink
  11. var debugCommandFilter: Function

    Permalink
  12. var debugFrustumStatistics: Any

    Permalink
  13. var debugShowCommands: Boolean

    Permalink
  14. var debugShowDepthFrustum: Double

    Permalink
  15. var debugShowFramesPerSecond: Boolean

    Permalink
  16. var debugShowFrustums: Boolean

    Permalink
  17. var debugShowGlobeDepth: Boolean

    Permalink
  18. def destroy(): Unit

    Permalink
  19. var drawingBufferHeight: Double

    Permalink
  20. var drawingBufferWidth: Double

    Permalink
  21. def drillPick(windowPosition: Cartesian2, limit: Double = ???): Array[Any]

    Permalink
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. var farToNearRatio: Double

    Permalink
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. var fog: Fog

    Permalink
  27. var fxaa: Boolean

    Permalink
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. var globe: Globe

    Permalink
  30. var groundPrimitives: PrimitiveCollection

    Permalink
  31. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  32. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  33. var id: String

    Permalink
  34. var imageryLayers: ImageryLayerCollection

    Permalink
  35. def isDestroyed(): Boolean

    Permalink
  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  38. var mapProjection: MapProjection

    Permalink
  39. var maximumAliasedLineWidth: Double

    Permalink
  40. var maximumCubeMapSize: Double

    Permalink
  41. var mode: SceneMode

    Permalink
  42. var moon: Moon

    Permalink
  43. var morphComplete: Event

    Permalink
  44. var morphStart: Event

    Permalink
  45. var morphTime: Double

    Permalink
  46. def morphTo2D(duration: Double = ???): Dynamic

    Permalink
  47. def morphTo3D(duration: Double = ???): Dynamic

    Permalink
  48. def morphToColumbusView(duration: Double = ???): Dynamic

    Permalink
  49. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  50. var nearToFarDistance2D: Double

    Permalink
  51. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  52. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. var orderIndependentTranslucency: Boolean

    Permalink
  54. def pick(windowPosition: Cartesian2): Dynamic

    Permalink
  55. def pickPosition(windowPosition: Cartesian2, result: Cartesian3 = ???): Cartesian3

    Permalink
  56. var pickPositionSupported: Boolean

    Permalink
  57. var postRender: Event

    Permalink
  58. var preRender: Event

    Permalink
  59. var primitives: PrimitiveCollection

    Permalink
  60. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  61. var renderError: Event

    Permalink
  62. var rethrowRenderErrors: Boolean

    Permalink
  63. var rotatable2D: Boolean

    Permalink
  64. var scene3DOnly: Boolean

    Permalink
  65. var screenSpaceCameraController: ScreenSpaceCameraController

    Permalink
  66. var shadowMap: ShadowMap

    Permalink
  67. var skyAtmosphere: SkyAtmosphere

    Permalink
  68. var skyBox: SkyBox

    Permalink
  69. var sun: Sun

    Permalink
  70. var sunBloom: Boolean

    Permalink
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  72. var terrainExaggeration: Double

    Permalink
  73. var terrainProvider: TerrainProvider

    Permalink
  74. var terrainProviderChanged: Event

    Permalink
  75. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  76. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  77. var useDepthPicking: Boolean

    Permalink
  78. var useWebVR: Boolean

    Permalink
  79. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  80. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped