public static final class TLspPointCloudStyle.Builder<B extends TLspPointCloudStyle.Builder<B>> extends ALspStyle.Builder<B>
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()Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aStyle)
Sets all builder parameters to the properties of the
provided style.
|
TLspPointCloudStyle |
build()
Builds the style with the set parameters.
|
B |
color(ILcdExpression<Color> aColorExpression)
Sets the expression that determines the color of the points.
|
B |
eyeDomeLighting(TLspEyeDomeLightingSettings aEyeDomeLightingSettings)
Sets the eye-dome lighting (EDL) settings.
|
B |
iconType(TLspPointCloudStyle.IconType aIconType)
Sets the type of icon used to visualize the point cloud.
|
B |
opacity(ILcdExpression<Float> aOpacity)
Sets the expression that determines the transparency to apply to the points.
|
B |
scale(ILcdExpression<Float> aScaleFactorExpression)
Sets the expression that determines the scale factor to apply to the icons.
|
B |
scalingMode(TLspPointCloudStyle.ScalingMode aScalingMode)
Sets the scaling mode of the icons.
|
B |
visibility(ILcdExpression<Boolean> aVisibilityExpression)
Sets the expression that determines whether points should be displayed or not.
|
B |
zOrder(int aZOrder)
Sets the Z-order of this style.
|
equals, hashCode
public B iconType(TLspPointCloudStyle.IconType aIconType)
TLspPointCloudStyle.IconType.SPHERE
.aIconType
- the desired icon typepublic B scale(ILcdExpression<Float> aScaleFactorExpression)
TLspPointCloudStyle.ScalingMode
:
TLspPointCloudStyle.ScalingMode.PIXEL_SIZE
, the scale expression translates directly
to a point size in pixels.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.aScaleFactorExpression
- An expression of type Floatpublic B scalingMode(TLspPointCloudStyle.ScalingMode aScalingMode)
TLspPointCloudStyle.ScalingMode.ADAPTIVE_WORLD_SIZE
. This setting determines the behavior
of scale(ILcdExpression)
.aScalingMode
- a scaling modethis
public B visibility(ILcdExpression<Boolean> aVisibilityExpression)
If not set, all points in view are always displayed.
aVisibilityExpression
- An expression of type Booleanpublic B zOrder(int aZOrder)
aZOrder
- the z orderthis
public B color(ILcdExpression<Color> aColorExpression)
aColorExpression
- An expression of type Color
public B opacity(ILcdExpression<Float> aOpacity)
1
corresponds to the original transparency (usually opaque).<1
will make the points more transparent.0
or <0
will make the points completely transparent.>1
has no effect.If not set, points keep their original opacity determined by the alpha value of their color.
aOpacity
- An expression of type Floatpublic B eyeDomeLighting(TLspEyeDomeLightingSettings aEyeDomeLightingSettings)
TLspEyeDomeLightingSettings.newBuilder().build()
.
See TLspEyeDomeLightingSettings
for more details.aEyeDomeLightingSettings
- The settings to usepublic TLspPointCloudStyle build()
ALspStyle.Builder
build
in class ALspStyle.Builder<B extends TLspPointCloudStyle.Builder<B>>
public B all(ALspStyle aStyle)
all
in class ALspStyle.Builder<B extends TLspPointCloudStyle.Builder<B>>
aStyle
- the style to copythis