Class FileInfoSurfaceGiftiXML_WM

All Implemented Interfaces:
Serializable, 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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • m_kMaterial

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

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

      private Vector<Integer> connectivity
      Vector to hold the connection index.
  • Constructor Details

    • FileInfoSurfaceGiftiXML_WM

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

    • setCoordinate

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

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

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

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