public class SoRasterImageFile extends SoRasterImageIO
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRasterImageFile()
Constructor.
|
SoRasterImageFile(java.lang.String fileName)
Constructor that takes a file name.
|
Modifier and Type | Method and Description |
---|---|
void |
closeFile()
Close the file.
|
java.lang.String |
getFileName()
Returns the file name that was given in the filename constructor.
|
java.lang.String |
getFileSuffix()
Returns the file suffix.
|
java.lang.String |
getFullPathFileName()
Returns the file name as a full path.
|
java.lang.String |
getStringFileName()
Returns the file name that was given in the filename constructor.
|
java.lang.String |
getStringFullPathFileName()
Returns the file name as a full path.
|
boolean |
isBinary()
Returns the file open binary mode.
|
void |
nullFilePtr()
Sets the filePointer to NULL for files closed internally such as RGB files.
|
boolean |
openFile(SoRasterImageRW.OpenModes openMode)
Deprecated.
As of Open Inventor 9000 Use openRead() or openWrite() instead.
|
boolean |
openWrite()
Open the file (specified with
setFileName ) for writing. |
void |
setBinary(boolean isBinary)
Sets the file open binary mode.
|
void |
setFileName(java.lang.String fileName)
Sets the file name.
|
dispose, getNativeResourceHandle
public SoRasterImageFile()
public SoRasterImageFile(java.lang.String fileName)
@Deprecated public boolean openFile(SoRasterImageRW.OpenModes openMode)
openWrite()
instead. public boolean openWrite()
setFileName
) for writing.
The filename should be a full path. Returns true if successful.public boolean isBinary()
public java.lang.String getFileName()
getFullPathFileName()
or getStringFullPathFileName()
should be used.public void nullFilePtr()
public java.lang.String getStringFullPathFileName()
openWrite()
, or else it will return an empty string. To get the file name as it was passed to the constructor, the methods getFileName()
or getStringFileName()
should be used.public void closeFile()
public void setFileName(java.lang.String fileName)
public void setBinary(boolean isBinary)
public java.lang.String getStringFileName()
getFullPathFileName()
or getStringFullPathFileName()
should be used.public java.lang.String getFileSuffix()
public java.lang.String getFullPathFileName()
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 methods getFileName()
or getStringFileName()
should be used.
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com