public class SoCpuBufferUniform extends SoCpuBufferObject
See also:
SoBufferPropertiesInterface, SoCpuBufferObject
SoBufferObject.AccessModes
Inventor.ConstructorCommand
READ_ONLY, READ_WRITE, SET, SO_BUFFER_SIZE_ALL
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoCpuBufferUniform()
Default constructor.
|
SoCpuBufferUniform(double value,
SbDataType valueType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getMinMax()
Get the min and max values in the buffer, if they are known.
|
long |
getRealSize()
Returns the real size of the buffer in bytes.
|
SbDataType |
getType()
Get the type of the value of the uniform tile.
|
double |
getValue()
Get the value of the uniform tile.
|
void |
setRealSize(long realSize)
Set the real size of the buffer object in bytes.
|
void |
setValue(double value,
SbDataType dataType)
Set the value and data type for this uniform buffer.
|
clearInstance, map, map, map, map, memcpy, memcpy, memcpy, memcpy, setBuffer, setSize, unmap, unmap
createInstance, dispose, getBufferObjectCache, getContext, getMappedBufferObject, getMappingAccessMode, getMappingSize, getMappingStartPosition, getSize, isDisposable, lockBuffer, map, map, map, map, map, map, memcpy, memcpy, memcpy, memcpy, memcpy, memcpy, memcpy, memcpy, setMappedBufferObject, setMappingAccessMode, setMappingZoneInformation, unlockBuffer, unmap, unmap
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoCpuBufferUniform(double value, SbDataType valueType)
value
- Initial value of uniform buffer.
valueType
- Initial value type of uniform buffer.public SoCpuBufferUniform()
public void setValue(double value, SbDataType dataType)
public double getValue()
public void setRealSize(long realSize)
public SbDataType getType()
public long getRealSize()
public double[] getMinMax()
min
- user variable to store min value
max
- user variable to store max valueGenerated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com