SoMemoryDataAdapterCreateMemoryDataAdapter Method |
Factory method that creates an adapter from an existing block of memory.
Namespace: OIV.ImageViz.Nodes.Images
public static SoMemoryDataAdapter CreateMemoryDataAdapter( SbVec4i32 dimension, SbImageDataType imageInfos, SoMemoryDataAdapterLayerOrganizations organization, SoBufferObject data )
Dimension of the buffer (width, height, depth, timestep).
Define the format type of data.
Define the organization of layers.
Buffer object to map. If data is NULL, a buffer is automatically allocated and its values are initialized to 0.
Note: An OIV.ImageViz.Nodes.Images.SoMemoryDataAdapter stores its data in CONTIGUOUS_PER_PIXEL. Data may be copied and reorganized if LayerOrganization is not CONTIGUOUS_PER_PIXEL.