public class SoMemoryDataAdapter extends SoImageDataAdapter
SoImageDataAdapter
for methods to access the data.
File format/default:
MemoryDataAdapter {
extent | 0,0,0, 1,1,1 |
See also:
SoImageDataAdapter
, SoFileDataAdapter
, SoVolumeReaderAdapter
Modifier and Type | Class and Description |
---|---|
static class |
SoMemoryDataAdapter.LayerOrganizations
Layer organization.
|
SoImageDataAdapter.Interpretations
Inventor.ConstructorCommand
extent, interpretation, orientation
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMemoryDataAdapter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static SoMemoryDataAdapter |
createMemoryDataAdapter(SbVec4i32 dimension,
SbImageDataType imageInfos,
SoMemoryDataAdapter.LayerOrganizations organization,
SoBufferObject data)
Factory method that creates an adapter from an existing block of memory.
|
SoBufferObject |
getBufferObject()
Returns the buffer object containing the image data.
|
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, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getNativeResourceHandle
public SoMemoryDataAdapter()
Please use createMemoryDataAdapter()
to create a Memory adapter from existing block of memory.
public SoBufferObject getBufferObject()
public static SoMemoryDataAdapter createMemoryDataAdapter(SbVec4i32 dimension, SbImageDataType imageInfos, SoMemoryDataAdapter.LayerOrganizations organization, SoBufferObject data)
SoMemoryDataAdapter
stores its data in CONTIGUOUS_PER_PIXEL. Data may be copied and reorganized if LayerOrganization is not CONTIGUOUS_PER_PIXEL.
dimension
- Dimension of the buffer (width, height, depth, timestep).
imageInfos
- Define the format type of data.
organization
- Define the organization of layers.
data
- Buffer object to map. If #data is NULL, a buffer is provided to simulated a blank image.Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com