Class FileInfoSurfaceRefXML_WM

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    FileIO, FileInfoXML, FileSurfaceXML, Serialized Form
    • Field Detail

      • m_kMaterial

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

      • FileInfoSurfaceRefXML_WM

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

      • 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