Package gov.nasa.pds.objectAccess
Class ThreeDImageExporter
java.lang.Object
gov.nasa.pds.objectAccess.ObjectExporter
gov.nasa.pds.objectAccess.ImageExporter
gov.nasa.pds.objectAccess.ThreeDImageExporter
- All Implemented Interfaces:
- Exporter<Array3DImage>
public class ThreeDImageExporter extends ImageExporter implements Exporter<Array3DImage>
Class for converting PDS Array_3D_Image products.
- Author:
- mcayanan
- 
Method SummaryModifier and Type Method Description voidconvert(Array3DImage array3DImage, OutputStream outputStream)Converts a 3D array file to a viewable image file.voidconvert(OutputStream outputStream, int objectIndex)Converts the object at index objectIndex into the desired export type.voidflip(BufferedImage image)Array3DImagegetArray3DImage()Get the Array 3D ImageStringgetExportType()Get the export image formatintgetTargetPixelDepth()Return the target image pixel depth in bitsbooleanisFirstIndexFastest()Is the first index fastest?booleanisSampleDirectionRight()Is the sample direction to the right?booleanmaximizeDynamicRange()Get whether or not input data elements are scaled up to the target pixel bit depthvoidmaximizeDynamicRange(boolean dynamicRangeScaling)Set whether or not input data elements are scaled up to the maximum pixel bit depthvoidsetArray3DImage(Array3DImage img)Set the Array 3D ImagevoidsetExportType(String exportType)Set the export image format.voidsetFirstIndexFastest(boolean firstIndexFastest)Set whether the first index is fastest.voidsetSampleDirectionRight(boolean sampleDirectionRight)Set the sample direction.voidsetTargetPixelDepth(int targetPixelDepth)Set the target pixel bit depthMethods inherited from class gov.nasa.pds.objectAccess.ImageExportergetDisplaySettings, parseLabel, parseLabel, parseLabel, parseLabel, setDisplaySettingsMethods inherited from class gov.nasa.pds.objectAccess.ObjectExportergetObjectProvider, getObservationalFileArea, setObjectProvider, setObservationalFileAreaMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gov.nasa.pds.objectAccess.ExportersetObjectProvider, setObservationalFileArea
- 
Method Details- 
convertDescription copied from interface:ExporterConverts the object at index objectIndex into the desired export type.- Specified by:
- convertin interface- Exporter<Array3DImage>
- Parameters:
- outputStream- the output stream for the output object
- objectIndex- the index of the input object of type T in the associated observational file area
- Throws:
- IOException
 
- 
convertConverts a 3D array file to a viewable image file.- Specified by:
- convertin interface- Exporter<Array3DImage>
- Parameters:
- outputStream- the output stream
- array3DImage- the array3DImage object to convert
- Throws:
- IOException- if there is an exception writing to the stream or reading the image
 
- 
flip
- 
getTargetPixelDepthpublic int getTargetPixelDepth()Return the target image pixel depth in bits- Returns:
- targetPixelBitDepth
 
- 
setTargetPixelDepthpublic void setTargetPixelDepth(int targetPixelDepth)Set the target pixel bit depth- Parameters:
- targetPixelDepth- the target pixel bit depth
 
- 
maximizeDynamicRangepublic boolean maximizeDynamicRange()Get whether or not input data elements are scaled up to the target pixel bit depth- Returns:
- boolean
 
- 
maximizeDynamicRangepublic void maximizeDynamicRange(boolean dynamicRangeScaling)Set whether or not input data elements are scaled up to the maximum pixel bit depth- Parameters:
- dynamicRangeScaling-
 
- 
getExportTypeGet the export image format- Returns:
- exportType the export image format
 
- 
setExportTypeSet the export image format. The format is limited to those supported by Java.- Specified by:
- setExportTypein interface- Exporter<Array3DImage>
- Parameters:
- exportType- the export image format
 
- 
isSampleDirectionRightpublic boolean isSampleDirectionRight()Is the sample direction to the right?- Returns:
- sampleDirectionRight
 
- 
setSampleDirectionRightpublic void setSampleDirectionRight(boolean sampleDirectionRight)Set the sample direction.- Parameters:
- sampleDirectionRight-
 
- 
isFirstIndexFastestpublic boolean isFirstIndexFastest()Is the first index fastest?- Returns:
- firstIndexFastest
 
- 
setFirstIndexFastestpublic void setFirstIndexFastest(boolean firstIndexFastest)Set whether the first index is fastest.- Parameters:
- firstIndexFastest-
 
- 
getArray3DImageGet the Array 3D Image- Returns:
- pdsImage
 
- 
setArray3DImageSet the Array 3D Image- Parameters:
- img-
 
 
-