public class SoFileDataAdapter extends SoImageDataAdapter
SoImageDataAdapter
for methods to access the data.
NOTE:SoFileDataAdapter
provides access to the image data but does not guarantee that all the data is loaded in memory. Only SoMemoryDataAdapter
is guaranteed to do that. As a result, only an SoMemoryDataAdapter
(or an SoProxyDataAdapter
that is attached to an SoMemoryDataAdapter
) is completely safe to use as input for ImageViz filter engines. Many engines will work with data partially in memory, but some, for example SoImageRegistrationTransform3d
, will only work if the image is completely in memory. See the documentation for the specific engines you are using. Conveniently, the utility method SoImageDataAdapterHelper.getAppropriateAdapter() returns an SoMemoryDataAdapter
object if there is enough memory to load all the data.
File format/default:
FileDataAdapter {
fileName | "" |
maxMemory | 500 |
//Inherited | |
interpretation | VALUE |
extent | 0,0,0, 1,1,1 |
orientation | 0 0 0 1 |
See also:
SoImageDataAdapter
, SoMemoryDataAdapter
, SoProxyDataAdapter
, SoVolumeReaderAdapter
, SoImageDataAdapterHelper
SoImageDataAdapter.Interpretations
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFFilePathString |
fileName
Data filename to get data from.
|
SoSFUInt32 |
maxMemory
Specifies the maximum memory that may be allocated for the image in MB (megabytes).
|
BINARY, extent, interpretation, LABEL, orientation, VALUE
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoFileDataAdapter()
Default constructor.
|
getColumnDirection, getDataAccessor, getExtent, getImageDataType, getIndexToPhysicalTransformation, getInterpretation, getOrigin, getPlaneDirection, getRowDirection, getSize, getVoxelSize, setDirection, setInterpretation, setOrigin, setVoxelSize
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFFilePathString fileName
SbImageDataAdapterHelper.getAppropriateAdapter
for a detailed description of supported file formats.public final SoSFUInt32 maxMemory
SoMemoryDataAdapter
.
Default value is 500 MB. The default value can be overridden by the environment variable IMAGEVIZ_MAX_MEMORY_ADAPTER.
Important note: This field must be set before the fileName
field to be taken into account. See SbImageDataAdapterHelper.getAppropriateAdapter()
for more details.
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com