LDM interface to optimize memory management of tiles . More...
#include <LDM/tiles/SoBufferPropertiesInterface.h>
Public Member Functions | |
SoBufferPropertiesInterface () | |
Default constructor. | |
virtual | ~SoBufferPropertiesInterface () |
Destructor. | |
virtual bool | getMinMax (double &min, double &max)=0 |
Get the min and max values in the buffer, if they are known. | |
virtual size_t | getRealSize () const =0 |
Returns the real size of the buffer in bytes. | |
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
Definition at line 48 of file SoBufferPropertiesInterface.h.
SoBufferPropertiesInterface::SoBufferPropertiesInterface | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
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.
|
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 |
Definition at line 122 of file SoBufferPropertiesInterface.h.
|
friend |
Definition at line 120 of file SoBufferPropertiesInterface.h.
|
friend |
Definition at line 123 of file SoBufferPropertiesInterface.h.
|
friend |
Definition at line 121 of file SoBufferPropertiesInterface.h.