Class SoVRMemoryWriter
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.ldm.writers.SoVolumeWriter
-
- com.openinventor.volumeviz.writers.SoVRMemoryWriter
-
- All Implemented Interfaces:
SafeDisposable
public class SoVRMemoryWriter extends SoVolumeWriter
Write data in memory. This writer is the writer corresponding toSoVRMemoryReader
. It writes data in thedata
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:
SoVRMemoryReader
,SoVolumeWriter
,SoVRLdmFileWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.ldm.writers.SoVolumeWriter
SoVolumeWriter.WordFormats
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFBufferObject
data
Buffer containing data.SoSFVec2s
padding
Padding over x and y dimension, use to align slice data in memory.-
Fields inherited from class com.openinventor.ldm.writers.SoVolumeWriter
dataType, dimension, extent, wordFormat
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoVRMemoryWriter()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.ldm.writers.SoVolumeWriter
closeAllHandles, finish, initialize, isDataConverted, restoreAllHandles, writeSubSlice, writeTile
-
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
-
-
-
-
Field Detail
-
data
public final SoSFBufferObject data
Buffer containing data. If specified, it must be the right size (nbVoxel * dataSize, by taking padding in account). If NULL, it will be allocated in the initialize() method and deleted in destructor. default is NULL.
-
padding
public final SoSFVec2s padding
Padding over x and y dimension, use to align slice data in memory. default is (0, 0).
-
-