Returns the current value of a MFNode event-out slot.
C# |
---|
public abstract void GetValue (
Node[] value
) |
The following example gets the nodes from the "children" field of a
Group node and prints their types to the console:
C# |
---|
Vrml.EAI.Node group = ...;
Vrml.EAI.Field.EventOutMFNode children_changed = (Vrml.EAI.Field.EventOutMFNode)group.GetEventOut("children_changed");
int size = children_changed.Size;
Vrml.EAI.Node[] nodes = new Vrml.EAI.Node[size];
children_changed.GetValue(nodes);
for (int i = 0; i < nodes.Length; ++i)
if (nodes[i] == null)
System.Console.WriteLine("null");
else
System.Console.WriteLine(nodes[i].Type);
|