@JsType(isNative=true, namespace="<global>", name="Object") public class BillboardOptions extends Object
Modifier and Type | Field and Description |
---|---|
Cartesian3 |
alignedAxis
Gets or sets the aligned axis in world space.
|
Color |
color
Gets or sets the color that is multiplied with the billboard's texture.
|
DistanceDisplayCondition |
distanceDisplayCondition
Gets or sets the condition specifying at what distance from the camera that this billboard will be displayed.
|
Cartesian3 |
eyeOffset
Gets or sets the 3D Cartesian offset applied to this billboard in eye coordinates.
|
Number |
height
Gets or sets a height for the billboard.
|
Number |
heightReference
Gets or sets the height reference of this billboard.
|
Number |
horizontalOrigin
Gets or sets the horizontal origin of this billboard, which determines if the billboard is to the left, center, or right of its position.
|
Object |
id
Gets or sets the user-defined object returned when the billboard is picked.
|
String |
image
Gets or sets the image to be used for this billboard.
|
com.google.gwt.dom.client.CanvasElement |
imageCanvas |
Cartesian2 |
pixelOffset
Gets or sets the pixel offset in screen space from the origin of this billboard.
|
NearFarScalar |
pixelOffsetScaleByDistance
Gets or sets near and far pixel offset scaling properties of a Billboard based on the billboard's distance from the camera.
|
Cartesian3 |
position
Gets or sets the Cartesian position of this billboard.
|
Number |
rotation
Gets or sets the rotation angle in radians.
|
Number |
scale
Gets or sets the uniform scale that is multiplied with the billboard's image size in pixels.
|
NearFarScalar |
scaleByDistance
Gets or sets near and far scaling properties of a Billboard based on the billboard's distance from the camera.
|
boolean |
show
Determines if this billboard will be shown.
|
boolean |
sizeInMeters
Gets or sets if the billboard size is in meters or pixels. true to size the billboard in meters; otherwise, the size is in pixels.
|
NearFarScalar |
translucencyByDistance
Gets or sets near and far translucency properties of a Billboard based on the billboard's distance from the camera.
|
Number |
verticalOrigin
Gets or sets the vertical origin of this billboard, which determines if the billboard is to the above, below,
or at the center of its position.
|
int |
width
Gets or sets a width for the billboard.
|
Constructor and Description |
---|
BillboardOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
ready()
When true, this billboard is ready to render, i.e., the image has been downloaded and the WebGL resources are created.
|
@JsProperty public Cartesian3 alignedAxis
@JsProperty public Color color
@JsProperty public DistanceDisplayCondition distanceDisplayCondition
@JsProperty public Cartesian3 eyeOffset
@JsProperty public Number height
@JsProperty public Number heightReference
HeightReference.NONE()
@JsProperty public Number horizontalOrigin
@JsProperty public Object id
@JsProperty public String image
@JsProperty(name="image") public com.google.gwt.dom.client.CanvasElement imageCanvas
@JsProperty public Cartesian2 pixelOffset
@JsProperty public NearFarScalar pixelOffsetScaleByDistance
NearFarScalar.nearValue
and NearFarScalar.farValue
while
the camera distance falls within the upper and lower bounds of the specified NearFarScalar.near
and NearFarScalar.far
.
Outside of these ranges the billboard's pixel offset scale remains clamped to the nearest bound. If undefined,
pixelOffsetScaleByDistance will be disabled.@JsProperty public Cartesian3 position
@JsProperty public Number rotation
@JsProperty public Number scale
@JsProperty public NearFarScalar scaleByDistance
NearFarScalar.nearValue
and NearFarScalar.farValue
while
the camera distance falls within the upper and lower bounds of the specified NearFarScalar.near
and NearFarScalar.far
.
Outside of these ranges the billboard's scale remains clamped to the nearest bound. If undefined, scaleByDistance will be disabled.@JsProperty public boolean show
@JsProperty public boolean sizeInMeters
@JsProperty public NearFarScalar translucencyByDistance
NearFarScalar.nearValue
and NearFarScalar.farValue
while the camera distance falls within the upper and lower bounds of the specified NearFarScalar.near
and
NearFarScalar.far
. Outside of these ranges the billboard's translucency remains clamped to the nearest bound.
If undefined, translucencyByDistance will be disabled.@JsProperty public Number verticalOrigin
@JsProperty public int width
Copyright © 2019. All rights reserved.