SoMemoryDataAdapter Class Reference

ImageViz Image data adapter for in memory data. More...

#include <ImageViz/Nodes/Images/SoMemoryDataAdapter.h>

Inheritance diagram for SoMemoryDataAdapter:
SoImageDataAdapter SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  LayerOrganization {

Public Member Functions

virtual SoType getTypeId () const
 SoMemoryDataAdapter ()
SoBufferObjectgetBufferObject ()

Static Public Member Functions

static SoType getClassTypeId ()
static SoMemoryDataAdaptercreateMemoryDataAdapter (const SbVec4i32 &dimension, SbImageDataType imageInfos, LayerOrganization organization, SoBufferObject *data)

Detailed Description

ImageViz Image data adapter for in memory data.

Loads image data from memory. See SoImageDataAdapter for methods to access the data.



SoImageDataAdapter, SoFileDataAdapter, SoVolumeReaderAdapter

See related examples:

DenoisingImage2D, CreatingImage2D, CreatingImage3D

Member Enumeration Documentation

Layer organization.


values of each layer are grouped by pixel (e.g.

: RGBA RGBA ... )


values of each layer are separated (e.g.

: RRRR... GGGG... BBBB... AAAA... )


values of each layer are separated by 2d simple plane (e.g.

: RR... GG... BB... RR... GG... BB...)


values of each layer are separated by 3d simple volume

Constructor & Destructor Documentation

SoMemoryDataAdapter::SoMemoryDataAdapter (  ) 

Default constructor.

Init an image with one voxel unit of one component of type UNSIGNED_BYTE.

Please use createMemoryDataAdapter() to create a Memory adapter from existing block of memory.

Member Function Documentation

static SoMemoryDataAdapter* SoMemoryDataAdapter::createMemoryDataAdapter ( const SbVec4i32 dimension,
SbImageDataType  imageInfos,
LayerOrganization  organization,
SoBufferObject data 
) [static]

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

Note: An SoMemoryDataAdapter stores its data in CONTIGUOUS_PER_PIXEL. Data may be copied and reorganized if LayerOrganization is not CONTIGUOUS_PER_PIXEL.

dimension Dimension of the buffer (width, height, depth, timestep).
imageInfos Define the format type of data.
organization Define the organization of layers.
data Buffer object to map. If data is NULL, a buffer is provided to simulated a blank image.
SoBufferObject* SoMemoryDataAdapter::getBufferObject (  ) 

Returns the buffer object containing the image data.

Data are stored line by line, slice by slice, channels in CONTIGUOUS_PER_PIXEL.

static SoType SoMemoryDataAdapter::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoImageDataAdapter.

virtual SoType SoMemoryDataAdapter::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoImageDataAdapter.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 17 Dec 2019
Copyright © Thermo Fisher Scientific All rights reserved.