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
  • 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

      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