Package com.luciad.format.object3d
Class TLcd3DMeshStyleBuilder
java.lang.Object
com.luciad.format.object3d.TLcd3DMeshStyleBuilder
A builder class for creating mesh styles.
- Since:
- 10.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the ambient color of the style to be built.build()
Builds a 3D mesh style based on the current set of parameters.Sets the diffuse color of the style to be built.doubleSided
(boolean aDoubleSided) Specifies whether or not the style is double sided.Sets the emissive color of the style to be built.shininess
(double aShininess) Sets the specular exponent of the style to be built.Sets the specular color of the style to be built.textureSource
(String aTextureSourceName) Sets the source name of the texture image to be used with the style.transparent
(boolean aTransparent) Specifies whether or not the style requires transparency.
-
Constructor Details
-
TLcd3DMeshStyleBuilder
public TLcd3DMeshStyleBuilder()
-
-
Method Details
-
build
Builds a 3D mesh style based on the current set of parameters.- Returns:
- a 3D mesh style
- See Also:
-
ambient
Sets the ambient color of the style to be built.- Parameters:
aAmbientColor
- a Color- Returns:
- this builder
-
diffuse
Sets the diffuse color of the style to be built.- Parameters:
aDiffuseColor
- a Color- Returns:
- this builder
-
specular
Sets the specular color of the style to be built.- Parameters:
aSpecularColor
- a Color- Returns:
- this builder
-
emissive
Sets the emissive color of the style to be built.- Parameters:
aEmissiveColor
- a Color- Returns:
- this builder
-
shininess
Sets the specular exponent of the style to be built. The value must lie between 0 and 128, inclusive.- Parameters:
aShininess
- the specular exponent- Returns:
- this builder
-
transparent
Specifies whether or not the style requires transparency.- Parameters:
aTransparent
- true if this style is transparent- Returns:
- this builder
-
textureSource
Sets the source name of the texture image to be used with the style.- Parameters:
aTextureSourceName
- the source name of a texture image- Returns:
- this builder
-
doubleSided
Specifies whether or not the style is double sided. If true, back-face culling is disabled during rendering of theILcdStyled3DMesh
with the built style.- Parameters:
aDoubleSided
- aDoubleSided true if the style is double sided.- Returns:
- this builder
-