public class TLsp3DTileLayerBuilder extends ALspLayerBuilder
TLcdOGC3DTilesModelDecoder
or
TLcdOSGBModelDecoder
. The layers
created by this builder will adaptively refine the 3D tile data to create a
suitable level of detail for the user's current viewpoint.
3D tile layers support the following styles:
TLsp3DMeshStyle
for mesh data (B3DM, OSGB)TLspPointCloudStyle
for point clouds (PNTS)Modifier and Type | Method and Description |
---|---|
TLsp3DTileLayerBuilder |
bodyStyler(TLspPaintState aPaintState,
ILspStyler aBodyStyler) |
TLsp3DTileLayerBuilder |
bodyStyles(TLspPaintState aPaintState,
ALspStyle... aBodyStyles) |
TLspLayer |
build()
Creates a new layer instance.
|
TLsp3DTileLayerBuilder |
icon(ILcdIcon aIcon)
Sets the icon of the layer.
|
TLsp3DTileLayerBuilder |
label(String aLabel)
Sets the label of the layer.
|
TLsp3DTileLayerBuilder |
layerStyle(TLspLayerStyle aLayerStyle)
Set a layer style to be used during the rendering of the layer.
|
TLsp3DTileLayerBuilder |
model(ILcdModel aModel)
Sets the model of the layer.
|
static TLsp3DTileLayerBuilder |
newBuilder() |
TLsp3DTileLayerBuilder |
offsetTerrain(boolean aOffsetTerrain)
Sets whether or not the terrain must be offset at the location of a 3D mesh or point cloud.
|
TLsp3DTileLayerBuilder |
qualityFactor(double aFactor)
Sets a quality factor that biases the level-of-detail selection of the 3D tile layer.
|
TLsp3DTileLayerBuilder |
synchronous(boolean aSynchronous)
Specifies whether created layers should paint synchronously.
|
getIcon, getLabel, getLayerStyle, getLayerType, getModel, layerType
public static TLsp3DTileLayerBuilder newBuilder()
public TLsp3DTileLayerBuilder qualityFactor(double aFactor)
Sets a quality factor that biases the level-of-detail selection of the 3D tile layer. You can use this setting to trade off between visual quality and performance.
The default value of 1.0, for meshes and point cloud data produced by LuciadFusion, results in format-specific default behavior. Higher values increase the detail level, lower values decrease it.
For point cloud data not produced by LuciadFusion, a default quality factor of 0.125 is used to safeguard against overestimation of the geometric error.
aFactor
- the scale factor for the layer's level of detail.
Values smaller than 1 will decrease the detail level.
Values larger than 1 increase the detail level.this
public TLsp3DTileLayerBuilder offsetTerrain(boolean aOffsetTerrain)
true
the offset is applied both for meshes and point clouds, when set to false
the
offset is never applied.aOffsetTerrain
- this
public TLsp3DTileLayerBuilder model(ILcdModel aModel)
ALspLayerBuilder
null
.model
in class ALspLayerBuilder
aModel
- a modelILcdLayer.getModel()
public TLsp3DTileLayerBuilder label(String aLabel)
ALspLayerBuilder
null
.label
in class ALspLayerBuilder
aLabel
- the labelILcdLayer.getLabel()
public TLsp3DTileLayerBuilder icon(ILcdIcon aIcon)
ALspLayerBuilder
null
.icon
in class ALspLayerBuilder
aIcon
- the iconILcdLayer.getIcon()
public TLsp3DTileLayerBuilder layerStyle(TLspLayerStyle aLayerStyle)
ALspLayerBuilder
TLspLayerStyle
is used to style the layer as a whole. Layer style can for example modify the
transparency of a layer. Also, layer style can be modified after building the layer by calling
ILspLayer.setLayerStyle(TLspLayerStyle)
.layerStyle
in class ALspLayerBuilder
aLayerStyle
- the layer style. Must not be null
. If you want to set the default layer style, set TLspLayerStyle.newBuilder().build()
ILspLayer.getLayerStyle()
,
ILspLayer.setLayerStyle(TLspLayerStyle)
public TLsp3DTileLayerBuilder bodyStyler(TLspPaintState aPaintState, ILspStyler aBodyStyler)
public TLsp3DTileLayerBuilder bodyStyles(TLspPaintState aPaintState, ALspStyle... aBodyStyles)
public TLsp3DTileLayerBuilder synchronous(boolean aSynchronous)
aSynchronous
- true if the layer should paint synchronouslythis
public TLspLayer build()
ALspLayerBuilder
Creates a new layer instance.
build
in class ALspLayerBuilder