Package com.openinventor.inventor.image
Class SoRasterImageFile
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.image.SoRasterImageIO
com.openinventor.inventor.image.SoRasterImageFile
Class for raster image file input and output.
Class for raster image file input and output.
- See Also:
-
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
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.SoRasterImageFile
(String fileName) Constructor that takes a file name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Close the file.Returns the file name that was given in the filename constructor.Returns the file suffix.Returns the file name as a full path.Returns the file name that was given in the filename constructor.Returns the file name as a full path.boolean
isBinary()
Returns the file open binary mode.void
Sets the filePointer to NULL for files closed internally such as RGB files.boolean
openFile
(SoRasterImageRW.OpenModes openMode) Deprecated.As of Open Inventor 9.0.0.0.boolean
Open the file (specified withsetFileName
) for writing.void
setBinary
(boolean isBinary) Sets the file open binary mode.void
setFileName
(String fileName) Sets the file name.Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoRasterImageFile
public SoRasterImageFile()Constructor. -
SoRasterImageFile
Constructor that takes a file name.
-
-
Method Details
-
openFile
Deprecated.As of Open Inventor 9.0.0.0. Use openRead() or openWrite() instead.Opens the file with the specified open mode.Warning Deprecated since Open Inventor 9000. Use openRead() or
openWrite()
instead. -
openWrite
public boolean openWrite()Open the file (specified withsetFileName
) for writing. The filename should be a full path. Returns true if successful. -
isBinary
public boolean isBinary()Returns the file open binary mode. -
getFileName
Returns the file name that was given in the filename constructor. If the filename constructor was not used, this method returns an empty string. To get the file name as a full path, the methodsgetFullPathFileName()
orgetStringFullPathFileName()
should be used. -
nullFilePtr
public void nullFilePtr()Sets the filePointer to NULL for files closed internally such as RGB files. -
getStringFullPathFileName
Returns the file name as a full path. If the filename constructor was not used, this method returns an empty string. This method should be called after openRead() oropenWrite()
, or else it will return an empty string. To get the file name as it was passed to the constructor, the methodsgetFileName()
orgetStringFileName()
should be used. -
closeFile
public void closeFile()Close the file. -
setFileName
Sets the file name. -
setBinary
public void setBinary(boolean isBinary) Sets the file open binary mode. -
getStringFileName
Returns the file name that was given in the filename constructor. If the filename constructor was not used, this method returns an empty string. To get the file name as a full path, the methodsgetFullPathFileName()
orgetStringFullPathFileName()
should be used. -
getFileSuffix
Returns the file suffix. -
getFullPathFileName
Returns the file name as a full path. If the filename constructor was not used, this method returns an empty string.This method should be called after openRead() or
openWrite()
, or else it will return an empty string. To get the file name as it was passed to the constructor, the methodsgetFileName()
orgetStringFileName()
should be used.
-