BaseAttribute (object)¶
The BaseAttribute object provides base member and methods for simplifying the implementation of the specialized attribute types.
Members¶
UInt32 | version | |
String | name | |
UInt32 | containerIndex | |
StatisticsAutoRegisterMember | autoStats | |
Size | count | |
Ref<GeometryAttributes> | container |
Methods¶
BaseAttribute ( in BaseAttribute other ) | |
BaseAttribute () | |
Boolean | checkConsistency ? () |
BaseAttribute | clone ? () |
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 ) |
String | getDesc ? ( in Boolean includeValues ) |
String | getDesc ? () |
UInt32 | getElementsMemType ? () |
String | getName ? () |
Size | getScalarValueSize ? () |
linearCombine ! ( in Ref<Object> sourceAttr, in LocalL16UInt32Array sourceIndices, in LocalL16ScalarArray sourceWeights, in Size targetIndex ) | |
resize ! ( in Size count ) | |
setContainerIndex ! ( in Size index, in Ref<GeometryAttributes> container ) | |
setFromScalar ! ( in Size index, in LocalL16ScalarArray value ) | |
Size | size ? () |
String | truncateDecimalsPrint ? ( in Size index, in UInt32 n ) |
String | unitTestPrint ? ( in Size index ) |
String | valueDesc ? ( in Size index ) |
Methods in detail¶
BaseAttribute ( in BaseAttribute other )
copy constructor
Boolean BaseAttribute.checkConsistency? ()
バージョン 2.4.0 で追加.
Checks the attribute data consistency.
BaseAttribute BaseAttribute.clone? ()
clone method
BaseAttribute.convertToCPU! ()
BaseAttribute.convertToGPU! ()
BaseAttribute.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.
BaseAttribute.copyValue! ( in Size sourceIndex, in Size targetIndex )
Replaces the value located at targetIndex with the value located at sourceIndex
Data BaseAttribute.data? ()
Returns a raw pointer to contiguous attribute data, if applicable, and an uninitialized Data otherwise.
Boolean BaseAttribute.equalValues? ( in Size index1, in Size index2 )
Return true if two values are logically equal.
String BaseAttribute.getDesc? ( in Boolean includeValues )
String BaseAttribute.getDesc? ()
Returns a description of the attribute, including all values.
UInt32 BaseAttribute.getElementsMemType? ()
String BaseAttribute.getName? ()
Returns the name of the attribute.
Size BaseAttribute.getScalarValueSize? ()
If all attribute values can be expressed as a constant Scalar array, returns the constant number of elements, 0 otherwise.
BaseAttribute.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. |
BaseAttribute.resize! ( in Size count )
Resizes the attribute array.
BaseAttribute.setContainerIndex! ( in Size index, in Ref<GeometryAttributes> container )
BaseAttribute.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 .
Size BaseAttribute.size? ()
Returns the size of the attribute array.
String BaseAttribute.truncateDecimalsPrint? ( in Size index, in UInt32 n )
Returns a description of the value, keeping the first n decimals (Float32 or Float64 based values).
String BaseAttribute.unitTestPrint? ( in Size index )
Returns a numerically stable description of the value
String BaseAttribute.valueDesc? ( in Size index )
Returns a description of the value