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 arrays that contain at least three values. This array gets filled with the current color values. The first element of each array gets filled with the red color component, the second element with the green component, and the third element with the blue component. 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");
int size = color_changed.Size;
float[][] c = new float[size][];
for (int i = 0; i < size; ++i)
    c[i] = new float[3];
color_changed.GetValue(c);
for (int i = 0; i < size; ++i)
    System.Console.WriteLine("red = " + c[i][0] + ", green = " + c[i][1] + ", blue = " + c[i][2]);