Class TLspPointCloudStyle.Builder<B extends TLspPointCloudStyle.Builder<B>>

java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.TLspPointCloudStyle.Builder<B>
Enclosing class:
TLspPointCloudStyle

public static final class TLspPointCloudStyle.Builder<B extends TLspPointCloudStyle.Builder<B>> extends ALspStyle.Builder<B>
Since:
2018.0
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • iconType

      public B iconType(TLspPointCloudStyle.IconType aIconType)
      Sets the type of icon used to visualize the point cloud. By default, this is set to TLspPointCloudStyle.IconType.SPHERE.
      Parameters:
      aIconType - the desired icon type
      Returns:
      this
    • scale

      public B scale(ILcdExpression<Float> aScaleFactorExpression)
      Sets the expression that determines the scale factor to apply to the icons. The interpretation of this factor depends on the TLspPointCloudStyle.ScalingMode: The default scale factor is 1.
      Parameters:
      aScaleFactorExpression - An expression of type Float
      Returns:
      this
    • scalingMode

      public B scalingMode(TLspPointCloudStyle.ScalingMode aScalingMode)
      Sets the scaling mode of the icons. By default this is set to TLspPointCloudStyle.ScalingMode.ADAPTIVE_WORLD_SIZE. This setting determines the behavior of scale(ILcdExpression).
      Parameters:
      aScalingMode - a scaling mode
      Returns:
      this
    • visibility

      public B visibility(ILcdExpression<Boolean> aVisibilityExpression)
      Sets the expression that determines whether points should be displayed or not.

      If not set, all points in view are always displayed.

      Parameters:
      aVisibilityExpression - An expression of type Boolean
      Returns:
      this
    • zOrder

      public B zOrder(int aZOrder)
      Sets the Z-order of this style. Styles should be painted from lowest to highest Z-order.

      Increasing the number of different Z-orders can negatively impact painting performance. By default, it is set to 0.

      Parameters:
      aZOrder - the z order
      Returns:
      this
    • color

      public B color(ILcdExpression<Color> aColorExpression)
      Sets the expression that determines the color of the points. The default color is white.
      Parameters:
      aColorExpression - An expression of type Color
      Returns:
      this
    • opacity

      public B opacity(ILcdExpression<Float> aOpacity)
      Sets the expression that determines the transparency to apply to the points. This value is multiplied with the alpha value of the color to determine the transparency of each point.

      • Opacity 1 corresponds to the original transparency (usually opaque).
      • Opacity <1 will make the points more transparent.
      • Opacity 0 or <0 will make the points completely transparent.
      • Opacity >1 has no effect.

      If not set, points keep their original opacity determined by the alpha value of their color.

      Parameters:
      aOpacity - An expression of type Float
      Returns:
      this
    • eyeDomeLighting

      public B eyeDomeLighting(TLspEyeDomeLightingSettings aEyeDomeLightingSettings)
      Sets the eye-dome lighting (EDL) settings. The default value is TLspEyeDomeLightingSettings.newBuilder().build(). See TLspEyeDomeLightingSettings for more details.
      Parameters:
      aEyeDomeLightingSettings - The settings to use
      Returns:
      this
      Since:
      2019.1
    • build

      public TLspPointCloudStyle build()
      Description copied from class: ALspStyle.Builder
      Builds the style with the set parameters.
      Specified by:
      build in class ALspStyle.Builder<B extends TLspPointCloudStyle.Builder<B>>
      Returns:
      the resulting style
    • all

      public B all(ALspStyle aStyle)
      Sets all builder parameters to the properties of the provided style.
      Specified by:
      all in class ALspStyle.Builder<B extends TLspPointCloudStyle.Builder<B>>
      Parameters:
      aStyle - the style to copy
      Returns:
      this