vgl.sourceData (class)¶
- class vgl.sourceData()¶
Create a new instance of class sourceData
Returns: rtype: vgl.sourceData - vgl.sourceData.data()¶
Return raw data for this source
Returns: Return type: Array
- vgl.sourceData.addAttribute(key, dataType, sizeOfDataType, offset, stride, noOfComponents, normalized)¶
Arguments: - key –
- dataType –
- sizeOfDataType –
- offset –
- stride –
- noOfComponents –
- normalized –
Add new attribute data to the source
- vgl.sourceData.sizeOfArray()¶
Return size of the source data
- vgl.sourceData.lengthOfArray()¶
Return length of array
- vgl.sourceData.sizeInBytes()¶
Return size of the source data in bytes
- vgl.sourceData.hasKey(key)¶
Arguments: - key –
Check if there is attribute exists of a given key type
- vgl.sourceData.keys()¶
Return keys of all attributes
- vgl.sourceData.numberOfAttributes()¶
Return number of attributes of source data
- vgl.sourceData.attributeNumberOfComponents(key)¶
Arguments: - key –
Return number of components of the attribute data
- vgl.sourceData.normalized(key)¶
Arguments: - key –
Return if the attribute data is normalized
- vgl.sourceData.sizeOfAttributeDataType(key)¶
Arguments: - key –
Return size of the attribute data type
- vgl.sourceData.attributeDataType(key)¶
Arguments: - key –
Return attribute data type
- vgl.sourceData.attributeOffset(key)¶
Arguments: - key –
Return attribute offset
- vgl.sourceData.attributeStride(key)¶
Arguments: - key –
Return attribute stride
- vgl.sourceData.pushBack(vertexData)¶
Arguments: - vertexData –
Virtual function to insert new vertex data at the end
- vgl.sourceData.insert(data)¶
Arguments: - data –
Insert new data block to the raw data