FreeWRL / FreeX3D 4.3.0
VField.java
1// copyright (c) 1997,1998 stephen f. white
2//
3// This program is free software; you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation; either version 2, or (at your option)
6// any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program; see the file COPYING. If not, write to
15// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
16package vrml.external.FreeWRLEAI;
17
18import java.io.*;
19
20// WARNING: this is *not* an implementation of the field classes for general
21// VRML use. it's just a bunch of wrappers around the objects for marshalling
22// and unmarshalling them from network streams.
23
24public abstract class VField
25{
26 public static final byte NOTHING = -1;
27
28 public static final byte SFBOOL = 0;
29 public static final byte SFCOLOR = 1;
30 public static final byte SFFLOAT = 2;
31 public static final byte SFIMAGE = 3;
32 public static final byte SFINT32 = 4;
33 public static final byte SFNODE = 5;
34 public static final byte SFROTATION = 6;
35 public static final byte SFSTRING = 7;
36 public static final byte SFTIME = 8;
37 public static final byte SFVEC2F = 9;
38 public static final byte SFVEC3F = 10;
39
40 public static final byte MFCOLOR = 11;
41 public static final byte MFFLOAT = 12;
42 public static final byte MFINT32 = 13;
43 public static final byte MFNODE = 14;
44 public static final byte MFROTATION = 15;
45 public static final byte MFSTRING = 16;
46 public static final byte MFVEC2F = 17;
47 public static final byte MFVEC3F = 18;
48
49 public byte getType() { return NOTHING; }
50
51 public abstract void write(DataOutputStream out) throws IOException;
52}