public abstract static class ALspSoftDensityStyle.Builder<B extends ALspSoftDensityStyle.Builder<B>> extends ALspDensityStyle.Builder<B>
ALspSoftDensityStyle hardSinglePixel = ALspSoftDensityStyle.newBuilder().build();
To create a density style for a shape that is draped with hardness 0.5 and a width of 3 pixels:ALspSoftDensityStyle smooth3pix = ALspSoftDensityStyle.newBuilder().pixelSize(3.0f).hardness(0.5f).draped(true).build();
To create a draped density style with world size 3000.0:ALspSoftDensityStyle worldSized = ALspSoftDensityStyle.newBuilder().worldSize(3000.0f).build();
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aStyle)
Sets all parameters on the builder based on the given style.
|
abstract ALspSoftDensityStyle |
build()
Builds the style with the set parameters.
|
B |
hardness(double aHardness)
Sets the hardness of the density style.
|
B |
pixelSize(double aPixelSize)
Sets the width of the density style to build in pixel size.
|
B |
worldSize(double aWorldSize)
Sets the width of the density style to build in world size.
|
elevationMode, weight
equals, hashCode
public B all(ALspStyle aStyle)
ALspStyle.Builder
all
in class ALspDensityStyle.Builder<B extends ALspSoftDensityStyle.Builder<B>>
aStyle
- the style to copythis
public B hardness(double aHardness)
Sets the hardness of the density style.
Consult the class javadoc of ALspDensityStyle
for more information.
aHardness
- the hardness of the density stylethis
public B worldSize(double aWorldSize)
Sets the width of the density style to build in world size.
Consult the class javadoc of ALspDensityStyle
for more information.
aWorldSize
- the width in world sizethis
public B pixelSize(double aPixelSize)
Sets the width of the density style to build in pixel size.
Consult the class javadoc of ALspDensityStyle
for more information.
aPixelSize
- the width in pixelsthis
public abstract ALspSoftDensityStyle build()
ALspStyle.Builder
build
in class ALspDensityStyle.Builder<B extends ALspSoftDensityStyle.Builder<B>>