Sets one element of the MFNode event-in slot.
C# |
---|
public abstract void Set1Value (
int index,
Node value
) |
The following example demonstrates how to replace the first child of
a Group node by a Shape node:
C# |
---|
Vrml.EAI.Node group = ...;
Vrml.EAI.Field.EventInMFNode set_children = (Vrml.EAI.Field.EventInMFNode)group.GetEventIn("set_children");
string vrmlCode =
"Shape {\n" +
" appearance Appearance {\n" +
" material Material {}\n" +
" }\n" +
" geometry Box {}\n" +
"}\n";
Vrml.EAI.Node[] nodes = browser.CreateVrmlFromString(vrmlCode);
set_children.Set1Value(0, nodes[0]);
|