31class SoCpuBufferBitSetImpl;
49 SO_TYPED_CLASS_HEADER();
176 virtual void setMinMax(
const double& min,
const double& max);
197 void memcpyInternal(
SoBufferObject* sourceBufferObject,
size_t dataSize,
size_t destOffset = 0,
size_t sourceOffset = 0,
size_t copySize =
SO_BUFFER_SIZE_ALL );
204 void unmapRawBitSet();
207 static inline unsigned char getBit(
unsigned char* dataPtr,
const int pos)
208 {
return (((dataPtr[pos>>0x3]) >> (7- (pos & 0x7))) & 1); }
211 virtual void setCacheSignature(
const uint64_t& cacheSignature);
214 static inline void setBit(
unsigned char* dataPtr,
const size_t pos,
bool v)
216 unsigned char& val = dataPtr[pos/8];
217 const unsigned char mask = 0x80 >> pos%8;
218 const unsigned char bitChar = (
unsigned char)v << (7 - pos%8);
219 val = (val & ~mask) | bitChar;
#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...
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 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 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.
SoCpuBufferBitSet(SoCpuBufferObject *cpuBuffer)
Constructor from a SoCpuBufferObject containing a bitset.
virtual SoBufferObject * createInstance() const
Create a new buffer with the same properties as the current one.
virtual bool getMinMax(double &min, double &max)
Get the min and max values in the buffer, if they are known.
friend class SoCpuBufferBitSetImpl
virtual void memset(void *value, size_t valueSize=1, size_t offset=0, size_t count=SO_BUFFER_SIZE_ALL)
This function sets the contents of (or a portion of) this buffer object to the specified value.
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 size_t getRealSize() const
Returns the size of the buffer in bytes.
virtual void setMinMax(const double &min, const double &max)
Set min and max values for this buffer.
virtual void memcpy(SoBufferObject *sourceBufferObject, size_t destOffset=0, size_t sourceOffset=0, size_t copySize=SO_BUFFER_SIZE_ALL)
Copies data from the specified buffer object into this buffer object.
SoCpuBufferBitSet()
Default constructor.
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 unmap()
Unmap a mapped buffer.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> CPU buffer objec...
<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...