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
AGeomReaderfor 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.StringEXTENSION-
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 booleancanWriteData()Returns true.java.lang.StringgetExtension()Returns the preferred file extension (not including the ".") for files of this GeomReader's type.booleanisUnitAware()This method always returnsfalseas BDS files do not encode the units that are being used.java.lang.StringtoString()Returns a string representation of the object.voidwrite(java.io.File outputFile, GeometryList geometry)Writes out a bdStudio mesh (BDS) geometry file for the geometry contained in the suppliedPointVehicleobject.-
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:
toStringin 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:
canWriteDatain interfaceGeomReader- Overrides:
canWriteDatain 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 suppliedPointVehicleobject.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:
writein interfaceGeomReader- Overrides:
writein classAbstractGeomReader- Parameters:
outputFile- The output file to which the geometry is to be written.geometry- ThePointVehicleobject 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 returnsfalseas BDS files do not encode the units that are being used. You must callsetFileUnitsto set the units being used before reading a file of this format.- Returns:
- Always returns false.
- See Also:
AbstractGeomReader.setFileUnits(javax.measure.unit.Unit)
-
-