Returns the current value of a MFTime event-out slot.
Declaring type: EventOutMFTime
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract double[] GetValue ()
Return Value
The current time values. This is an array of double values containing the number of seconds since January the 1st, 1970, 00:00:00 GMT.
Collapse/Expand Example
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());