public class SoVRMemoryWriter extends SoVolumeWriter
SoVRMemoryReader
. It writes data in the data
buffer. You can manually specify this buffer. Else, a buffer will be created in the initialize() method. This writer does not organize data on tiles (isDataConverted returns false). So you must use the writeSubSlice method and write data slice by slice.
Do not use the writeTile method with this writer.
SoVRMemoryReader
can return an instance of this class already configured to write into the same area of memory.
Padding can be used to add zeros around the slice to align them in memory:
____________________ |xxxxxxxxxxx| | |xxxxxxxxxxx| | |xxxxxxxxxxx| | |___________| | | | |__________________| <-----------><-----> slice padding
See also:
SoVolumeWriter.WordFormats
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBufferObject |
data
Buffer containing data.
|
SoSFVec2s |
padding
Padding over x and y dimension, use to align slice data in memory.
|
dataType, dimension, extent, WF_BIG_ENDIAN, WF_LITTLE_ENDIAN, wordFormat
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoVRMemoryWriter()
Constructor.
|
closeAllHandles, finish, initialize, isDataConverted, restoreAllHandles, writeSubSlice, writeTile
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 SoSFBufferObject data
public final SoSFVec2s padding
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com