Class FileInfoSurfaceGiftiXML_WM

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

    public class FileInfoSurfaceGiftiXML_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:.
      • coordinates

        private java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> coordinates
        Vector to hold the 3D coordinate positions
      • connectivity

        private java.util.Vector<java.lang.Integer> connectivity
        Vector to hold the connection index.
    • Constructor Detail

      • FileInfoSurfaceGiftiXML_WM

        public FileInfoSurfaceGiftiXML_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

      • setCoordinate

        public void setCoordinate​(java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> coords)
        Set the default coordinate vector.
      • setConnectivity

        public void setConnectivity​(java.util.Vector<java.lang.Integer> conn)
        Set the default connectivity vector.
        Parameters:
        conn -
      • getCoordinate

        public java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> getCoordinate()
        Get the coordinate vector.
        Returns:
        coordinate
      • getConnectivity

        public java.util.Vector<java.lang.Integer> getConnectivity()
        Get the connectivity vector.
        Returns:
        connectivity.
      • 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