Package com.luciad.layers.tileset3d
Class TileSet3DLayer
java.lang.Object
com.luciad.layers.Layer
com.luciad.layers.tileset3d.TileSet3DLayer
- All Implemented Interfaces:
AutoCloseable
A
TileSet3DLayer
is a Layer
that can visualize 3D tiles
.
Use TileSet3DLayer#newBuilder
to create a 3D tiles layer instance.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property name for theLayerEvent
that is fired as a result of changing the layer's fading time.static final String
Property name for theLayerEvent
that is fired as a result of changing the layer's mesh style.static final String
Property name for theLayerEvent
that is fired as a result of changing the layer's point cloud style.static final String
Property name for theLayerEvent
that is fired as a result of changing the layer's quality factor.static final String
Property name for theLayerEvent
that is fired as a result of changing the layer's transparency setting.Fields inherited from class com.luciad.layers.Layer
PropertyTitle, PropertyVisible
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
Returns the list of attributes that can be used in theexpressions
.Returns the time tiles will take to fade in / out when changing their visibility, in milliseconds.Returns the style used for mesh data.getModel()
Returns the layer's model.Returns the style used for point cloud data on this layer.double
Returns the quality factor for this layer.boolean
Returns whether texture compression is enabled.boolean
Returns whether transparency is enabled.static TileSet3DLayer.Builder
Creates a new builder for creating aTileSet3DLayer
.void
setFadingTime
(Duration time) Sets the time tiles will take to fade in / out when changing their visibility, in milliseconds.void
setMeshStyle
(MeshStyle meshStyle) Sets the style used for mesh data.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) Sets whether transparency is enabled.Methods inherited from class com.luciad.layers.Layer
addObserver, getId, getTitle, isVisible, removeObserver, setTitle, setVisible
-
Field Details
-
PropertyQualityFactor
Property name for theLayerEvent
that is fired as a result of changing the layer's quality factor.- See Also:
-
PropertyFadingTime
Property name for theLayerEvent
that is fired as a result of changing the layer's fading time.- See Also:
-
PropertyPointCloudStyle
Property name for theLayerEvent
that is fired as a result of changing the layer's point cloud style.- See Also:
-
PropertyMeshStyle
Property name for theLayerEvent
that is fired as a result of changing the layer's mesh style.- See Also:
-
PropertyTransparencyEnabled
Property name for theLayerEvent
that is fired as a result of changing the layer's transparency setting.- See Also:
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classLayer
-
newBuilder
Creates a new builder for creating aTileSet3DLayer
.- Returns:
- a new builder for creating a
TileSet3DLayer
.
-
getQualityFactor
public double getQualityFactor()Returns the quality factor for this layer.It is used to decide if a given tile should be displayed at certain scales.
Higher values load more tiles.
- Returns:
- the quality factor for this layer, used to decide if a given tile should be displayed at certain scales.
-
setQualityFactor
public void setQualityFactor(double qualityFactor) Sets the quality factor for this layer.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.
- Parameters:
qualityFactor
- the quality factor.
-
getFadingTime
Returns the time tiles will take to fade in / out when changing their visibility, in milliseconds.The longer it is, the longer tiles will be going from fully transparent to fully visible.
- Returns:
- the time tiles will take to fade in / out when changing their visibility, in milliseconds.
-
setFadingTime
Sets the time tiles will take to fade in / out when changing their visibility, in milliseconds.If set to 0, fading of tiles is disabled. They appear as soon as they are available. The longer it is, the longer tiles will be going from fully transparent to fully visible.
- Parameters:
time
- the fading time in milliseconds. Maximum value is 86400000 (i.e. a day).
-
getPointCloudStyle
Returns the style used for point cloud data on this layer.- Returns:
- the style used for point cloud data on this layer.
-
setPointCloudStyle
Sets the style used for point cloud data on this layer.- Parameters:
pointCloudStyle
- the style to use.
-
getMeshStyle
Returns the style used for mesh data.- Returns:
- the style used for mesh data.
-
setMeshStyle
Sets the style used for mesh data.- Parameters:
meshStyle
- the style to use.
-
isTransparencyEnabled
public boolean isTransparencyEnabled()Returns whether transparency is enabled.- Returns:
- whether transparency is enabled.
- See Also:
-
setTransparencyEnabled
public void setTransparencyEnabled(boolean enabled) Sets whether transparency is enabled.- Parameters:
enabled
- true to enable transparency.- See Also:
-
isTextureCompressionEnabled
public boolean isTextureCompressionEnabled()Returns whether texture compression is enabled.- Returns:
- whether texture compression is enabled.
- See Also:
-
getAttributes
Returns the list of attributes that can be used in theexpressions
.- Returns:
- the list of attributes that can be used in the
expressions
. - See Also:
-
getModel
Returns the layer's model.- Returns:
- the layer's model.
-