Package gov.nih.mipav.model.file
Class FilePaintBitmap
- java.lang.Object
-
- gov.nih.mipav.model.file.FilePaintBitmap
-
public class FilePaintBitmap extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
extension
protected java.io.File
file
File reference, it and its components are able to be modified by extending classes.protected java.lang.String
fileDir
File directory where the VOI is to read or written.protected java.lang.String
fileName
File name of the VOI.private ModelImage
image
Image used to reference properties of the image to aid reading and writing of the VOI.private int
length
private int
sliceNum
File directory where the VOI is to read or written.private java.lang.String
trimmedFileName
File name without the extension.
-
Constructor Summary
Constructors Constructor Description FilePaintBitmap(java.lang.String fileName, java.lang.String fileDir, ModelImage image)
VOI reader/writer constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.BitSet
readPaintBitmap()
void
writePaintBitmap(java.util.BitSet paintBitmap)
-
-
-
Field Detail
-
file
protected java.io.File file
File reference, it and its components are able to be modified by extending classes.
-
fileDir
protected java.lang.String fileDir
File directory where the VOI is to read or written.
-
fileName
protected java.lang.String fileName
File name of the VOI.
-
image
private final ModelImage image
Image used to reference properties of the image to aid reading and writing of the VOI.
-
sliceNum
private int sliceNum
File directory where the VOI is to read or written.
-
trimmedFileName
private java.lang.String trimmedFileName
File name without the extension.
-
extension
private java.lang.String extension
-
length
private int length
-
-
Constructor Detail
-
FilePaintBitmap
public FilePaintBitmap(java.lang.String fileName, java.lang.String fileDir, ModelImage image) throws java.io.IOException
VOI reader/writer constructor.- Parameters:
fileName
- file namefileDir
- file directoryimage
- image model: needed during the read process to ensure the VOI "fits" in the image space.- Throws:
java.io.IOException
- if there is an error making the files
-
-