vrMaterialEntry¶
-
class
vrMaterialEntry
¶
Holds information about an entry in the virtual material tree.
Summary¶
- Functions:
- getChildIndex() → integer
- getGroupNode() → vrdNode
- getMainMaterial() → vrdMaterial
- getMaterial() → vrdMaterial
- getMaterialNode() → vrdMaterialNode
- getNode() → vrdNode
- getParentMaterial() → vrdMultiMaterial
- getSubMaterial() → vrdMaterial
- getType() → vrMaterialEntryType
- vrMaterialEntry()
- vrMaterialEntry(groupNode)
- vrMaterialEntry(materialNode)
- vrMaterialEntry(parentMaterial, childIndex)
Functions¶
-
vrMaterialEntry.
getChildIndex
()¶ Gets the index of the submaterial within its parent.
Returns: The child index. Return type: integer
-
vrMaterialEntry.
getMainMaterial
()¶ Gets the main material.
Returns: The material. Return type: vrdMaterial
-
vrMaterialEntry.
getMaterial
()¶ Gets the main or submaterial.
Returns: The material. Return type: vrdMaterial
-
vrMaterialEntry.
getMaterialNode
()¶ Gets the material node.
Returns: The node. Return type: vrdMaterialNode
-
vrMaterialEntry.
getParentMaterial
()¶ Gets the parent material.
Returns: The parent multimaterial. Return type: vrdMultiMaterial
-
vrMaterialEntry.
getSubMaterial
()¶ Gets the submaterial.
Returns: The material. Return type: vrdMaterial
-
vrMaterialEntry.
getType
()¶ Gets the type of the entry.
Returns: The entry type. Return type: vrMaterialEntryType
-
vrMaterialEntry.
vrMaterialEntry
()¶ Creates an invalid entry.
-
vrMaterialEntry.
vrMaterialEntry
(groupNode)¶ Creates a material group entry.
Parameters: groupNode (vrdNode) – The node of the group.
-
vrMaterialEntry.
vrMaterialEntry
(materialNode)¶ Creates a main material entry.
Parameters: materialNode (vrdMaterialNode) – The node of the material.
-
vrMaterialEntry.
vrMaterialEntry
(parentMaterial, childIndex)¶ Creates a submaterial entry.
Parameters: - parentMaterial (vrdMultiMaterial) – The parent material.
- childIndex (integer) – The child index of the submaterial within its parent.