Class FileInfoSurfaceRefXML_J3D

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class FileInfoSurfaceRefXML_J3D
    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 javax.media.j3d.Material m_kMaterial
        Material properties of the surface:.
    • Constructor Detail

      • FileInfoSurfaceRefXML_J3D

        public FileInfoSurfaceRefXML_J3D​(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 javax.media.j3d.Material getMaterial()
        Returns the material properties for the surface:
        Returns:
        DOCUMENT ME!
      • setAmbient

        public void setAmbient​(javax.vecmath.Color3f kColor)
        Sets the ambient color of the surface:
        Parameters:
        kColor - DOCUMENT ME!
      • setDiffuse

        public void setDiffuse​(javax.vecmath.Color3f kColor)
        Sets the diffuse color of the surface:
        Parameters:
        kColor - DOCUMENT ME!
      • setEmissive

        public void setEmissive​(javax.vecmath.Color3f kColor)
        Sets the emissive color of the surface:
        Parameters:
        kColor - DOCUMENT ME!
      • setMaterial

        public void setMaterial​(javax.media.j3d.Material kMaterial)
        Sets the material properties for the surface:
        Parameters:
        kMaterial - DOCUMENT ME!
      • setShininess

        public void setShininess​(float fShininess)
        Sets the surface shininess:
        Parameters:
        fShininess - DOCUMENT ME!
      • setSpecular

        public void setSpecular​(javax.vecmath.Color3f kColor)
        Sets the specular color of the surface:
        Parameters:
        kColor - DOCUMENT ME!
      • updateFileInfos

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