Class SoRasterReaderSet

java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.image.SoRasterReaderSet

public class SoRasterReaderSet extends Inventor
Class referencing all raster reading classes. This class is used to know what readers are available when opening a raster file. All raster readers supplied by Open Inventor are already referenced in SoRasterReaderSet as default readers. The default raster readers are: SoPNGImageRW, SoSGIRGBImageRW, SoGIFImageRW, SoJP2ImageRW, SoSUNImageRW, SoBMPImageRW, SoPGXImageRW, SoPNMImageRW, SoPSImageRW, SoJPEGImageRW, and SoTIFFImageRW.

SoPNGImageRW, SoSGIRGBImageRW, SoGIFImageRW, SoJP2ImageRW, SoSUNImageRW, SoBMPImageRW, SoPGXImageRW, SoPNMImageRW, SoPSImageRW, SoJPEGImageRW, SoTIFFImageRW

  • Method Details

    • deleteReaders

      public static void deleteReaders(int start)
      Calls deleteReaders(start, (int)-1).
    • addReader

      public static void addReader(SoRasterImageRW reader)
      Adds a raster reading class to the set of raster readers.
    • getReader

      public static SoRasterImageRW getReader(SoRasterImageIO imageIO)
      Returns an instance of the reader class if found in the set of raster readers. Returns NULL if no reader found or available.
    • getNumReaders

      public static int getNumReaders()
      Returns the number of raster readers currently in the set.
    • getReaderAt

      public static Class<? extends Inventor> getReaderAt(int index)
      Returns the type of reader at the specified index.
    • deleteReaders

      public static void deleteReaders(int start, int num)
      Removes num readers (including default ones) at start position. If num is equal to -1, all readers are removed.