Returns the current value of a MFColor event-out slot.
Declaring type: EventOutMFColor
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void GetValue (
        float[] value
) 
Parameters
value
An array of float values that gets filled with the current color values. The number of elements in this array must be at least three times the number of color values. The elements at the positions [i x 3] get filled with the red color components, the elements at [i x 3 + 1] with the green components, and the elements at [i x 3 + 2] with the blue components (for 0 <= i < Size). Each component is between 0 and 1, inclusively. 0 means no intensity, and 1 means full intensity.
Collapse/Expand Example
The following example gets the color values from the "color" field of a Color node and prints them to the console:
C#
Vrml.EAI.Node color = ...;
Vrml.EAI.Field.EventOutMFColor color_changed = (Vrml.EAI.Field.EventOutMFColor)color.GetEventOut("color_changed");
float[] c = new float[color_changed.Size * 3];
color_changed.GetValue(c);
for (int i = 0; i < c.Length; i += 3)
    System.Console.WriteLine("red = " + c[i] + ", green = " + c[i + 1] + ", blue = " + c[i + 2]);