Click or drag to resize
SoDirectionalLightManipReplaceNode Method

Replaces the tail of the path with this manipulator.

Namespace: OIV.Inventor.Manips
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public bool ReplaceNode(
	SoPath p
)

Parameters

p
Type: OIV.InventorSoPath

Return Value

Type: Boolean
Remarks

The tail of the path must be an OIV.Inventor.Nodes.SoDirectionalLight node (or subclass thereof). If the path has a nodekit, this will try to use setPart() to insert the manipulator. Otherwise, the manipulator requires that the next to last node in the path chain be a group.

The field values from the directional light node will be copied to this manipulator, and the light node will be replaced.

The old node will disappear if it has no references other than from the input path p and its parent, since this manipulator will be replacing it in both of those places. Nor will the manipulator make any changes to field connections of the old node. The calling process is thus responsible for keeping track of its own nodes and field connections.

See Also