Click or drag to resize
SoMemoryDataAdapterCreateMemoryDataAdapter Method

Factory method that creates an adapter from an existing block of memory.

Namespace: OIV.ImageViz.Nodes.Images
Assembly: OIV.ImageViz (in OIV.ImageViz.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public static SoMemoryDataAdapter CreateMemoryDataAdapter(
	SbVec4i32 dimension,
	SbImageDataType imageInfos,
	SoMemoryDataAdapterLayerOrganizations organization,
	SoBufferObject data
)

Parameters

dimension
Type: OIV.InventorSbVec4i32

Dimension of the buffer (width, height, depth, timestep).

imageInfos
Type: OIV.ImageVizSbImageDataType

Define the format type of data.

organization
Type: OIV.ImageViz.Nodes.ImagesSoMemoryDataAdapterLayerOrganizations

Define the organization of layers.

data
Type: OIV.Inventor.DevicesSoBufferObject

Buffer object to map. If data is NULL, a buffer is automatically allocated and its values are initialized to 0.

Return Value

Type: SoMemoryDataAdapter
Remarks

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.

See Also