Package org.gvsig.fmap.geom.primitive
Interface Appearance
- All Known Subinterfaces:
SurfaceAppearance
public interface Appearance
This interface serves to set the appearance of a Solid in a CityGML model.
- Author:
- Jordi Torres Fabra
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTexture(Image img, int stage) Add a texture to the whole SolidbooleanGets if blending is enabled/disabledbooleanGets if lighting is enabled/disabledGets the material of a SolidgetTexture(int stage) Get the texure of a solid in a concrete stagevoidsetEnabledBlending(boolean value) Enables/disables the blending in a solidvoidsetEnabledLighting(boolean value) Enables disables lighting in a solidvoidSets the material of a solid
-
Method Details
-
setEnabledBlending
void setEnabledBlending(boolean value) Enables/disables the blending in a solid- Parameters:
value- the value to set
-
getEnabledBlending
boolean getEnabledBlending()Gets if blending is enabled/disabled- Returns:
- a boolean representing enabled(true)/disabled(false)
-
setEnabledLighting
void setEnabledLighting(boolean value) Enables disables lighting in a solid- Parameters:
value- the value to set
-
getEnabledLighting
boolean getEnabledLighting()Gets if lighting is enabled/disabled- Returns:
- a boolean representing enabled(true)/disabled(false)
-
setMaterial
Sets the material of a solid- Parameters:
mat- the material to set
-
getMaterial
Appearance.Material getMaterial()Gets the material of a Solid- Returns:
- the material
-
addTexture
Add a texture to the whole Solid- Parameters:
img- the texturestage- the texture stage
-
getTexture
Get the texure of a solid in a concrete stage- Parameters:
stage- the concrete stage- Returns:
- the texture
-