Returns the current value of a MFTime event-out slot.
C# |
---|
public abstract double[] GetValue () |
The following example gets the values of an "timestamps_changed"
event-out slot of a Script node and prints them to the console:
C# |
---|
Vrml.EAI.Node script = ...;
Vrml.EAI.Field.EventOutMFTime timestamps_changed = (Vrml.EAI.Field.EventOutMFTime)script.GetEventOut("timestamps_changed");
System.DateTime baseTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
double[] t = timestamps_changed.GetValue();
for (int i = 0; i < t.Length; ++i)
System.Console.WriteLine(baseTime.AddSeconds(t[i]).ToLocalTime());
|