public class SoConversion extends Inventor
Examples:
See also:
SoAlgorithms
, SoArithmetic
, SoConvolution
, SoDataExtract
, SoSeismic
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoConversion()
SoConversion constructor. |
Modifier and Type | Method and Description |
---|---|
int |
convert(SoBufferObject sourceBufferObject,
SbDataType src_type,
SoBufferObject targetBufferObject,
SbDataType dst_type,
long size)
Convert the data in a buffer object from one data type to another one.
|
int |
convert(SoCpuBufferObject sourceBufferObject,
SbDataType src_type,
SoCpuBufferObject targetBufferObject,
SbDataType dst_type,
long size)
Convert the data in a buffer object from one data type to another one.
|
int |
convertFloatToRGBA(SoBufferObject sourceBufferObject,
SoBufferObject targetBufferObject,
long size,
float dataMin,
float dataMax)
Convert FLOAT data stored in a buffer to (grayscale) RGBA data.
|
int |
convertFloatToRGBA(SoCpuBufferObject sourceBufferObject,
SoCpuBufferObject targetBufferObject,
long size,
float dataMin,
float dataMax)
Convert FLOAT data stored in a buffer to RGBA data.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoConversion()
SoConversion
constructor.public int convertFloatToRGBA(SoCpuBufferObject sourceBufferObject, SoCpuBufferObject targetBufferObject, long size, float dataMin, float dataMax)
public int convertFloatToRGBA(SoBufferObject sourceBufferObject, SoBufferObject targetBufferObject, long size, float dataMin, float dataMax)
sourceBufferObject
- The source buffer object containing the FLOAT data.
targetBufferObject
- The target buffer object.
size
- The number of FLOAT values to convert.
dataMin
- The minimum value for the greyscale conversion.
dataMax
- The maximum value for the greyscale conversion.
public int convert(SoCpuBufferObject sourceBufferObject, SbDataType src_type, SoCpuBufferObject targetBufferObject, SbDataType dst_type, long size)
public int convert(SoBufferObject sourceBufferObject, SbDataType src_type, SoBufferObject targetBufferObject, SbDataType dst_type, long size)
Notes: The destination buffer and the source buffers can be same.
Limitations: This function only supports FLOAT and UNSIGNED_BYTE for dst_type.
sourceBufferObject
- The source buffer object.
src_type
- The type of the data in the source buffer object.
targetBufferObject
- The destination buffer object.
dst_type
- The destination type.
size
- The number of elements in the source buffer object to convert.
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com