Package com.openinventor.inventor.image
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 inSoRasterReaderSet
as default readers. The default raster readers are:SoPNGImageRW
,SoSGIRGBImageRW
,SoGIFImageRW
,SoJP2ImageRW
,SoSUNImageRW
,SoBMPImageRW
,SoPGXImageRW
,SoPNMImageRW
,SoPSImageRW
,SoJPEGImageRW
, andSoTIFFImageRW
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addReader(SoRasterImageRW reader)
Adds a raster reading class to the set of raster readers.static void
deleteReaders(int start)
Calls deleteReaders(start, (int)-1).static void
deleteReaders(int start, int num)
Removes num readers (including default ones) at start position.static int
getNumReaders()
Returns the number of raster readers currently in the set.static SoRasterImageRW
getReader(SoRasterImageIO imageIO)
Returns an instance of the reader class if found in the set of raster readers.static java.lang.Class<? extends Inventor>
getReaderAt(int index)
Returns the type of reader at the specified index.-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
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 java.lang.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.
-
-