SoVRMemoryWriter Class Reference

Large Data Management Write data in memory More...

#include <VolumeViz/writers/SoVRMemoryWriter.h>

Inheritance diagram for SoVRMemoryWriter:
SoVolumeWriter SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoVRMemoryWriter ()
virtual SbBool initialize ()
virtual SbBool isDataConverted () const
virtual SbBool writeSubSlice (int sliceIndex, const SbBox2i32 &subSlice, SoBufferObject *buffer)

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFBufferObject data
SoSFVec2s padding

Detailed Description

Large Data Management Write data in memory

This writer is the writer corresponding to SoVRMemoryReader. It writes data in the data buffer. You can manually specify this buffer. Else, a buffer will be created in the initialize() method. This writer does not organize data on tiles (isDataConverted returns FALSE). So you must use the writeSubSlice method and write data slice by slice.

Do not use the writeTile method with this writer.

SoVRMemoryReader can return an instance of this class already configured to write into the same area of memory.

Padding can be used to add zeros around the slice to align them in memory:

    ____________________
    |xxxxxxxxxxx|      |
    |xxxxxxxxxxx|      |
    |xxxxxxxxxxx|      |
    |___________|      |
    |                  |
    |__________________|
    <-----------><----->
        slice    padding
    

SEE ALSO

SoVRMemoryReader SoVolumeWriter SoVRLdmFileWriter

See related examples:

CustomLdmWriter


Constructor & Destructor Documentation

SoVRMemoryWriter::SoVRMemoryWriter (  ) 

Constructor.


Member Function Documentation

static SoType SoVRMemoryWriter::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoVolumeWriter.

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

Returns the type identifier for this specific instance.

Reimplemented from SoVolumeWriter.

virtual SbBool SoVRMemoryWriter::initialize (  )  [virtual]

Initialize writer from current parameters.

Allocate data buffer

Reimplemented from SoVolumeWriter.

virtual SbBool SoVRMemoryWriter::isDataConverted (  )  const [virtual]

Always returns FALSE.

This writer is not organized by tiles.

Implements SoVolumeWriter.

virtual SbBool SoVRMemoryWriter::writeSubSlice ( int  sliceIndex,
const SbBox2i32 subSlice,
SoBufferObject buffer 
) [virtual]

Writes the data contained in the specified subslice. This function must be called only if isDataConverted() return FALSE.Must be reimplemented in children classes.

Reimplemented from SoVolumeWriter.


Member Data Documentation

Buffer containing data.

If specified, it must be the right size (nbVoxel * dataSize, by taking padding in account). If NULL, it will be allocated in the initialize() method and deleted in destructor. default is NULL.

Padding over x and y dimension, use to align slice data in memory.

default is (0, 0).


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/