Package com.openinventor.ldm.tiles
Class SoCpuBufferBitSet
- java.lang.Object
- 
- com.openinventor.inventor.Inventor
- 
- com.openinventor.inventor.devices.SoBufferObject
- 
- com.openinventor.inventor.devices.SoCpuBufferObject
- 
- com.openinventor.ldm.tiles.SoCpuBufferBitSet
 
 
 
 
- 
- All Implemented Interfaces:
- SafeDisposable
 
 public class SoCpuBufferBitSet extends SoCpuBufferObject LDM buffer object optimized for bitset tile data. This type of buffer efficiently represents a tile containing bitset data. The buffer can be used like any other buffer, but uses less memory when its contents are not actually being accessed.SoBufferPropertiesInterface - See Also:
- SoCpuBufferObject
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.openinventor.inventor.devices.SoBufferObjectSoBufferObject.AccessModes
 - 
Nested classes/interfaces inherited from class com.openinventor.inventor.InventorInventor.ConstructorCommand
 
- 
 - 
Field Summary- 
Fields inherited from class com.openinventor.inventor.devices.SoBufferObjectSO_BUFFER_SIZE_ALL
 - 
Fields inherited from class com.openinventor.inventor.InventorVERBOSE_LEVEL, ZeroHandle
 
- 
 - 
Constructor SummaryConstructors Constructor Description SoCpuBufferBitSet()Default constructor.SoCpuBufferBitSet(SoCpuBufferObject cpuBuffer)Constructor from aSoCpuBufferObjectcontaining a bitset.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getMinMax()Get the min and max values in the buffer, if they are known.longgetRealSize()Returns the size of the buffer in bytes.voidmap(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode)Calls map(targetBufferObject, accessMode, (long)0, (long)SO_BUFFER_SIZE_ALL).voidmap(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition)Calls map(targetBufferObject, accessMode, startPosition, (long)SO_BUFFER_SIZE_ALL).voidmap(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition, long mappingSize)Map the current buffer object into the specified CPU buffer object.voidmap(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode)Calls map(targetBufferObject, accessMode, (long)0, (long)SO_BUFFER_SIZE_ALL).voidmap(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition)Calls map(targetBufferObject, accessMode, startPosition, (long)SO_BUFFER_SIZE_ALL).voidmap(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition, long mappingSize)Map the current buffer object into the specified GL buffer object.voidsetMinMax(double min, double max)Set min and max values for this buffer.voidunmap(SoCpuBufferObject bufferObject)Unmap the specified CPU buffer object
 It is defined just to speed up the call when the type of the object is known.voidunmap(SoGLBufferObject bufferObject)Unmap the specified GL buffer object
 It is defined just to speed up the call when the type of the object is known.- 
Methods inherited from class com.openinventor.inventor.devices.SoCpuBufferObjectclearInstance, setBuffer, setSize
 - 
Methods inherited from class com.openinventor.inventor.devices.SoBufferObjectcreateInstance, dispose, getBufferObjectCache, getContext, getMappedBufferObject, getMappedBufferObjectAccessMode, getMappedBufferObjectPosition, getMappedBufferObjectSize, getSize, isDisposable, lockBuffer, map, map, map, map, map, map, memcpy, memcpy, memcpy, memcpy, unlockBuffer, unmap, unmap
 - 
Methods inherited from class com.openinventor.inventor.InventorgetNativeResourceHandle
 
- 
 
- 
- 
- 
Constructor Detail- 
SoCpuBufferBitSetpublic SoCpuBufferBitSet(SoCpuBufferObject cpuBuffer) Constructor from aSoCpuBufferObjectcontaining a bitset.
 - 
SoCpuBufferBitSetpublic SoCpuBufferBitSet() Default constructor.
 
- 
 - 
Method Detail- 
mappublic void map(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition) Calls map(targetBufferObject, accessMode, startPosition, (long)SO_BUFFER_SIZE_ALL).
 - 
mappublic void map(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode) Calls map(targetBufferObject, accessMode, (long)0, (long)SO_BUFFER_SIZE_ALL).
 - 
mappublic void map(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode) Calls map(targetBufferObject, accessMode, (long)0, (long)SO_BUFFER_SIZE_ALL).
 - 
mappublic void map(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition) Calls map(targetBufferObject, accessMode, startPosition, (long)SO_BUFFER_SIZE_ALL).
 - 
getRealSizepublic long getRealSize() Returns the size of the buffer in bytes.
 For this type of buffer the real size is the same as the size of theSoBufferObject.
 - 
unmappublic void unmap(SoCpuBufferObject bufferObject) 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. 
 - 
mappublic void map(SoGLBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition, long mappingSize) Map the current buffer object into the specified GL buffer object.
 See the general map method for more information. 
 - 
mappublic void map(SoCpuBufferObject targetBufferObject, SoBufferObject.AccessModes accessMode, long startPosition, long mappingSize) Map the current buffer object into the specified CPU buffer object.
 See the general map method for more information. 
 - 
getMinMaxpublic double[] getMinMax() 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
 
 - 
setMinMaxpublic void setMinMax(double min, double max)Set min and max values for this buffer.- Parameters:
- min- user variable containing min value
- max- user variable containing max value
 
 - 
unmappublic void unmap(SoGLBufferObject bufferObject) 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.
 
 
- 
 
-