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
static interface Appearance.Material
           
 
Method Summary
 void addTexture(Image img, int stage)
          Add a texture to the whole Solid
 boolean getEnabledBlending()
          Gets if blending is enabled/disabled
 boolean getEnabledLighting()
          Gets if lighting is enabled/disabled
 Appearance.Material getMaterial()
          Gets the material of a Solid
 Image getTexture(int stage)
          Get the texure of a solid in a concrete stage
 void setEnabledBlending(boolean value)
          Enables/disables the blending in a solid
 void setEnabledLighting(boolean value)
          Enables disables lighting in a solid
 void setMaterial(Appearance.Material mat)
          Sets the material of a solid
 

Method Detail

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

void setMaterial(Appearance.Material mat)
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

void addTexture(Image img,
                int stage)
Add a texture to the whole Solid

Parameters:
img - the texture
stage - the texture stage

getTexture

Image getTexture(int stage)
Get the texure of a solid in a concrete stage

Parameters:
stage - the concrete stage
Returns:
the texture


Copyright © 2004-2013 gvSIG. All Rights Reserved.