Trait/Object

cesium

Billboard

Related Docs: object Billboard | package cesium

Permalink

trait Billboard extends Object

A viewport-aligned image positioned in the 3D scene, that is created and rendered using a BillboardCollection A billboard is created and its initial properties are set by calling BillboardCollection#add


Example billboards

alias Billboard

performance Reading a property, e.g., Billboard#show, is constant time. Assigning to a property is constant time but results in CPU to GPU traffic when BillboardCollection#update is called. The per-billboard traffic is the same regardless of how many properties were updated. If most billboards in a collection need to be updated, it may be more efficient to clear the collection with BillboardCollection#removeAll and add new billboards instead of modifying each one.

exception {DeveloperError} scaleByDistance.far must be greater than scaleByDistance.near exception {DeveloperError} translucencyByDistance.far must be greater than translucencyByDistance.near exception {DeveloperError} pixelOffsetScaleByDistance.far must be greater than pixelOffsetScaleByDistance.near

Annotations
@RawJSType() @native()
See also

Label demo Sandcastle Billboard Demo

BillboardCollection#add

BillboardCollection

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

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. var alignedAxis: Cartesian3

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. var color: Color

    Permalink
  8. def computeScreenSpacePosition(scene: Scene, result: Cartesian2 = ???): Cartesian2

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

    Permalink
    Definition Classes
    AnyRef
  10. def equals(other: Billboard): Boolean

    Permalink
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. var eyeOffset: Cartesian3

    Permalink
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. var height: Double

    Permalink
  18. var heightReference: HeightReference

    Permalink
  19. var horizontalOrigin: HorizontalOrigin

    Permalink
  20. var id: Any

    Permalink
  21. var image: String

    Permalink
  22. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. var pixelOffset: Cartesian2

    Permalink
  28. var pixelOffsetScaleByDistance: NearFarScalar

    Permalink
  29. var position: Cartesian3

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

    Permalink
    Definition Classes
    Object
  31. var ready: Boolean

    Permalink
  32. var rotation: Double

    Permalink
  33. var scale: Double

    Permalink
  34. var scaleByDistance: NearFarScalar

    Permalink
  35. def setImage(id: String, image: |[|[|[HTMLImageElement, HTMLCanvasElement], String], CreateImageCallback]): Dynamic

    Permalink
  36. def setImageSubRegion(id: String, subRegion: BoundingRectangle): Dynamic

    Permalink
  37. var show: Boolean

    Permalink
  38. var sizeInMeters: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  40. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  42. var translucencyByDistance: NearFarScalar

    Permalink
  43. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  44. var verticalOrigin: VerticalOrigin

    Permalink
  45. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. var width: Double

    Permalink

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped