Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 name
        fileDir - file directory
        image - 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
    • Method Detail

      • writePaintBitmap

        public void writePaintBitmap​(java.util.BitSet paintBitmap)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readPaintBitmap

        public java.util.BitSet readPaintBitmap()
                                         throws java.io.IOException
        Throws:
        java.io.IOException