Class FileInfoSurfaceXML_J3D

All Implemented Interfaces:
Serializable, Cloneable

public class FileInfoSurfaceXML_J3D extends FileInfoSurfaceXML
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

    • m_kMaterial

      private javax.media.j3d.Material m_kMaterial
      Material properties of the surface:.
    • m_kMesh

      private ModelTriangleMesh[] m_kMesh
      Surface triangle mesh:.
  • Constructor Details

    • FileInfoSurfaceXML_J3D

      public FileInfoSurfaceXML_J3D(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()
      Description copied from class: FileInfoSurfaceXML
      Prepares the class for cleanup.
      Overrides:
      finalize in class FileInfoSurfaceXML
    • getMaterial

      public javax.media.j3d.Material getMaterial()
      Returns the material properties for the surface:
      Returns:
      DOCUMENT ME!
    • getMesh

      public ModelTriangleMesh[] getMesh()
      Returns the ModelTriangleMesh representing 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!
    • setMesh

      public void setMesh(ModelTriangleMesh[] kMesh)
      Sets the ModelTriangleMesh representing the surface:
      Parameters:
      kMesh - DOCUMENT ME!
    • setMesh

      public void setMesh(javax.vecmath.Point3f[] kVertices, javax.vecmath.Vector3f[] kNormals, javax.vecmath.Color4f[] kColors, int[] aiConnectivity)
      Creates the ModelTriangleMesh for the surface:
      Parameters:
      kVertices - Mesh coordinates
      kNormals - Mesh normals (may be null)
      kColors - Mesh colors (may be null)
      aiConnectivity - Mesh index connectivity array
    • 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 FileInfoSurfaceXML private variables to other FileInfosSurfaceXML.
      Overrides:
      updateFileInfos in class FileInfoSurfaceXML
      Parameters:
      fInfo - FileInfoSurfaceXML file info to be copied into