Package com.openinventor.ldm.tiles
Class SoCpuBufferBasicProperty
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.devices.SoBufferObject
-
- com.openinventor.inventor.devices.SoCpuBufferObject
-
- com.openinventor.ldm.tiles.SoCpuBufferBasicProperty
-
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
SoCpuBufferAsyncBasicProperty
public class SoCpuBufferBasicProperty extends SoCpuBufferObject
LDM buffer object handling basic LDM tile information. This type of buffer represents a standard LDM tile.SoBufferPropertiesInterface
- See Also:
SoCpuBufferObject
,SoCpuBufferUniform
,SoCpuBufferCompressed
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.devices.SoBufferObject
SoBufferObject.AccessModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.devices.SoBufferObject
SO_BUFFER_SIZE_ALL
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoCpuBufferBasicProperty()
Default constructor.
-
Method Summary
All 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.long
getRealSize()
Returns the size of the buffer in bytes.void
setMinMax(double min, double max)
Set the min and max values for this buffer.-
Methods inherited from class com.openinventor.inventor.devices.SoCpuBufferObject
clearInstance, setBuffer, setSize
-
Methods inherited from class com.openinventor.inventor.devices.SoBufferObject
createInstance, dispose, 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.Inventor
getNativeResourceHandle
-
-
-
-
Method Detail
-
setMinMax
public void setMinMax(double min, double max)
Set the min and max values for this buffer.- Parameters:
min
- user variable containing min valuemax
- user variable containing max value
-
getMinMax
public 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 valuemax
- user variable to store max value
-
getRealSize
public 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
.
-
-