Class SoMemoryDataAdapter
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.imageviz.nodes.images.SoImageDataAdapter
-
- com.openinventor.imageviz.nodes.images.SoMemoryDataAdapter
-
- All Implemented Interfaces:
SafeDisposable
public class SoMemoryDataAdapter extends SoImageDataAdapter
Image data adapter for in memory data. Loads image data from memory. SeeSoImageDataAdapter
for methods to access the data.File format/default:
MemoryDataAdapter {
extent 0,0,0, 1,1,1 - See Also:
SoImageDataAdapter
,SoFileDataAdapter
,SoVolumeReaderAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoMemoryDataAdapter.LayerOrganizations
Layer organization.-
Nested classes/interfaces inherited from class com.openinventor.imageviz.nodes.images.SoImageDataAdapter
SoImageDataAdapter.Interpretations
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.imageviz.nodes.images.SoImageDataAdapter
extent, interpretation, orientation
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoMemoryDataAdapter()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.openinventor.imageviz.nodes.images.SoImageDataAdapter
getColumnDirection, getDataAccessor, getExtent, getImageDataType, getIndexToPhysicalTransformation, getInterpretation, getOrigin, getPlaneDirection, getRowDirection, getSize, getVoxelSize, setDirection, setInterpretation, setOrigin, setVoxelSize
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoMemoryDataAdapter
public SoMemoryDataAdapter()
Default constructor. Init an image with one voxel unit of one component of type UNSIGNED_BYTE.Please use
createMemoryDataAdapter()
to create a Memory adapter from existing block of memory.
-
-
Method Detail
-
getBufferObject
public SoBufferObject getBufferObject()
Returns the buffer object containing the image data. Data are stored line by line, slice by slice, channels in CONTIGUOUS_PER_PIXEL.
-
createMemoryDataAdapter
public static SoMemoryDataAdapter createMemoryDataAdapter(SbVec4i32 dimension, SbImageDataType imageInfos, SoMemoryDataAdapter.LayerOrganizations organization, SoBufferObject data)
Factory method that creates an adapter from an existing block of memory. Note: AnSoMemoryDataAdapter
stores its data in CONTIGUOUS_PER_PIXEL. Data may be copied and reorganized if LayerOrganization is not CONTIGUOUS_PER_PIXEL.- Parameters:
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 automatically allocated and its values are initialized to 0.
-
-