public final class TileSet3DLayer extends Layer implements AutoCloseable
TileSet3DLayer
is a Layer
that can visualize 3D tiles
.
Use TileSet3DLayer#newBuilder
to create a 3D tiles layer instance.
Modifier and Type | Class and Description |
---|---|
static class |
TileSet3DLayer.Builder
Builder for the TileSet3DLayer class. |
Modifier and Type | Field and Description |
---|---|
static String |
PropertyFadingTime
Property name for the
LayerEvent that is fired as a result of changing the layer's fading time. |
static String |
PropertyMeshStyle
Property name for the
LayerEvent that is fired as a result of changing the layer's mesh style. |
static String |
PropertyPointCloudStyle
Property name for the
LayerEvent that is fired as a result of changing the layer's point cloud style. |
static String |
PropertyQualityFactor
Property name for the
LayerEvent that is fired as a result of changing the layer's quality factor. |
static String |
PropertyTransparencyEnabled
Property name for the
LayerEvent that is fired as a result of changing the layer's transparency setting. |
PropertyTitle, PropertyVisible
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
List<String> |
getAttributes() |
Duration |
getFadingTime() |
MeshStyle |
getMeshStyle() |
ITileSet3DModel |
getModel() |
PointCloudStyle |
getPointCloudStyle() |
double |
getQualityFactor() |
boolean |
isTextureCompressionEnabled() |
boolean |
isTransparencyEnabled() |
static TileSet3DLayer.Builder |
newBuilder()
Creates a new builder for creating a
TileSet3DLayer . |
void |
setFadingTime(Duration time)
Sets the time tiles will take to fade in / out when changing their visibility If set to 0, fading of tiles is disabled.
|
void |
setMeshStyle(MeshStyle meshStyle)
Sets the style used for mesh data on this layer.
|
void |
setPointCloudStyle(PointCloudStyle pointCloudStyle)
Sets the style used for point cloud data on this layer.
|
void |
setQualityFactor(double qualityFactor)
Sets the quality factor for this layer.
|
void |
setTransparencyEnabled(boolean enabled) |
addObserver, getId, getTitle, isVisible, removeObserver, setTitle, setVisible
public static final String PropertyQualityFactor
LayerEvent
that is fired as a result of changing the layer's quality factor.setQualityFactor
public static final String PropertyFadingTime
LayerEvent
that is fired as a result of changing the layer's fading time.setFadingTime
public static final String PropertyPointCloudStyle
LayerEvent
that is fired as a result of changing the layer's point cloud style.setPointCloudStyle
public static final String PropertyMeshStyle
LayerEvent
that is fired as a result of changing the layer's mesh style.setMeshStyle
public static final String PropertyTransparencyEnabled
LayerEvent
that is fired as a result of changing the layer's transparency setting.setTransparencyEnabled
public void close()
close
in interface AutoCloseable
close
in class Layer
@NotNull public static TileSet3DLayer.Builder newBuilder()
TileSet3DLayer
.TileSet3DLayer
.public double getQualityFactor()
public void setQualityFactor(double qualityFactor)
It is used to decide if a given tile should be displayed at certain scales. Must be a non-zero, positive value. Higher values load more tiles.
qualityFactor
- the quality factor@NotNull public Duration getFadingTime()
public void setFadingTime(@NotNull Duration time)
They appear as soon as they are available. The longer it is, the longer tiles will be going from fully transparent to fully visible.
time
- the fading time in milliseconds. Maximum value is 86400000 (i.e. a day).@NotNull public PointCloudStyle getPointCloudStyle()
public void setPointCloudStyle(@NotNull PointCloudStyle pointCloudStyle)
This method is optional. If this method is not invoked, a default point cloud style with adaptive point size and a constant scale expression of "1.0" is assumed.
pointCloudStyle
- the style to use@NotNull public MeshStyle getMeshStyle()
public void setMeshStyle(@NotNull MeshStyle meshStyle)
meshStyle
- the style to usepublic boolean isTransparencyEnabled()
Builder#transparencyEnabled
public void setTransparencyEnabled(boolean enabled)
enabled
- true to enable transparencyBuilder#transparencyEnabled
public boolean isTextureCompressionEnabled()
Builder#textureCompressionEnabled
@NotNull public List<String> getAttributes()
expressions
.Builder#attributes
@NotNull public ITileSet3DModel getModel()