UInt16ConstantArrayAttribute (object)¶
Specialized GeometryAttribute containing a constant sized arrays of UInt16, packed as a single memory buffer. The UInt16ConstantArrayAttribute.setArraySize method sets a constant array size for all values. Values can be accessed with the UInt16ConstantArrayAttribute.values array member, but its usage might be restricted by the owner Geometry.
Members¶
UInt32 | version | |
String | name | |
UInt32 | containerIndex | |
StatisticsAutoRegisterMember | autoStats | |
Size | count | |
Ref<GeometryAttributes> | container | |
UInt16[] | values | Values array container |
Boolean | normalize | If true, values should be interpreted as a 0.0 to 1.0 range (eg: for OpenGL) |
Boolean | canInterpolate | If true, IntegerAttribute.linearCombine and IntegerAttribute.getLinearCombination will average the values. Else, an arbitrary source value will be used. |
Methods¶
UInt16ConstantArrayAttribute ( in UInt16ConstantArrayAttribute other ) | |
UInt16ConstantArrayAttribute () | |
Boolean | checkConsistency ? () |
UInt16ConstantArrayAttribute | clone ? () |
cloneMembersTo ? ( io UInt16ConstantArrayAttribute that ) | |
convertToCPU ! () | |
convertToGPU ! () | |
copyValue ! ( in Ref<Object> sourceAttr, in Size sourceIndex, in Size targetIndex ) | |
copyValue ! ( in Size sourceIndex, in Size targetIndex ) | |
Data | data ? () |
Boolean | equalValues ? ( in Size index1, in Size index2 ) |
UInt16 | get ? ( in Size index, in Size offset ) |
UInt32 | getElementsMemType ? () |
LocalL16UInt16Array | getLinearCombination ? ( in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights ) |
Size | getScalarValueSize ? () |
linearCombine ! ( in Ref<Object> sourceAttr, in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights, in Size targetIndex ) | |
resize ! ( in Size count ) | |
setArraySize ! ( in Size arraySize ) | |
setFromScalar ! ( in Size index, in LocalL16ScalarArray value ) | |
setValue ! ( in Size index, in LocalL16UInt16Array value ) | |
String | truncateDecimalsPrint ? ( in Size index, in UInt32 n ) |
String | unitTestPrint ? ( in Size index ) |
String | valueDesc ? ( in Size index ) |
Methods in detail¶
UInt16ConstantArrayAttribute ( in UInt16ConstantArrayAttribute other )
copy constructor
UInt16ConstantArrayAttribute ()
default constructor
Boolean UInt16ConstantArrayAttribute.checkConsistency? ()
バージョン 2.4.0 で追加.
Checks the attribute data consistency.
UInt16ConstantArrayAttribute UInt16ConstantArrayAttribute.clone? ()
clone method
UInt16ConstantArrayAttribute.cloneMembersTo? ( io UInt16ConstantArrayAttribute that )
UInt16ConstantArrayAttribute.convertToCPU! ()
UInt16ConstantArrayAttribute.convertToGPU! ()
UInt16ConstantArrayAttribute.copyValue! ( in Ref<Object> sourceAttr, in Size sourceIndex, in Size targetIndex )
Replaces the value located at targetIndex with source attribute’s value located at sourceIndex. The source attribute will be of the same type.
UInt16ConstantArrayAttribute.copyValue! ( in Size sourceIndex, in Size targetIndex )
Replaces the value located at targetIndex with the value located at sourceIndex
Data UInt16ConstantArrayAttribute.data? ()
Returns a raw pointer to contiguous attribute data, if applicable, and an uninitialized Data otherwise.
Boolean UInt16ConstantArrayAttribute.equalValues? ( in Size index1, in Size index2 )
Return true if two values are logically equal.
UInt16 UInt16ConstantArrayAttribute.get? ( in Size index, in Size offset )
UInt32 UInt16ConstantArrayAttribute.getElementsMemType? ()
LocalL16UInt16Array UInt16ConstantArrayAttribute.getLinearCombination? ( in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights )
Returns a linear combination of source values. If IntegerAttribute.canInterpolate is false, an arbitrary source value will be returned.
sourceIndices | The array of source indices |
sourceWeights | The array of source weights, which need to correspond to each sourceIndices. Normally the sum of the weights should be 1.0 |
Size UInt16ConstantArrayAttribute.getScalarValueSize? ()
If all attribute values can be expressed as a constant Scalar array, returns the constant number of elements, 0 otherwise.
UInt16ConstantArrayAttribute.linearCombine! ( in Ref<Object> sourceAttr, in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights, in Size targetIndex )
Sets the value located at targetIndex as a linear combination of other values.
source | The attribute for source values |
sourceIndices | The array of source indices, relatively to the source attribute. |
sourceWeights | The array of source weights, which need to correspond to each sourceIndices. Normally the sum of the weights should be 1.0. |
targetIndex | The target value index. |
UInt16ConstantArrayAttribute.resize! ( in Size count )
Resizes the attribute array.
UInt16ConstantArrayAttribute.setArraySize! ( in Size arraySize )
UInt16ConstantArrayAttribute.setFromScalar! ( in Size index, in LocalL16ScalarArray value )
If applicable, sets an attribute value from an array of Scalars. This array must have a size of GeometryAttribute.getScalarValueSize .
UInt16ConstantArrayAttribute.setValue! ( in Size index, in LocalL16UInt16Array value )
String UInt16ConstantArrayAttribute.truncateDecimalsPrint? ( in Size index, in UInt32 n )
Returns a description of the value, keeping the first n decimals (Float32 or Float64 based values).
String UInt16ConstantArrayAttribute.unitTestPrint? ( in Size index )
Returns a numerically stable description of the value
String UInt16ConstantArrayAttribute.valueDesc? ( in Size index )
Returns a description of the value