LDM interface to optimize memory management of tiles .
More...
#include <LDM/tiles/SoBufferPropertiesInterface.h>
Public Member Functions | |
| SoBufferPropertiesInterface () | |
| virtual | ~SoBufferPropertiesInterface () |
| virtual bool | getMinMax (double &min, double &max)=0 |
| virtual size_t | getRealSize () const =0 |
Friends | |
| class | SoCpuBufferCompressedImpl |
| class | SoCpuBufferUniformImpl |
| class | SoCpuBufferBitSetImpl |
| class | SoCpuBufferFromVolumeReaderImpl |
LDM interface to optimize memory management of tiles .
Specialized buffer object classes may implement this interface to provide additional information about the contents of the buffer.
SoBufferObject SoCpuBufferCompressed SoCpuBufferUniform
| SoBufferPropertiesInterface::SoBufferPropertiesInterface | ( | ) |
Default constructor.
| virtual SoBufferPropertiesInterface::~SoBufferPropertiesInterface | ( | ) | [virtual] |
Destructor.
| virtual bool SoBufferPropertiesInterface::getMinMax | ( | double & | min, | |
| double & | max | |||
| ) | [pure 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.
| min | user variable to store min value | |
| max | user variable to store max value |
Implemented in SoCpuBufferBasicProperty, SoCpuBufferBitSet, SoCpuBufferCompressed, SoCpuBufferFromVolumeReader, and SoCpuBufferUniform.
| virtual size_t SoBufferPropertiesInterface::getRealSize | ( | ) | const [pure virtual] |
Returns the real size of the buffer in bytes.
For a standard buffer this is the same as the size. For a compressed buffer this is the compressed size. For a uniform (single value) buffer this is the size of a single value.
Implemented in SoCpuBufferBasicProperty, SoCpuBufferBitSet, SoCpuBufferCompressed, SoCpuBufferFromVolumeReader, and SoCpuBufferUniform.
friend class SoCpuBufferBitSetImpl [friend] |
Reimplemented in SoCpuBufferBitSet.
friend class SoCpuBufferCompressedImpl [friend] |
Reimplemented in SoCpuBufferCompressed.
friend class SoCpuBufferFromVolumeReaderImpl [friend] |
Reimplemented in SoCpuBufferFromVolumeReader.
friend class SoCpuBufferUniformImpl [friend] |
Reimplemented in SoCpuBufferUniform.