Class TileSet3DLayer

java.lang.Object
com.luciad.layers.Layer
com.luciad.layers.tileset3d.TileSet3DLayer
All Implemented Interfaces:
AutoCloseable

public final class TileSet3DLayer extends Layer implements AutoCloseable
A TileSet3DLayer is a Layer that can visualize 3D tiles.

Use TileSet3DLayer#newBuilder to create a 3D tiles layer instance.

  • Field Details

    • PropertyQualityFactor

      public static final String PropertyQualityFactor
      Property name for the LayerEvent that is fired as a result of changing the layer's quality factor.
      See Also:
    • PropertyFadingTime

      public static final String PropertyFadingTime
      Property name for the LayerEvent that is fired as a result of changing the layer's fading time.
      See Also:
    • PropertyPointCloudStyle

      public static final String PropertyPointCloudStyle
      Property name for the LayerEvent that is fired as a result of changing the layer's point cloud style.
      See Also:
    • PropertyMeshStyle

      public static final String PropertyMeshStyle
      Property name for the LayerEvent that is fired as a result of changing the layer's mesh style.
      See Also:
    • PropertyTransparencyEnabled

      public static final String PropertyTransparencyEnabled
      Property name for the LayerEvent that is fired as a result of changing the layer's transparency setting.
      See Also:
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Layer
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class Layer
    • newBuilder

      @NotNull public static TileSet3DLayer.Builder newBuilder()
      Creates a new builder for creating a TileSet3DLayer.
      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

      @NotNull public Duration 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

      public void setFadingTime(@NotNull Duration time)
      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

      @NotNull public PointCloudStyle getPointCloudStyle()
      Returns the style used for point cloud data on this layer.
      Returns:
      the style used for point cloud data on this layer.
    • setPointCloudStyle

      public void setPointCloudStyle(@NotNull PointCloudStyle pointCloudStyle)
      Sets the style used for point cloud data on this layer.
      Parameters:
      pointCloudStyle - the style to use.
    • getMeshStyle

      @NotNull public MeshStyle getMeshStyle()
      Returns the style used for mesh data.
      Returns:
      the style used for mesh data.
    • setMeshStyle

      public void setMeshStyle(@NotNull MeshStyle meshStyle)
      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

      @NotNull public List<@NotNull String> getAttributes()
      Returns the list of attributes that can be used in the expressions.
      Returns:
      the list of attributes that can be used in the expressions.
      See Also:
    • getModel

      @NotNull public ITileSet3DModel getModel()
      Returns the layer's model.
      Returns:
      the layer's model.