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
Write data in memory.
This writer is the writer corresponding to
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:
-
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
FieldsModifier and TypeFieldDescriptionfinal SoSFBufferObject
Buffer containing data.final SoSFVec2s
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 -
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 Details
-
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
Padding over x and y dimension, use to align slice data in memory. default is (0, 0).
-
-
Constructor Details
-
SoVRMemoryWriter
public SoVRMemoryWriter()Constructor.
-