public static interface ILspTexturedStyle.Builder
Modifier and Type | Method and Description |
---|---|
ILspTexturedStyle |
build()
Builds the style with the set parameters.
|
ILspTexturedStyle.Builder |
repeatTexture(boolean aRepeatTexture)
Specifies whether the texture map should be repeated (tiled) or not.
|
ILspTexturedStyle.Builder |
rotateTexture(double aAlpha)
Rotates the texture.
|
ILspTexturedStyle.Builder |
scaleTexture(double aSX,
double aSY,
double aSZ)
Scales the texture.
|
ILspTexturedStyle.Builder |
texture(RenderedImage aTexture)
Specifies the image to be used as a texture map.
|
ILspTexturedStyle.Builder |
textureCoordinatesMode(ILspTexturedStyle.TextureCoordinatesMode aMode)
Specifies whether the texture coordinates computed to apply the texture map should be
relative to the bounds of the object or not.
|
ILspTexturedStyle.Builder |
textureInterpolationType(ELcdInterpolationType aInterpolationType)
Specifies whether linear or nearest neighbor interpolation should be
used for the texture.
|
ILspTexturedStyle.Builder |
textureMatrix(double[] aTextureMatrix)
Specifies the 4x4 matrix that should be applied to the texture coordinates when mapping the
texture given by this style.
|
ILspTexturedStyle.Builder |
textureObject(ALsp2DTextureObject aTextureObject)
Specifies the texture object to be used.
|
ILspTexturedStyle.Builder |
translateTexture(double aDX,
double aDY,
double aDZ)
Translates the textures.
|
ILspTexturedStyle.Builder texture(RenderedImage aTexture)
textureObject(ALsp2DTextureObject)
can be used.
This image should never be modified. To change the texture you should create a new style with
a different image instance.
If a texture object was set via textureObject(ALsp2DTextureObject)
before calling this,
it will be replaced by a texture created from the image.aTexture
- the image to be used as a texture mapthis
ILspTexturedStyle.Builder textureObject(ALsp2DTextureObject aTextureObject)
texture(RenderedImage)
can be used.
To change the texture you should create a new style with a different texture object instance.
If an image to be used as a texture was set via texture(RenderedImage)
before calling this,
it will be replaced by this texture.aTextureObject
- the texture object.this
ILspTexturedStyle.Builder textureMatrix(double[] aTextureMatrix)
aTextureMatrix
- Specifies the 4x4 matrix that should be applied to the texture coordinates when
mapping the texture given by this stylethis
translateTexture(double, double, double)
,
rotateTexture(double)
ILspTexturedStyle.Builder repeatTexture(boolean aRepeatTexture)
aRepeatTexture
- whether the texture map should be repeated (tiled) or notthis
ILspTexturedStyle.Builder textureInterpolationType(ELcdInterpolationType aInterpolationType)
aInterpolationType
- the interpolation method to use for the texture (note that CUBIC
is not currently supported)this
ILspTexturedStyle.Builder textureCoordinatesMode(ILspTexturedStyle.TextureCoordinatesMode aMode)
aMode
- specifies whether the texture coordinates computed to apply the texture map should be
relative to the bounds of the object or correspond to the object's model coordinates.this
ILspTexturedStyle.Builder translateTexture(double aDX, double aDY, double aDZ)
aDX
- amount by which the x-coordinates of the texture are translatedaDY
- amount by which the y-coordinates of the texture are translatedaDZ
- amount by which the z-coordinates of the texture are translatedthis
ILspTexturedStyle.Builder scaleTexture(double aSX, double aSY, double aSZ)
aSX
- amount by which the x-coordinates of the texture are scaledaSY
- amount by which the x-coordinates of the texture are scaledaSZ
- amount by which the x-coordinates of the texture are scaledthis
ILspTexturedStyle.Builder rotateTexture(double aAlpha)
aAlpha
- the amount by which the texture is rotated, in radians.this
ILspTexturedStyle build()