Reference to a MFColor event-in slot.
C# |
---|
public abstract class EventInMFColor : |
EventIn
|
|
Click here to see the list of members.
The following example demonstrates how to write three
colors (red, green and blue) into the "color" field of a Color
node:
C# |
---|
Vrml.EAI.Node color = ...;
Vrml.EAI.Field.EventInMFColor set_color = (Vrml.EAI.Field.EventInMFColor)color.GetEventIn("set_color");
float[][] c = new float[3][];
c[0] = new float[] { 1.0f, 0.0f, 0.0f }; // red color
c[1] = new float[] { 0.0f, 1.0f, 0.0f }; // green color
c[2] = new float[] { 0.0f, 0.0f, 1.0f }; // blue color
set_color.SetValue(c);
|