Package geomss.geom.reader
Class BDSGeomReader
- java.lang.Object
-
- geomss.geom.reader.AbstractGeomReader
-
- geomss.geom.reader.BDSGeomReader
-
- All Implemented Interfaces:
GeomReader
,java.lang.Comparable
public class BDSGeomReader extends AbstractGeomReader
AGeomReader
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
-
Fields inherited from interface geomss.geom.reader.GeomReader
MAYBE, NO, YES
-
-
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 returnsfalse
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 suppliedPointVehicle
object.-
Methods inherited from class geomss.geom.reader.AbstractGeomReader
canReadData, compareTo, getWarnings, read, setFileUnits
-
-
-
-
Field Detail
-
EXTENSION
public static final java.lang.String EXTENSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BDSGeomReader
public BDSGeomReader()
-
-
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 classjava.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.
-
canWriteData
public boolean canWriteData()
Returns true. This class can write point geometry to a BDS formatted file.- Specified by:
canWriteData
in interfaceGeomReader
- Overrides:
canWriteData
in classAbstractGeomReader
- Returns:
- Always returns true.
-
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 suppliedPointVehicle
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 interfaceGeomReader
- Overrides:
write
in classAbstractGeomReader
- Parameters:
outputFile
- The output file to which the geometry is to be written.geometry
- ThePointVehicle
object to be written out. May not be null.- Throws:
java.io.IOException
- if there is a problem writing to the specified file.
-
isUnitAware
public boolean isUnitAware()
This method always returnsfalse
as BDS files do not encode the units that are being used. You must callsetFileUnits
to set the units being used before reading a file of this format.- Returns:
- Always returns false.
- See Also:
AbstractGeomReader.setFileUnits(javax.measure.unit.Unit)
-
-