public static class TLspImageProjectionStyle.Builder<B extends TLspImageProjectionStyle.Builder<B>> extends ALspStyle.Builder<B>
projector
and
image
to
create a valid instance.
Example usages:
To create a static image projected on the terrain:TLspImageProjectionStyle.newBuilder(). projector( myProjector ). image( new TLsp2DImageTextureObject( myImage ) ). build();
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aStyle)
Sets all parameters on the builder based on the given style.
|
TLspImageProjectionStyle |
build()
Builds the style with the set parameters.
|
B |
image(ALspTextureObject aImage)
Sets the image to be projected onto the terrain.
|
B |
opacity(float aOpacity)
Sets the opacity (alpha value) of the projected image.
|
B |
projector(ILspImageProjector aProjector)
Sets the projector.
|
B |
zOrder(int aZOrder)
Sets the z-order of this style.
|
equals, hashCode
public B all(ALspStyle aStyle)
ALspStyle.Builder
all
in class ALspStyle.Builder<B extends TLspImageProjectionStyle.Builder<B>>
aStyle
- the style to copythis
public TLspImageProjectionStyle build()
ALspStyle.Builder
build
in class ALspStyle.Builder<B extends TLspImageProjectionStyle.Builder<B>>
public B zOrder(int aZOrder)
aZOrder
- the z orderALspStyle.getZOrder()
public B projector(ILspImageProjector aProjector)
aProjector
- the projectorTLspImageProjectionStyle.getProjector()
public B image(ALspTextureObject aImage)
aImage
- the image to be projected on the terrainTLspImageProjectionStyle.getImage()
public B opacity(float aOpacity)
aOpacity
- the alpha value to use for the projected imageTLspImageProjectionStyle.getOpacity()