Reference to a MFColor event-in slot.
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract class EventInMFColor :  EventIn
Collapse/Expand Remarks
Use this class to write values into MFColor event-in slots.
Collapse/Expand Members

Click here to see the list of members.

Collapse/Expand Example
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);