00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <archon/x3d/server/field_type.H>
00021
00022 namespace Archon
00023 {
00024 using namespace Utilities;
00025
00026 namespace X3D
00027 {
00028 const FieldType *SFBool::type = 0;
00029 const FieldType *MFBool::type = 0;
00030
00031 const FieldType *SFColor::type = 0;
00032 const FieldType *MFColor::type = 0;
00033
00034 const FieldType *SFColorRGBA::type = 0;
00035 const FieldType *MFColorRGBA::type = 0;
00036
00037 const FieldType *SFDouble::type = 0;
00038 const FieldType *MFDouble::type = 0;
00039
00040 const FieldType *SFFloat::type = 0;
00041 const FieldType *MFFloat::type = 0;
00042
00043 const FieldType *SFImage::type = 0;
00044 const FieldType *MFImage::type = 0;
00045
00046 const FieldType *SFInt32::type = 0;
00047 const FieldType *MFInt32::type = 0;
00048
00049 const FieldType *SFNode::type = 0;
00050 const FieldType *MFNode::type = 0;
00051
00052 const FieldType *SFRotation::type = 0;
00053 const FieldType *MFRotation::type = 0;
00054
00055 const FieldType *SFString::type = 0;
00056 const FieldType *MFString::type = 0;
00057
00058 const FieldType *SFTime::type = 0;
00059 const FieldType *MFTime::type = 0;
00060
00061 const FieldType *SFVec2d::type = 0;
00062 const FieldType *MFVec2d::type = 0;
00063
00064 const FieldType *SFVec2f::type = 0;
00065 const FieldType *MFVec2f::type = 0;
00066
00067 const FieldType *SFVec3d::type = 0;
00068 const FieldType *MFVec3d::type = 0;
00069
00070 const FieldType *SFVec3f::type = 0;
00071 const FieldType *MFVec3f::type = 0;
00072
00073
00074 void initializeFieldTypes()
00075 {
00076 SFBool::type = new FieldType(SFBool::index, "SFBool");
00077 MFBool::type = new FieldType(MFBool::index, "MFBool", SFBool::type);
00078
00079 SFColor::type = new FieldType(SFColor::index, "SFColor");
00080 MFColor::type = new FieldType(MFColor::index, "MFColor", SFColor::type);
00081
00082 SFColorRGBA::type = new FieldType(SFColorRGBA::index, "SFColorRGBA");
00083 MFColorRGBA::type = new FieldType(MFColorRGBA::index, "MFColorRGBA", SFColorRGBA::type);
00084
00085 SFDouble::type = new FieldType(SFDouble::index, "SFDouble");
00086 MFDouble::type = new FieldType(MFDouble::index, "MFDouble", SFDouble::type);
00087
00088 SFFloat::type = new FieldType(SFFloat::index, "SFFloat");
00089 MFFloat::type = new FieldType(MFFloat::index, "MFFloat", SFFloat::type);
00090
00091 SFImage::type = new FieldType(SFImage::index, "SFImage");
00092 MFImage::type = new FieldType(MFImage::index, "MFImage", SFImage::type);
00093
00094 SFInt32::type = new FieldType(SFInt32::index, "SFInt32");
00095 MFInt32::type = new FieldType(MFInt32::index, "MFInt32", SFInt32::type);
00096
00097 SFNode::type = new FieldType(SFNode::index, "SFNode");
00098 MFNode::type = new FieldType(MFNode::index, "MFNode", SFNode::type);
00099
00100 SFRotation::type = new FieldType(SFRotation::index, "SFRotation");
00101 MFRotation::type = new FieldType(MFRotation::index, "MFRotation", SFRotation::type);
00102
00103 SFString::type = new FieldType(SFString::index, "SFString");
00104 MFString::type = new FieldType(MFString::index, "MFString", SFString::type);
00105
00106 SFTime::type = new FieldType(SFTime::index, "SFTime");
00107 MFTime::type = new FieldType(MFTime::index, "MFTime", SFTime::type);
00108
00109 SFVec2d::type = new FieldType(SFVec2d::index, "SFVec2d");
00110 MFVec2d::type = new FieldType(MFVec2d::index, "MFVec2d", SFVec2d::type);
00111
00112 SFVec2f::type = new FieldType(SFVec2f::index, "SFVec2f");
00113 MFVec2f::type = new FieldType(MFVec2f::index, "MFVec2f", SFVec2f::type);
00114
00115 SFVec3d::type = new FieldType(SFVec3d::index, "SFVec3d");
00116 MFVec3d::type = new FieldType(MFVec3d::index, "MFVec3d", SFVec3d::type);
00117
00118 SFVec3f::type = new FieldType(SFVec3f::index, "SFVec3f");
00119 MFVec3f::type = new FieldType(MFVec3f::index, "MFVec3f", SFVec3f::type);
00120 }
00121 }
00122 }