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. SeeSoImageDataAdapterfor methods to access the data.File format/default: MemoryDataAdapter { extent 0,0,0, 1,1,1 - See Also:
- SoImageDataAdapter,- SoFileDataAdapter,- SoVolumeReaderAdapter
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSoMemoryDataAdapter.LayerOrganizationsLayer organization.- 
Nested classes/interfaces inherited from class com.openinventor.imageviz.nodes.images.SoImageDataAdapterSoImageDataAdapter.Interpretations
 - 
Nested classes/interfaces inherited from class com.openinventor.inventor.InventorInventor.ConstructorCommand
 
- 
 - 
Field Summary- 
Fields inherited from class com.openinventor.imageviz.nodes.images.SoImageDataAdapterextent, interpretation, orientation
 - 
Fields inherited from class com.openinventor.inventor.InventorVERBOSE_LEVEL, ZeroHandle
 
- 
 - 
Constructor SummaryConstructors Constructor Description SoMemoryDataAdapter()Default constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SoMemoryDataAdaptercreateMemoryDataAdapter(SbVec4i32 dimension, SbImageDataType imageInfos, SoMemoryDataAdapter.LayerOrganizations organization, SoBufferObject data)Factory method that creates an adapter from an existing block of memory.SoBufferObjectgetBufferObject()Returns the buffer object containing the image data.- 
Methods inherited from class com.openinventor.imageviz.nodes.images.SoImageDataAdaptergetColumnDirection, getDataAccessor, getExtent, getImageDataType, getIndexToPhysicalTransformation, getInterpretation, getOrigin, getPlaneDirection, getRowDirection, getSize, getVoxelSize, setDirection, setInterpretation, setOrigin, setVoxelSize
 - 
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainercopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
 - 
Methods inherited from class com.openinventor.inventor.misc.SoBasedispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
 - 
Methods inherited from class com.openinventor.inventor.InventorgetNativeResourceHandle
 
- 
 
- 
- 
- 
Constructor Detail- 
SoMemoryDataAdapterpublic 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- 
getBufferObjectpublic SoBufferObject getBufferObject() Returns the buffer object containing the image data. Data are stored line by line, slice by slice, channels in CONTIGUOUS_PER_PIXEL.
 - 
createMemoryDataAdapterpublic 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: AnSoMemoryDataAdapterstores 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.
 
 
- 
 
-