public class SoArithmetic extends Inventor
Examples:
See also:
SoAlgorithms
, SoConversion
, SoConvolution
, SoDataExtract
, SoSeismic
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoArithmetic()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
add(SoBufferObject inputBufferA,
SbDataType typeA,
SoBufferObject inputBufferB,
SbDataType typeB,
SoBufferObject outputBufferC,
SbDataType typeC)
Add two buffers into a third one.
|
int |
add(SoCpuBufferObject inputBufferA,
SbDataType typeA,
SoCpuBufferObject inputBufferB,
SbDataType typeB,
SoCpuBufferObject outputBufferC,
SbDataType typeC)
Add two buffers into a third one.
|
double[] |
computeMinMax(SoBufferObject inputBuffer,
SbDataType dataType)
Compute min max of all values contained in a buffer.
|
double[] |
computeMinMax(SoBufferObject inputBuffer,
SbDataType dataType,
SbVec3i32 arrayDim,
SbBox3i32 range)
Compute min max of values contained in the specified range of the buffer.
|
double[] |
computeMinMax(SoCpuBufferObject inputBuffer,
SbDataType dataType,
SbVec3i32 arrayDim,
SbBox3i32 range)
Compute min max of values contained in the specified range of the buffer.
|
double[] |
computeMinMaxWithUndefinedValue(SoBufferObject inputBuffer,
SbDataType dataType,
double undefinedValue)
Compute min max of all values contained in a buffer that are not equal to the specified undefined value.
|
double[] |
computeMinMaxWithUndefinedValue(SoBufferObject inputBuffer,
SbDataType dataType,
SbVec3i32 arrayDim,
SbBox3i32 range,
double undefinedValue)
Compute min max of values contained in the specified range of the buffer that are not equal to the specified undefined value.
|
double[] |
computeMinMaxWithUndefinedValue(SoCpuBufferObject inputBuffer,
SbDataType dataType,
SbVec3i32 arrayDim,
SbBox3i32 range,
double undefinedValue)
Compute min max of values contained in the specified range of the buffer that are not equal to the specified undefined value.
|
int |
madd(SoBufferObject inputBufferA,
SbDataType typeA,
SoBufferObject inputBufferB,
SbDataType typeB,
SoBufferObject outputBufferC,
SbDataType typeC,
float scaleValue)
C = A * scale + B
Note: C can be a reference to A or B Limitation: typeA and typeB must be the same as typeC. |
int |
madd(SoCpuBufferObject inputBufferA,
SbDataType typeA,
SoCpuBufferObject inputBufferB,
SbDataType typeB,
SoCpuBufferObject outputBufferC,
SbDataType typeC,
float scaleValue)
C = A * scale + B
Fast version for Cpu buffers. |
int |
mult(SoBufferObject inputBufferA,
SbDataType typeA,
SoBufferObject inputBufferB,
SbDataType typeB,
SoBufferObject outputBufferC,
SbDataType typeC)
Multiply two buffers into a third one.
|
int |
mult(SoCpuBufferObject inputBufferA,
SbDataType typeA,
SoCpuBufferObject inputBufferB,
SbDataType typeB,
SoCpuBufferObject outputBufferC,
SbDataType typeC)
Multiply two buffers into a third one.
|
int |
scale(SoBufferObject inputBufferA,
SbDataType typeA,
SoBufferObject outputBufferB,
SbDataType typeB,
float scaleValue)
B = A * scaleFactor
Note: B can be a reference to A Limitation: typeA must be the same as typeC. |
int |
scale(SoCpuBufferObject inputBufferA,
SbDataType typeA,
SoCpuBufferObject outputBufferB,
SbDataType typeB,
float scaleValue)
B = A * scaleFactor
Fast version for Cpu buffers. |
int |
shift(SoBufferObject inputBufferA,
SbDataType typeA,
SoBufferObject outputBufferB,
SbDataType typeB,
float shiftFactor)
B = A + shiftFactor
Note: B can be a reference to A Limitation: typeA must be the same as typeC. |
int |
shift(SoCpuBufferObject inputBufferA,
SbDataType typeA,
SoCpuBufferObject outputBufferB,
SbDataType typeB,
float shiftFactor)
B = A + shiftFactor
Fast version for Cpu buffers. |
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public double[] computeMinMaxWithUndefinedValue(SoBufferObject inputBuffer, SbDataType dataType, SbVec3i32 arrayDim, SbBox3i32 range, double undefinedValue)
inputBuffer
- The source buffer object.
dataType
- The type of the data in the source buffer object.
arrayDim
- Dimensions of the array (can be degenerate, e.g. N,1,1)
range
- Subset of the array to consider
undefinedValue
- ignored value
minmax
- Result valuespublic int add(SoBufferObject inputBufferA, SbDataType typeA, SoBufferObject inputBufferB, SbDataType typeB, SoBufferObject outputBufferC, SbDataType typeC)
public double[] computeMinMaxWithUndefinedValue(SoBufferObject inputBuffer, SbDataType dataType, double undefinedValue)
inputBuffer
- The source buffer object.
dataType
- The type of the data in the source buffer object.
undefinedValue
- ignored value
minmax
- Result valuespublic int shift(SoCpuBufferObject inputBufferA, SbDataType typeA, SoCpuBufferObject outputBufferB, SbDataType typeB, float shiftFactor)
public double[] computeMinMaxWithUndefinedValue(SoCpuBufferObject inputBuffer, SbDataType dataType, SbVec3i32 arrayDim, SbBox3i32 range, double undefinedValue)
public int add(SoCpuBufferObject inputBufferA, SbDataType typeA, SoCpuBufferObject inputBufferB, SbDataType typeB, SoCpuBufferObject outputBufferC, SbDataType typeC)
public int madd(SoCpuBufferObject inputBufferA, SbDataType typeA, SoCpuBufferObject inputBufferB, SbDataType typeB, SoCpuBufferObject outputBufferC, SbDataType typeC, float scaleValue)
public int scale(SoBufferObject inputBufferA, SbDataType typeA, SoBufferObject outputBufferB, SbDataType typeB, float scaleValue)
public int scale(SoCpuBufferObject inputBufferA, SbDataType typeA, SoCpuBufferObject outputBufferB, SbDataType typeB, float scaleValue)
public int shift(SoBufferObject inputBufferA, SbDataType typeA, SoBufferObject outputBufferB, SbDataType typeB, float shiftFactor)
public int madd(SoBufferObject inputBufferA, SbDataType typeA, SoBufferObject inputBufferB, SbDataType typeB, SoBufferObject outputBufferC, SbDataType typeC, float scaleValue)
public int mult(SoBufferObject inputBufferA, SbDataType typeA, SoBufferObject inputBufferB, SbDataType typeB, SoBufferObject outputBufferC, SbDataType typeC)
public double[] computeMinMax(SoCpuBufferObject inputBuffer, SbDataType dataType, SbVec3i32 arrayDim, SbBox3i32 range)
public double[] computeMinMax(SoBufferObject inputBuffer, SbDataType dataType, SbVec3i32 arrayDim, SbBox3i32 range)
inputBuffer
- The source buffer object.
dataType
- The type of the data in the source buffer object.
arrayDim
- Dimensions of the array (can be degenerate, e.g. N,1,1)
range
- Subset of the array to consider
minmax
- Result valuespublic double[] computeMinMax(SoBufferObject inputBuffer, SbDataType dataType)
inputBuffer
- The source buffer object.
dataType
- The type of the data in the source buffer object.
minmax
- Result valuespublic int mult(SoCpuBufferObject inputBufferA, SbDataType typeA, SoCpuBufferObject inputBufferB, SbDataType typeB, SoCpuBufferObject outputBufferC, SbDataType typeC)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com