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 See documentation for more details
|
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, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoRasterImageFile()
public SoRasterImageFile(java.lang.String fileName)
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 boolean openWrite()
setFileName
) for writing.
The filename should be a full path. Returns true if successful.public void setFileName(java.lang.String fileName)
public java.lang.String getFileName()
getFullPathFileName()
or getStringFullPathFileName()
should be used.public boolean isBinary()
public void setBinary(boolean isBinary)
public void nullFilePtr()
public java.lang.String getStringFileName()
getFullPathFileName()
or getStringFullPathFileName()
should be used.@Deprecated public boolean openFile(SoRasterImageRW.OpenModes openMode)
openWrite()
instead. public void closeFile()
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.
public java.lang.String getFileSuffix()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com