vrMaterialEntry

class vrMaterialEntry

Holds information about an entry in the virtual material tree.

Functions

vrMaterialEntry.getChildIndex()

Gets the index of the submaterial within its parent.

Returns:The child index.
Return type:integer
vrMaterialEntry.getGroupNode()

Gets the group node.

Returns:The node.
Return type:vrdNode
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.getNode()

Gets the group or material node.

Returns:The node.
Return type:vrdNode
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.