Class BDSGeomReader

  • All Implemented Interfaces:
    GeomReader, java.lang.Comparable

    public class BDSGeomReader
    extends AbstractGeomReader
    A GeomReader for writing vehicle point geometry out to an SAIC bdStudio BDS mesh geometry file. The input geometry is assumed to be made up of quadrilateral panels (with one panel side possibly collapsed).

    Modified by: Joseph A. Huwaldt

    Version:
    September 9, 2016
    Author:
    Joseph A. Huwaldt, Date: May 3, 2010
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EXTENSION  
    • Constructor Summary

      Constructors 
      Constructor Description
      BDSGeomReader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canWriteData()
      Returns true.
      java.lang.String getExtension()
      Returns the preferred file extension (not including the ".") for files of this GeomReader's type.
      boolean isUnitAware()
      This method always returns false as BDS files do not encode the units that are being used.
      java.lang.String toString()
      Returns a string representation of the object.
      void write​(java.io.File outputFile, GeometryList geometry)
      Writes out a bdStudio mesh (BDS) geometry file for the geometry contained in the supplied PointVehicle object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of the object. This will return a brief description of the format read by this reader.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A description of this format type.
      • getExtension

        public java.lang.String getExtension()
        Returns the preferred file extension (not including the ".") for files of this GeomReader's type.
        Returns:
        The preferred file extension for this format type.
      • write

        public void write​(java.io.File outputFile,
                          GeometryList geometry)
                   throws java.io.IOException
        Writes out a bdStudio mesh (BDS) geometry file for the geometry contained in the supplied PointVehicle object.

        WARNING: This format is not unit aware. The geometry will be written out in whatever its current units are! Make sure to convert to the desired units for the file before calling this method.

        Specified by:
        write in interface GeomReader
        Overrides:
        write in class AbstractGeomReader
        Parameters:
        outputFile - The output file to which the geometry is to be written.
        geometry - The PointVehicle object to be written out. May not be null.
        Throws:
        java.io.IOException - if there is a problem writing to the specified file.