FreeWRL / FreeX3D 4.3.0
ConstSFTime.java
1//AUTOMATICALLY GENERATED BY genfields.pl.
2//DO NOT EDIT!!!!
3
4package vrml.field;
5import vrml.*;
6import java.io.BufferedReader;
7import java.io.PrintWriter;
8import java.io.IOException;
9
10public class ConstSFTime extends ConstField {
11 double value;
12
13 public ConstSFTime() { }
14
15 public ConstSFTime(double value) {
16 this.value = value;
17 }
18
19 public double getValue() {
20 __updateRead();
21 return value;
22 }
23
24 public String toString() {
25 __updateRead();
26 return String.valueOf(value);
27 }
28
29 public void __fromPerl(BufferedReader in) throws IOException {
30
31 //System.out.println ("fromPerl, Time");
32 value = Double.parseDouble(in.readLine());
33 }
34
35 public void __toPerl(PrintWriter out) throws IOException {
36 out.print(value);
37 //out.println();
38 }
39 //public void setOffset(String offs) { this.offset = offs; } //JAS2
40 //public String getOffset() { return this.offset; } //JAS2
41}