32class SoCpuBufferCompressedImpl;
50 SO_TYPED_CLASS_HEADER();
153 virtual void setMinMax(
const double& min,
const double& max);
180 virtual void prefetchBuffer();
#define SO_BUFFER_SIZE_ALL
Used to indicate that we want to use the whole buffer.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
AccessMode
This enum provides the possible access modes for a mapped buffer object.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> LDM inte...
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> LDM buff...
friend class SoCpuBufferCompressedImpl
virtual void setCompressor(SoDataCompressor *compressor)
Set the compressor used to decompress buffer.
virtual void map(SoCpuBufferObject *targetBufferObject, SoBufferObject::AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
Map the current buffer object into the specified CPU buffer object.
virtual void unmap(SoBufferObject *bufferObject)
Remove the specified bufferObject from the list of buffers which map the current buffer.
virtual void unmap(SoCpuBufferObject *bufferObject)
Unmap the specified CPU buffer object It is defined just to speed up the call when the type of the ...
virtual void * map(SoBufferObject::AccessMode accessMode, size_t offset=0, size_t count=SO_BUFFER_SIZE_ALL)
Returns a pointer to the memory array used for the storage of the buffer.
virtual void unmap()
Unmap a mapped buffer.
SoCpuBufferCompressed(SoDataCompressor *compressor)
Constructor with compressor given as parameter.
virtual void map(SoBufferObject *targetBufferObject, SoBufferObject::AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
Map the current buffer object into the specified buffer object.
virtual bool getMinMax(double &min, double &max)
Get the min and max values in the buffer, if they are known.
size_t getRealSize() const
Returns the size of the uncompressed data in bytes.
SoCpuBufferCompressed()
Default constructor.
virtual void unmap(SoGLBufferObject *bufferObject)
Unmap the specified GL buffer object It is defined just to speed up the call when the type of the o...
virtual void map(SoGLBufferObject *targetBufferObject, SoBufferObject::AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
Map the current buffer object into the specified GL buffer object.
virtual void setMinMax(const double &min, const double &max)
Set the min and max values for this buffer.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> CPU buffer objec...
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Data com...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> OpenGL buffer ob...
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> LDM inte...
This structure contains the dimension and the type of the tile being processed.