@JsType(isNative=true, namespace="Cesium", name="Cesium3DTilePointFeature") public class Cesium3DTilePointFeature extends Object
Cesium3DTileset
.
Provides access to a feature's properties stored in the tile's batch table, as well as the ability to show/hide a
feature and change its point properties
Modifications to a Cesium3DTilePointFeature object have the lifetime of the tile's content. If the tile's content
is unloaded, e.g., due to it going out of view and needing to free space in the cache for visible tiles, listen to
the Cesium3DTileset.tileUnload
event to save any modifications. Also listen to the Cesium3DTileset.tileVisible
event
to reapply any modifications.
Do not construct this directly. Access it through Cesium3DTileContent#getFeature or picking using Scene#pick and
Scene.pickPosition(org.cesiumjs.cs.core.Cartesian2)
.Modifier and Type | Field and Description |
---|---|
Color |
anchorLineColor
Gets or sets the color for the anchor line.
|
boolean |
anchorLineEnabled
Gets or sets whether the anchor line is displayed.
|
Color |
backgroundColor
Gets or sets the background color of the text for this feature.
|
boolean |
backgroundEnabled
Gets or sets whether to display the background of the text for this feature.
|
Cartesian2 |
backgroundPadding
Gets or sets the background padding of the text for this feature.
|
Color |
color
Gets or sets the color of the point of this feature.
|
Number |
disableDepthTestDistance
Gets or sets the distance where depth testing will be disabled.
|
DistanceDisplayCondition |
distanceDisplayCondition
Gets or sets the condition specifying at what distance from the camera that this feature will be displayed.
|
String |
font
Gets or sets the font of this feature.
|
double |
heightOffset
Gets or sets the height offset in meters of this feature.
|
Number |
horizontalOrigin
Gets or sets the horizontal origin of this point, which determines if the point is to the left, center, or right of its anchor position.
|
String |
image
Gets or sets the image of this feature.
|
Color |
labelColor
Gets or sets the label color of this feature.
|
Number |
labelHorizontalOrigin
Gets or sets the horizontal origin of this point's text, which determines if the point's text is to the left,
center, or right of its anchor position.
|
Color |
labelOutlineColor
Gets or sets the label outline color of this feature.
|
double |
labelOutlineWidth
Gets or sets the outline width in pixels of this feature.
|
LabelStyle |
labelStyle
Gets or sets the fill and outline style of this feature.
|
String |
labelText
Gets or sets the text for this feature.
|
Number |
labelVerticalOrigin
Get or sets the vertical origin of this point's text, which determines if the point's text is to the bottom,
center, top, or baseline of it's anchor point.
|
Color |
pointOutlineColor
Gets or sets the point outline color of this feature.
|
double |
pointOutlineWidth
Gets or sets the point outline width in pixels of this feature.
|
double |
pointSize
Gets or sets the point size of this feature.
|
Cesium3DTileset |
readonlyprimitive
All objects returned by Scene#pick have a primitive property.
|
NearFarScalar |
scaleByDistance
Gets or sets the near and far scaling properties for this feature.
|
NearFarScalar |
translucencyByDistance
Gets or sets the near and far translucency properties for this feature.
|
Number |
verticalOrigin
Gets or sets the vertical origin of this point, which determines if the point is to the bottom, center, or top of its anchor position.
|
Modifier | Constructor and Description |
---|---|
protected |
Cesium3DTilePointFeature()
A point feature of a
Cesium3DTileset . |
Modifier and Type | Method and Description |
---|---|
JsObject |
getProperty(String name)
Returns a copy of the value of the feature's property with the given name.
|
String[] |
getPropertyNames(String[] results)
Returns an array of property names for the feature.
|
void |
setProperty(String name,
JsObject value)
Sets the value of the feature's property with the given name.
|
Cesium3DTileset |
tileset()
Gets the tileset containing the feature.
|
@JsProperty public Color anchorLineColor
@JsProperty public boolean anchorLineEnabled
@JsProperty public Color backgroundColor
@JsProperty public boolean backgroundEnabled
@JsProperty public Cartesian2 backgroundPadding
@JsProperty public Color color
@JsProperty public Number disableDepthTestDistance
@JsProperty public DistanceDisplayCondition distanceDisplayCondition
@JsProperty public String font
@JsProperty public double heightOffset
@JsProperty public Number horizontalOrigin
@JsProperty public String image
@JsProperty public Color labelColor
@JsProperty public Number labelHorizontalOrigin
HorizontalOrigin
@JsProperty public Color labelOutlineColor
@JsProperty public double labelOutlineWidth
@JsProperty public LabelStyle labelStyle
@JsProperty public String labelText
@JsProperty public Number labelVerticalOrigin
VerticalOrigin
@JsProperty public Color pointOutlineColor
@JsProperty public double pointOutlineWidth
@JsProperty public double pointSize
@JsProperty public Cesium3DTileset readonlyprimitive
@JsProperty public NearFarScalar scaleByDistance
@JsProperty public NearFarScalar translucencyByDistance
@JsProperty public Number verticalOrigin
VerticalOrigin
@JsConstructor protected Cesium3DTilePointFeature()
Cesium3DTileset
.
Provides access to a feature's properties stored in the tile's batch table, as well as the ability to show/hide a
feature and change its point properties
Modifications to a Cesium3DTilePointFeature object have the lifetime of the tile's content. If the tile's content
is unloaded, e.g., due to it going out of view and needing to free space in the cache for visible tiles, listen to
the Cesium3DTileset.tileUnload
event to save any modifications. Also listen to the Cesium3DTileset.tileVisible
event
to reapply any modifications.
Do not construct this directly. Access it through Cesium3DTileContent#getFeature or picking using Scene#pick and
Scene.pickPosition(org.cesiumjs.cs.core.Cartesian2)
.@JsProperty(name="tileset") public Cesium3DTileset tileset()
@JsMethod public JsObject getProperty(String name)
name
- The case-sensitive name of the property.@JsMethod public String[] getPropertyNames(String[] results)
results
- The names of the feature's properties.@JsMethod public void setProperty(String name, JsObject value)
name
- The case-sensitive name of the property.value
- The value of the property that will be copied.Copyright © 2019. All rights reserved.