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.3.0.0 (10.3.0.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 provided to simulated a blank image.

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