CreatingImage2D This example demonstrates how to create a new 2D image containing data from a buffer.
DESCRIPTION:
First this example shows how to fill an SoCpuBufferObject with synthetic values that would represent a bright square on a gray background.
Then this buffer is set in an SoMemoryDataAdapter that corresponds to a 2D 512x512 image.
At least a simple scene graph is built and the image is displayed as an orthoslice in a viewer.
NOTE:
SEE ALSO
SoVRImageDataReader, SbImageDataAdapterHelper, SoMemoryDataAdapter
SCREENSHOT:
FILES:
-
ImageViz/GettingStarted/04.1.CreatingImage2D.cxx