Package com.luciad.view.lightspeed.style
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>
Builder used to create point cloud styles.
Default values:
iconType(com.luciad.view.lightspeed.style.TLspPointCloudStyle.IconType)
: TLspPointCloudStyle.IconType.SPHEREscalingMode(com.luciad.view.lightspeed.style.TLspPointCloudStyle.ScalingMode)
: TLspPointCloudStyle.ScalingMode.ADAPTIVE_WORLD_SIZEscale(com.luciad.util.expression.ILcdExpression<java.lang.Float>)
: 1visibility(com.luciad.util.expression.ILcdExpression<java.lang.Boolean>)
: true (all objects visible)color(com.luciad.util.expression.ILcdExpression<java.awt.Color>)
: whiteopacity(com.luciad.util.expression.ILcdExpression<java.lang.Float>)
: 1eyeDomeLighting(com.luciad.view.lightspeed.style.TLspEyeDomeLightingSettings)
: TLspEyeDomeLightingSettings.newBuilder() .build()
- Since:
- 2018.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets all builder parameters to the properties of the provided style.build()
Builds the style with the set parameters.color
(ILcdExpression<Color> aColorExpression) Sets the expression that determines the color of the points.eyeDomeLighting
(TLspEyeDomeLightingSettings aEyeDomeLightingSettings) Sets the eye-dome lighting (EDL) settings.iconType
(TLspPointCloudStyle.IconType aIconType) Sets the type of icon used to visualize the point cloud.opacity
(ILcdExpression<Float> aOpacity) Sets the expression that determines the transparency to apply to the points.scale
(ILcdExpression<Float> aScaleFactorExpression) Sets the expression that determines the scale factor to apply to the icons.scalingMode
(TLspPointCloudStyle.ScalingMode aScalingMode) Sets the scaling mode of the icons.visibility
(ILcdExpression<Boolean> aVisibilityExpression) Sets the expression that determines whether points should be displayed or not.zOrder
(int aZOrder) Sets the Z-order of this style.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iconType
Sets the type of icon used to visualize the point cloud. By default, this is set toTLspPointCloudStyle.IconType.SPHERE
.- Parameters:
aIconType
- the desired icon type- Returns:
- this
-
scale
Sets the expression that determines the scale factor to apply to the icons. The interpretation of this factor depends on theTLspPointCloudStyle.ScalingMode
:- For
TLspPointCloudStyle.ScalingMode.PIXEL_SIZE
, the scale expression translates directly to a point size in pixels. - For
TLspPointCloudStyle.ScalingMode.ADAPTIVE_WORLD_SIZE
, the default point size is derived from the density of the point cloud, and the scale expression acts as a multiplier on the computed value. Scales smaller than 1 reduce the point size, scales larger than 1 increase it.
- Parameters:
aScaleFactorExpression
- An expression of type Float- Returns:
- this
- For
-
scalingMode
Sets the scaling mode of the icons. By default this is set toTLspPointCloudStyle.ScalingMode.ADAPTIVE_WORLD_SIZE
. This setting determines the behavior ofscale(ILcdExpression)
.- Parameters:
aScalingMode
- a scaling mode- Returns:
this
-
visibility
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
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
Sets the expression that determines the color of the points. The default color is white.- Parameters:
aColorExpression
- An expression of typeColor
- Returns:
- this
-
opacity
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
- Opacity
-
eyeDomeLighting
Sets the eye-dome lighting (EDL) settings. The default value isTLspEyeDomeLightingSettings.newBuilder().build()
. SeeTLspEyeDomeLightingSettings
for more details.- Parameters:
aEyeDomeLightingSettings
- The settings to use- Returns:
- this
- Since:
- 2019.1
-
build
Description copied from class:ALspStyle.Builder
Builds the style with the set parameters.- Specified by:
build
in classALspStyle.Builder<B extends TLspPointCloudStyle.Builder<B>>
- Returns:
- the resulting style
-
all
Sets all builder parameters to the properties of the provided style.- Specified by:
all
in classALspStyle.Builder<B extends TLspPointCloudStyle.Builder<B>>
- Parameters:
aStyle
- the style to copy- Returns:
this
-