Class FileInfoSurfaceRefXML_WM

All Implemented Interfaces:
Serializable, Cloneable

public class FileInfoSurfaceRefXML_WM extends FileInfoSurfaceRefXML
This structure contains the information that describes how an XML surface (see surface.xsd and FileSurfaceXML.java) is stored on disk.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • m_kMaterial

      private WildMagic.LibGraphics.Rendering.MaterialState m_kMaterial
      Material properties of the surface:.
  • Constructor Details

    • FileInfoSurfaceRefXML_WM

      public FileInfoSurfaceRefXML_WM(String name, String directory, int format)
      Main constructor for FileInfoSurfaceXML.
      Parameters:
      name - String file name
      directory - String file directory
      format - int file format (data type)
  • Method Details

    • finalize

      public void finalize()
      Prepares the class for cleanup.
      Overrides:
      finalize in class FileInfoSurfaceRefXML
    • getMaterial

      public WildMagic.LibGraphics.Rendering.MaterialState getMaterial()
      Returns the material properties for the surface:.
      Returns:
      material properties for the surface.
    • setAmbient

      public void setAmbient(WildMagic.LibFoundation.Mathematics.ColorRGB kColor)
      Sets the ambient color of the surface:.
      Parameters:
      kColor - the ambient color of the surface.
    • setDiffuse

      public void setDiffuse(WildMagic.LibFoundation.Mathematics.ColorRGB kColor)
      Sets the diffuse color of the surface:.
      Parameters:
      kColor - the diffuse color of the surface.
    • setEmissive

      public void setEmissive(WildMagic.LibFoundation.Mathematics.ColorRGB kColor)
      Sets the emissive color of the surface:.
      Parameters:
      kColor - the emissive color of the surface.
    • setMaterial

      public void setMaterial(WildMagic.LibGraphics.Rendering.MaterialState kMaterial)
      Sets the material properties for the surface:.
      Parameters:
      kMaterial - material properties for the surface.
    • setShininess

      public void setShininess(float fShininess)
      Sets the surface shininess:.
      Parameters:
      fShininess - surface shininess.
    • setSpecular

      public void setSpecular(WildMagic.LibFoundation.Mathematics.ColorRGB kColor)
      Sets the specular color of the surface:.
      Parameters:
      kColor - specular color of the surface.
    • updateFileInfos

      public void updateFileInfos(FileInfoXML fInfo)
      Used to propagate all FileInfoSurfaceRefXML private variables to other FileInfosSurfaceRefXML.
      Overrides:
      updateFileInfos in class FileInfoSurfaceRefXML
      Parameters:
      fInfo - FileInfoSurfaceRefXML file info to be copied into