SoCpuBufferFromVolumeReader Class Reference
[Tiles]

Large Data Management LDM buffer object optimized for in memory reader tile data. More...

#include <LDM/tiles/SoCpuBufferFromVolumeReader.h>

Inheritance diagram for SoCpuBufferFromVolumeReader:
SoCpuBufferObject SoBufferPropertiesInterface SoLDMBufferObjectInterface SoBufferObject SoRefCounter SoTypedObject

List of all members.

Public Member Functions

 SoCpuBufferFromVolumeReader (SoDataSet *dataset, SoLDMTileID tileId)
virtual void map (SoBufferObject *targetBufferObject, AccessMode accessMode, size_t startPosition, size_t mappingSize=SO_BUFFER_SIZE_ALL)
virtual void map (SoCpuBufferObject *targetBufferObject, AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
virtual void map (SoGLBufferObject *targetBufferObject, AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
virtual void * map (AccessMode accessMode)
virtual void unmap (SoCpuBufferObject *bufferObject)
virtual void unmap (SoGLBufferObject *bufferObject)
void unmap (SoBufferObject *bufferObject)
virtual void unmap ()
virtual bool setSize (size_t size)
bool getMinMax (double &min, double &max)
size_t getRealSize () const

Detailed Description

Large Data Management LDM buffer object optimized for in memory reader tile data.

SEE ALSO

SoBufferPropertiesInterface, SoCpuBufferObject


Constructor & Destructor Documentation

SoCpuBufferFromVolumeReader::SoCpuBufferFromVolumeReader ( SoDataSet dataset,
SoLDMTileID  tileId 
)

Constructor with dataset and tile Id as parameter.

Parameters:
dataset pointer to dataset associated with buffer
tileId tileId representing the tile the buffer will store

Member Function Documentation

bool SoCpuBufferFromVolumeReader::getMinMax ( double &  min,
double &  max 
) [virtual]

Get the min and max values in the buffer, if they are known.


Returns false if these values have not been set or computed. Returns true if values are available.

Parameters:
min user variable to store min value
max user variable to store max value

Implements SoBufferPropertiesInterface.

size_t SoCpuBufferFromVolumeReader::getRealSize (  )  const [virtual]

Returns the real size of the buffer in bytes.

Implements SoBufferPropertiesInterface.

virtual void* SoCpuBufferFromVolumeReader::map ( AccessMode  accessMode  )  [virtual]

Returns a pointer to the memory array used for the storage of the buffer.

Returns:
Pointer to the memory array used for the storage.

Reimplemented from SoCpuBufferObject.

virtual void SoCpuBufferFromVolumeReader::map ( SoGLBufferObject targetBufferObject,
AccessMode  accessMode,
size_t  startPosition = 0,
size_t  mappingSize = SO_BUFFER_SIZE_ALL 
) [virtual]

Map the current buffer object into the specified GL buffer object.


See the general map method for more information.

Reimplemented from SoCpuBufferObject.

virtual void SoCpuBufferFromVolumeReader::map ( SoCpuBufferObject targetBufferObject,
AccessMode  accessMode,
size_t  startPosition = 0,
size_t  mappingSize = SO_BUFFER_SIZE_ALL 
) [virtual]

Map the current buffer object into the specified CPU buffer object.


See the general map method for more information.

Implements SoBufferObject.

virtual void SoCpuBufferFromVolumeReader::map ( SoBufferObject targetBufferObject,
AccessMode  accessMode,
size_t  startPosition,
size_t  mappingSize = SO_BUFFER_SIZE_ALL 
) [virtual]

Map the current buffer object into the specified buffer object.


It is useful in order to use a buffer in multiple contexts (e.g. OpenGL and CUDA).

Parameters:
targetBufferObject The buffer object which will be the mapped version of this buffer.
accessMode The access mode used for the mapping.
startPosition offset in source buffer to map from (default is start of buffer).
mappingSize size from the startPosition, if SO_BUFFER_SIZE_ALL then the whole buffer is mapped.

Reimplemented from SoCpuBufferObject.

virtual bool SoCpuBufferFromVolumeReader::setSize ( size_t  size  )  [virtual]

Sets the size in bytes of the buffer object.


Returns false if allocation failed, true otherwise

Parameters:
size The size in bytes of the raw buffer object.

Reimplemented from SoCpuBufferObject.

virtual void SoCpuBufferFromVolumeReader::unmap (  )  [virtual]

Unmap a mapped buffer.

No error is reported if the buffer was not mapped.

Reimplemented from SoCpuBufferObject.

void SoCpuBufferFromVolumeReader::unmap ( SoBufferObject bufferObject  )  [virtual]

Unmap the specified buffer object
It is defined just to speed up the call when the type of the object is known.


See the general unmap function for more information.

Reimplemented from SoCpuBufferObject.

virtual void SoCpuBufferFromVolumeReader::unmap ( SoGLBufferObject bufferObject  )  [virtual]

Unmap the specified GL buffer object
It is defined just to speed up the call when the type of the object is known.


If the access mode supports writing the specified buffer is sync'd with the buffer.

See the general unmap function for more information.

Parameters:
bufferObject Buffer to be unmapped.

Reimplemented from SoCpuBufferObject.

virtual void SoCpuBufferFromVolumeReader::unmap ( SoCpuBufferObject bufferObject  )  [virtual]

Unmap the specified CPU buffer object
It is defined just to speed up the call when the type of the object is known.


Remove the specified bufferObject from the list of buffers which map the current buffer.

See the general unmap function for more information.

Implements SoBufferObject.


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/