00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef __X3D_OBJECTS_H__
00030 #define __X3D_OBJECTS_H__
00031 #include "x3d/node.h"
00032
00033 namespace x3d {
00034
00035 namespace NAME {
00036 enum name_t {
00037 ENUM_CORE,
00038 ENUM_DIS,
00039 ENUM_ENVIRONMENTALEFFECTS,
00040 ENUM_ENVIRONMENTALSENSOR,
00041 ENUM_EVENTUTILITIES,
00042 ENUM_GEOMETRY2D,
00043 ENUM_GEOMETRY3D,
00044 ENUM_GEOSPATIAL,
00045 ENUM_GROUPING,
00046 ENUM_H_ANIM,
00047 ENUM_INTERPOLATION,
00048 ENUM_KEYDEVICESENSOR,
00049 ENUM_LIGHTING,
00050 ENUM_NAVIGATION,
00051 ENUM_NETWORKING,
00052 ENUM_NURBS,
00053 ENUM_POINTINGDEVICESENSOR,
00054 ENUM_RENDERING,
00055 ENUM_SCRIPTING,
00056 ENUM_SHAPE,
00057 ENUM_SOUND,
00058 ENUM_TEXT,
00059 ENUM_TEXTURING,
00060 ENUM_TIME,
00061 ENUM_maximum
00062 };
00063 extern bool StringToValue(SFInt32& value, const char *& str);
00064 extern bool ValueToString(SFInt32 value, SFString& str);
00065 };
00066
00067 namespace DIR {
00068 enum dir_t {
00069 ENUM_LTR,
00070 ENUM_RTL,
00071 ENUM_maximum
00072 };
00073 extern bool StringToValue(SFInt32& value, const char *& str);
00074 extern bool ValueToString(SFInt32 value, SFString& str);
00075 };
00076
00077 namespace ACCESSTYPE {
00078 enum accesstype_t {
00079 ENUM_INITIALIZEONLY,
00080 ENUM_INPUTONLY,
00081 ENUM_INPUTOUTPUT,
00082 ENUM_OUTPUTONLY,
00083 ENUM_maximum
00084 };
00085 extern bool StringToValue(SFInt32& value, const char *& str);
00086 extern bool ValueToString(SFInt32 value, SFString& str);
00087 };
00088
00089 namespace TYPE {
00090 enum type_t {
00091 ENUM_MFBOOL,
00092 ENUM_MFCOLOR,
00093 ENUM_MFCOLORRGBA,
00094 ENUM_MFDOUBLE,
00095 ENUM_MFFLOAT,
00096 ENUM_MFIMAGE,
00097 ENUM_MFINT32,
00098 ENUM_MFNODE,
00099 ENUM_MFROTATION,
00100 ENUM_MFSTRING,
00101 ENUM_MFTIME,
00102 ENUM_MFVEC2D,
00103 ENUM_MFVEC2F,
00104 ENUM_MFVEC3D,
00105 ENUM_MFVEC3F,
00106 ENUM_SFBOOL,
00107 ENUM_SFCOLOR,
00108 ENUM_SFCOLORRGBA,
00109 ENUM_SFDOUBLE,
00110 ENUM_SFFLOAT,
00111 ENUM_SFIMAGE,
00112 ENUM_SFINT32,
00113 ENUM_SFNODE,
00114 ENUM_SFROTATION,
00115 ENUM_SFSTRING,
00116 ENUM_SFTIME,
00117 ENUM_SFVEC2D,
00118 ENUM_SFVEC2F,
00119 ENUM_SFVEC3D,
00120 ENUM_SFVEC3F,
00121 ENUM_maximum
00122 };
00123 extern bool StringToValue(SFInt32& value, const char *& str);
00124 extern bool ValueToString(SFInt32 value, SFString& str);
00125 };
00126
00127 namespace NETWORKMODE {
00128 enum networkmode_t {
00129 ENUM_STANDALONE,
00130 ENUM_NETWORKREADER,
00131 ENUM_NETWORKWRITER,
00132 ENUM_maximum
00133 };
00134 extern bool StringToValue(SFInt32& value, const char *& str);
00135 extern bool ValueToString(SFInt32 value, SFString& str);
00136 };
00137
00138 namespace FOGTYPE {
00139 enum fogtype_t {
00140 ENUM_LINEAR,
00141 ENUM_EXPONENTIAL,
00142 ENUM_maximum
00143 };
00144 extern bool StringToValue(SFInt32& value, const char *& str);
00145 extern bool ValueToString(SFInt32 value, SFString& str);
00146 };
00147
00148 namespace CLOSURETYPE {
00149 enum closuretype_t {
00150 ENUM_PIE,
00151 ENUM_CHORD,
00152 ENUM_maximum
00153 };
00154 extern bool StringToValue(SFInt32& value, const char *& str);
00155 extern bool ValueToString(SFInt32 value, SFString& str);
00156 };
00157
00158 namespace TRANSITIONTYPE {
00159 static const int FLAG_TELEPORT = 0x00000001;
00160 static const int FLAG_LINEAR = 0x00000002;
00161 static const int FLAG_ANIMATE = 0x00000004;
00162 extern bool MFStringToMValue(SFInt32& value, const MFString& str);
00163 extern bool MValueToMFString(SFInt32 value, MFString& str);
00164 };
00165
00166 namespace JUSTIFY {
00167 static const int FLAG_BEGIN = 0x00000001;
00168 static const int FLAG_END = 0x00000002;
00169 static const int FLAG_FIRST = 0x00000004;
00170 static const int FLAG_MIDDLE = 0x00000008;
00171 static const int FLAG_DEFAULT = 0x00000010;
00172 extern bool MFStringToMValue(SFInt32& value, const MFString& str);
00173 extern bool MValueToMFString(SFInt32 value, MFString& str);
00174 };
00175
00176 namespace STYLE {
00177 enum style_t {
00178 ENUM_PLAIN,
00179 ENUM_BOLD,
00180 ENUM_ITALIC,
00181 ENUM_BOLDITALIC,
00182 ENUM_DEFAULT,
00183 ENUM_maximum
00184 };
00185 extern bool StringToValue(SFInt32& value, const char *& str);
00186 extern bool ValueToString(SFInt32 value, SFString& str);
00187 };
00188
00189 namespace MODE {
00190 enum mode_t {
00191 ENUM_SPHERE,
00192 ENUM_CAMERASPACENORMAL,
00193 ENUM_CAMERASPACEPOSITION,
00194 ENUM_CAMERASPACEREFLECTIONVECTOR,
00195 ENUM_SPHERE_LOCAL,
00196 ENUM_COORD,
00197 ENUM_COORD_EYE,
00198 ENUM_NOISE,
00199 ENUM_NOISE_EYE,
00200 ENUM_SPHERE_REFLECT,
00201 ENUM_SPHERE_REFLECT_LOCAL,
00202 ENUM_maximum
00203 };
00204 extern bool StringToValue(SFInt32& value, const char *& str);
00205 extern bool ValueToString(SFInt32 value, SFString& str);
00206 };
00207
00208 const static field_t FLD_TYPE_ANCHOR = 256;
00209 const static field_t FLD_TYPE_APPEARANCE = 257;
00210 const static field_t FLD_TYPE_ARC2D = 258;
00211 const static field_t FLD_TYPE_ARCCLOSE2D = 259;
00212 const static field_t FLD_TYPE_AUDIOCLIP = 260;
00213 const static field_t FLD_TYPE_BACKGROUND = 261;
00214 const static field_t FLD_TYPE_BILLBOARD = 262;
00215 const static field_t FLD_TYPE_BOOLEANFILTER = 263;
00216 const static field_t FLD_TYPE_BOOLEANSEQUENCER = 264;
00217 const static field_t FLD_TYPE_BOOLEANTOGGLE = 265;
00218 const static field_t FLD_TYPE_BOOLEANTRIGGER = 266;
00219 const static field_t FLD_TYPE_BOX = 267;
00220 const static field_t FLD_TYPE_CIRCLE2D = 268;
00221 const static field_t FLD_TYPE_COLLISION = 269;
00222 const static field_t FLD_TYPE_COLOR = 270;
00223 const static field_t FLD_TYPE_COLORINTERPOLATOR = 271;
00224 const static field_t FLD_TYPE_COLORRGBA = 272;
00225 const static field_t FLD_TYPE_COMPONENT = 273;
00226 const static field_t FLD_TYPE_CONE = 274;
00227 const static field_t FLD_TYPE_CONNECT = 275;
00228 const static field_t FLD_TYPE_CONTOUR2D = 276;
00229 const static field_t FLD_TYPE_CONTOURPOLYLINE2D = 277;
00230 const static field_t FLD_TYPE_COORDINATE = 278;
00231 const static field_t FLD_TYPE_COORDINATEDOUBLE = 279;
00232 const static field_t FLD_TYPE_COORDINATEINTERPOLATOR = 280;
00233 const static field_t FLD_TYPE_COORDINATEINTERPOLATOR2D = 281;
00234 const static field_t FLD_TYPE_CYLINDER = 282;
00235 const static field_t FLD_TYPE_CYLINDERSENSOR = 283;
00236 const static field_t FLD_TYPE_DIRECTIONALLIGHT = 284;
00237 const static field_t FLD_TYPE_DISK2D = 285;
00238 const static field_t FLD_TYPE_ELEVATIONGRID = 286;
00239 const static field_t FLD_TYPE_ESPDUTRANSFORM = 287;
00240 const static field_t FLD_TYPE_EXPORT = 288;
00241 const static field_t FLD_TYPE_EXTERNPROTODECLARE = 289;
00242 const static field_t FLD_TYPE_EXTRUSION = 290;
00243 const static field_t FLD_TYPE_FIELD = 291;
00244 const static field_t FLD_TYPE_FIELDVALUE = 292;
00245 const static field_t FLD_TYPE_FILLPROPERTIES = 293;
00246 const static field_t FLD_TYPE_FOG = 294;
00247 const static field_t FLD_TYPE_FONTSTYLE = 295;
00248 const static field_t FLD_TYPE_GEOCOORDINATE = 296;
00249 const static field_t FLD_TYPE_GEOELEVATIONGRID = 297;
00250 const static field_t FLD_TYPE_GEOLOCATION = 298;
00251 const static field_t FLD_TYPE_GEOLOD = 299;
00252 const static field_t FLD_TYPE_GEOMETADATA = 300;
00253 const static field_t FLD_TYPE_GEOORIGIN = 301;
00254 const static field_t FLD_TYPE_GEOPOSITIONINTERPOLATOR = 302;
00255 const static field_t FLD_TYPE_GEOTOUCHSENSOR = 303;
00256 const static field_t FLD_TYPE_GEOVIEWPOINT = 304;
00257 const static field_t FLD_TYPE_GROUP = 305;
00258 const static field_t FLD_TYPE_HANIMDISPLACER = 306;
00259 const static field_t FLD_TYPE_HANIMHUMANOID = 307;
00260 const static field_t FLD_TYPE_HANIMJOINT = 308;
00261 const static field_t FLD_TYPE_HANIMSEGMENT = 309;
00262 const static field_t FLD_TYPE_HANIMSITE = 310;
00263 const static field_t FLD_TYPE_HEAD = 311;
00264 const static field_t FLD_TYPE_IMAGETEXTURE = 312;
00265 const static field_t FLD_TYPE_IMPORT = 313;
00266 const static field_t FLD_TYPE_INDEXEDFACESET = 314;
00267 const static field_t FLD_TYPE_INDEXEDLINESET = 315;
00268 const static field_t FLD_TYPE_INDEXEDTRIANGLEFANSET = 316;
00269 const static field_t FLD_TYPE_INDEXEDTRIANGLESET = 317;
00270 const static field_t FLD_TYPE_INDEXEDTRIANGLESTRIPSET = 318;
00271 const static field_t FLD_TYPE_INLINE = 319;
00272 const static field_t FLD_TYPE_INTEGERSEQUENCER = 320;
00273 const static field_t FLD_TYPE_INTEGERTRIGGER = 321;
00274 const static field_t FLD_TYPE_IS = 322;
00275 const static field_t FLD_TYPE_KEYSENSOR = 323;
00276 const static field_t FLD_TYPE_LINEPROPERTIES = 324;
00277 const static field_t FLD_TYPE_LINESET = 325;
00278 const static field_t FLD_TYPE_LOADSENSOR = 326;
00279 const static field_t FLD_TYPE_LOD = 327;
00280 const static field_t FLD_TYPE_MATERIAL = 328;
00281 const static field_t FLD_TYPE_META = 329;
00282 const static field_t FLD_TYPE_METADATADOUBLE = 330;
00283 const static field_t FLD_TYPE_METADATAFLOAT = 331;
00284 const static field_t FLD_TYPE_METADATAINTEGER = 332;
00285 const static field_t FLD_TYPE_METADATASET = 333;
00286 const static field_t FLD_TYPE_METADATASTRING = 334;
00287 const static field_t FLD_TYPE_MOVIESOUND = 335;
00288 const static field_t FLD_TYPE_MOVIETEXTURE = 336;
00289 const static field_t FLD_TYPE_MULTITEXTURE = 337;
00290 const static field_t FLD_TYPE_MULTITEXTURECOORDINATE = 338;
00291 const static field_t FLD_TYPE_MULTITEXTURETRANSFORM = 339;
00292 const static field_t FLD_TYPE_NAVIGATIONINFO = 340;
00293 const static field_t FLD_TYPE_NORMAL = 341;
00294 const static field_t FLD_TYPE_NORMALINTERPOLATOR = 342;
00295 const static field_t FLD_TYPE_NURBSCURVE = 343;
00296 const static field_t FLD_TYPE_NURBSCURVE2D = 344;
00297 const static field_t FLD_TYPE_NURBSORIENTATIONINTERPOLATOR = 345;
00298 const static field_t FLD_TYPE_NURBSPATCHSURFACE = 346;
00299 const static field_t FLD_TYPE_NURBSPOSITIONINTERPOLATOR = 347;
00300 const static field_t FLD_TYPE_NURBSSET = 348;
00301 const static field_t FLD_TYPE_NURBSSURFACEINTERPOLATOR = 349;
00302 const static field_t FLD_TYPE_NURBSSWEPTSURFACE = 350;
00303 const static field_t FLD_TYPE_NURBSSWUNGSURFACE = 351;
00304 const static field_t FLD_TYPE_NURBSTEXTURECOORDINATE = 352;
00305 const static field_t FLD_TYPE_NURBSTRIMMEDSURFACE = 353;
00306 const static field_t FLD_TYPE_ORIENTATIONINTERPOLATOR = 354;
00307 const static field_t FLD_TYPE_PIXELTEXTURE = 355;
00308 const static field_t FLD_TYPE_PLANESENSOR = 356;
00309 const static field_t FLD_TYPE_POINTLIGHT = 357;
00310 const static field_t FLD_TYPE_POINTSET = 358;
00311 const static field_t FLD_TYPE_POLYLINE2D = 359;
00312 const static field_t FLD_TYPE_POLYPOINT2D = 360;
00313 const static field_t FLD_TYPE_POSITIONINTERPOLATOR = 361;
00314 const static field_t FLD_TYPE_POSITIONINTERPOLATOR2D = 362;
00315 const static field_t FLD_TYPE_PROTOBODY = 363;
00316 const static field_t FLD_TYPE_PROTODECLARE = 364;
00317 const static field_t FLD_TYPE_PROTOINSTANCE = 365;
00318 const static field_t FLD_TYPE_PROTOINTERFACE = 366;
00319 const static field_t FLD_TYPE_PROXIMITYSENSOR = 367;
00320 const static field_t FLD_TYPE_RECEIVERPDU = 368;
00321 const static field_t FLD_TYPE_RECTANGLE2D = 369;
00322 const static field_t FLD_TYPE_ROUTE = 370;
00323 const static field_t FLD_TYPE_SCALARINTERPOLATOR = 371;
00324 const static field_t FLD_TYPE_SCENE = 372;
00325 const static field_t FLD_TYPE_SCRIPT = 373;
00326 const static field_t FLD_TYPE_SFNODE = 374;
00327 const static field_t FLD_TYPE_SHAPE = 375;
00328 const static field_t FLD_TYPE_SIGNALPDU = 376;
00329 const static field_t FLD_TYPE_SOUND = 377;
00330 const static field_t FLD_TYPE_SPHERE = 378;
00331 const static field_t FLD_TYPE_SPHERESENSOR = 379;
00332 const static field_t FLD_TYPE_SPOTLIGHT = 380;
00333 const static field_t FLD_TYPE_STATICGROUP = 381;
00334 const static field_t FLD_TYPE_STRINGSENSOR = 382;
00335 const static field_t FLD_TYPE_SWITCH = 383;
00336 const static field_t FLD_TYPE_TEXT = 384;
00337 const static field_t FLD_TYPE_TEXTUREBACKGROUND = 385;
00338 const static field_t FLD_TYPE_TEXTURECOORDINATE = 386;
00339 const static field_t FLD_TYPE_TEXTURECOORDINATEGENERATOR = 387;
00340 const static field_t FLD_TYPE_TEXTURETRANSFORM = 388;
00341 const static field_t FLD_TYPE_TIMESENSOR = 389;
00342 const static field_t FLD_TYPE_TIMETRIGGER = 390;
00343 const static field_t FLD_TYPE_TOUCHSENSOR = 391;
00344 const static field_t FLD_TYPE_TRANSFORM = 392;
00345 const static field_t FLD_TYPE_TRANSMITTERPDU = 393;
00346 const static field_t FLD_TYPE_TRIANGLEFANSET = 394;
00347 const static field_t FLD_TYPE_TRIANGLESET = 395;
00348 const static field_t FLD_TYPE_TRIANGLESET2D = 396;
00349 const static field_t FLD_TYPE_TRIANGLESTRIPSET = 397;
00350 const static field_t FLD_TYPE_VIEWPOINT = 398;
00351 const static field_t FLD_TYPE_VISIBILITYSENSOR = 399;
00352 const static field_t FLD_TYPE_WORLDINFO = 400;
00353 const static field_t FLD_TYPE_X3D = 401;
00354 const static field_t FLD_TYPE_X3DAPPEARANCECHILDNODE = 402;
00355 const static field_t FLD_TYPE_X3DAPPEARANCENODE = 403;
00356 const static field_t FLD_TYPE_X3DBACKGROUNDNODE = 404;
00357 const static field_t FLD_TYPE_X3DBINDABLENODE = 405;
00358 const static field_t FLD_TYPE_X3DBOUNDEDOBJECT = 406;
00359 const static field_t FLD_TYPE_X3DCHILDNODE = 407;
00360 const static field_t FLD_TYPE_X3DCOLORNODE = 408;
00361 const static field_t FLD_TYPE_X3DCOMPOSEDGEOMETRYNODE = 409;
00362 const static field_t FLD_TYPE_X3DCOORDINATENODE = 410;
00363 const static field_t FLD_TYPE_X3DDRAGSENSORNODE = 411;
00364 const static field_t FLD_TYPE_X3DENVIRONMENTALSENSORNODE = 412;
00365 const static field_t FLD_TYPE_X3DFONTSTYLENODE = 413;
00366 const static field_t FLD_TYPE_X3DGEOMETRICPROPERTYNODE = 414;
00367 const static field_t FLD_TYPE_X3DGEOMETRYNODE = 415;
00368 const static field_t FLD_TYPE_X3DGROUPINGNODE = 416;
00369 const static field_t FLD_TYPE_X3DINFONODE = 417;
00370 const static field_t FLD_TYPE_X3DINTERPOLATORNODE = 418;
00371 const static field_t FLD_TYPE_X3DKEYDEVICESENSORNODE = 419;
00372 const static field_t FLD_TYPE_X3DLIGHTNODE = 420;
00373 const static field_t FLD_TYPE_X3DMATERIALNODE = 421;
00374 const static field_t FLD_TYPE_X3DMETADATAOBJECT = 422;
00375 const static field_t FLD_TYPE_X3DNETWORKSENSORNODE = 423;
00376 const static field_t FLD_TYPE_X3DNODE = 424;
00377 const static field_t FLD_TYPE_X3DNORMALNODE = 425;
00378 const static field_t FLD_TYPE_X3DNURBSCONTROLCURVENODE = 426;
00379 const static field_t FLD_TYPE_X3DNURBSSURFACEGEOMETRYNODE = 427;
00380 const static field_t FLD_TYPE_X3DPARAMETRICGEOMETRYNODE = 428;
00381 const static field_t FLD_TYPE_X3DPOINTINGDEVICESENSORNODE = 429;
00382 const static field_t FLD_TYPE_X3DPROTOTYPEINSTANCE = 430;
00383 const static field_t FLD_TYPE_X3DSCRIPTNODE = 431;
00384 const static field_t FLD_TYPE_X3DSENSORNODE = 432;
00385 const static field_t FLD_TYPE_X3DSEQUENCERNODE = 433;
00386 const static field_t FLD_TYPE_X3DSHAPENODE = 434;
00387 const static field_t FLD_TYPE_X3DSOUNDNODE = 435;
00388 const static field_t FLD_TYPE_X3DSOUNDSOURCENODE = 436;
00389 const static field_t FLD_TYPE_X3DTEXTURE2DNODE = 437;
00390 const static field_t FLD_TYPE_X3DTEXTURECOORDINATENODE = 438;
00391 const static field_t FLD_TYPE_X3DTEXTURENODE = 439;
00392 const static field_t FLD_TYPE_X3DTEXTURETRANSFORM2DNODE = 440;
00393 const static field_t FLD_TYPE_X3DTEXTURETRANSFORMNODE = 441;
00394 const static field_t FLD_TYPE_X3DTIMEDEPENDENTNODE = 442;
00395 const static field_t FLD_TYPE_X3DTOUCHSENSORNODE = 443;
00396 const static field_t FLD_TYPE_X3DTRIGGERNODE = 444;
00397 const static field_t FLD_TYPE_X3DURLOBJECT = 445;
00398
00399
00400 const static field_t FLD_ACCESSTYPE = 446;
00401 const static field_t FLD_ACTIONKEYPRESS = 447;
00402 const static field_t FLD_ACTIONKEYRELEASE = 448;
00403 const static field_t FLD_ADDCHILDREN = 449;
00404 const static field_t FLD_ADDGEOMETRY = 450;
00405 const static field_t FLD_ADDRESS = 451;
00406 const static field_t FLD_ADDTRIMMINGCONTOUR = 452;
00407 const static field_t FLD_ALPHA = 453;
00408 const static field_t FLD_ALTKEY = 454;
00409 const static field_t FLD_AMBIENTINTENSITY = 455;
00410 const static field_t FLD_ANTENNALOCATION = 456;
00411 const static field_t FLD_ANTENNAPATTERNLENGTH = 457;
00412 const static field_t FLD_ANTENNAPATTERNTYPE = 458;
00413 const static field_t FLD_APPEARANCE = 459;
00414 const static field_t FLD_APPINFO = 460;
00415 const static field_t FLD_APPLICATIONID = 461;
00416 const static field_t FLD_APPLIED = 462;
00417 const static field_t FLD_ARTICULATIONPARAMETERARRAY = 463;
00418 const static field_t FLD_ARTICULATIONPARAMETERCHANGEINDICATORARRAY = 464;
00419 const static field_t FLD_ARTICULATIONPARAMETERCOUNT = 465;
00420 const static field_t FLD_ARTICULATIONPARAMETERDESIGNATORARRAY = 466;
00421 const static field_t FLD_ARTICULATIONPARAMETERIDPARTATTACHEDTOARRAY = 467;
00422 const static field_t FLD_ARTICULATIONPARAMETERTYPEARRAY = 468;
00423 const static field_t FLD_ARTICULATIONPARAMETERVALUE0_CHANGED = 469;
00424 const static field_t FLD_ARTICULATIONPARAMETERVALUE1_CHANGED = 470;
00425 const static field_t FLD_ARTICULATIONPARAMETERVALUE2_CHANGED = 471;
00426 const static field_t FLD_ARTICULATIONPARAMETERVALUE3_CHANGED = 472;
00427 const static field_t FLD_ARTICULATIONPARAMETERVALUE4_CHANGED = 473;
00428 const static field_t FLD_ARTICULATIONPARAMETERVALUE5_CHANGED = 474;
00429 const static field_t FLD_ARTICULATIONPARAMETERVALUE6_CHANGED = 475;
00430 const static field_t FLD_ARTICULATIONPARAMETERVALUE7_CHANGED = 476;
00431 const static field_t FLD_AS = 477;
00432 const static field_t FLD_ATTENUATION = 478;
00433 const static field_t FLD_AUTOOFFSET = 479;
00434 const static field_t FLD_AVATARSIZE = 480;
00435 const static field_t FLD_AXISOFROTATION = 481;
00436 const static field_t FLD_BACKTEXTURE = 482;
00437 const static field_t FLD_BACKURL = 483;
00438 const static field_t FLD_BBOXCENTER = 484;
00439 const static field_t FLD_BBOXSIZE = 485;
00440 const static field_t FLD_BEAMWIDTH = 486;
00441 const static field_t FLD_BEGINCAP = 487;
00442 const static field_t FLD_BINDTIME = 488;
00443 const static field_t FLD_BOTTOM = 489;
00444 const static field_t FLD_BOTTOMRADIUS = 490;
00445 const static field_t FLD_BOTTOMTEXTURE = 491;
00446 const static field_t FLD_BOTTOMURL = 492;
00447 const static field_t FLD_CCW = 493;
00448 const static field_t FLD_CENTER = 494;
00449 const static field_t FLD_CENTEROFMASS = 495;
00450 const static field_t FLD_CENTEROFROTATION = 496;
00451 const static field_t FLD_CENTEROFROTATION_CHANGED = 497;
00452 const static field_t FLD_CHILD1URL = 498;
00453 const static field_t FLD_CHILD2URL = 499;
00454 const static field_t FLD_CHILD3URL = 500;
00455 const static field_t FLD_CHILD4URL = 501;
00456 const static field_t FLD_CHILDREN = 502;
00457 const static field_t FLD_CLASS = 503;
00458 const static field_t FLD_CLOSED = 504;
00459 const static field_t FLD_CLOSURETYPE = 505;
00460 const static field_t FLD_COLLIDETIME = 506;
00461 const static field_t FLD_COLLISIONTYPE = 507;
00462 const static field_t FLD_COLOR = 508;
00463 const static field_t FLD_COLORINDEX = 509;
00464 const static field_t FLD_COLORPERVERTEX = 510;
00465 const static field_t FLD_COMPONENT = 511;
00466 const static field_t FLD_CONTENT = 512;
00467 const static field_t FLD_CONTROLKEY = 513;
00468 const static field_t FLD_CONTROLPOINT = 514;
00469 const static field_t FLD_CONTROLPOINTS = 515;
00470 const static field_t FLD_CONVEX = 516;
00471 const static field_t FLD_COORD = 517;
00472 const static field_t FLD_COORDINDEX = 518;
00473 const static field_t FLD_CREASEANGLE = 519;
00474 const static field_t FLD_CROSSSECTION = 520;
00475 const static field_t FLD_CROSSSECTIONCURVE = 521;
00476 const static field_t FLD_CRYPTOKEYID = 522;
00477 const static field_t FLD_CRYPTOSYSTEM = 523;
00478 const static field_t FLD_CUTOFFANGLE = 524;
00479 const static field_t FLD_CYCLEINTERVAL = 525;
00480 const static field_t FLD_CYCLETIME = 526;
00481 const static field_t FLD_DATA = 527;
00482 const static field_t FLD_DATALENGTH = 528;
00483 const static field_t FLD_DEADRECKONING = 529;
00484 const static field_t FLD_DEF = 530;
00485 const static field_t FLD_DELETIONALLOWED = 531;
00486 const static field_t FLD_DESCRIPTION = 532;
00487 const static field_t FLD_DETONATETIME = 533;
00488 const static field_t FLD_DETONATIONLOCATION = 534;
00489 const static field_t FLD_DETONATIONRELATIVELOCATION = 535;
00490 const static field_t FLD_DETONATIONRESULT = 536;
00491 const static field_t FLD_DIFFUSECOLOR = 537;
00492 const static field_t FLD_DIR = 538;
00493 const static field_t FLD_DIRECTION = 539;
00494 const static field_t FLD_DIRECTOUTPUT = 540;
00495 const static field_t FLD_DISKANGLE = 541;
00496 const static field_t FLD_DISPLACEMENTS = 542;
00497 const static field_t FLD_DISPLACERS = 543;
00498 const static field_t FLD_DOCUMENTATION = 544;
00499 const static field_t FLD_DURATION_CHANGED = 545;
00500 const static field_t FLD_ELAPSEDTIME = 546;
00501 const static field_t FLD_EMISSIVECOLOR = 547;
00502 const static field_t FLD_ENABLED = 548;
00503 const static field_t FLD_ENCODINGSCHEME = 549;
00504 const static field_t FLD_ENDANGLE = 550;
00505 const static field_t FLD_ENDCAP = 551;
00506 const static field_t FLD_ENTEREDTEXT = 552;
00507 const static field_t FLD_ENTERTIME = 553;
00508 const static field_t FLD_ENTITYCATEGORY = 554;
00509 const static field_t FLD_ENTITYCOUNTRY = 555;
00510 const static field_t FLD_ENTITYDOMAIN = 556;
00511 const static field_t FLD_ENTITYEXTRA = 557;
00512 const static field_t FLD_ENTITYID = 558;
00513 const static field_t FLD_ENTITYKIND = 559;
00514 const static field_t FLD_ENTITYSPECIFIC = 560;
00515 const static field_t FLD_ENTITYSUBCATEGORY = 561;
00516 const static field_t FLD_EVENTAPPLICATIONID = 562;
00517 const static field_t FLD_EVENTENTITYID = 563;
00518 const static field_t FLD_EVENTNUMBER = 564;
00519 const static field_t FLD_EVENTSITEID = 565;
00520 const static field_t FLD_EXITTIME = 566;
00521 const static field_t FLD_FAMILY = 567;
00522 const static field_t FLD_FANCOUNT = 568;
00523 const static field_t FLD_FIELDOFVIEW = 569;
00524 const static field_t FLD_FIELDS = 570;
00525 const static field_t FLD_FILLED = 571;
00526 const static field_t FLD_FILLPROPERTIES = 572;
00527 const static field_t FLD_FINALTEXT = 573;
00528 const static field_t FLD_FIRED1 = 574;
00529 const static field_t FLD_FIRED2 = 575;
00530 const static field_t FLD_FIREDTIME = 576;
00531 const static field_t FLD_FIREMISSIONINDEX = 577;
00532 const static field_t FLD_FIRINGRANGE = 578;
00533 const static field_t FLD_FIRINGRATE = 579;
00534 const static field_t FLD_FOGTYPE = 580;
00535 const static field_t FLD_FONTSTYLE = 581;
00536 const static field_t FLD_FORCEID = 582;
00537 const static field_t FLD_FRACTION_CHANGED = 583;
00538 const static field_t FLD_FREQUENCY = 584;
00539 const static field_t FLD_FROMFIELD = 585;
00540 const static field_t FLD_FROMNODE = 586;
00541 const static field_t FLD_FRONTTEXTURE = 587;
00542 const static field_t FLD_FRONTURL = 588;
00543 const static field_t FLD_FUNCTION = 589;
00544 const static field_t FLD_FUSE = 590;
00545 const static field_t FLD_GEOCOORDS = 591;
00546 const static field_t FLD_GEOGRIDORIGIN = 592;
00547 const static field_t FLD_GEOMETRY = 593;
00548 const static field_t FLD_GEOORIGIN = 594;
00549 const static field_t FLD_GEOSYSTEM = 595;
00550 const static field_t FLD_GEOVALUE_CHANGED = 596;
00551 const static field_t FLD_GROUNDANGLE = 597;
00552 const static field_t FLD_GROUNDCOLOR = 598;
00553 const static field_t FLD_HATCHCOLOR = 599;
00554 const static field_t FLD_HATCHED = 600;
00555 const static field_t FLD_HATCHSTYLE = 601;
00556 const static field_t FLD_HEAD = 602;
00557 const static field_t FLD_HEADLIGHT = 603;
00558 const static field_t FLD_HEIGHT = 604;
00559 const static field_t FLD_HITGEOCOORD_CHANGED = 605;
00560 const static field_t FLD_HITNORMAL_CHANGED = 606;
00561 const static field_t FLD_HITPOINT_CHANGED = 607;
00562 const static field_t FLD_HITTEXCOORD_CHANGED = 608;
00563 const static field_t FLD_HORIZONTAL = 609;
00564 const static field_t FLD_HTTP_EQUIV = 610;
00565 const static field_t FLD_IMAGE = 611;
00566 const static field_t FLD_IMPORTEDDEF = 612;
00567 const static field_t FLD_INDEX = 613;
00568 const static field_t FLD_INFO = 614;
00569 const static field_t FLD_INLINE = 615;
00570 const static field_t FLD_INLINEDEF = 616;
00571 const static field_t FLD_INNERRADIUS = 617;
00572 const static field_t FLD_INPUTFALSE = 618;
00573 const static field_t FLD_INPUTNEGATE = 619;
00574 const static field_t FLD_INPUTSOURCE = 620;
00575 const static field_t FLD_INPUTTRUE = 621;
00576 const static field_t FLD_INTEGERKEY = 622;
00577 const static field_t FLD_INTENSITY = 623;
00578 const static field_t FLD_IS = 624;
00579 const static field_t FLD_ISACTIVE = 625;
00580 const static field_t FLD_ISBOUND = 626;
00581 const static field_t FLD_ISCOLLIDED = 627;
00582 const static field_t FLD_ISDETONATED = 628;
00583 const static field_t FLD_ISLOADED = 629;
00584 const static field_t FLD_ISNETWORKREADER = 630;
00585 const static field_t FLD_ISNETWORKWRITER = 631;
00586 const static field_t FLD_ISOVER = 632;
00587 const static field_t FLD_ISPAUSED = 633;
00588 const static field_t FLD_ISRTPHEADERHEARD = 634;
00589 const static field_t FLD_ISSTANDALONE = 635;
00590 const static field_t FLD_JOINTS = 636;
00591 const static field_t FLD_JUMP = 637;
00592 const static field_t FLD_JUSTIFY = 638;
00593 const static field_t FLD_KEY = 639;
00594 const static field_t FLD_KEYPRESS = 640;
00595 const static field_t FLD_KEYRELEASE = 641;
00596 const static field_t FLD_KEYVALUE = 642;
00597 const static field_t FLD_KNOT = 643;
00598 const static field_t FLD_LANG = 644;
00599 const static field_t FLD_LANGUAGE = 645;
00600 const static field_t FLD_LEFTTEXTURE = 646;
00601 const static field_t FLD_LEFTTORIGHT = 647;
00602 const static field_t FLD_LEFTURL = 648;
00603 const static field_t FLD_LENGTH = 649;
00604 const static field_t FLD_LENGTHOFMODULATIONPARAMETERS = 650;
00605 const static field_t FLD_LEVEL = 651;
00606 const static field_t FLD_LIMITORIENTATION = 652;
00607 const static field_t FLD_LINEARACCELERATION = 653;
00608 const static field_t FLD_LINEARVELOCITY = 654;
00609 const static field_t FLD_LINEPROPERTIES = 655;
00610 const static field_t FLD_LINESEGMENTS = 656;
00611 const static field_t FLD_LINETYPE = 657;
00612 const static field_t FLD_LINEWIDTHSCALEFACTOR = 658;
00613 const static field_t FLD_LLIMIT = 659;
00614 const static field_t FLD_LOAD = 660;
00615 const static field_t FLD_LOADTIME = 661;
00616 const static field_t FLD_LOCALDEF = 662;
00617 const static field_t FLD_LOCATION = 663;
00618 const static field_t FLD_LOOP = 664;
00619 const static field_t FLD_MARKING = 665;
00620 const static field_t FLD_MASS = 666;
00621 const static field_t FLD_MATERIAL = 667;
00622 const static field_t FLD_MAXANGLE = 668;
00623 const static field_t FLD_MAXBACK = 669;
00624 const static field_t FLD_MAXEXTENT = 670;
00625 const static field_t FLD_MAXFRONT = 671;
00626 const static field_t FLD_MAXPOSITION = 672;
00627 const static field_t FLD_META = 673;
00628 const static field_t FLD_METADATA = 674;
00629 const static field_t FLD_MINANGLE = 675;
00630 const static field_t FLD_MINBACK = 676;
00631 const static field_t FLD_MINFRONT = 677;
00632 const static field_t FLD_MINPOSITION = 678;
00633 const static field_t FLD_MODE = 679;
00634 const static field_t FLD_MODULATIONTYPEDETAIL = 680;
00635 const static field_t FLD_MODULATIONTYPEMAJOR = 681;
00636 const static field_t FLD_MODULATIONTYPESPREADSPECTRUM = 682;
00637 const static field_t FLD_MODULATIONTYPESYSTEM = 683;
00638 const static field_t FLD_MOMENTSOFINERTIA = 684;
00639 const static field_t FLD_MULTICASTRELAYHOST = 685;
00640 const static field_t FLD_MULTICASTRELAYPORT = 686;
00641 const static field_t FLD_MUNITIONAPPLICATIONID = 687;
00642 const static field_t FLD_MUNITIONENDPOINT = 688;
00643 const static field_t FLD_MUNITIONENTITYID = 689;
00644 const static field_t FLD_MUNITIONQUANTITY = 690;
00645 const static field_t FLD_MUNITIONSITEID = 691;
00646 const static field_t FLD_MUNITIONSTARTPOINT = 692;
00647 const static field_t FLD_MUSTEVALUATE = 693;
00648 const static field_t FLD_NAME = 694;
00649 const static field_t FLD_NAVTYPE = 695;
00650 const static field_t FLD_NETWORKMODE = 696;
00651 const static field_t FLD_NEXT = 697;
00652 const static field_t FLD_NODEFIELD = 698;
00653 const static field_t FLD_NORMAL = 699;
00654 const static field_t FLD_NORMALINDEX = 700;
00655 const static field_t FLD_NORMALPERVERTEX = 701;
00656 const static field_t FLD_NORMAL_CHANGED = 702;
00657 const static field_t FLD_OFFSET = 703;
00658 const static field_t FLD_ON = 704;
00659 const static field_t FLD_ORDER = 705;
00660 const static field_t FLD_ORIENTATION = 706;
00661 const static field_t FLD_ORIENTATION_CHANGED = 707;
00662 const static field_t FLD_OUTERRADIUS = 708;
00663 const static field_t FLD_PARAMETER = 709;
00664 const static field_t FLD_PAUSETIME = 710;
00665 const static field_t FLD_PITCH = 711;
00666 const static field_t FLD_POINT = 712;
00667 const static field_t FLD_POINTS = 713;
00668 const static field_t FLD_PORT = 714;
00669 const static field_t FLD_POSITION = 715;
00670 const static field_t FLD_POSITION_CHANGED = 716;
00671 const static field_t FLD_POWER = 717;
00672 const static field_t FLD_PREVIOUS = 718;
00673 const static field_t FLD_PRIORITY = 719;
00674 const static field_t FLD_PROFILE = 720;
00675 const static field_t FLD_PROFILECURVE = 721;
00676 const static field_t FLD_PROGRESS = 722;
00677 const static field_t FLD_PROTOFIELD = 723;
00678 const static field_t FLD_PROXY = 724;
00679 const static field_t FLD_RADIOENTITYTYPECATEGORY = 725;
00680 const static field_t FLD_RADIOENTITYTYPECOUNTRY = 726;
00681 const static field_t FLD_RADIOENTITYTYPEDOMAIN = 727;
00682 const static field_t FLD_RADIOENTITYTYPEKIND = 728;
00683 const static field_t FLD_RADIOENTITYTYPENOMENCLATURE = 729;
00684 const static field_t FLD_RADIOENTITYTYPENOMENCLATUREVERSION = 730;
00685 const static field_t FLD_RADIOID = 731;
00686 const static field_t FLD_RADIUS = 732;
00687 const static field_t FLD_RANGE = 733;
00688 const static field_t FLD_READINTERVAL = 734;
00689 const static field_t FLD_RECEIVEDPOWER = 735;
00690 const static field_t FLD_RECEIVERSTATE = 736;
00691 const static field_t FLD_REFERENCE = 737;
00692 const static field_t FLD_RELATIVEANTENNALOCATION = 738;
00693 const static field_t FLD_REMOVECHILDREN = 739;
00694 const static field_t FLD_REMOVEGEOMETRY = 740;
00695 const static field_t FLD_REMOVETRIMMINGCONTOUR = 741;
00696 const static field_t FLD_REPEATS = 742;
00697 const static field_t FLD_REPEATT = 743;
00698 const static field_t FLD_RESUMETIME = 744;
00699 const static field_t FLD_RIGHTTEXTURE = 745;
00700 const static field_t FLD_RIGHTURL = 746;
00701 const static field_t FLD_ROOTNODE = 747;
00702 const static field_t FLD_ROOTURL = 748;
00703 const static field_t FLD_ROTATEYUP = 749;
00704 const static field_t FLD_ROTATION = 750;
00705 const static field_t FLD_ROTATION_CHANGED = 751;
00706 const static field_t FLD_RTPHEADEREXPECTED = 752;
00707 const static field_t FLD_SAMPLERATE = 753;
00708 const static field_t FLD_SAMPLES = 754;
00709 const static field_t FLD_SCALE = 755;
00710 const static field_t FLD_SCALEORIENTATION = 756;
00711 const static field_t FLD_SCENE = 757;
00712 const static field_t FLD_SCHEME = 758;
00713 const static field_t FLD_SEGMENTS = 759;
00714 const static field_t FLD_SET_ARTICULATIONPARAMETERVALUE0 = 760;
00715 const static field_t FLD_SET_ARTICULATIONPARAMETERVALUE1 = 761;
00716 const static field_t FLD_SET_ARTICULATIONPARAMETERVALUE2 = 762;
00717 const static field_t FLD_SET_ARTICULATIONPARAMETERVALUE3 = 763;
00718 const static field_t FLD_SET_ARTICULATIONPARAMETERVALUE4 = 764;
00719 const static field_t FLD_SET_ARTICULATIONPARAMETERVALUE5 = 765;
00720 const static field_t FLD_SET_ARTICULATIONPARAMETERVALUE6 = 766;
00721 const static field_t FLD_SET_ARTICULATIONPARAMETERVALUE7 = 767;
00722 const static field_t FLD_SET_BIND = 768;
00723 const static field_t FLD_SET_BOOLEAN = 769;
00724 const static field_t FLD_SET_COLORINDEX = 770;
00725 const static field_t FLD_SET_COORDINDEX = 771;
00726 const static field_t FLD_SET_CROSSSECTION = 772;
00727 const static field_t FLD_SET_FRACTION = 773;
00728 const static field_t FLD_SET_HEIGHT = 774;
00729 const static field_t FLD_SET_INDEX = 775;
00730 const static field_t FLD_SET_NORMALINDEX = 776;
00731 const static field_t FLD_SET_ORIENTATION = 777;
00732 const static field_t FLD_SET_POSITION = 778;
00733 const static field_t FLD_SET_SCALE = 779;
00734 const static field_t FLD_SET_SPINE = 780;
00735 const static field_t FLD_SET_TEXCOORDINDEX = 781;
00736 const static field_t FLD_SET_TRIGGERTIME = 782;
00737 const static field_t FLD_SHIFTKEY = 783;
00738 const static field_t FLD_SHININESS = 784;
00739 const static field_t FLD_SIDE = 785;
00740 const static field_t FLD_SITEID = 786;
00741 const static field_t FLD_SITES = 787;
00742 const static field_t FLD_SIZE = 788;
00743 const static field_t FLD_SKELETON = 789;
00744 const static field_t FLD_SKIN = 790;
00745 const static field_t FLD_SKINCOORD = 791;
00746 const static field_t FLD_SKINCOORDINDEX = 792;
00747 const static field_t FLD_SKINCOORDWEIGHT = 793;
00748 const static field_t FLD_SKINNORMAL = 794;
00749 const static field_t FLD_SKYANGLE = 795;
00750 const static field_t FLD_SKYCOLOR = 796;
00751 const static field_t FLD_SOLID = 797;
00752 const static field_t FLD_SOUND = 798;
00753 const static field_t FLD_SOURCE = 799;
00754 const static field_t FLD_SPACING = 800;
00755 const static field_t FLD_SPATIALIZE = 801;
00756 const static field_t FLD_SPECULARCOLOR = 802;
00757 const static field_t FLD_SPEED = 803;
00758 const static field_t FLD_SPEEDFACTOR = 804;
00759 const static field_t FLD_SPINE = 805;
00760 const static field_t FLD_STARTANGLE = 806;
00761 const static field_t FLD_STARTTIME = 807;
00762 const static field_t FLD_STIFFNESS = 808;
00763 const static field_t FLD_STOPTIME = 809;
00764 const static field_t FLD_STRING = 810;
00765 const static field_t FLD_STRIPCOUNT = 811;
00766 const static field_t FLD_STYLE = 812;
00767 const static field_t FLD_SUMMARY = 813;
00768 const static field_t FLD_TDLTYPE = 814;
00769 const static field_t FLD_TESSELLATION = 815;
00770 const static field_t FLD_TESSELLATIONSCALE = 816;
00771 const static field_t FLD_TEXCOORD = 817;
00772 const static field_t FLD_TEXCOORDINDEX = 818;
00773 const static field_t FLD_TEXTURE = 819;
00774 const static field_t FLD_TEXTURETRANSFORM = 820;
00775 const static field_t FLD_TIME = 821;
00776 const static field_t FLD_TIMEOUT = 822;
00777 const static field_t FLD_TIMESTAMP = 823;
00778 const static field_t FLD_TITLE = 824;
00779 const static field_t FLD_TOFIELD = 825;
00780 const static field_t FLD_TOGGLE = 826;
00781 const static field_t FLD_TONODE = 827;
00782 const static field_t FLD_TOP = 828;
00783 const static field_t FLD_TOPTEXTURE = 829;
00784 const static field_t FLD_TOPTOBOTTOM = 830;
00785 const static field_t FLD_TOPURL = 831;
00786 const static field_t FLD_TOUCHTIME = 832;
00787 const static field_t FLD_TRACKPOINT_CHANGED = 833;
00788 const static field_t FLD_TRAJECTORYCURVE = 834;
00789 const static field_t FLD_TRANSITIONTYPE = 835;
00790 const static field_t FLD_TRANSLATION = 836;
00791 const static field_t FLD_TRANSLATION_CHANGED = 837;
00792 const static field_t FLD_TRANSMITFREQUENCYBANDWIDTH = 838;
00793 const static field_t FLD_TRANSMITSTATE = 839;
00794 const static field_t FLD_TRANSMITTERAPPLICATIONID = 840;
00795 const static field_t FLD_TRANSMITTERENTITYID = 841;
00796 const static field_t FLD_TRANSMITTERRADIOID = 842;
00797 const static field_t FLD_TRANSMITTERSITEID = 843;
00798 const static field_t FLD_TRANSPARENCY = 844;
00799 const static field_t FLD_TRIGGERTIME = 845;
00800 const static field_t FLD_TRIGGERTRUE = 846;
00801 const static field_t FLD_TRIGGERVALUE = 847;
00802 const static field_t FLD_TRIMMINGCONTOUR = 848;
00803 const static field_t FLD_TYPE = 849;
00804 const static field_t FLD_UCLOSED = 850;
00805 const static field_t FLD_UDIMENSION = 851;
00806 const static field_t FLD_UKNOT = 852;
00807 const static field_t FLD_ULIMIT = 853;
00808 const static field_t FLD_UORDER = 854;
00809 const static field_t FLD_URL = 855;
00810 const static field_t FLD_USE = 856;
00811 const static field_t FLD_UTESSELLATION = 857;
00812 const static field_t FLD_VALUE = 858;
00813 const static field_t FLD_VALUE_CHANGED = 859;
00814 const static field_t FLD_VCLOSED = 860;
00815 const static field_t FLD_VDIMENSION = 861;
00816 const static field_t FLD_VECTOR = 862;
00817 const static field_t FLD_VERSION = 863;
00818 const static field_t FLD_VERTEXCOUNT = 864;
00819 const static field_t FLD_VERTICES = 865;
00820 const static field_t FLD_VIEWPOINTS = 866;
00821 const static field_t FLD_VISIBILITYLIMIT = 867;
00822 const static field_t FLD_VISIBILITYRANGE = 868;
00823 const static field_t FLD_VKNOT = 869;
00824 const static field_t FLD_VORDER = 870;
00825 const static field_t FLD_VTESSELLATION = 871;
00826 const static field_t FLD_WARHEAD = 872;
00827 const static field_t FLD_WATCHLIST = 873;
00828 const static field_t FLD_WEIGHT = 874;
00829 const static field_t FLD_WHICHCHOICE = 875;
00830 const static field_t FLD_WHICHGEOMETRY = 876;
00831 const static field_t FLD_WRITEINTERVAL = 877;
00832 const static field_t FLD_XDIMENSION = 878;
00833 const static field_t FLD_XSPACING = 879;
00834 const static field_t FLD_YSCALE = 880;
00835 const static field_t FLD_ZDIMENSION = 881;
00836 const static field_t FLD_ZSPACING = 882;
00837
00838
00839
00840
00841
00842
00843
00844
00845
00846
00847 class X3DNode : public SFNode
00848 {
00849 public:
00850 X3DNode();
00851 virtual ~X3DNode();
00852
00853 virtual bool IsNodeType(field_t type) const;
00854 virtual field_t GetNodeType(int idx = 0) const;
00855 virtual int GetTypeCount() const;
00856 virtual const char * GetNodeName() const;
00857
00858 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
00859 virtual bool FieldHasDefaultValue(field_t name) const;
00860 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
00861 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
00862 virtual int GetFieldCount() const;
00863 virtual field_t GetDefaultContainerField() const;
00864
00865 virtual const char * GetDefaultContainerFieldName() const;
00866
00867 virtual bool SetFieldByName(field_t name, const void *data);
00868
00869
00870 void set_IS(SFNode *IS) { f_IS = IS; }
00871 SFNodePtr get_IS() const { return f_IS; }
00872 void set_metadata(SFNode *metadata) { f_metadata = metadata; }
00873 SFNodePtr get_metadata() const { return f_metadata; }
00874
00875 protected:
00876 SFNodePtr f_IS;
00877 SFNodePtr f_metadata;
00878 };
00879 typedef pointer::SmartPointer<X3DNode> X3DNodePtr;
00880
00881
00882
00883
00884
00885
00886
00887 class X3DChildNode : public X3DNode
00888 {
00889 public:
00890 X3DChildNode();
00891 virtual ~X3DChildNode();
00892
00893 virtual bool IsNodeType(field_t type) const;
00894 virtual field_t GetNodeType(int idx = 0) const;
00895 virtual int GetTypeCount() const;
00896 virtual const char * GetNodeName() const;
00897
00898 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
00899 virtual bool FieldHasDefaultValue(field_t name) const;
00900 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
00901 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
00902 virtual int GetFieldCount() const;
00903 virtual field_t GetDefaultContainerField() const;
00904
00905 virtual const char * GetDefaultContainerFieldName() const;
00906
00907 virtual bool SetFieldByName(field_t name, const void *data);
00908
00909
00910 void set_DEF(const SFString& DEF) { f_DEF = DEF; }
00911 SFString& get_DEF() const { return const_cast<SFString&>(f_DEF); }
00912 void set_USE(const SFString& USE) { f_USE = USE; }
00913 SFString& get_USE() const { return const_cast<SFString&>(f_USE); }
00914
00915 protected:
00916 SFString f_DEF;
00917 SFString f_USE;
00918 };
00919 typedef pointer::SmartPointer<X3DChildNode> X3DChildNodePtr;
00920
00921
00922
00923
00924
00925
00926
00927 class X3DBindableNode : public X3DChildNode
00928 {
00929 public:
00930 X3DBindableNode();
00931 virtual ~X3DBindableNode();
00932
00933 virtual bool IsNodeType(field_t type) const;
00934 virtual field_t GetNodeType(int idx = 0) const;
00935 virtual int GetTypeCount() const;
00936 virtual const char * GetNodeName() const;
00937
00938 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
00939 virtual bool FieldHasDefaultValue(field_t name) const;
00940 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
00941 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
00942 virtual int GetFieldCount() const;
00943 virtual field_t GetDefaultContainerField() const;
00944
00945 virtual const char * GetDefaultContainerFieldName() const;
00946
00947 virtual bool SetFieldByName(field_t name, const void *data);
00948
00949
00950 void set_set_bind(const SFBool& set_bind) { f_set_bind = set_bind; }
00951 SFBool get_set_bind() const { return f_set_bind; }
00952 void set_bindTime(const SFTime& bindTime) { f_bindTime = bindTime; }
00953 SFTime get_bindTime() const { return f_bindTime; }
00954 void set_isBound(const SFBool& isBound) { f_isBound = isBound; }
00955 SFBool get_isBound() const { return f_isBound; }
00956
00957 protected:
00958 SFBool f_set_bind;
00959 SFTime f_bindTime;
00960 SFBool f_isBound;
00961 };
00962 typedef pointer::SmartPointer<X3DBindableNode> X3DBindableNodePtr;
00963
00964
00965
00966
00967
00968
00969
00970 class X3DMetadataObject
00971 {
00972 public:
00973 X3DMetadataObject();
00974 virtual ~X3DMetadataObject();
00975
00976 virtual bool IsNodeType(field_t type) const;
00977 virtual field_t GetNodeType(int idx = 0) const;
00978 virtual int GetTypeCount() const;
00979 virtual const char * GetNodeName() const;
00980
00981 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
00982 virtual bool FieldHasDefaultValue(field_t name) const;
00983 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
00984 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
00985 virtual int GetFieldCount() const;
00986 virtual field_t GetDefaultContainerField() const;
00987
00988 virtual const char * GetDefaultContainerFieldName() const;
00989
00990 virtual bool SetFieldByName(field_t name, const void *data);
00991
00992
00993 void set_name(const SFString& name) { f_name = name; }
00994 SFString& get_name() const { return const_cast<SFString&>(f_name); }
00995 void set_reference(const SFString& reference) { f_reference = reference; }
00996 SFString& get_reference() const { return const_cast<SFString&>(f_reference); }
00997
00998 protected:
00999 SFString f_name;
01000 SFString f_reference;
01001 };
01002 typedef pointer::SmartPointer<X3DMetadataObject> X3DMetadataObjectPtr;
01003
01004
01005
01006
01007
01008
01009
01010 class X3DPrototypeInstance : public X3DChildNode
01011 {
01012 public:
01013 X3DPrototypeInstance();
01014 virtual ~X3DPrototypeInstance();
01015
01016 virtual bool IsNodeType(field_t type) const;
01017 virtual field_t GetNodeType(int idx = 0) const;
01018 virtual int GetTypeCount() const;
01019 virtual const char * GetNodeName() const;
01020
01021 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01022 virtual bool FieldHasDefaultValue(field_t name) const;
01023 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01024 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01025 virtual int GetFieldCount() const;
01026 virtual field_t GetDefaultContainerField() const;
01027
01028 virtual const char * GetDefaultContainerFieldName() const;
01029
01030 virtual bool SetFieldByName(field_t name, const void *data);
01031 };
01032 typedef pointer::SmartPointer<X3DPrototypeInstance> X3DPrototypeInstancePtr;
01033
01034
01035
01036
01037
01038
01039
01040 class ProtoInstance : public X3DPrototypeInstance
01041 {
01042 public:
01043 ProtoInstance();
01044 virtual ~ProtoInstance();
01045
01046 virtual bool IsNodeType(field_t type) const;
01047 virtual field_t GetNodeType(int idx = 0) const;
01048 virtual int GetTypeCount() const;
01049 virtual const char * GetNodeName() const;
01050
01051 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01052 virtual bool FieldHasDefaultValue(field_t name) const;
01053 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01054 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01055 virtual int GetFieldCount() const;
01056 virtual field_t GetDefaultContainerField() const;
01057
01058 virtual const char * GetDefaultContainerFieldName() const;
01059
01060 virtual bool SetFieldByName(field_t name, const void *data);
01061
01062
01063 void set_name(const SFString& name) { f_name = name; }
01064 SFString& get_name() const { return const_cast<SFString&>(f_name); }
01065
01066 protected:
01067 SFString f_name;
01068 };
01069 typedef pointer::SmartPointer<ProtoInstance> ProtoInstancePtr;
01070
01071
01072
01073
01074
01075
01076
01077 class X3DSensorNode
01078 {
01079 public:
01080 X3DSensorNode();
01081 virtual ~X3DSensorNode();
01082
01083 virtual bool IsNodeType(field_t type) const;
01084 virtual field_t GetNodeType(int idx = 0) const;
01085 virtual int GetTypeCount() const;
01086 virtual const char * GetNodeName() const;
01087
01088 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01089 virtual bool FieldHasDefaultValue(field_t name) const;
01090 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01091 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01092 virtual int GetFieldCount() const;
01093 virtual field_t GetDefaultContainerField() const;
01094
01095 virtual const char * GetDefaultContainerFieldName() const;
01096
01097 virtual bool SetFieldByName(field_t name, const void *data);
01098
01099
01100 void set_enabled(const SFBool& enabled) { f_enabled = enabled; }
01101 SFBool get_enabled() const { return f_enabled; }
01102 void set_isActive(const SFBool& isActive) { f_isActive = isActive; }
01103 SFBool get_isActive() const { return f_isActive; }
01104
01105 protected:
01106 SFBool f_enabled;
01107 SFBool f_isActive;
01108 };
01109 typedef pointer::SmartPointer<X3DSensorNode> X3DSensorNodePtr;
01110
01111
01112
01113
01114
01115
01116
01117 class MetadataDouble : public X3DNode, public X3DMetadataObject
01118 {
01119 public:
01120 MetadataDouble();
01121 virtual ~MetadataDouble();
01122
01123 virtual bool IsNodeType(field_t type) const;
01124 virtual field_t GetNodeType(int idx = 0) const;
01125 virtual int GetTypeCount() const;
01126 virtual const char * GetNodeName() const;
01127
01128 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01129 virtual bool FieldHasDefaultValue(field_t name) const;
01130 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01131 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01132 virtual int GetFieldCount() const;
01133 virtual field_t GetDefaultContainerField() const;
01134
01135 virtual const char * GetDefaultContainerFieldName() const;
01136
01137 virtual bool SetFieldByName(field_t name, const void *data);
01138
01139
01140 void set_value(const MFDouble& value) { f_value = value; }
01141 MFDouble& get_value() const { return const_cast<MFDouble&>(f_value); }
01142
01143 protected:
01144 MFDouble f_value;
01145 };
01146 typedef pointer::SmartPointer<MetadataDouble> MetadataDoublePtr;
01147
01148
01149
01150
01151
01152
01153
01154 class MetadataFloat : public X3DNode, public X3DMetadataObject
01155 {
01156 public:
01157 MetadataFloat();
01158 virtual ~MetadataFloat();
01159
01160 virtual bool IsNodeType(field_t type) const;
01161 virtual field_t GetNodeType(int idx = 0) const;
01162 virtual int GetTypeCount() const;
01163 virtual const char * GetNodeName() const;
01164
01165 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01166 virtual bool FieldHasDefaultValue(field_t name) const;
01167 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01168 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01169 virtual int GetFieldCount() const;
01170 virtual field_t GetDefaultContainerField() const;
01171
01172 virtual const char * GetDefaultContainerFieldName() const;
01173
01174 virtual bool SetFieldByName(field_t name, const void *data);
01175
01176
01177 void set_value(const MFFloat& value) { f_value = value; }
01178 MFFloat& get_value() const { return const_cast<MFFloat&>(f_value); }
01179
01180 protected:
01181 MFFloat f_value;
01182 };
01183 typedef pointer::SmartPointer<MetadataFloat> MetadataFloatPtr;
01184
01185
01186
01187
01188
01189
01190
01191 class MetadataInteger : public X3DNode, public X3DMetadataObject
01192 {
01193 public:
01194 MetadataInteger();
01195 virtual ~MetadataInteger();
01196
01197 virtual bool IsNodeType(field_t type) const;
01198 virtual field_t GetNodeType(int idx = 0) const;
01199 virtual int GetTypeCount() const;
01200 virtual const char * GetNodeName() const;
01201
01202 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01203 virtual bool FieldHasDefaultValue(field_t name) const;
01204 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01205 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01206 virtual int GetFieldCount() const;
01207 virtual field_t GetDefaultContainerField() const;
01208
01209 virtual const char * GetDefaultContainerFieldName() const;
01210
01211 virtual bool SetFieldByName(field_t name, const void *data);
01212
01213
01214 void set_value(const MFInt32& value) { f_value = value; }
01215 MFInt32& get_value() const { return const_cast<MFInt32&>(f_value); }
01216
01217 protected:
01218 MFInt32 f_value;
01219 };
01220 typedef pointer::SmartPointer<MetadataInteger> MetadataIntegerPtr;
01221
01222
01223
01224
01225
01226
01227
01228 class MetadataSet : public X3DNode, public X3DMetadataObject
01229 {
01230 public:
01231 MetadataSet();
01232 virtual ~MetadataSet();
01233
01234 virtual bool IsNodeType(field_t type) const;
01235 virtual field_t GetNodeType(int idx = 0) const;
01236 virtual int GetTypeCount() const;
01237 virtual const char * GetNodeName() const;
01238
01239 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01240 virtual bool FieldHasDefaultValue(field_t name) const;
01241 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01242 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01243 virtual int GetFieldCount() const;
01244 virtual field_t GetDefaultContainerField() const;
01245
01246 virtual const char * GetDefaultContainerFieldName() const;
01247
01248 virtual bool SetFieldByName(field_t name, const void *data);
01249
01250
01251 void set_value(const MFNode& value) { f_value = value; }
01252 MFNode& get_value() const { return const_cast<MFNode&>(f_value); }
01253
01254 protected:
01255 MFNode f_value;
01256 };
01257 typedef pointer::SmartPointer<MetadataSet> MetadataSetPtr;
01258
01259
01260
01261
01262
01263
01264
01265 class MetadataString : public X3DNode, public X3DMetadataObject
01266 {
01267 public:
01268 MetadataString();
01269 virtual ~MetadataString();
01270
01271 virtual bool IsNodeType(field_t type) const;
01272 virtual field_t GetNodeType(int idx = 0) const;
01273 virtual int GetTypeCount() const;
01274 virtual const char * GetNodeName() const;
01275
01276 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01277 virtual bool FieldHasDefaultValue(field_t name) const;
01278 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01279 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01280 virtual int GetFieldCount() const;
01281 virtual field_t GetDefaultContainerField() const;
01282
01283 virtual const char * GetDefaultContainerFieldName() const;
01284
01285 virtual bool SetFieldByName(field_t name, const void *data);
01286
01287
01288 void set_value(const MFString& value) { f_value = value; }
01289 MFString& get_value() const { return const_cast<MFString&>(f_value); }
01290
01291 protected:
01292 MFString f_value;
01293 };
01294 typedef pointer::SmartPointer<MetadataString> MetadataStringPtr;
01295
01296
01297
01298
01299
01300
01301
01302 class X3D : public X3DNode
01303 {
01304 public:
01305 X3D();
01306 virtual ~X3D();
01307
01308 virtual bool IsNodeType(field_t type) const;
01309 virtual field_t GetNodeType(int idx = 0) const;
01310 virtual int GetTypeCount() const;
01311 virtual const char * GetNodeName() const;
01312
01313 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01314 virtual bool FieldHasDefaultValue(field_t name) const;
01315 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01316 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01317 virtual int GetFieldCount() const;
01318 virtual field_t GetDefaultContainerField() const;
01319
01320 virtual const char * GetDefaultContainerFieldName() const;
01321
01322 virtual bool SetFieldByName(field_t name, const void *data);
01323
01324
01325 void set_version(const SFString& version) { f_version = version; }
01326 SFString& get_version() const { return const_cast<SFString&>(f_version); }
01327 void set_profile(const SFString& profile) { f_profile = profile; }
01328 SFString& get_profile() const { return const_cast<SFString&>(f_profile); }
01329 void set_head(SFNode *head) { f_head = head; }
01330 SFNodePtr get_head() const { return f_head; }
01331 void set_scene(SFNode *scene) { f_scene = scene; }
01332 SFNodePtr get_scene() const { return f_scene; }
01333
01334 protected:
01335 SFString f_version;
01336 SFString f_profile;
01337 SFNodePtr f_head;
01338 SFNodePtr f_scene;
01339 };
01340 typedef pointer::SmartPointer<X3D> X3DPtr;
01341
01342
01343
01344
01345
01346
01347
01348 class Scene : public X3DNode
01349 {
01350 public:
01351 Scene();
01352 virtual ~Scene();
01353
01354 virtual bool IsNodeType(field_t type) const;
01355 virtual field_t GetNodeType(int idx = 0) const;
01356 virtual int GetTypeCount() const;
01357 virtual const char * GetNodeName() const;
01358
01359 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01360 virtual bool FieldHasDefaultValue(field_t name) const;
01361 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01362 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01363 virtual int GetFieldCount() const;
01364 virtual field_t GetDefaultContainerField() const;
01365
01366 virtual const char * GetDefaultContainerFieldName() const;
01367
01368 virtual bool SetFieldByName(field_t name, const void *data);
01369
01370
01371 void set_children(const MFNode& children) { f_children = children; }
01372 MFNode& get_children() const { return const_cast<MFNode&>(f_children); }
01373
01374 protected:
01375 MFNode f_children;
01376 };
01377 typedef pointer::SmartPointer<Scene> ScenePtr;
01378
01379
01380
01381
01382
01383
01384
01385 class head : public X3DNode
01386 {
01387 public:
01388 head();
01389 virtual ~head();
01390
01391 virtual bool IsNodeType(field_t type) const;
01392 virtual field_t GetNodeType(int idx = 0) const;
01393 virtual int GetTypeCount() const;
01394 virtual const char * GetNodeName() const;
01395
01396 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01397 virtual bool FieldHasDefaultValue(field_t name) const;
01398 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01399 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01400 virtual int GetFieldCount() const;
01401 virtual field_t GetDefaultContainerField() const;
01402
01403 virtual const char * GetDefaultContainerFieldName() const;
01404
01405 virtual bool SetFieldByName(field_t name, const void *data);
01406
01407
01408 void set_component(const MFNode& component) { f_component = component; }
01409 MFNode& get_component() const { return const_cast<MFNode&>(f_component); }
01410 void set_meta(const MFNode& meta) { f_meta = meta; }
01411 MFNode& get_meta() const { return const_cast<MFNode&>(f_meta); }
01412
01413 protected:
01414 MFNode f_component;
01415 MFNode f_meta;
01416 };
01417 typedef pointer::SmartPointer<head> headPtr;
01418
01419
01420
01421
01422
01423
01424
01425 class component : public X3DNode
01426 {
01427 public:
01428 component();
01429 virtual ~component();
01430
01431 virtual bool IsNodeType(field_t type) const;
01432 virtual field_t GetNodeType(int idx = 0) const;
01433 virtual int GetTypeCount() const;
01434 virtual const char * GetNodeName() const;
01435
01436 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01437 virtual bool FieldHasDefaultValue(field_t name) const;
01438 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01439 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01440 virtual int GetFieldCount() const;
01441 virtual field_t GetDefaultContainerField() const;
01442
01443 virtual const char * GetDefaultContainerFieldName() const;
01444
01445 virtual bool SetFieldByName(field_t name, const void *data);
01446
01447
01448 void set_name(const SFInt32& name) { f_name = name; }
01449 SFInt32 get_name() const { return f_name; }
01450 void set_level(const SFInt32& level) { f_level = level; }
01451 SFInt32 get_level() const { return f_level; }
01452
01453 protected:
01454 SFInt32 f_name;
01455 mutable SFInt32 f_name__enum_last;
01456 mutable SFString f_name__enum_name;
01457 SFInt32 f_level;
01458 };
01459 typedef pointer::SmartPointer<component> componentPtr;
01460
01461
01462
01463
01464
01465
01466
01467 class meta : public X3DNode
01468 {
01469 public:
01470 meta();
01471 virtual ~meta();
01472
01473 virtual bool IsNodeType(field_t type) const;
01474 virtual field_t GetNodeType(int idx = 0) const;
01475 virtual int GetTypeCount() const;
01476 virtual const char * GetNodeName() const;
01477
01478 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01479 virtual bool FieldHasDefaultValue(field_t name) const;
01480 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01481 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01482 virtual int GetFieldCount() const;
01483 virtual field_t GetDefaultContainerField() const;
01484
01485 virtual const char * GetDefaultContainerFieldName() const;
01486
01487 virtual bool SetFieldByName(field_t name, const void *data);
01488
01489
01490 void set_http_equiv(const SFString& http_equiv) { f_http_equiv = http_equiv; }
01491 SFString& get_http_equiv() const { return const_cast<SFString&>(f_http_equiv); }
01492 void set_name(const SFString& name) { f_name = name; }
01493 SFString& get_name() const { return const_cast<SFString&>(f_name); }
01494 void set_content(const SFString& content) { f_content = content; }
01495 SFString& get_content() const { return const_cast<SFString&>(f_content); }
01496 void set_scheme(const SFString& scheme) { f_scheme = scheme; }
01497 SFString& get_scheme() const { return const_cast<SFString&>(f_scheme); }
01498 void set_lang(const SFString& lang) { f_lang = lang; }
01499 SFString& get_lang() const { return const_cast<SFString&>(f_lang); }
01500 void set_dir(const SFInt32& dir) { f_dir = dir; }
01501 SFInt32 get_dir() const { return f_dir; }
01502
01503 protected:
01504 SFString f_http_equiv;
01505 SFString f_name;
01506 SFString f_content;
01507 SFString f_scheme;
01508 SFString f_lang;
01509 SFInt32 f_dir;
01510 mutable SFInt32 f_dir__enum_last;
01511 mutable SFString f_dir__enum_name;
01512 };
01513 typedef pointer::SmartPointer<meta> metaPtr;
01514
01515
01516
01517
01518
01519
01520
01521 class connect : public X3DChildNode
01522 {
01523 public:
01524 connect();
01525 virtual ~connect();
01526
01527 virtual bool IsNodeType(field_t type) const;
01528 virtual field_t GetNodeType(int idx = 0) const;
01529 virtual int GetTypeCount() const;
01530 virtual const char * GetNodeName() const;
01531
01532 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01533 virtual bool FieldHasDefaultValue(field_t name) const;
01534 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01535 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01536 virtual int GetFieldCount() const;
01537 virtual field_t GetDefaultContainerField() const;
01538
01539 virtual const char * GetDefaultContainerFieldName() const;
01540
01541 virtual bool SetFieldByName(field_t name, const void *data);
01542
01543
01544 void set_nodeField(const SFString& nodeField) { f_nodeField = nodeField; }
01545 SFString& get_nodeField() const { return const_cast<SFString&>(f_nodeField); }
01546 void set_protoField(const SFString& protoField) { f_protoField = protoField; }
01547 SFString& get_protoField() const { return const_cast<SFString&>(f_protoField); }
01548
01549 protected:
01550 SFString f_nodeField;
01551 SFString f_protoField;
01552 };
01553 typedef pointer::SmartPointer<connect> connectPtr;
01554
01555
01556
01557
01558
01559
01560
01561 class IMPORT : public X3DChildNode
01562 {
01563 public:
01564 IMPORT();
01565 virtual ~IMPORT();
01566
01567 virtual bool IsNodeType(field_t type) const;
01568 virtual field_t GetNodeType(int idx = 0) const;
01569 virtual int GetTypeCount() const;
01570 virtual const char * GetNodeName() const;
01571
01572 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01573 virtual bool FieldHasDefaultValue(field_t name) const;
01574 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01575 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01576 virtual int GetFieldCount() const;
01577 virtual field_t GetDefaultContainerField() const;
01578
01579 virtual const char * GetDefaultContainerFieldName() const;
01580
01581 virtual bool SetFieldByName(field_t name, const void *data);
01582
01583
01584 void set_AS(const SFString& AS) { f_AS = AS; }
01585 SFString& get_AS() const { return const_cast<SFString&>(f_AS); }
01586 void set_InlineDEF(const SFString& InlineDEF) { f_InlineDEF = InlineDEF; }
01587 SFString& get_InlineDEF() const { return const_cast<SFString&>(f_InlineDEF); }
01588 void set_importedDEF(const SFString& importedDEF) { f_importedDEF = importedDEF; }
01589 SFString& get_importedDEF() const { return const_cast<SFString&>(f_importedDEF); }
01590
01591 protected:
01592 SFString f_AS;
01593 SFString f_InlineDEF;
01594 SFString f_importedDEF;
01595 };
01596 typedef pointer::SmartPointer<IMPORT> IMPORTPtr;
01597
01598
01599
01600
01601
01602
01603
01604 class EXPORT : public X3DChildNode
01605 {
01606 public:
01607 EXPORT();
01608 virtual ~EXPORT();
01609
01610 virtual bool IsNodeType(field_t type) const;
01611 virtual field_t GetNodeType(int idx = 0) const;
01612 virtual int GetTypeCount() const;
01613 virtual const char * GetNodeName() const;
01614
01615 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01616 virtual bool FieldHasDefaultValue(field_t name) const;
01617 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01618 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01619 virtual int GetFieldCount() const;
01620 virtual field_t GetDefaultContainerField() const;
01621
01622 virtual const char * GetDefaultContainerFieldName() const;
01623
01624 virtual bool SetFieldByName(field_t name, const void *data);
01625
01626
01627 void set_AS(const SFString& AS) { f_AS = AS; }
01628 SFString& get_AS() const { return const_cast<SFString&>(f_AS); }
01629 void set_localDEF(const SFString& localDEF) { f_localDEF = localDEF; }
01630 SFString& get_localDEF() const { return const_cast<SFString&>(f_localDEF); }
01631
01632 protected:
01633 SFString f_AS;
01634 SFString f_localDEF;
01635 };
01636 typedef pointer::SmartPointer<EXPORT> EXPORTPtr;
01637
01638
01639
01640
01641
01642
01643
01644 class ExternProtoDeclare : public X3DNode
01645 {
01646 public:
01647 ExternProtoDeclare();
01648 virtual ~ExternProtoDeclare();
01649
01650 virtual bool IsNodeType(field_t type) const;
01651 virtual field_t GetNodeType(int idx = 0) const;
01652 virtual int GetTypeCount() const;
01653 virtual const char * GetNodeName() const;
01654
01655 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01656 virtual bool FieldHasDefaultValue(field_t name) const;
01657 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01658 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01659 virtual int GetFieldCount() const;
01660 virtual field_t GetDefaultContainerField() const;
01661
01662 virtual const char * GetDefaultContainerFieldName() const;
01663
01664 virtual bool SetFieldByName(field_t name, const void *data);
01665
01666
01667 void set_appinfo(const SFString& appinfo) { f_appinfo = appinfo; }
01668 SFString& get_appinfo() const { return const_cast<SFString&>(f_appinfo); }
01669 void set_documentation(const SFString& documentation) { f_documentation = documentation; }
01670 SFString& get_documentation() const { return const_cast<SFString&>(f_documentation); }
01671 void set_name(const SFString& name) { f_name = name; }
01672 SFString& get_name() const { return const_cast<SFString&>(f_name); }
01673 void set_url(const SFString& url) { f_url = url; }
01674 SFString& get_url() const { return const_cast<SFString&>(f_url); }
01675 void set_fields(const MFNode& fields) { f_fields = fields; }
01676 MFNode& get_fields() const { return const_cast<MFNode&>(f_fields); }
01677
01678 protected:
01679 SFString f_appinfo;
01680 SFString f_documentation;
01681 SFString f_name;
01682 SFString f_url;
01683 MFNode f_fields;
01684 };
01685 typedef pointer::SmartPointer<ExternProtoDeclare> ExternProtoDeclarePtr;
01686
01687
01688
01689
01690
01691
01692
01693 class field : public X3DNode
01694 {
01695 public:
01696 field();
01697 virtual ~field();
01698
01699 virtual bool IsNodeType(field_t type) const;
01700 virtual field_t GetNodeType(int idx = 0) const;
01701 virtual int GetTypeCount() const;
01702 virtual const char * GetNodeName() const;
01703
01704 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01705 virtual bool FieldHasDefaultValue(field_t name) const;
01706 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01707 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01708 virtual int GetFieldCount() const;
01709 virtual field_t GetDefaultContainerField() const;
01710
01711 virtual const char * GetDefaultContainerFieldName() const;
01712
01713 virtual bool SetFieldByName(field_t name, const void *data);
01714
01715
01716 void set_accessType(const SFInt32& accessType) { f_accessType = accessType; }
01717 SFInt32 get_accessType() const { return f_accessType; }
01718 void set_appinfo(const SFString& appinfo) { f_appinfo = appinfo; }
01719 SFString& get_appinfo() const { return const_cast<SFString&>(f_appinfo); }
01720 void set_documentation(const SFString& documentation) { f_documentation = documentation; }
01721 SFString& get_documentation() const { return const_cast<SFString&>(f_documentation); }
01722 void set_name(const SFString& name) { f_name = name; }
01723 SFString& get_name() const { return const_cast<SFString&>(f_name); }
01724 void set_type(const SFInt32& type) { f_type = type; }
01725 SFInt32 get_type() const { return f_type; }
01726 void set_value(const SFString& value) { f_value = value; }
01727 SFString& get_value() const { return const_cast<SFString&>(f_value); }
01728 void set_children(const MFNode& children) { f_children = children; }
01729 MFNode& get_children() const { return const_cast<MFNode&>(f_children); }
01730
01731 protected:
01732 SFInt32 f_accessType;
01733 mutable SFInt32 f_accessType__enum_last;
01734 mutable SFString f_accessType__enum_name;
01735 SFString f_appinfo;
01736 SFString f_documentation;
01737 SFString f_name;
01738 SFInt32 f_type;
01739 mutable SFInt32 f_type__enum_last;
01740 mutable SFString f_type__enum_name;
01741 SFString f_value;
01742 MFNode f_children;
01743 };
01744 typedef pointer::SmartPointer<field> fieldPtr;
01745
01746
01747
01748
01749
01750
01751
01752 class fieldValue : public X3DNode
01753 {
01754 public:
01755 fieldValue();
01756 virtual ~fieldValue();
01757
01758 virtual bool IsNodeType(field_t type) const;
01759 virtual field_t GetNodeType(int idx = 0) const;
01760 virtual int GetTypeCount() const;
01761 virtual const char * GetNodeName() const;
01762
01763 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01764 virtual bool FieldHasDefaultValue(field_t name) const;
01765 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01766 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01767 virtual int GetFieldCount() const;
01768 virtual field_t GetDefaultContainerField() const;
01769
01770 virtual const char * GetDefaultContainerFieldName() const;
01771
01772 virtual bool SetFieldByName(field_t name, const void *data);
01773
01774
01775 void set_name(const SFString& name) { f_name = name; }
01776 SFString& get_name() const { return const_cast<SFString&>(f_name); }
01777 void set_value(const SFString& value) { f_value = value; }
01778 SFString& get_value() const { return const_cast<SFString&>(f_value); }
01779
01780 protected:
01781 SFString f_name;
01782 SFString f_value;
01783 };
01784 typedef pointer::SmartPointer<fieldValue> fieldValuePtr;
01785
01786
01787
01788
01789
01790
01791
01792 class IS : public X3DNode
01793 {
01794 public:
01795 IS();
01796 virtual ~IS();
01797
01798 virtual bool IsNodeType(field_t type) const;
01799 virtual field_t GetNodeType(int idx = 0) const;
01800 virtual int GetTypeCount() const;
01801 virtual const char * GetNodeName() const;
01802
01803 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01804 virtual bool FieldHasDefaultValue(field_t name) const;
01805 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01806 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01807 virtual int GetFieldCount() const;
01808 virtual field_t GetDefaultContainerField() const;
01809
01810 virtual const char * GetDefaultContainerFieldName() const;
01811
01812 virtual bool SetFieldByName(field_t name, const void *data);
01813
01814
01815 void set_children(const MFNode& children) { f_children = children; }
01816 MFNode& get_children() const { return const_cast<MFNode&>(f_children); }
01817
01818 protected:
01819 MFNode f_children;
01820 };
01821 typedef pointer::SmartPointer<IS> ISPtr;
01822
01823
01824
01825
01826
01827
01828
01829 class ProtoBody : public X3DNode
01830 {
01831 public:
01832 ProtoBody();
01833 virtual ~ProtoBody();
01834
01835 virtual bool IsNodeType(field_t type) const;
01836 virtual field_t GetNodeType(int idx = 0) const;
01837 virtual int GetTypeCount() const;
01838 virtual const char * GetNodeName() const;
01839
01840 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01841 virtual bool FieldHasDefaultValue(field_t name) const;
01842 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01843 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01844 virtual int GetFieldCount() const;
01845 virtual field_t GetDefaultContainerField() const;
01846
01847 virtual const char * GetDefaultContainerFieldName() const;
01848
01849 virtual bool SetFieldByName(field_t name, const void *data);
01850
01851
01852 void set_children(const MFNode& children) { f_children = children; }
01853 MFNode& get_children() const { return const_cast<MFNode&>(f_children); }
01854
01855 protected:
01856 MFNode f_children;
01857 };
01858 typedef pointer::SmartPointer<ProtoBody> ProtoBodyPtr;
01859
01860
01861
01862
01863
01864
01865
01866 class ProtoDeclare : public X3DNode
01867 {
01868 public:
01869 ProtoDeclare();
01870 virtual ~ProtoDeclare();
01871
01872 virtual bool IsNodeType(field_t type) const;
01873 virtual field_t GetNodeType(int idx = 0) const;
01874 virtual int GetTypeCount() const;
01875 virtual const char * GetNodeName() const;
01876
01877 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01878 virtual bool FieldHasDefaultValue(field_t name) const;
01879 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01880 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01881 virtual int GetFieldCount() const;
01882 virtual field_t GetDefaultContainerField() const;
01883
01884 virtual const char * GetDefaultContainerFieldName() const;
01885
01886 virtual bool SetFieldByName(field_t name, const void *data);
01887
01888
01889 void set_children(const MFNode& children) { f_children = children; }
01890 MFNode& get_children() const { return const_cast<MFNode&>(f_children); }
01891 void set_name(const SFString& name) { f_name = name; }
01892 SFString& get_name() const { return const_cast<SFString&>(f_name); }
01893
01894 protected:
01895 MFNode f_children;
01896 SFString f_name;
01897 };
01898 typedef pointer::SmartPointer<ProtoDeclare> ProtoDeclarePtr;
01899
01900
01901
01902
01903
01904
01905
01906 class ProtoInterface : public X3DChildNode
01907 {
01908 public:
01909 ProtoInterface();
01910 virtual ~ProtoInterface();
01911
01912 virtual bool IsNodeType(field_t type) const;
01913 virtual field_t GetNodeType(int idx = 0) const;
01914 virtual int GetTypeCount() const;
01915 virtual const char * GetNodeName() const;
01916
01917 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01918 virtual bool FieldHasDefaultValue(field_t name) const;
01919 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01920 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01921 virtual int GetFieldCount() const;
01922 virtual field_t GetDefaultContainerField() const;
01923
01924 virtual const char * GetDefaultContainerFieldName() const;
01925
01926 virtual bool SetFieldByName(field_t name, const void *data);
01927
01928
01929 void set_class(const SFString& _class) { f_class = _class; }
01930 SFString& get_class() const { return const_cast<SFString&>(f_class); }
01931 void set_name(const SFString& name) { f_name = name; }
01932 SFString& get_name() const { return const_cast<SFString&>(f_name); }
01933 void set_fields(const MFNode& fields) { f_fields = fields; }
01934 MFNode& get_fields() const { return const_cast<MFNode&>(f_fields); }
01935
01936 protected:
01937 SFString f_class;
01938 SFString f_name;
01939 MFNode f_fields;
01940 };
01941 typedef pointer::SmartPointer<ProtoInterface> ProtoInterfacePtr;
01942
01943
01944
01945
01946
01947
01948
01949 class ROUTE : public X3DChildNode
01950 {
01951 public:
01952 ROUTE();
01953 virtual ~ROUTE();
01954
01955 virtual bool IsNodeType(field_t type) const;
01956 virtual field_t GetNodeType(int idx = 0) const;
01957 virtual int GetTypeCount() const;
01958 virtual const char * GetNodeName() const;
01959
01960 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
01961 virtual bool FieldHasDefaultValue(field_t name) const;
01962 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
01963 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
01964 virtual int GetFieldCount() const;
01965 virtual field_t GetDefaultContainerField() const;
01966
01967 virtual const char * GetDefaultContainerFieldName() const;
01968
01969 virtual bool SetFieldByName(field_t name, const void *data);
01970
01971
01972 void set_fromField(const SFString& fromField) { f_fromField = fromField; }
01973 SFString& get_fromField() const { return const_cast<SFString&>(f_fromField); }
01974 void set_fromNode(const SFString& fromNode) { f_fromNode = fromNode; }
01975 SFString& get_fromNode() const { return const_cast<SFString&>(f_fromNode); }
01976 void set_toField(const SFString& toField) { f_toField = toField; }
01977 SFString& get_toField() const { return const_cast<SFString&>(f_toField); }
01978 void set_toNode(const SFString& toNode) { f_toNode = toNode; }
01979 SFString& get_toNode() const { return const_cast<SFString&>(f_toNode); }
01980
01981 protected:
01982 SFString f_fromField;
01983 SFString f_fromNode;
01984 SFString f_toField;
01985 SFString f_toNode;
01986 };
01987 typedef pointer::SmartPointer<ROUTE> ROUTEPtr;
01988
01989
01990
01991
01992
01993
01994
01995 class X3DBoundedObject
01996 {
01997 public:
01998 X3DBoundedObject();
01999 virtual ~X3DBoundedObject();
02000
02001 virtual bool IsNodeType(field_t type) const;
02002 virtual field_t GetNodeType(int idx = 0) const;
02003 virtual int GetTypeCount() const;
02004 virtual const char * GetNodeName() const;
02005
02006 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02007 virtual bool FieldHasDefaultValue(field_t name) const;
02008 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02009 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02010 virtual int GetFieldCount() const;
02011 virtual field_t GetDefaultContainerField() const;
02012
02013 virtual const char * GetDefaultContainerFieldName() const;
02014
02015 virtual bool SetFieldByName(field_t name, const void *data);
02016
02017
02018 void set_bboxCenter(const SFVec3f& bboxCenter) { f_bboxCenter = bboxCenter; }
02019 SFVec3f& get_bboxCenter() const { return const_cast<SFVec3f&>(f_bboxCenter); }
02020 void set_bboxSize(const SFVec3f& bboxSize) { f_bboxSize = bboxSize; }
02021 SFVec3f& get_bboxSize() const { return const_cast<SFVec3f&>(f_bboxSize); }
02022
02023 protected:
02024 SFVec3f f_bboxCenter;
02025 SFVec3f f_bboxSize;
02026 };
02027 typedef pointer::SmartPointer<X3DBoundedObject> X3DBoundedObjectPtr;
02028
02029
02030
02031
02032
02033
02034
02035 class X3DGroupingNode : public X3DChildNode, public X3DBoundedObject
02036 {
02037 public:
02038 X3DGroupingNode();
02039 virtual ~X3DGroupingNode();
02040
02041 virtual bool IsNodeType(field_t type) const;
02042 virtual field_t GetNodeType(int idx = 0) const;
02043 virtual int GetTypeCount() const;
02044 virtual const char * GetNodeName() const;
02045
02046 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02047 virtual bool FieldHasDefaultValue(field_t name) const;
02048 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02049 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02050 virtual int GetFieldCount() const;
02051 virtual field_t GetDefaultContainerField() const;
02052
02053 virtual const char * GetDefaultContainerFieldName() const;
02054
02055 virtual bool SetFieldByName(field_t name, const void *data);
02056
02057
02058 void set_addChildren(const MFNode& addChildren) { f_addChildren = addChildren; }
02059 MFNode& get_addChildren() const { return const_cast<MFNode&>(f_addChildren); }
02060 void set_removeChildren(const MFNode& removeChildren) { f_removeChildren = removeChildren; }
02061 MFNode& get_removeChildren() const { return const_cast<MFNode&>(f_removeChildren); }
02062 void set_children(const MFNode& children) { f_children = children; }
02063 MFNode& get_children() const { return const_cast<MFNode&>(f_children); }
02064
02065 protected:
02066 MFNode f_addChildren;
02067 MFNode f_removeChildren;
02068 MFNode f_children;
02069 };
02070 typedef pointer::SmartPointer<X3DGroupingNode> X3DGroupingNodePtr;
02071
02072
02073
02074
02075
02076
02077
02078 class EspduTransform : public X3DGroupingNode
02079 {
02080 public:
02081 EspduTransform();
02082 virtual ~EspduTransform();
02083
02084 virtual bool IsNodeType(field_t type) const;
02085 virtual field_t GetNodeType(int idx = 0) const;
02086 virtual int GetTypeCount() const;
02087 virtual const char * GetNodeName() const;
02088
02089 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02090 virtual bool FieldHasDefaultValue(field_t name) const;
02091 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02092 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02093 virtual int GetFieldCount() const;
02094 virtual field_t GetDefaultContainerField() const;
02095
02096 virtual const char * GetDefaultContainerFieldName() const;
02097
02098 virtual bool SetFieldByName(field_t name, const void *data);
02099
02100
02101 void set_set_articulationParameterValue0(const SFFloat& set_articulationParameterValue0) { f_set_articulationParameterValue0 = set_articulationParameterValue0; }
02102 SFFloat get_set_articulationParameterValue0() const { return f_set_articulationParameterValue0; }
02103 void set_set_articulationParameterValue1(const SFFloat& set_articulationParameterValue1) { f_set_articulationParameterValue1 = set_articulationParameterValue1; }
02104 SFFloat get_set_articulationParameterValue1() const { return f_set_articulationParameterValue1; }
02105 void set_set_articulationParameterValue2(const SFFloat& set_articulationParameterValue2) { f_set_articulationParameterValue2 = set_articulationParameterValue2; }
02106 SFFloat get_set_articulationParameterValue2() const { return f_set_articulationParameterValue2; }
02107 void set_set_articulationParameterValue3(const SFFloat& set_articulationParameterValue3) { f_set_articulationParameterValue3 = set_articulationParameterValue3; }
02108 SFFloat get_set_articulationParameterValue3() const { return f_set_articulationParameterValue3; }
02109 void set_set_articulationParameterValue4(const SFFloat& set_articulationParameterValue4) { f_set_articulationParameterValue4 = set_articulationParameterValue4; }
02110 SFFloat get_set_articulationParameterValue4() const { return f_set_articulationParameterValue4; }
02111 void set_set_articulationParameterValue5(const SFFloat& set_articulationParameterValue5) { f_set_articulationParameterValue5 = set_articulationParameterValue5; }
02112 SFFloat get_set_articulationParameterValue5() const { return f_set_articulationParameterValue5; }
02113 void set_set_articulationParameterValue6(const SFFloat& set_articulationParameterValue6) { f_set_articulationParameterValue6 = set_articulationParameterValue6; }
02114 SFFloat get_set_articulationParameterValue6() const { return f_set_articulationParameterValue6; }
02115 void set_set_articulationParameterValue7(const SFFloat& set_articulationParameterValue7) { f_set_articulationParameterValue7 = set_articulationParameterValue7; }
02116 SFFloat get_set_articulationParameterValue7() const { return f_set_articulationParameterValue7; }
02117 void set_address(const SFString& address) { f_address = address; }
02118 SFString& get_address() const { return const_cast<SFString&>(f_address); }
02119 void set_applicationID(const SFInt32& applicationID) { f_applicationID = applicationID; }
02120 SFInt32 get_applicationID() const { return f_applicationID; }
02121 void set_articulationParameterCount(const SFInt32& articulationParameterCount) { f_articulationParameterCount = articulationParameterCount; }
02122 SFInt32 get_articulationParameterCount() const { return f_articulationParameterCount; }
02123 void set_articulationParameterDesignatorArray(const MFInt32& articulationParameterDesignatorArray) { f_articulationParameterDesignatorArray = articulationParameterDesignatorArray; }
02124 MFInt32& get_articulationParameterDesignatorArray() const { return const_cast<MFInt32&>(f_articulationParameterDesignatorArray); }
02125 void set_articulationParameterChangeIndicatorArray(const MFInt32& articulationParameterChangeIndicatorArray) { f_articulationParameterChangeIndicatorArray = articulationParameterChangeIndicatorArray; }
02126 MFInt32& get_articulationParameterChangeIndicatorArray() const { return const_cast<MFInt32&>(f_articulationParameterChangeIndicatorArray); }
02127 void set_articulationParameterIdPartAttachedToArray(const MFInt32& articulationParameterIdPartAttachedToArray) { f_articulationParameterIdPartAttachedToArray = articulationParameterIdPartAttachedToArray; }
02128 MFInt32& get_articulationParameterIdPartAttachedToArray() const { return const_cast<MFInt32&>(f_articulationParameterIdPartAttachedToArray); }
02129 void set_articulationParameterTypeArray(const MFInt32& articulationParameterTypeArray) { f_articulationParameterTypeArray = articulationParameterTypeArray; }
02130 MFInt32& get_articulationParameterTypeArray() const { return const_cast<MFInt32&>(f_articulationParameterTypeArray); }
02131 void set_articulationParameterArray(const MFFloat& articulationParameterArray) { f_articulationParameterArray = articulationParameterArray; }
02132 MFFloat& get_articulationParameterArray() const { return const_cast<MFFloat&>(f_articulationParameterArray); }
02133 void set_center(const SFVec3f& center) { f_center = center; }
02134 SFVec3f& get_center() const { return const_cast<SFVec3f&>(f_center); }
02135 void set_collisionType(const SFInt32& collisionType) { f_collisionType = collisionType; }
02136 SFInt32 get_collisionType() const { return f_collisionType; }
02137 void set_deadReckoning(const SFInt32& deadReckoning) { f_deadReckoning = deadReckoning; }
02138 SFInt32 get_deadReckoning() const { return f_deadReckoning; }
02139 void set_detonationLocation(const SFVec3f& detonationLocation) { f_detonationLocation = detonationLocation; }
02140 SFVec3f& get_detonationLocation() const { return const_cast<SFVec3f&>(f_detonationLocation); }
02141 void set_detonationRelativeLocation(const SFVec3f& detonationRelativeLocation) { f_detonationRelativeLocation = detonationRelativeLocation; }
02142 SFVec3f& get_detonationRelativeLocation() const { return const_cast<SFVec3f&>(f_detonationRelativeLocation); }
02143 void set_detonationResult(const SFInt32& detonationResult) { f_detonationResult = detonationResult; }
02144 SFInt32 get_detonationResult() const { return f_detonationResult; }
02145 void set_entityCategory(const SFInt32& entityCategory) { f_entityCategory = entityCategory; }
02146 SFInt32 get_entityCategory() const { return f_entityCategory; }
02147 void set_entityCountry(const SFInt32& entityCountry) { f_entityCountry = entityCountry; }
02148 SFInt32 get_entityCountry() const { return f_entityCountry; }
02149 void set_entityDomain(const SFInt32& entityDomain) { f_entityDomain = entityDomain; }
02150 SFInt32 get_entityDomain() const { return f_entityDomain; }
02151 void set_entityExtra(const SFInt32& entityExtra) { f_entityExtra = entityExtra; }
02152 SFInt32 get_entityExtra() const { return f_entityExtra; }
02153 void set_entityID(const SFInt32& entityID) { f_entityID = entityID; }
02154 SFInt32 get_entityID() const { return f_entityID; }
02155 void set_entityKind(const SFInt32& entityKind) { f_entityKind = entityKind; }
02156 SFInt32 get_entityKind() const { return f_entityKind; }
02157 void set_entitySpecific(const SFInt32& entitySpecific) { f_entitySpecific = entitySpecific; }
02158 SFInt32 get_entitySpecific() const { return f_entitySpecific; }
02159 void set_entitySubCategory(const SFInt32& entitySubCategory) { f_entitySubCategory = entitySubCategory; }
02160 SFInt32 get_entitySubCategory() const { return f_entitySubCategory; }
02161 void set_eventApplicationID(const SFInt32& eventApplicationID) { f_eventApplicationID = eventApplicationID; }
02162 SFInt32 get_eventApplicationID() const { return f_eventApplicationID; }
02163 void set_eventEntityID(const SFInt32& eventEntityID) { f_eventEntityID = eventEntityID; }
02164 SFInt32 get_eventEntityID() const { return f_eventEntityID; }
02165 void set_eventNumber(const SFInt32& eventNumber) { f_eventNumber = eventNumber; }
02166 SFInt32 get_eventNumber() const { return f_eventNumber; }
02167 void set_eventSiteID(const SFInt32& eventSiteID) { f_eventSiteID = eventSiteID; }
02168 SFInt32 get_eventSiteID() const { return f_eventSiteID; }
02169 void set_fired1(const SFBool& fired1) { f_fired1 = fired1; }
02170 SFBool get_fired1() const { return f_fired1; }
02171 void set_fired2(const SFBool& fired2) { f_fired2 = fired2; }
02172 SFBool get_fired2() const { return f_fired2; }
02173 void set_fireMissionIndex(const SFInt32& fireMissionIndex) { f_fireMissionIndex = fireMissionIndex; }
02174 SFInt32 get_fireMissionIndex() const { return f_fireMissionIndex; }
02175 void set_firingRange(const SFFloat& firingRange) { f_firingRange = firingRange; }
02176 SFFloat get_firingRange() const { return f_firingRange; }
02177 void set_firingRate(const SFInt32& firingRate) { f_firingRate = firingRate; }
02178 SFInt32 get_firingRate() const { return f_firingRate; }
02179 void set_forceID(const SFInt32& forceID) { f_forceID = forceID; }
02180 SFInt32 get_forceID() const { return f_forceID; }
02181 void set_fuse(const SFInt32& fuse) { f_fuse = fuse; }
02182 SFInt32 get_fuse() const { return f_fuse; }
02183 void set_linearVelocity(const SFVec3f& linearVelocity) { f_linearVelocity = linearVelocity; }
02184 SFVec3f& get_linearVelocity() const { return const_cast<SFVec3f&>(f_linearVelocity); }
02185 void set_linearAcceleration(const SFVec3f& linearAcceleration) { f_linearAcceleration = linearAcceleration; }
02186 SFVec3f& get_linearAcceleration() const { return const_cast<SFVec3f&>(f_linearAcceleration); }
02187 void set_marking(const SFString& marking) { f_marking = marking; }
02188 SFString& get_marking() const { return const_cast<SFString&>(f_marking); }
02189 void set_multicastRelayHost(const SFString& multicastRelayHost) { f_multicastRelayHost = multicastRelayHost; }
02190 SFString& get_multicastRelayHost() const { return const_cast<SFString&>(f_multicastRelayHost); }
02191 void set_multicastRelayPort(const SFInt32& multicastRelayPort) { f_multicastRelayPort = multicastRelayPort; }
02192 SFInt32 get_multicastRelayPort() const { return f_multicastRelayPort; }
02193 void set_munitionApplicationID(const SFInt32& munitionApplicationID) { f_munitionApplicationID = munitionApplicationID; }
02194 SFInt32 get_munitionApplicationID() const { return f_munitionApplicationID; }
02195 void set_munitionEndPoint(const SFVec3f& munitionEndPoint) { f_munitionEndPoint = munitionEndPoint; }
02196 SFVec3f& get_munitionEndPoint() const { return const_cast<SFVec3f&>(f_munitionEndPoint); }
02197 void set_munitionEntityID(const SFInt32& munitionEntityID) { f_munitionEntityID = munitionEntityID; }
02198 SFInt32 get_munitionEntityID() const { return f_munitionEntityID; }
02199 void set_munitionQuantity(const SFInt32& munitionQuantity) { f_munitionQuantity = munitionQuantity; }
02200 SFInt32 get_munitionQuantity() const { return f_munitionQuantity; }
02201 void set_munitionSiteID(const SFInt32& munitionSiteID) { f_munitionSiteID = munitionSiteID; }
02202 SFInt32 get_munitionSiteID() const { return f_munitionSiteID; }
02203 void set_munitionStartPoint(const SFVec3f& munitionStartPoint) { f_munitionStartPoint = munitionStartPoint; }
02204 SFVec3f& get_munitionStartPoint() const { return const_cast<SFVec3f&>(f_munitionStartPoint); }
02205 void set_networkMode(const SFInt32& networkMode) { f_networkMode = networkMode; }
02206 SFInt32 get_networkMode() const { return f_networkMode; }
02207 void set_port(const SFInt32& port) { f_port = port; }
02208 SFInt32 get_port() const { return f_port; }
02209 void set_readInterval(const SFTime& readInterval) { f_readInterval = readInterval; }
02210 SFTime get_readInterval() const { return f_readInterval; }
02211 void set_rotation(const SFRotation& rotation) { f_rotation = rotation; }
02212 SFRotation& get_rotation() const { return const_cast<SFRotation&>(f_rotation); }
02213 void set_scale(const SFVec3f& scale) { f_scale = scale; }
02214 SFVec3f& get_scale() const { return const_cast<SFVec3f&>(f_scale); }
02215 void set_scaleOrientation(const SFRotation& scaleOrientation) { f_scaleOrientation = scaleOrientation; }
02216 SFRotation& get_scaleOrientation() const { return const_cast<SFRotation&>(f_scaleOrientation); }
02217 void set_siteID(const SFInt32& siteID) { f_siteID = siteID; }
02218 SFInt32 get_siteID() const { return f_siteID; }
02219 void set_translation(const SFVec3f& translation) { f_translation = translation; }
02220 SFVec3f& get_translation() const { return const_cast<SFVec3f&>(f_translation); }
02221 void set_warhead(const SFInt32& warhead) { f_warhead = warhead; }
02222 SFInt32 get_warhead() const { return f_warhead; }
02223 void set_writeInterval(const SFTime& writeInterval) { f_writeInterval = writeInterval; }
02224 SFTime get_writeInterval() const { return f_writeInterval; }
02225 void set_articulationParameterValue0_changed(const SFFloat& articulationParameterValue0_changed) { f_articulationParameterValue0_changed = articulationParameterValue0_changed; }
02226 SFFloat get_articulationParameterValue0_changed() const { return f_articulationParameterValue0_changed; }
02227 void set_articulationParameterValue1_changed(const SFFloat& articulationParameterValue1_changed) { f_articulationParameterValue1_changed = articulationParameterValue1_changed; }
02228 SFFloat get_articulationParameterValue1_changed() const { return f_articulationParameterValue1_changed; }
02229 void set_articulationParameterValue2_changed(const SFFloat& articulationParameterValue2_changed) { f_articulationParameterValue2_changed = articulationParameterValue2_changed; }
02230 SFFloat get_articulationParameterValue2_changed() const { return f_articulationParameterValue2_changed; }
02231 void set_articulationParameterValue3_changed(const SFFloat& articulationParameterValue3_changed) { f_articulationParameterValue3_changed = articulationParameterValue3_changed; }
02232 SFFloat get_articulationParameterValue3_changed() const { return f_articulationParameterValue3_changed; }
02233 void set_articulationParameterValue4_changed(const SFFloat& articulationParameterValue4_changed) { f_articulationParameterValue4_changed = articulationParameterValue4_changed; }
02234 SFFloat get_articulationParameterValue4_changed() const { return f_articulationParameterValue4_changed; }
02235 void set_articulationParameterValue5_changed(const SFFloat& articulationParameterValue5_changed) { f_articulationParameterValue5_changed = articulationParameterValue5_changed; }
02236 SFFloat get_articulationParameterValue5_changed() const { return f_articulationParameterValue5_changed; }
02237 void set_articulationParameterValue6_changed(const SFFloat& articulationParameterValue6_changed) { f_articulationParameterValue6_changed = articulationParameterValue6_changed; }
02238 SFFloat get_articulationParameterValue6_changed() const { return f_articulationParameterValue6_changed; }
02239 void set_articulationParameterValue7_changed(const SFFloat& articulationParameterValue7_changed) { f_articulationParameterValue7_changed = articulationParameterValue7_changed; }
02240 SFFloat get_articulationParameterValue7_changed() const { return f_articulationParameterValue7_changed; }
02241 void set_collideTime(const SFTime& collideTime) { f_collideTime = collideTime; }
02242 SFTime get_collideTime() const { return f_collideTime; }
02243 void set_detonateTime(const SFTime& detonateTime) { f_detonateTime = detonateTime; }
02244 SFTime get_detonateTime() const { return f_detonateTime; }
02245 void set_firedTime(const SFTime& firedTime) { f_firedTime = firedTime; }
02246 SFTime get_firedTime() const { return f_firedTime; }
02247 void set_isActive(const SFBool& isActive) { f_isActive = isActive; }
02248 SFBool get_isActive() const { return f_isActive; }
02249 void set_isCollided(const SFBool& isCollided) { f_isCollided = isCollided; }
02250 SFBool get_isCollided() const { return f_isCollided; }
02251 void set_isDetonated(const SFBool& isDetonated) { f_isDetonated = isDetonated; }
02252 SFBool get_isDetonated() const { return f_isDetonated; }
02253 void set_isNetworkReader(const SFBool& isNetworkReader) { f_isNetworkReader = isNetworkReader; }
02254 SFBool get_isNetworkReader() const { return f_isNetworkReader; }
02255 void set_isNetworkWriter(const SFBool& isNetworkWriter) { f_isNetworkWriter = isNetworkWriter; }
02256 SFBool get_isNetworkWriter() const { return f_isNetworkWriter; }
02257 void set_isRtpHeaderHeard(const SFBool& isRtpHeaderHeard) { f_isRtpHeaderHeard = isRtpHeaderHeard; }
02258 SFBool get_isRtpHeaderHeard() const { return f_isRtpHeaderHeard; }
02259 void set_isStandAlone(const SFBool& isStandAlone) { f_isStandAlone = isStandAlone; }
02260 SFBool get_isStandAlone() const { return f_isStandAlone; }
02261 void set_timestamp(const SFTime& timestamp) { f_timestamp = timestamp; }
02262 SFTime get_timestamp() const { return f_timestamp; }
02263 void set_rtpHeaderExpected(const SFBool& rtpHeaderExpected) { f_rtpHeaderExpected = rtpHeaderExpected; }
02264 SFBool get_rtpHeaderExpected() const { return f_rtpHeaderExpected; }
02265
02266 protected:
02267 SFFloat f_set_articulationParameterValue0;
02268 SFFloat f_set_articulationParameterValue1;
02269 SFFloat f_set_articulationParameterValue2;
02270 SFFloat f_set_articulationParameterValue3;
02271 SFFloat f_set_articulationParameterValue4;
02272 SFFloat f_set_articulationParameterValue5;
02273 SFFloat f_set_articulationParameterValue6;
02274 SFFloat f_set_articulationParameterValue7;
02275 SFString f_address;
02276 SFInt32 f_applicationID;
02277 SFInt32 f_articulationParameterCount;
02278 MFInt32 f_articulationParameterDesignatorArray;
02279 MFInt32 f_articulationParameterChangeIndicatorArray;
02280 MFInt32 f_articulationParameterIdPartAttachedToArray;
02281 MFInt32 f_articulationParameterTypeArray;
02282 MFFloat f_articulationParameterArray;
02283 SFVec3f f_center;
02284 SFInt32 f_collisionType;
02285 SFInt32 f_deadReckoning;
02286 SFVec3f f_detonationLocation;
02287 SFVec3f f_detonationRelativeLocation;
02288 SFInt32 f_detonationResult;
02289 SFInt32 f_entityCategory;
02290 SFInt32 f_entityCountry;
02291 SFInt32 f_entityDomain;
02292 SFInt32 f_entityExtra;
02293 SFInt32 f_entityID;
02294 SFInt32 f_entityKind;
02295 SFInt32 f_entitySpecific;
02296 SFInt32 f_entitySubCategory;
02297 SFInt32 f_eventApplicationID;
02298 SFInt32 f_eventEntityID;
02299 SFInt32 f_eventNumber;
02300 SFInt32 f_eventSiteID;
02301 SFBool f_fired1;
02302 SFBool f_fired2;
02303 SFInt32 f_fireMissionIndex;
02304 SFFloat f_firingRange;
02305 SFInt32 f_firingRate;
02306 SFInt32 f_forceID;
02307 SFInt32 f_fuse;
02308 SFVec3f f_linearVelocity;
02309 SFVec3f f_linearAcceleration;
02310 SFString f_marking;
02311 SFString f_multicastRelayHost;
02312 SFInt32 f_multicastRelayPort;
02313 SFInt32 f_munitionApplicationID;
02314 SFVec3f f_munitionEndPoint;
02315 SFInt32 f_munitionEntityID;
02316 SFInt32 f_munitionQuantity;
02317 SFInt32 f_munitionSiteID;
02318 SFVec3f f_munitionStartPoint;
02319 SFInt32 f_networkMode;
02320 mutable SFInt32 f_networkMode__enum_last;
02321 mutable SFString f_networkMode__enum_name;
02322 SFInt32 f_port;
02323 SFTime f_readInterval;
02324 SFRotation f_rotation;
02325 SFVec3f f_scale;
02326 SFRotation f_scaleOrientation;
02327 SFInt32 f_siteID;
02328 SFVec3f f_translation;
02329 SFInt32 f_warhead;
02330 SFTime f_writeInterval;
02331 SFFloat f_articulationParameterValue0_changed;
02332 SFFloat f_articulationParameterValue1_changed;
02333 SFFloat f_articulationParameterValue2_changed;
02334 SFFloat f_articulationParameterValue3_changed;
02335 SFFloat f_articulationParameterValue4_changed;
02336 SFFloat f_articulationParameterValue5_changed;
02337 SFFloat f_articulationParameterValue6_changed;
02338 SFFloat f_articulationParameterValue7_changed;
02339 SFTime f_collideTime;
02340 SFTime f_detonateTime;
02341 SFTime f_firedTime;
02342 SFBool f_isActive;
02343 SFBool f_isCollided;
02344 SFBool f_isDetonated;
02345 SFBool f_isNetworkReader;
02346 SFBool f_isNetworkWriter;
02347 SFBool f_isRtpHeaderHeard;
02348 SFBool f_isStandAlone;
02349 SFTime f_timestamp;
02350 SFBool f_rtpHeaderExpected;
02351 };
02352 typedef pointer::SmartPointer<EspduTransform> EspduTransformPtr;
02353
02354
02355
02356
02357
02358
02359
02360 class ReceiverPdu : public X3DChildNode, public X3DBoundedObject
02361 {
02362 public:
02363 ReceiverPdu();
02364 virtual ~ReceiverPdu();
02365
02366 virtual bool IsNodeType(field_t type) const;
02367 virtual field_t GetNodeType(int idx = 0) const;
02368 virtual int GetTypeCount() const;
02369 virtual const char * GetNodeName() const;
02370
02371 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02372 virtual bool FieldHasDefaultValue(field_t name) const;
02373 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02374 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02375 virtual int GetFieldCount() const;
02376 virtual field_t GetDefaultContainerField() const;
02377
02378 virtual const char * GetDefaultContainerFieldName() const;
02379
02380 virtual bool SetFieldByName(field_t name, const void *data);
02381
02382
02383 void set_address(const SFString& address) { f_address = address; }
02384 SFString& get_address() const { return const_cast<SFString&>(f_address); }
02385 void set_applicationID(const SFInt32& applicationID) { f_applicationID = applicationID; }
02386 SFInt32 get_applicationID() const { return f_applicationID; }
02387 void set_entityID(const SFInt32& entityID) { f_entityID = entityID; }
02388 SFInt32 get_entityID() const { return f_entityID; }
02389 void set_multicastRelayHost(const SFString& multicastRelayHost) { f_multicastRelayHost = multicastRelayHost; }
02390 SFString& get_multicastRelayHost() const { return const_cast<SFString&>(f_multicastRelayHost); }
02391 void set_multicastRelayPort(const SFInt32& multicastRelayPort) { f_multicastRelayPort = multicastRelayPort; }
02392 SFInt32 get_multicastRelayPort() const { return f_multicastRelayPort; }
02393 void set_networkMode(const SFInt32& networkMode) { f_networkMode = networkMode; }
02394 SFInt32 get_networkMode() const { return f_networkMode; }
02395 void set_port(const SFInt32& port) { f_port = port; }
02396 SFInt32 get_port() const { return f_port; }
02397 void set_radioID(const SFInt32& radioID) { f_radioID = radioID; }
02398 SFInt32 get_radioID() const { return f_radioID; }
02399 void set_readInterval(const SFFloat& readInterval) { f_readInterval = readInterval; }
02400 SFFloat get_readInterval() const { return f_readInterval; }
02401 void set_receivedPower(const SFFloat& receivedPower) { f_receivedPower = receivedPower; }
02402 SFFloat get_receivedPower() const { return f_receivedPower; }
02403 void set_receiverState(const SFInt32& receiverState) { f_receiverState = receiverState; }
02404 SFInt32 get_receiverState() const { return f_receiverState; }
02405 void set_rtpHeaderExpected(const SFBool& rtpHeaderExpected) { f_rtpHeaderExpected = rtpHeaderExpected; }
02406 SFBool get_rtpHeaderExpected() const { return f_rtpHeaderExpected; }
02407 void set_siteID(const SFInt32& siteID) { f_siteID = siteID; }
02408 SFInt32 get_siteID() const { return f_siteID; }
02409 void set_transmitterApplicationID(const SFInt32& transmitterApplicationID) { f_transmitterApplicationID = transmitterApplicationID; }
02410 SFInt32 get_transmitterApplicationID() const { return f_transmitterApplicationID; }
02411 void set_transmitterEntityID(const SFInt32& transmitterEntityID) { f_transmitterEntityID = transmitterEntityID; }
02412 SFInt32 get_transmitterEntityID() const { return f_transmitterEntityID; }
02413 void set_transmitterRadioID(const SFInt32& transmitterRadioID) { f_transmitterRadioID = transmitterRadioID; }
02414 SFInt32 get_transmitterRadioID() const { return f_transmitterRadioID; }
02415 void set_transmitterSiteID(const SFInt32& transmitterSiteID) { f_transmitterSiteID = transmitterSiteID; }
02416 SFInt32 get_transmitterSiteID() const { return f_transmitterSiteID; }
02417 void set_whichGeometry(const SFInt32& whichGeometry) { f_whichGeometry = whichGeometry; }
02418 SFInt32 get_whichGeometry() const { return f_whichGeometry; }
02419 void set_writeInterval(const SFFloat& writeInterval) { f_writeInterval = writeInterval; }
02420 SFFloat get_writeInterval() const { return f_writeInterval; }
02421 void set_isActive(const SFBool& isActive) { f_isActive = isActive; }
02422 SFBool get_isActive() const { return f_isActive; }
02423 void set_isNetworkReader(const SFBool& isNetworkReader) { f_isNetworkReader = isNetworkReader; }
02424 SFBool get_isNetworkReader() const { return f_isNetworkReader; }
02425 void set_isNetworkWriter(const SFBool& isNetworkWriter) { f_isNetworkWriter = isNetworkWriter; }
02426 SFBool get_isNetworkWriter() const { return f_isNetworkWriter; }
02427 void set_isRtpHeaderHeard(const SFBool& isRtpHeaderHeard) { f_isRtpHeaderHeard = isRtpHeaderHeard; }
02428 SFBool get_isRtpHeaderHeard() const { return f_isRtpHeaderHeard; }
02429 void set_isStandAlone(const SFBool& isStandAlone) { f_isStandAlone = isStandAlone; }
02430 SFBool get_isStandAlone() const { return f_isStandAlone; }
02431 void set_timestamp(const SFTime& timestamp) { f_timestamp = timestamp; }
02432 SFTime get_timestamp() const { return f_timestamp; }
02433
02434 protected:
02435 SFString f_address;
02436 SFInt32 f_applicationID;
02437 SFInt32 f_entityID;
02438 SFString f_multicastRelayHost;
02439 SFInt32 f_multicastRelayPort;
02440 SFInt32 f_networkMode;
02441 mutable SFInt32 f_networkMode__enum_last;
02442 mutable SFString f_networkMode__enum_name;
02443 SFInt32 f_port;
02444 SFInt32 f_radioID;
02445 SFFloat f_readInterval;
02446 SFFloat f_receivedPower;
02447 SFInt32 f_receiverState;
02448 SFBool f_rtpHeaderExpected;
02449 SFInt32 f_siteID;
02450 SFInt32 f_transmitterApplicationID;
02451 SFInt32 f_transmitterEntityID;
02452 SFInt32 f_transmitterRadioID;
02453 SFInt32 f_transmitterSiteID;
02454 SFInt32 f_whichGeometry;
02455 SFFloat f_writeInterval;
02456 SFBool f_isActive;
02457 SFBool f_isNetworkReader;
02458 SFBool f_isNetworkWriter;
02459 SFBool f_isRtpHeaderHeard;
02460 SFBool f_isStandAlone;
02461 SFTime f_timestamp;
02462 };
02463 typedef pointer::SmartPointer<ReceiverPdu> ReceiverPduPtr;
02464
02465
02466
02467
02468
02469
02470
02471 class SignalPdu : public X3DChildNode, public X3DBoundedObject
02472 {
02473 public:
02474 SignalPdu();
02475 virtual ~SignalPdu();
02476
02477 virtual bool IsNodeType(field_t type) const;
02478 virtual field_t GetNodeType(int idx = 0) const;
02479 virtual int GetTypeCount() const;
02480 virtual const char * GetNodeName() const;
02481
02482 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02483 virtual bool FieldHasDefaultValue(field_t name) const;
02484 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02485 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02486 virtual int GetFieldCount() const;
02487 virtual field_t GetDefaultContainerField() const;
02488
02489 virtual const char * GetDefaultContainerFieldName() const;
02490
02491 virtual bool SetFieldByName(field_t name, const void *data);
02492
02493
02494 void set_address(const SFString& address) { f_address = address; }
02495 SFString& get_address() const { return const_cast<SFString&>(f_address); }
02496 void set_applicationID(const SFInt32& applicationID) { f_applicationID = applicationID; }
02497 SFInt32 get_applicationID() const { return f_applicationID; }
02498 void set_data(const MFInt32& data) { f_data = data; }
02499 MFInt32& get_data() const { return const_cast<MFInt32&>(f_data); }
02500 void set_dataLength(const SFInt32& dataLength) { f_dataLength = dataLength; }
02501 SFInt32 get_dataLength() const { return f_dataLength; }
02502 void set_encodingScheme(const SFInt32& encodingScheme) { f_encodingScheme = encodingScheme; }
02503 SFInt32 get_encodingScheme() const { return f_encodingScheme; }
02504 void set_entityID(const SFInt32& entityID) { f_entityID = entityID; }
02505 SFInt32 get_entityID() const { return f_entityID; }
02506 void set_multicastRelayHost(const SFString& multicastRelayHost) { f_multicastRelayHost = multicastRelayHost; }
02507 SFString& get_multicastRelayHost() const { return const_cast<SFString&>(f_multicastRelayHost); }
02508 void set_multicastRelayPort(const SFInt32& multicastRelayPort) { f_multicastRelayPort = multicastRelayPort; }
02509 SFInt32 get_multicastRelayPort() const { return f_multicastRelayPort; }
02510 void set_networkMode(const SFInt32& networkMode) { f_networkMode = networkMode; }
02511 SFInt32 get_networkMode() const { return f_networkMode; }
02512 void set_port(const SFInt32& port) { f_port = port; }
02513 SFInt32 get_port() const { return f_port; }
02514 void set_radioID(const SFInt32& radioID) { f_radioID = radioID; }
02515 SFInt32 get_radioID() const { return f_radioID; }
02516 void set_readInterval(const SFFloat& readInterval) { f_readInterval = readInterval; }
02517 SFFloat get_readInterval() const { return f_readInterval; }
02518 void set_rtpHeaderExpected(const SFBool& rtpHeaderExpected) { f_rtpHeaderExpected = rtpHeaderExpected; }
02519 SFBool get_rtpHeaderExpected() const { return f_rtpHeaderExpected; }
02520 void set_sampleRate(const SFInt32& sampleRate) { f_sampleRate = sampleRate; }
02521 SFInt32 get_sampleRate() const { return f_sampleRate; }
02522 void set_samples(const SFInt32& samples) { f_samples = samples; }
02523 SFInt32 get_samples() const { return f_samples; }
02524 void set_siteID(const SFInt32& siteID) { f_siteID = siteID; }
02525 SFInt32 get_siteID() const { return f_siteID; }
02526 void set_tdlType(const SFInt32& tdlType) { f_tdlType = tdlType; }
02527 SFInt32 get_tdlType() const { return f_tdlType; }
02528 void set_whichGeometry(const SFInt32& whichGeometry) { f_whichGeometry = whichGeometry; }
02529 SFInt32 get_whichGeometry() const { return f_whichGeometry; }
02530 void set_writeInterval(const SFFloat& writeInterval) { f_writeInterval = writeInterval; }
02531 SFFloat get_writeInterval() const { return f_writeInterval; }
02532 void set_isActive(const SFBool& isActive) { f_isActive = isActive; }
02533 SFBool get_isActive() const { return f_isActive; }
02534 void set_isNetworkReader(const SFBool& isNetworkReader) { f_isNetworkReader = isNetworkReader; }
02535 SFBool get_isNetworkReader() const { return f_isNetworkReader; }
02536 void set_isNetworkWriter(const SFBool& isNetworkWriter) { f_isNetworkWriter = isNetworkWriter; }
02537 SFBool get_isNetworkWriter() const { return f_isNetworkWriter; }
02538 void set_isRtpHeaderHeard(const SFBool& isRtpHeaderHeard) { f_isRtpHeaderHeard = isRtpHeaderHeard; }
02539 SFBool get_isRtpHeaderHeard() const { return f_isRtpHeaderHeard; }
02540 void set_isStandAlone(const SFBool& isStandAlone) { f_isStandAlone = isStandAlone; }
02541 SFBool get_isStandAlone() const { return f_isStandAlone; }
02542 void set_timestamp(const SFTime& timestamp) { f_timestamp = timestamp; }
02543 SFTime get_timestamp() const { return f_timestamp; }
02544
02545 protected:
02546 SFString f_address;
02547 SFInt32 f_applicationID;
02548 MFInt32 f_data;
02549 SFInt32 f_dataLength;
02550 SFInt32 f_encodingScheme;
02551 SFInt32 f_entityID;
02552 SFString f_multicastRelayHost;
02553 SFInt32 f_multicastRelayPort;
02554 SFInt32 f_networkMode;
02555 mutable SFInt32 f_networkMode__enum_last;
02556 mutable SFString f_networkMode__enum_name;
02557 SFInt32 f_port;
02558 SFInt32 f_radioID;
02559 SFFloat f_readInterval;
02560 SFBool f_rtpHeaderExpected;
02561 SFInt32 f_sampleRate;
02562 SFInt32 f_samples;
02563 SFInt32 f_siteID;
02564 SFInt32 f_tdlType;
02565 SFInt32 f_whichGeometry;
02566 SFFloat f_writeInterval;
02567 SFBool f_isActive;
02568 SFBool f_isNetworkReader;
02569 SFBool f_isNetworkWriter;
02570 SFBool f_isRtpHeaderHeard;
02571 SFBool f_isStandAlone;
02572 SFTime f_timestamp;
02573 };
02574 typedef pointer::SmartPointer<SignalPdu> SignalPduPtr;
02575
02576
02577
02578
02579
02580
02581
02582 class TransmitterPdu : public X3DChildNode, public X3DBoundedObject
02583 {
02584 public:
02585 TransmitterPdu();
02586 virtual ~TransmitterPdu();
02587
02588 virtual bool IsNodeType(field_t type) const;
02589 virtual field_t GetNodeType(int idx = 0) const;
02590 virtual int GetTypeCount() const;
02591 virtual const char * GetNodeName() const;
02592
02593 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02594 virtual bool FieldHasDefaultValue(field_t name) const;
02595 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02596 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02597 virtual int GetFieldCount() const;
02598 virtual field_t GetDefaultContainerField() const;
02599
02600 virtual const char * GetDefaultContainerFieldName() const;
02601
02602 virtual bool SetFieldByName(field_t name, const void *data);
02603
02604
02605 void set_address(const SFString& address) { f_address = address; }
02606 SFString& get_address() const { return const_cast<SFString&>(f_address); }
02607 void set_antennaLocation(const SFVec3f& antennaLocation) { f_antennaLocation = antennaLocation; }
02608 SFVec3f& get_antennaLocation() const { return const_cast<SFVec3f&>(f_antennaLocation); }
02609 void set_antennaPatternLength(const SFInt32& antennaPatternLength) { f_antennaPatternLength = antennaPatternLength; }
02610 SFInt32 get_antennaPatternLength() const { return f_antennaPatternLength; }
02611 void set_antennaPatternType(const SFInt32& antennaPatternType) { f_antennaPatternType = antennaPatternType; }
02612 SFInt32 get_antennaPatternType() const { return f_antennaPatternType; }
02613 void set_applicationID(const SFInt32& applicationID) { f_applicationID = applicationID; }
02614 SFInt32 get_applicationID() const { return f_applicationID; }
02615 void set_cryptoKeyID(const SFInt32& cryptoKeyID) { f_cryptoKeyID = cryptoKeyID; }
02616 SFInt32 get_cryptoKeyID() const { return f_cryptoKeyID; }
02617 void set_cryptoSystem(const SFInt32& cryptoSystem) { f_cryptoSystem = cryptoSystem; }
02618 SFInt32 get_cryptoSystem() const { return f_cryptoSystem; }
02619 void set_entityID(const SFInt32& entityID) { f_entityID = entityID; }
02620 SFInt32 get_entityID() const { return f_entityID; }
02621 void set_frequency(const SFInt32& frequency) { f_frequency = frequency; }
02622 SFInt32 get_frequency() const { return f_frequency; }
02623 void set_inputSource(const SFInt32& inputSource) { f_inputSource = inputSource; }
02624 SFInt32 get_inputSource() const { return f_inputSource; }
02625 void set_lengthOfModulationParameters(const SFInt32& lengthOfModulationParameters) { f_lengthOfModulationParameters = lengthOfModulationParameters; }
02626 SFInt32 get_lengthOfModulationParameters() const { return f_lengthOfModulationParameters; }
02627 void set_modulationTypeDetail(const SFInt32& modulationTypeDetail) { f_modulationTypeDetail = modulationTypeDetail; }
02628 SFInt32 get_modulationTypeDetail() const { return f_modulationTypeDetail; }
02629 void set_modulationTypeMajor(const SFInt32& modulationTypeMajor) { f_modulationTypeMajor = modulationTypeMajor; }
02630 SFInt32 get_modulationTypeMajor() const { return f_modulationTypeMajor; }
02631 void set_modulationTypeSpreadSpectrum(const SFInt32& modulationTypeSpreadSpectrum) { f_modulationTypeSpreadSpectrum = modulationTypeSpreadSpectrum; }
02632 SFInt32 get_modulationTypeSpreadSpectrum() const { return f_modulationTypeSpreadSpectrum; }
02633 void set_modulationTypeSystem(const SFInt32& modulationTypeSystem) { f_modulationTypeSystem = modulationTypeSystem; }
02634 SFInt32 get_modulationTypeSystem() const { return f_modulationTypeSystem; }
02635 void set_multicastRelayHost(const SFString& multicastRelayHost) { f_multicastRelayHost = multicastRelayHost; }
02636 SFString& get_multicastRelayHost() const { return const_cast<SFString&>(f_multicastRelayHost); }
02637 void set_multicastRelayPort(const SFInt32& multicastRelayPort) { f_multicastRelayPort = multicastRelayPort; }
02638 SFInt32 get_multicastRelayPort() const { return f_multicastRelayPort; }
02639 void set_networkMode(const SFInt32& networkMode) { f_networkMode = networkMode; }
02640 SFInt32 get_networkMode() const { return f_networkMode; }
02641 void set_port(const SFInt32& port) { f_port = port; }
02642 SFInt32 get_port() const { return f_port; }
02643 void set_power(const SFFloat& power) { f_power = power; }
02644 SFFloat get_power() const { return f_power; }
02645 void set_radioEntityTypeCategory(const SFInt32& radioEntityTypeCategory) { f_radioEntityTypeCategory = radioEntityTypeCategory; }
02646 SFInt32 get_radioEntityTypeCategory() const { return f_radioEntityTypeCategory; }
02647 void set_radioEntityTypeCountry(const SFInt32& radioEntityTypeCountry) { f_radioEntityTypeCountry = radioEntityTypeCountry; }
02648 SFInt32 get_radioEntityTypeCountry() const { return f_radioEntityTypeCountry; }
02649 void set_radioEntityTypeDomain(const SFInt32& radioEntityTypeDomain) { f_radioEntityTypeDomain = radioEntityTypeDomain; }
02650 SFInt32 get_radioEntityTypeDomain() const { return f_radioEntityTypeDomain; }
02651 void set_radioEntityTypeKind(const SFInt32& radioEntityTypeKind) { f_radioEntityTypeKind = radioEntityTypeKind; }
02652 SFInt32 get_radioEntityTypeKind() const { return f_radioEntityTypeKind; }
02653 void set_radioEntityTypeNomenclature(const SFInt32& radioEntityTypeNomenclature) { f_radioEntityTypeNomenclature = radioEntityTypeNomenclature; }
02654 SFInt32 get_radioEntityTypeNomenclature() const { return f_radioEntityTypeNomenclature; }
02655 void set_radioEntityTypeNomenclatureVersion(const SFInt32& radioEntityTypeNomenclatureVersion) { f_radioEntityTypeNomenclatureVersion = radioEntityTypeNomenclatureVersion; }
02656 SFInt32 get_radioEntityTypeNomenclatureVersion() const { return f_radioEntityTypeNomenclatureVersion; }
02657 void set_radioID(const SFInt32& radioID) { f_radioID = radioID; }
02658 SFInt32 get_radioID() const { return f_radioID; }
02659 void set_readInterval(const SFFloat& readInterval) { f_readInterval = readInterval; }
02660 SFFloat get_readInterval() const { return f_readInterval; }
02661 void set_relativeAntennaLocation(const SFVec3f& relativeAntennaLocation) { f_relativeAntennaLocation = relativeAntennaLocation; }
02662 SFVec3f& get_relativeAntennaLocation() const { return const_cast<SFVec3f&>(f_relativeAntennaLocation); }
02663 void set_rtpHeaderExpected(const SFBool& rtpHeaderExpected) { f_rtpHeaderExpected = rtpHeaderExpected; }
02664 SFBool get_rtpHeaderExpected() const { return f_rtpHeaderExpected; }
02665 void set_siteID(const SFInt32& siteID) { f_siteID = siteID; }
02666 SFInt32 get_siteID() const { return f_siteID; }
02667 void set_transmitFrequencyBandwidth(const SFFloat& transmitFrequencyBandwidth) { f_transmitFrequencyBandwidth = transmitFrequencyBandwidth; }
02668 SFFloat get_transmitFrequencyBandwidth() const { return f_transmitFrequencyBandwidth; }
02669 void set_transmitState(const SFInt32& transmitState) { f_transmitState = transmitState; }
02670 SFInt32 get_transmitState() const { return f_transmitState; }
02671 void set_whichGeometry(const SFInt32& whichGeometry) { f_whichGeometry = whichGeometry; }
02672 SFInt32 get_whichGeometry() const { return f_whichGeometry; }
02673 void set_writeInterval(const SFFloat& writeInterval) { f_writeInterval = writeInterval; }
02674 SFFloat get_writeInterval() const { return f_writeInterval; }
02675 void set_isActive(const SFBool& isActive) { f_isActive = isActive; }
02676 SFBool get_isActive() const { return f_isActive; }
02677 void set_isNetworkReader(const SFBool& isNetworkReader) { f_isNetworkReader = isNetworkReader; }
02678 SFBool get_isNetworkReader() const { return f_isNetworkReader; }
02679 void set_isNetworkWriter(const SFBool& isNetworkWriter) { f_isNetworkWriter = isNetworkWriter; }
02680 SFBool get_isNetworkWriter() const { return f_isNetworkWriter; }
02681 void set_isRtpHeaderHeard(const SFBool& isRtpHeaderHeard) { f_isRtpHeaderHeard = isRtpHeaderHeard; }
02682 SFBool get_isRtpHeaderHeard() const { return f_isRtpHeaderHeard; }
02683 void set_isStandAlone(const SFBool& isStandAlone) { f_isStandAlone = isStandAlone; }
02684 SFBool get_isStandAlone() const { return f_isStandAlone; }
02685 void set_timestamp(const SFTime& timestamp) { f_timestamp = timestamp; }
02686 SFTime get_timestamp() const { return f_timestamp; }
02687
02688 protected:
02689 SFString f_address;
02690 SFVec3f f_antennaLocation;
02691 SFInt32 f_antennaPatternLength;
02692 SFInt32 f_antennaPatternType;
02693 SFInt32 f_applicationID;
02694 SFInt32 f_cryptoKeyID;
02695 SFInt32 f_cryptoSystem;
02696 SFInt32 f_entityID;
02697 SFInt32 f_frequency;
02698 SFInt32 f_inputSource;
02699 SFInt32 f_lengthOfModulationParameters;
02700 SFInt32 f_modulationTypeDetail;
02701 SFInt32 f_modulationTypeMajor;
02702 SFInt32 f_modulationTypeSpreadSpectrum;
02703 SFInt32 f_modulationTypeSystem;
02704 SFString f_multicastRelayHost;
02705 SFInt32 f_multicastRelayPort;
02706 SFInt32 f_networkMode;
02707 mutable SFInt32 f_networkMode__enum_last;
02708 mutable SFString f_networkMode__enum_name;
02709 SFInt32 f_port;
02710 SFFloat f_power;
02711 SFInt32 f_radioEntityTypeCategory;
02712 SFInt32 f_radioEntityTypeCountry;
02713 SFInt32 f_radioEntityTypeDomain;
02714 SFInt32 f_radioEntityTypeKind;
02715 SFInt32 f_radioEntityTypeNomenclature;
02716 SFInt32 f_radioEntityTypeNomenclatureVersion;
02717 SFInt32 f_radioID;
02718 SFFloat f_readInterval;
02719 SFVec3f f_relativeAntennaLocation;
02720 SFBool f_rtpHeaderExpected;
02721 SFInt32 f_siteID;
02722 SFFloat f_transmitFrequencyBandwidth;
02723 SFInt32 f_transmitState;
02724 SFInt32 f_whichGeometry;
02725 SFFloat f_writeInterval;
02726 SFBool f_isActive;
02727 SFBool f_isNetworkReader;
02728 SFBool f_isNetworkWriter;
02729 SFBool f_isRtpHeaderHeard;
02730 SFBool f_isStandAlone;
02731 SFTime f_timestamp;
02732 };
02733 typedef pointer::SmartPointer<TransmitterPdu> TransmitterPduPtr;
02734
02735
02736
02737
02738
02739
02740
02741 class X3DBackgroundNode : public X3DBindableNode
02742 {
02743 public:
02744 X3DBackgroundNode();
02745 virtual ~X3DBackgroundNode();
02746
02747 virtual bool IsNodeType(field_t type) const;
02748 virtual field_t GetNodeType(int idx = 0) const;
02749 virtual int GetTypeCount() const;
02750 virtual const char * GetNodeName() const;
02751
02752 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02753 virtual bool FieldHasDefaultValue(field_t name) const;
02754 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02755 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02756 virtual int GetFieldCount() const;
02757 virtual field_t GetDefaultContainerField() const;
02758
02759 virtual const char * GetDefaultContainerFieldName() const;
02760
02761 virtual bool SetFieldByName(field_t name, const void *data);
02762
02763
02764 void set_groundAngle(const MFFloat& groundAngle) { f_groundAngle = groundAngle; }
02765 MFFloat& get_groundAngle() const { return const_cast<MFFloat&>(f_groundAngle); }
02766 void set_groundColor(const MFColor& groundColor) { f_groundColor = groundColor; }
02767 MFColor& get_groundColor() const { return const_cast<MFColor&>(f_groundColor); }
02768 void set_skyAngle(const MFFloat& skyAngle) { f_skyAngle = skyAngle; }
02769 MFFloat& get_skyAngle() const { return const_cast<MFFloat&>(f_skyAngle); }
02770 void set_skyColor(const MFColor& skyColor) { f_skyColor = skyColor; }
02771 MFColor& get_skyColor() const { return const_cast<MFColor&>(f_skyColor); }
02772
02773 protected:
02774 MFFloat f_groundAngle;
02775 MFColor f_groundColor;
02776 MFFloat f_skyAngle;
02777 MFColor f_skyColor;
02778 };
02779 typedef pointer::SmartPointer<X3DBackgroundNode> X3DBackgroundNodePtr;
02780
02781
02782
02783
02784
02785
02786
02787 class Background : public X3DBackgroundNode
02788 {
02789 public:
02790 Background();
02791 virtual ~Background();
02792
02793 virtual bool IsNodeType(field_t type) const;
02794 virtual field_t GetNodeType(int idx = 0) const;
02795 virtual int GetTypeCount() const;
02796 virtual const char * GetNodeName() const;
02797
02798 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02799 virtual bool FieldHasDefaultValue(field_t name) const;
02800 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02801 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02802 virtual int GetFieldCount() const;
02803 virtual field_t GetDefaultContainerField() const;
02804
02805 virtual const char * GetDefaultContainerFieldName() const;
02806
02807 virtual bool SetFieldByName(field_t name, const void *data);
02808
02809
02810 void set_backUrl(const MFString& backUrl) { f_backUrl = backUrl; }
02811 MFString& get_backUrl() const { return const_cast<MFString&>(f_backUrl); }
02812 void set_bottomUrl(const MFString& bottomUrl) { f_bottomUrl = bottomUrl; }
02813 MFString& get_bottomUrl() const { return const_cast<MFString&>(f_bottomUrl); }
02814 void set_frontUrl(const MFString& frontUrl) { f_frontUrl = frontUrl; }
02815 MFString& get_frontUrl() const { return const_cast<MFString&>(f_frontUrl); }
02816 void set_leftUrl(const MFString& leftUrl) { f_leftUrl = leftUrl; }
02817 MFString& get_leftUrl() const { return const_cast<MFString&>(f_leftUrl); }
02818 void set_rightUrl(const MFString& rightUrl) { f_rightUrl = rightUrl; }
02819 MFString& get_rightUrl() const { return const_cast<MFString&>(f_rightUrl); }
02820 void set_topUrl(const MFString& topUrl) { f_topUrl = topUrl; }
02821 MFString& get_topUrl() const { return const_cast<MFString&>(f_topUrl); }
02822
02823 protected:
02824 MFString f_backUrl;
02825 MFString f_bottomUrl;
02826 MFString f_frontUrl;
02827 MFString f_leftUrl;
02828 MFString f_rightUrl;
02829 MFString f_topUrl;
02830 };
02831 typedef pointer::SmartPointer<Background> BackgroundPtr;
02832
02833
02834
02835
02836
02837
02838
02839 class Fog : public X3DBindableNode
02840 {
02841 public:
02842 Fog();
02843 virtual ~Fog();
02844
02845 virtual bool IsNodeType(field_t type) const;
02846 virtual field_t GetNodeType(int idx = 0) const;
02847 virtual int GetTypeCount() const;
02848 virtual const char * GetNodeName() const;
02849
02850 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02851 virtual bool FieldHasDefaultValue(field_t name) const;
02852 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02853 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02854 virtual int GetFieldCount() const;
02855 virtual field_t GetDefaultContainerField() const;
02856
02857 virtual const char * GetDefaultContainerFieldName() const;
02858
02859 virtual bool SetFieldByName(field_t name, const void *data);
02860
02861
02862 void set_color(const SFColor& color) { f_color = color; }
02863 SFColor get_color() const { return f_color; }
02864 void set_fogType(const SFInt32& fogType) { f_fogType = fogType; }
02865 SFInt32 get_fogType() const { return f_fogType; }
02866 void set_visibilityRange(const SFFloat& visibilityRange) { f_visibilityRange = visibilityRange; }
02867 SFFloat get_visibilityRange() const { return f_visibilityRange; }
02868
02869 protected:
02870 SFColor f_color;
02871 SFInt32 f_fogType;
02872 mutable SFInt32 f_fogType__enum_last;
02873 mutable SFString f_fogType__enum_name;
02874 SFFloat f_visibilityRange;
02875 };
02876 typedef pointer::SmartPointer<Fog> FogPtr;
02877
02878
02879
02880
02881
02882
02883
02884 class TextureBackground : public X3DBackgroundNode
02885 {
02886 public:
02887 TextureBackground();
02888 virtual ~TextureBackground();
02889
02890 virtual bool IsNodeType(field_t type) const;
02891 virtual field_t GetNodeType(int idx = 0) const;
02892 virtual int GetTypeCount() const;
02893 virtual const char * GetNodeName() const;
02894
02895 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02896 virtual bool FieldHasDefaultValue(field_t name) const;
02897 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02898 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02899 virtual int GetFieldCount() const;
02900 virtual field_t GetDefaultContainerField() const;
02901
02902 virtual const char * GetDefaultContainerFieldName() const;
02903
02904 virtual bool SetFieldByName(field_t name, const void *data);
02905
02906
02907 void set_backTexture(SFNode *backTexture) { f_backTexture = backTexture; }
02908 SFNodePtr get_backTexture() const { return f_backTexture; }
02909 void set_bottomTexture(SFNode *bottomTexture) { f_bottomTexture = bottomTexture; }
02910 SFNodePtr get_bottomTexture() const { return f_bottomTexture; }
02911 void set_frontTexture(SFNode *frontTexture) { f_frontTexture = frontTexture; }
02912 SFNodePtr get_frontTexture() const { return f_frontTexture; }
02913 void set_leftTexture(SFNode *leftTexture) { f_leftTexture = leftTexture; }
02914 SFNodePtr get_leftTexture() const { return f_leftTexture; }
02915 void set_rightTexture(SFNode *rightTexture) { f_rightTexture = rightTexture; }
02916 SFNodePtr get_rightTexture() const { return f_rightTexture; }
02917 void set_topTexture(SFNode *topTexture) { f_topTexture = topTexture; }
02918 SFNodePtr get_topTexture() const { return f_topTexture; }
02919 void set_transparency(const MFFloat& transparency) { f_transparency = transparency; }
02920 MFFloat& get_transparency() const { return const_cast<MFFloat&>(f_transparency); }
02921
02922 protected:
02923 SFNodePtr f_backTexture;
02924 SFNodePtr f_bottomTexture;
02925 SFNodePtr f_frontTexture;
02926 SFNodePtr f_leftTexture;
02927 SFNodePtr f_rightTexture;
02928 SFNodePtr f_topTexture;
02929 MFFloat f_transparency;
02930 };
02931 typedef pointer::SmartPointer<TextureBackground> TextureBackgroundPtr;
02932
02933
02934
02935
02936
02937
02938
02939 class X3DEnvironmentalSensorNode : public X3DChildNode, public X3DSensorNode
02940 {
02941 public:
02942 X3DEnvironmentalSensorNode();
02943 virtual ~X3DEnvironmentalSensorNode();
02944
02945 virtual bool IsNodeType(field_t type) const;
02946 virtual field_t GetNodeType(int idx = 0) const;
02947 virtual int GetTypeCount() const;
02948 virtual const char * GetNodeName() const;
02949
02950 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02951 virtual bool FieldHasDefaultValue(field_t name) const;
02952 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02953 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
02954 virtual int GetFieldCount() const;
02955 virtual field_t GetDefaultContainerField() const;
02956
02957 virtual const char * GetDefaultContainerFieldName() const;
02958
02959 virtual bool SetFieldByName(field_t name, const void *data);
02960
02961
02962 void set_center(const SFVec3f& center) { f_center = center; }
02963 SFVec3f& get_center() const { return const_cast<SFVec3f&>(f_center); }
02964 void set_size(const SFVec3f& size) { f_size = size; }
02965 SFVec3f& get_size() const { return const_cast<SFVec3f&>(f_size); }
02966 void set_enterTime(const SFTime& enterTime) { f_enterTime = enterTime; }
02967 SFTime get_enterTime() const { return f_enterTime; }
02968 void set_exitTime(const SFTime& exitTime) { f_exitTime = exitTime; }
02969 SFTime get_exitTime() const { return f_exitTime; }
02970
02971 protected:
02972 SFVec3f f_center;
02973 SFVec3f f_size;
02974 SFTime f_enterTime;
02975 SFTime f_exitTime;
02976 };
02977 typedef pointer::SmartPointer<X3DEnvironmentalSensorNode> X3DEnvironmentalSensorNodePtr;
02978
02979
02980
02981
02982
02983
02984
02985 class ProximitySensor : public X3DEnvironmentalSensorNode
02986 {
02987 public:
02988 ProximitySensor();
02989 virtual ~ProximitySensor();
02990
02991 virtual bool IsNodeType(field_t type) const;
02992 virtual field_t GetNodeType(int idx = 0) const;
02993 virtual int GetTypeCount() const;
02994 virtual const char * GetNodeName() const;
02995
02996 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
02997 virtual bool FieldHasDefaultValue(field_t name) const;
02998 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
02999 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03000 virtual int GetFieldCount() const;
03001 virtual field_t GetDefaultContainerField() const;
03002
03003 virtual const char * GetDefaultContainerFieldName() const;
03004
03005 virtual bool SetFieldByName(field_t name, const void *data);
03006
03007
03008 void set_centerOfRotation_changed(const SFVec3f& centerOfRotation_changed) { f_centerOfRotation_changed = centerOfRotation_changed; }
03009 SFVec3f& get_centerOfRotation_changed() const { return const_cast<SFVec3f&>(f_centerOfRotation_changed); }
03010 void set_orientation_changed(const SFRotation& orientation_changed) { f_orientation_changed = orientation_changed; }
03011 SFRotation& get_orientation_changed() const { return const_cast<SFRotation&>(f_orientation_changed); }
03012 void set_position_changed(const SFVec3f& position_changed) { f_position_changed = position_changed; }
03013 SFVec3f& get_position_changed() const { return const_cast<SFVec3f&>(f_position_changed); }
03014
03015 protected:
03016 SFVec3f f_centerOfRotation_changed;
03017 SFRotation f_orientation_changed;
03018 SFVec3f f_position_changed;
03019 };
03020 typedef pointer::SmartPointer<ProximitySensor> ProximitySensorPtr;
03021
03022
03023
03024
03025
03026
03027
03028 class VisibilitySensor : public X3DEnvironmentalSensorNode
03029 {
03030 public:
03031 VisibilitySensor();
03032 virtual ~VisibilitySensor();
03033
03034 virtual bool IsNodeType(field_t type) const;
03035 virtual field_t GetNodeType(int idx = 0) const;
03036 virtual int GetTypeCount() const;
03037 virtual const char * GetNodeName() const;
03038
03039 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03040 virtual bool FieldHasDefaultValue(field_t name) const;
03041 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03042 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03043 virtual int GetFieldCount() const;
03044 virtual field_t GetDefaultContainerField() const;
03045
03046 virtual const char * GetDefaultContainerFieldName() const;
03047
03048 virtual bool SetFieldByName(field_t name, const void *data);
03049 };
03050 typedef pointer::SmartPointer<VisibilitySensor> VisibilitySensorPtr;
03051
03052
03053
03054
03055
03056
03057
03058 class X3DGeometricPropertyNode : public X3DNode
03059 {
03060 public:
03061 X3DGeometricPropertyNode();
03062 virtual ~X3DGeometricPropertyNode();
03063
03064 virtual bool IsNodeType(field_t type) const;
03065 virtual field_t GetNodeType(int idx = 0) const;
03066 virtual int GetTypeCount() const;
03067 virtual const char * GetNodeName() const;
03068
03069 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03070 virtual bool FieldHasDefaultValue(field_t name) const;
03071 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03072 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03073 virtual int GetFieldCount() const;
03074 virtual field_t GetDefaultContainerField() const;
03075
03076 virtual const char * GetDefaultContainerFieldName() const;
03077
03078 virtual bool SetFieldByName(field_t name, const void *data);
03079 };
03080 typedef pointer::SmartPointer<X3DGeometricPropertyNode> X3DGeometricPropertyNodePtr;
03081
03082
03083
03084
03085
03086
03087
03088 class X3DCoordinateNode : public X3DGeometricPropertyNode
03089 {
03090 public:
03091 X3DCoordinateNode();
03092 virtual ~X3DCoordinateNode();
03093
03094 virtual bool IsNodeType(field_t type) const;
03095 virtual field_t GetNodeType(int idx = 0) const;
03096 virtual int GetTypeCount() const;
03097 virtual const char * GetNodeName() const;
03098
03099 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03100 virtual bool FieldHasDefaultValue(field_t name) const;
03101 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03102 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03103 virtual int GetFieldCount() const;
03104 virtual field_t GetDefaultContainerField() const;
03105
03106 virtual const char * GetDefaultContainerFieldName() const;
03107
03108 virtual bool SetFieldByName(field_t name, const void *data);
03109 };
03110 typedef pointer::SmartPointer<X3DCoordinateNode> X3DCoordinateNodePtr;
03111
03112
03113
03114
03115
03116
03117
03118 class GeoCoordinate : public X3DCoordinateNode
03119 {
03120 public:
03121 GeoCoordinate();
03122 virtual ~GeoCoordinate();
03123
03124 virtual bool IsNodeType(field_t type) const;
03125 virtual field_t GetNodeType(int idx = 0) const;
03126 virtual int GetTypeCount() const;
03127 virtual const char * GetNodeName() const;
03128
03129 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03130 virtual bool FieldHasDefaultValue(field_t name) const;
03131 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03132 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03133 virtual int GetFieldCount() const;
03134 virtual field_t GetDefaultContainerField() const;
03135
03136 virtual const char * GetDefaultContainerFieldName() const;
03137
03138 virtual bool SetFieldByName(field_t name, const void *data);
03139
03140
03141 void set_point(const MFVec3d& point) { f_point = point; }
03142 MFVec3d& get_point() const { return const_cast<MFVec3d&>(f_point); }
03143 void set_geoOrigin(SFNode *geoOrigin) { f_geoOrigin = geoOrigin; }
03144 SFNodePtr get_geoOrigin() const { return f_geoOrigin; }
03145 void set_geoSystem(const MFString& geoSystem) { f_geoSystem = geoSystem; }
03146 MFString& get_geoSystem() const { return const_cast<MFString&>(f_geoSystem); }
03147
03148 protected:
03149 MFVec3d f_point;
03150 SFNodePtr f_geoOrigin;
03151 MFString f_geoSystem;
03152 };
03153 typedef pointer::SmartPointer<GeoCoordinate> GeoCoordinatePtr;
03154
03155
03156
03157
03158
03159
03160
03161 class X3DGeometryNode : public X3DChildNode
03162 {
03163 public:
03164 X3DGeometryNode();
03165 virtual ~X3DGeometryNode();
03166
03167 virtual bool IsNodeType(field_t type) const;
03168 virtual field_t GetNodeType(int idx = 0) const;
03169 virtual int GetTypeCount() const;
03170 virtual const char * GetNodeName() const;
03171
03172 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03173 virtual bool FieldHasDefaultValue(field_t name) const;
03174 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03175 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03176 virtual int GetFieldCount() const;
03177 virtual field_t GetDefaultContainerField() const;
03178
03179 virtual const char * GetDefaultContainerFieldName() const;
03180
03181 virtual bool SetFieldByName(field_t name, const void *data);
03182 };
03183 typedef pointer::SmartPointer<X3DGeometryNode> X3DGeometryNodePtr;
03184
03185
03186
03187
03188
03189
03190
03191 class GeoElevationGrid : public X3DGeometryNode
03192 {
03193 public:
03194 GeoElevationGrid();
03195 virtual ~GeoElevationGrid();
03196
03197 virtual bool IsNodeType(field_t type) const;
03198 virtual field_t GetNodeType(int idx = 0) const;
03199 virtual int GetTypeCount() const;
03200 virtual const char * GetNodeName() const;
03201
03202 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03203 virtual bool FieldHasDefaultValue(field_t name) const;
03204 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03205 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03206 virtual int GetFieldCount() const;
03207 virtual field_t GetDefaultContainerField() const;
03208
03209 virtual const char * GetDefaultContainerFieldName() const;
03210
03211 virtual bool SetFieldByName(field_t name, const void *data);
03212
03213
03214 void set_set_height(const MFDouble& set_height) { f_set_height = set_height; }
03215 MFDouble& get_set_height() const { return const_cast<MFDouble&>(f_set_height); }
03216 void set_color(SFNode *color) { f_color = color; }
03217 SFNodePtr get_color() const { return f_color; }
03218 void set_normal(SFNode *normal) { f_normal = normal; }
03219 SFNodePtr get_normal() const { return f_normal; }
03220 void set_texCoord(SFNode *texCoord) { f_texCoord = texCoord; }
03221 SFNodePtr get_texCoord() const { return f_texCoord; }
03222 void set_yScale(const SFFloat& yScale) { f_yScale = yScale; }
03223 SFFloat get_yScale() const { return f_yScale; }
03224 void set_ccw(const SFBool& ccw) { f_ccw = ccw; }
03225 SFBool get_ccw() const { return f_ccw; }
03226 void set_colorPerVertex(const SFBool& colorPerVertex) { f_colorPerVertex = colorPerVertex; }
03227 SFBool get_colorPerVertex() const { return f_colorPerVertex; }
03228 void set_creaseAngle(const SFDouble& creaseAngle) { f_creaseAngle = creaseAngle; }
03229 SFDouble get_creaseAngle() const { return f_creaseAngle; }
03230 void set_geoGridOrigin(const SFVec3d& geoGridOrigin) { f_geoGridOrigin = geoGridOrigin; }
03231 SFVec3d& get_geoGridOrigin() const { return const_cast<SFVec3d&>(f_geoGridOrigin); }
03232 void set_geoOrigin(SFNode *geoOrigin) { f_geoOrigin = geoOrigin; }
03233 SFNodePtr get_geoOrigin() const { return f_geoOrigin; }
03234 void set_geoSystem(const MFString& geoSystem) { f_geoSystem = geoSystem; }
03235 MFString& get_geoSystem() const { return const_cast<MFString&>(f_geoSystem); }
03236 void set_height(const MFDouble& height) { f_height = height; }
03237 MFDouble& get_height() const { return const_cast<MFDouble&>(f_height); }
03238 void set_normalPerVertex(const SFBool& normalPerVertex) { f_normalPerVertex = normalPerVertex; }
03239 SFBool get_normalPerVertex() const { return f_normalPerVertex; }
03240 void set_solid(const SFBool& solid) { f_solid = solid; }
03241 SFBool get_solid() const { return f_solid; }
03242 void set_xDimension(const SFInt32& xDimension) { f_xDimension = xDimension; }
03243 SFInt32 get_xDimension() const { return f_xDimension; }
03244 void set_xSpacing(const SFDouble& xSpacing) { f_xSpacing = xSpacing; }
03245 SFDouble get_xSpacing() const { return f_xSpacing; }
03246 void set_zDimension(const SFInt32& zDimension) { f_zDimension = zDimension; }
03247 SFInt32 get_zDimension() const { return f_zDimension; }
03248 void set_zSpacing(const SFDouble& zSpacing) { f_zSpacing = zSpacing; }
03249 SFDouble get_zSpacing() const { return f_zSpacing; }
03250
03251 protected:
03252 MFDouble f_set_height;
03253 SFNodePtr f_color;
03254 SFNodePtr f_normal;
03255 SFNodePtr f_texCoord;
03256 SFFloat f_yScale;
03257 SFBool f_ccw;
03258 SFBool f_colorPerVertex;
03259 SFDouble f_creaseAngle;
03260 SFVec3d f_geoGridOrigin;
03261 SFNodePtr f_geoOrigin;
03262 MFString f_geoSystem;
03263 MFDouble f_height;
03264 SFBool f_normalPerVertex;
03265 SFBool f_solid;
03266 SFInt32 f_xDimension;
03267 SFDouble f_xSpacing;
03268 SFInt32 f_zDimension;
03269 SFDouble f_zSpacing;
03270 };
03271 typedef pointer::SmartPointer<GeoElevationGrid> GeoElevationGridPtr;
03272
03273
03274
03275
03276
03277
03278
03279 class GeoLocation : public X3DGroupingNode
03280 {
03281 public:
03282 GeoLocation();
03283 virtual ~GeoLocation();
03284
03285 virtual bool IsNodeType(field_t type) const;
03286 virtual field_t GetNodeType(int idx = 0) const;
03287 virtual int GetTypeCount() const;
03288 virtual const char * GetNodeName() const;
03289
03290 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03291 virtual bool FieldHasDefaultValue(field_t name) const;
03292 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03293 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03294 virtual int GetFieldCount() const;
03295 virtual field_t GetDefaultContainerField() const;
03296
03297 virtual const char * GetDefaultContainerFieldName() const;
03298
03299 virtual bool SetFieldByName(field_t name, const void *data);
03300
03301
03302 void set_geoCoords(const SFVec3d& geoCoords) { f_geoCoords = geoCoords; }
03303 SFVec3d& get_geoCoords() const { return const_cast<SFVec3d&>(f_geoCoords); }
03304 void set_geoOrigin(SFNode *geoOrigin) { f_geoOrigin = geoOrigin; }
03305 SFNodePtr get_geoOrigin() const { return f_geoOrigin; }
03306 void set_geoSystem(const MFString& geoSystem) { f_geoSystem = geoSystem; }
03307 MFString& get_geoSystem() const { return const_cast<MFString&>(f_geoSystem); }
03308
03309 protected:
03310 SFVec3d f_geoCoords;
03311 SFNodePtr f_geoOrigin;
03312 MFString f_geoSystem;
03313 };
03314 typedef pointer::SmartPointer<GeoLocation> GeoLocationPtr;
03315
03316
03317
03318
03319
03320
03321
03322 class GeoLOD : public X3DGroupingNode
03323 {
03324 public:
03325 GeoLOD();
03326 virtual ~GeoLOD();
03327
03328 virtual bool IsNodeType(field_t type) const;
03329 virtual field_t GetNodeType(int idx = 0) const;
03330 virtual int GetTypeCount() const;
03331 virtual const char * GetNodeName() const;
03332
03333 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03334 virtual bool FieldHasDefaultValue(field_t name) const;
03335 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03336 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03337 virtual int GetFieldCount() const;
03338 virtual field_t GetDefaultContainerField() const;
03339
03340 virtual const char * GetDefaultContainerFieldName() const;
03341
03342 virtual bool SetFieldByName(field_t name, const void *data);
03343
03344
03345 void set_center(const SFVec3d& center) { f_center = center; }
03346 SFVec3d& get_center() const { return const_cast<SFVec3d&>(f_center); }
03347 void set_child1Url(const MFString& child1Url) { f_child1Url = child1Url; }
03348 MFString& get_child1Url() const { return const_cast<MFString&>(f_child1Url); }
03349 void set_child2Url(const MFString& child2Url) { f_child2Url = child2Url; }
03350 MFString& get_child2Url() const { return const_cast<MFString&>(f_child2Url); }
03351 void set_child3Url(const MFString& child3Url) { f_child3Url = child3Url; }
03352 MFString& get_child3Url() const { return const_cast<MFString&>(f_child3Url); }
03353 void set_child4Url(const MFString& child4Url) { f_child4Url = child4Url; }
03354 MFString& get_child4Url() const { return const_cast<MFString&>(f_child4Url); }
03355 void set_geoOrigin(SFNode *geoOrigin) { f_geoOrigin = geoOrigin; }
03356 SFNodePtr get_geoOrigin() const { return f_geoOrigin; }
03357 void set_geoSystem(const MFString& geoSystem) { f_geoSystem = geoSystem; }
03358 MFString& get_geoSystem() const { return const_cast<MFString&>(f_geoSystem); }
03359 void set_range(const SFFloat& range) { f_range = range; }
03360 SFFloat get_range() const { return f_range; }
03361 void set_rootUrl(const MFString& rootUrl) { f_rootUrl = rootUrl; }
03362 MFString& get_rootUrl() const { return const_cast<MFString&>(f_rootUrl); }
03363 void set_rootNode(const MFNode& rootNode) { f_rootNode = rootNode; }
03364 MFNode& get_rootNode() const { return const_cast<MFNode&>(f_rootNode); }
03365
03366 protected:
03367 SFVec3d f_center;
03368 MFString f_child1Url;
03369 MFString f_child2Url;
03370 MFString f_child3Url;
03371 MFString f_child4Url;
03372 SFNodePtr f_geoOrigin;
03373 MFString f_geoSystem;
03374 SFFloat f_range;
03375 MFString f_rootUrl;
03376 MFNode f_rootNode;
03377 };
03378 typedef pointer::SmartPointer<GeoLOD> GeoLODPtr;
03379
03380
03381
03382
03383
03384
03385
03386 class X3DInfoNode : public X3DChildNode
03387 {
03388 public:
03389 X3DInfoNode();
03390 virtual ~X3DInfoNode();
03391
03392 virtual bool IsNodeType(field_t type) const;
03393 virtual field_t GetNodeType(int idx = 0) const;
03394 virtual int GetTypeCount() const;
03395 virtual const char * GetNodeName() const;
03396
03397 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03398 virtual bool FieldHasDefaultValue(field_t name) const;
03399 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03400 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03401 virtual int GetFieldCount() const;
03402 virtual field_t GetDefaultContainerField() const;
03403
03404 virtual const char * GetDefaultContainerFieldName() const;
03405
03406 virtual bool SetFieldByName(field_t name, const void *data);
03407 };
03408 typedef pointer::SmartPointer<X3DInfoNode> X3DInfoNodePtr;
03409
03410
03411
03412
03413
03414
03415
03416 class GeoMetadata : public X3DInfoNode
03417 {
03418 public:
03419 GeoMetadata();
03420 virtual ~GeoMetadata();
03421
03422 virtual bool IsNodeType(field_t type) const;
03423 virtual field_t GetNodeType(int idx = 0) const;
03424 virtual int GetTypeCount() const;
03425 virtual const char * GetNodeName() const;
03426
03427 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03428 virtual bool FieldHasDefaultValue(field_t name) const;
03429 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03430 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03431 virtual int GetFieldCount() const;
03432 virtual field_t GetDefaultContainerField() const;
03433
03434 virtual const char * GetDefaultContainerFieldName() const;
03435
03436 virtual bool SetFieldByName(field_t name, const void *data);
03437
03438
03439 void set_data(const MFNode& data) { f_data = data; }
03440 MFNode& get_data() const { return const_cast<MFNode&>(f_data); }
03441 void set_summary(const MFString& summary) { f_summary = summary; }
03442 MFString& get_summary() const { return const_cast<MFString&>(f_summary); }
03443 void set_url(const MFString& url) { f_url = url; }
03444 MFString& get_url() const { return const_cast<MFString&>(f_url); }
03445
03446 protected:
03447 MFNode f_data;
03448 MFString f_summary;
03449 MFString f_url;
03450 };
03451 typedef pointer::SmartPointer<GeoMetadata> GeoMetadataPtr;
03452
03453
03454
03455
03456
03457
03458
03459 class GeoOrigin : public X3DNode
03460 {
03461 public:
03462 GeoOrigin();
03463 virtual ~GeoOrigin();
03464
03465 virtual bool IsNodeType(field_t type) const;
03466 virtual field_t GetNodeType(int idx = 0) const;
03467 virtual int GetTypeCount() const;
03468 virtual const char * GetNodeName() const;
03469
03470 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03471 virtual bool FieldHasDefaultValue(field_t name) const;
03472 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03473 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03474 virtual int GetFieldCount() const;
03475 virtual field_t GetDefaultContainerField() const;
03476
03477 virtual const char * GetDefaultContainerFieldName() const;
03478
03479 virtual bool SetFieldByName(field_t name, const void *data);
03480
03481
03482 void set_geoCoords(const SFVec3d& geoCoords) { f_geoCoords = geoCoords; }
03483 SFVec3d& get_geoCoords() const { return const_cast<SFVec3d&>(f_geoCoords); }
03484 void set_geoSystem(const MFString& geoSystem) { f_geoSystem = geoSystem; }
03485 MFString& get_geoSystem() const { return const_cast<MFString&>(f_geoSystem); }
03486 void set_rotateYUp(const SFBool& rotateYUp) { f_rotateYUp = rotateYUp; }
03487 SFBool get_rotateYUp() const { return f_rotateYUp; }
03488
03489 protected:
03490 SFVec3d f_geoCoords;
03491 MFString f_geoSystem;
03492 SFBool f_rotateYUp;
03493 };
03494 typedef pointer::SmartPointer<GeoOrigin> GeoOriginPtr;
03495
03496
03497
03498
03499
03500
03501
03502 class X3DInterpolatorNode : public X3DChildNode
03503 {
03504 public:
03505 X3DInterpolatorNode();
03506 virtual ~X3DInterpolatorNode();
03507
03508 virtual bool IsNodeType(field_t type) const;
03509 virtual field_t GetNodeType(int idx = 0) const;
03510 virtual int GetTypeCount() const;
03511 virtual const char * GetNodeName() const;
03512
03513 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03514 virtual bool FieldHasDefaultValue(field_t name) const;
03515 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03516 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03517 virtual int GetFieldCount() const;
03518 virtual field_t GetDefaultContainerField() const;
03519
03520 virtual const char * GetDefaultContainerFieldName() const;
03521
03522 virtual bool SetFieldByName(field_t name, const void *data);
03523
03524
03525 void set_set_fraction(const SFFloat& set_fraction) { f_set_fraction = set_fraction; }
03526 SFFloat get_set_fraction() const { return f_set_fraction; }
03527 void set_key(const MFFloat& key) { f_key = key; }
03528 MFFloat& get_key() const { return const_cast<MFFloat&>(f_key); }
03529
03530 protected:
03531 SFFloat f_set_fraction;
03532 MFFloat f_key;
03533 };
03534 typedef pointer::SmartPointer<X3DInterpolatorNode> X3DInterpolatorNodePtr;
03535
03536
03537
03538
03539
03540
03541
03542 class GeoPositionInterpolator : public X3DInterpolatorNode
03543 {
03544 public:
03545 GeoPositionInterpolator();
03546 virtual ~GeoPositionInterpolator();
03547
03548 virtual bool IsNodeType(field_t type) const;
03549 virtual field_t GetNodeType(int idx = 0) const;
03550 virtual int GetTypeCount() const;
03551 virtual const char * GetNodeName() const;
03552
03553 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03554 virtual bool FieldHasDefaultValue(field_t name) const;
03555 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03556 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03557 virtual int GetFieldCount() const;
03558 virtual field_t GetDefaultContainerField() const;
03559
03560 virtual const char * GetDefaultContainerFieldName() const;
03561
03562 virtual bool SetFieldByName(field_t name, const void *data);
03563
03564
03565 void set_keyValue(const MFVec3d& keyValue) { f_keyValue = keyValue; }
03566 MFVec3d& get_keyValue() const { return const_cast<MFVec3d&>(f_keyValue); }
03567 void set_geovalue_changed(const SFVec3d& geovalue_changed) { f_geovalue_changed = geovalue_changed; }
03568 SFVec3d& get_geovalue_changed() const { return const_cast<SFVec3d&>(f_geovalue_changed); }
03569 void set_value_changed(const SFVec3f& value_changed) { f_value_changed = value_changed; }
03570 SFVec3f& get_value_changed() const { return const_cast<SFVec3f&>(f_value_changed); }
03571 void set_geoOrigin(SFNode *geoOrigin) { f_geoOrigin = geoOrigin; }
03572 SFNodePtr get_geoOrigin() const { return f_geoOrigin; }
03573 void set_geoSystem(const MFString& geoSystem) { f_geoSystem = geoSystem; }
03574 MFString& get_geoSystem() const { return const_cast<MFString&>(f_geoSystem); }
03575
03576 protected:
03577 MFVec3d f_keyValue;
03578 SFVec3d f_geovalue_changed;
03579 SFVec3f f_value_changed;
03580 SFNodePtr f_geoOrigin;
03581 MFString f_geoSystem;
03582 };
03583 typedef pointer::SmartPointer<GeoPositionInterpolator> GeoPositionInterpolatorPtr;
03584
03585
03586
03587
03588
03589
03590
03591 class X3DPointingDeviceSensorNode : public X3DChildNode, public X3DSensorNode
03592 {
03593 public:
03594 X3DPointingDeviceSensorNode();
03595 virtual ~X3DPointingDeviceSensorNode();
03596
03597 virtual bool IsNodeType(field_t type) const;
03598 virtual field_t GetNodeType(int idx = 0) const;
03599 virtual int GetTypeCount() const;
03600 virtual const char * GetNodeName() const;
03601
03602 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03603 virtual bool FieldHasDefaultValue(field_t name) const;
03604 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03605 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03606 virtual int GetFieldCount() const;
03607 virtual field_t GetDefaultContainerField() const;
03608
03609 virtual const char * GetDefaultContainerFieldName() const;
03610
03611 virtual bool SetFieldByName(field_t name, const void *data);
03612
03613
03614 void set_description(const SFString& description) { f_description = description; }
03615 SFString& get_description() const { return const_cast<SFString&>(f_description); }
03616 void set_isOver(const SFBool& isOver) { f_isOver = isOver; }
03617 SFBool get_isOver() const { return f_isOver; }
03618
03619 protected:
03620 SFString f_description;
03621 SFBool f_isOver;
03622 };
03623 typedef pointer::SmartPointer<X3DPointingDeviceSensorNode> X3DPointingDeviceSensorNodePtr;
03624
03625
03626
03627
03628
03629
03630
03631 class X3DTouchSensorNode : public X3DPointingDeviceSensorNode
03632 {
03633 public:
03634 X3DTouchSensorNode();
03635 virtual ~X3DTouchSensorNode();
03636
03637 virtual bool IsNodeType(field_t type) const;
03638 virtual field_t GetNodeType(int idx = 0) const;
03639 virtual int GetTypeCount() const;
03640 virtual const char * GetNodeName() const;
03641
03642 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03643 virtual bool FieldHasDefaultValue(field_t name) const;
03644 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03645 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03646 virtual int GetFieldCount() const;
03647 virtual field_t GetDefaultContainerField() const;
03648
03649 virtual const char * GetDefaultContainerFieldName() const;
03650
03651 virtual bool SetFieldByName(field_t name, const void *data);
03652
03653
03654 void set_touchTime(const SFTime& touchTime) { f_touchTime = touchTime; }
03655 SFTime get_touchTime() const { return f_touchTime; }
03656
03657 protected:
03658 SFTime f_touchTime;
03659 };
03660 typedef pointer::SmartPointer<X3DTouchSensorNode> X3DTouchSensorNodePtr;
03661
03662
03663
03664
03665
03666
03667
03668 class GeoTouchSensor : public X3DTouchSensorNode
03669 {
03670 public:
03671 GeoTouchSensor();
03672 virtual ~GeoTouchSensor();
03673
03674 virtual bool IsNodeType(field_t type) const;
03675 virtual field_t GetNodeType(int idx = 0) const;
03676 virtual int GetTypeCount() const;
03677 virtual const char * GetNodeName() const;
03678
03679 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03680 virtual bool FieldHasDefaultValue(field_t name) const;
03681 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03682 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03683 virtual int GetFieldCount() const;
03684 virtual field_t GetDefaultContainerField() const;
03685
03686 virtual const char * GetDefaultContainerFieldName() const;
03687
03688 virtual bool SetFieldByName(field_t name, const void *data);
03689
03690
03691 void set_hitNormal_changed(const SFVec3f& hitNormal_changed) { f_hitNormal_changed = hitNormal_changed; }
03692 SFVec3f& get_hitNormal_changed() const { return const_cast<SFVec3f&>(f_hitNormal_changed); }
03693 void set_hitPoint_changed(const SFVec3f& hitPoint_changed) { f_hitPoint_changed = hitPoint_changed; }
03694 SFVec3f& get_hitPoint_changed() const { return const_cast<SFVec3f&>(f_hitPoint_changed); }
03695 void set_hitTexCoord_changed(const SFVec2f& hitTexCoord_changed) { f_hitTexCoord_changed = hitTexCoord_changed; }
03696 SFVec2f& get_hitTexCoord_changed() const { return const_cast<SFVec2f&>(f_hitTexCoord_changed); }
03697 void set_hitGeoCoord_changed(const SFVec3d& hitGeoCoord_changed) { f_hitGeoCoord_changed = hitGeoCoord_changed; }
03698 SFVec3d& get_hitGeoCoord_changed() const { return const_cast<SFVec3d&>(f_hitGeoCoord_changed); }
03699 void set_geoOrigin(SFNode *geoOrigin) { f_geoOrigin = geoOrigin; }
03700 SFNodePtr get_geoOrigin() const { return f_geoOrigin; }
03701 void set_geoSystem(const MFString& geoSystem) { f_geoSystem = geoSystem; }
03702 MFString& get_geoSystem() const { return const_cast<MFString&>(f_geoSystem); }
03703
03704 protected:
03705 SFVec3f f_hitNormal_changed;
03706 SFVec3f f_hitPoint_changed;
03707 SFVec2f f_hitTexCoord_changed;
03708 SFVec3d f_hitGeoCoord_changed;
03709 SFNodePtr f_geoOrigin;
03710 MFString f_geoSystem;
03711 };
03712 typedef pointer::SmartPointer<GeoTouchSensor> GeoTouchSensorPtr;
03713
03714
03715
03716
03717
03718
03719
03720 class GeoViewpoint : public X3DBindableNode
03721 {
03722 public:
03723 GeoViewpoint();
03724 virtual ~GeoViewpoint();
03725
03726 virtual bool IsNodeType(field_t type) const;
03727 virtual field_t GetNodeType(int idx = 0) const;
03728 virtual int GetTypeCount() const;
03729 virtual const char * GetNodeName() const;
03730
03731 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03732 virtual bool FieldHasDefaultValue(field_t name) const;
03733 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03734 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03735 virtual int GetFieldCount() const;
03736 virtual field_t GetDefaultContainerField() const;
03737
03738 virtual const char * GetDefaultContainerFieldName() const;
03739
03740 virtual bool SetFieldByName(field_t name, const void *data);
03741
03742
03743 void set_set_orientation(const SFRotation& set_orientation) { f_set_orientation = set_orientation; }
03744 SFRotation& get_set_orientation() const { return const_cast<SFRotation&>(f_set_orientation); }
03745 void set_set_position(const SFVec3d& set_position) { f_set_position = set_position; }
03746 SFVec3d& get_set_position() const { return const_cast<SFVec3d&>(f_set_position); }
03747 void set_description(const SFString& description) { f_description = description; }
03748 SFString& get_description() const { return const_cast<SFString&>(f_description); }
03749 void set_fieldOfView(const SFFloat& fieldOfView) { f_fieldOfView = fieldOfView; }
03750 SFFloat get_fieldOfView() const { return f_fieldOfView; }
03751 void set_headlight(const SFBool& headlight) { f_headlight = headlight; }
03752 SFBool get_headlight() const { return f_headlight; }
03753 void set_jump(const SFBool& jump) { f_jump = jump; }
03754 SFBool get_jump() const { return f_jump; }
03755 void set_navType(const MFString& navType) { f_navType = navType; }
03756 MFString& get_navType() const { return const_cast<MFString&>(f_navType); }
03757 void set_geoOrigin(SFNode *geoOrigin) { f_geoOrigin = geoOrigin; }
03758 SFNodePtr get_geoOrigin() const { return f_geoOrigin; }
03759 void set_geoSystem(const MFString& geoSystem) { f_geoSystem = geoSystem; }
03760 MFString& get_geoSystem() const { return const_cast<MFString&>(f_geoSystem); }
03761 void set_orientation(const SFRotation& orientation) { f_orientation = orientation; }
03762 SFRotation& get_orientation() const { return const_cast<SFRotation&>(f_orientation); }
03763 void set_position(const SFVec3d& position) { f_position = position; }
03764 SFVec3d& get_position() const { return const_cast<SFVec3d&>(f_position); }
03765 void set_speedFactor(const SFFloat& speedFactor) { f_speedFactor = speedFactor; }
03766 SFFloat get_speedFactor() const { return f_speedFactor; }
03767
03768 protected:
03769 SFRotation f_set_orientation;
03770 SFVec3d f_set_position;
03771 SFString f_description;
03772 SFFloat f_fieldOfView;
03773 SFBool f_headlight;
03774 SFBool f_jump;
03775 MFString f_navType;
03776 SFNodePtr f_geoOrigin;
03777 MFString f_geoSystem;
03778 SFRotation f_orientation;
03779 SFVec3d f_position;
03780 SFFloat f_speedFactor;
03781 };
03782 typedef pointer::SmartPointer<GeoViewpoint> GeoViewpointPtr;
03783
03784
03785
03786
03787
03788
03789
03790 class Arc2D : public X3DGeometryNode
03791 {
03792 public:
03793 Arc2D();
03794 virtual ~Arc2D();
03795
03796 virtual bool IsNodeType(field_t type) const;
03797 virtual field_t GetNodeType(int idx = 0) const;
03798 virtual int GetTypeCount() const;
03799 virtual const char * GetNodeName() const;
03800
03801 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03802 virtual bool FieldHasDefaultValue(field_t name) const;
03803 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03804 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03805 virtual int GetFieldCount() const;
03806 virtual field_t GetDefaultContainerField() const;
03807
03808 virtual const char * GetDefaultContainerFieldName() const;
03809
03810 virtual bool SetFieldByName(field_t name, const void *data);
03811
03812
03813 void set_endAngle(const SFFloat& endAngle) { f_endAngle = endAngle; }
03814 SFFloat get_endAngle() const { return f_endAngle; }
03815 void set_radius(const SFFloat& radius) { f_radius = radius; }
03816 SFFloat get_radius() const { return f_radius; }
03817 void set_startAngle(const SFFloat& startAngle) { f_startAngle = startAngle; }
03818 SFFloat get_startAngle() const { return f_startAngle; }
03819
03820 protected:
03821 SFFloat f_endAngle;
03822 SFFloat f_radius;
03823 SFFloat f_startAngle;
03824 };
03825 typedef pointer::SmartPointer<Arc2D> Arc2DPtr;
03826
03827
03828
03829
03830
03831
03832
03833 class ArcClose2D : public X3DGeometryNode
03834 {
03835 public:
03836 ArcClose2D();
03837 virtual ~ArcClose2D();
03838
03839 virtual bool IsNodeType(field_t type) const;
03840 virtual field_t GetNodeType(int idx = 0) const;
03841 virtual int GetTypeCount() const;
03842 virtual const char * GetNodeName() const;
03843
03844 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03845 virtual bool FieldHasDefaultValue(field_t name) const;
03846 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03847 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03848 virtual int GetFieldCount() const;
03849 virtual field_t GetDefaultContainerField() const;
03850
03851 virtual const char * GetDefaultContainerFieldName() const;
03852
03853 virtual bool SetFieldByName(field_t name, const void *data);
03854
03855
03856 void set_closureType(const SFInt32& closureType) { f_closureType = closureType; }
03857 SFInt32 get_closureType() const { return f_closureType; }
03858 void set_endAngle(const SFFloat& endAngle) { f_endAngle = endAngle; }
03859 SFFloat get_endAngle() const { return f_endAngle; }
03860 void set_radius(const SFFloat& radius) { f_radius = radius; }
03861 SFFloat get_radius() const { return f_radius; }
03862 void set_solid(const SFBool& solid) { f_solid = solid; }
03863 SFBool get_solid() const { return f_solid; }
03864 void set_startAngle(const SFFloat& startAngle) { f_startAngle = startAngle; }
03865 SFFloat get_startAngle() const { return f_startAngle; }
03866
03867 protected:
03868 SFInt32 f_closureType;
03869 mutable SFInt32 f_closureType__enum_last;
03870 mutable SFString f_closureType__enum_name;
03871 SFFloat f_endAngle;
03872 SFFloat f_radius;
03873 SFBool f_solid;
03874 SFFloat f_startAngle;
03875 };
03876 typedef pointer::SmartPointer<ArcClose2D> ArcClose2DPtr;
03877
03878
03879
03880
03881
03882
03883
03884 class Circle2D : public X3DGeometryNode
03885 {
03886 public:
03887 Circle2D();
03888 virtual ~Circle2D();
03889
03890 virtual bool IsNodeType(field_t type) const;
03891 virtual field_t GetNodeType(int idx = 0) const;
03892 virtual int GetTypeCount() const;
03893 virtual const char * GetNodeName() const;
03894
03895 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03896 virtual bool FieldHasDefaultValue(field_t name) const;
03897 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03898 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03899 virtual int GetFieldCount() const;
03900 virtual field_t GetDefaultContainerField() const;
03901
03902 virtual const char * GetDefaultContainerFieldName() const;
03903
03904 virtual bool SetFieldByName(field_t name, const void *data);
03905
03906
03907 void set_radius(const SFFloat& radius) { f_radius = radius; }
03908 SFFloat get_radius() const { return f_radius; }
03909
03910 protected:
03911 SFFloat f_radius;
03912 };
03913 typedef pointer::SmartPointer<Circle2D> Circle2DPtr;
03914
03915
03916
03917
03918
03919
03920
03921 class Disk2D : public X3DGeometryNode
03922 {
03923 public:
03924 Disk2D();
03925 virtual ~Disk2D();
03926
03927 virtual bool IsNodeType(field_t type) const;
03928 virtual field_t GetNodeType(int idx = 0) const;
03929 virtual int GetTypeCount() const;
03930 virtual const char * GetNodeName() const;
03931
03932 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03933 virtual bool FieldHasDefaultValue(field_t name) const;
03934 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03935 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03936 virtual int GetFieldCount() const;
03937 virtual field_t GetDefaultContainerField() const;
03938
03939 virtual const char * GetDefaultContainerFieldName() const;
03940
03941 virtual bool SetFieldByName(field_t name, const void *data);
03942
03943
03944 void set_innerRadius(const SFFloat& innerRadius) { f_innerRadius = innerRadius; }
03945 SFFloat get_innerRadius() const { return f_innerRadius; }
03946 void set_outerRadius(const SFFloat& outerRadius) { f_outerRadius = outerRadius; }
03947 SFFloat get_outerRadius() const { return f_outerRadius; }
03948 void set_solid(const SFBool& solid) { f_solid = solid; }
03949 SFBool get_solid() const { return f_solid; }
03950
03951 protected:
03952 SFFloat f_innerRadius;
03953 SFFloat f_outerRadius;
03954 SFBool f_solid;
03955 };
03956 typedef pointer::SmartPointer<Disk2D> Disk2DPtr;
03957
03958
03959
03960
03961
03962
03963
03964 class Polyline2D : public X3DGeometryNode
03965 {
03966 public:
03967 Polyline2D();
03968 virtual ~Polyline2D();
03969
03970 virtual bool IsNodeType(field_t type) const;
03971 virtual field_t GetNodeType(int idx = 0) const;
03972 virtual int GetTypeCount() const;
03973 virtual const char * GetNodeName() const;
03974
03975 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
03976 virtual bool FieldHasDefaultValue(field_t name) const;
03977 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
03978 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
03979 virtual int GetFieldCount() const;
03980 virtual field_t GetDefaultContainerField() const;
03981
03982 virtual const char * GetDefaultContainerFieldName() const;
03983
03984 virtual bool SetFieldByName(field_t name, const void *data);
03985
03986
03987 void set_lineSegments(const MFVec2f& lineSegments) { f_lineSegments = lineSegments; }
03988 MFVec2f& get_lineSegments() const { return const_cast<MFVec2f&>(f_lineSegments); }
03989
03990 protected:
03991 MFVec2f f_lineSegments;
03992 };
03993 typedef pointer::SmartPointer<Polyline2D> Polyline2DPtr;
03994
03995
03996
03997
03998
03999
04000
04001 class Polypoint2D : public X3DGeometryNode
04002 {
04003 public:
04004 Polypoint2D();
04005 virtual ~Polypoint2D();
04006
04007 virtual bool IsNodeType(field_t type) const;
04008 virtual field_t GetNodeType(int idx = 0) const;
04009 virtual int GetTypeCount() const;
04010 virtual const char * GetNodeName() const;
04011
04012 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04013 virtual bool FieldHasDefaultValue(field_t name) const;
04014 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04015 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04016 virtual int GetFieldCount() const;
04017 virtual field_t GetDefaultContainerField() const;
04018
04019 virtual const char * GetDefaultContainerFieldName() const;
04020
04021 virtual bool SetFieldByName(field_t name, const void *data);
04022
04023
04024 void set_points(const MFVec2f& points) { f_points = points; }
04025 MFVec2f& get_points() const { return const_cast<MFVec2f&>(f_points); }
04026
04027 protected:
04028 MFVec2f f_points;
04029 };
04030 typedef pointer::SmartPointer<Polypoint2D> Polypoint2DPtr;
04031
04032
04033
04034
04035
04036
04037
04038 class Rectangle2D : public X3DGeometryNode
04039 {
04040 public:
04041 Rectangle2D();
04042 virtual ~Rectangle2D();
04043
04044 virtual bool IsNodeType(field_t type) const;
04045 virtual field_t GetNodeType(int idx = 0) const;
04046 virtual int GetTypeCount() const;
04047 virtual const char * GetNodeName() const;
04048
04049 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04050 virtual bool FieldHasDefaultValue(field_t name) const;
04051 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04052 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04053 virtual int GetFieldCount() const;
04054 virtual field_t GetDefaultContainerField() const;
04055
04056 virtual const char * GetDefaultContainerFieldName() const;
04057
04058 virtual bool SetFieldByName(field_t name, const void *data);
04059
04060
04061 void set_size(const SFVec2f& size) { f_size = size; }
04062 SFVec2f& get_size() const { return const_cast<SFVec2f&>(f_size); }
04063 void set_solid(const SFBool& solid) { f_solid = solid; }
04064 SFBool get_solid() const { return f_solid; }
04065
04066 protected:
04067 SFVec2f f_size;
04068 SFBool f_solid;
04069 };
04070 typedef pointer::SmartPointer<Rectangle2D> Rectangle2DPtr;
04071
04072
04073
04074
04075
04076
04077
04078 class TriangleSet2D : public X3DGeometryNode
04079 {
04080 public:
04081 TriangleSet2D();
04082 virtual ~TriangleSet2D();
04083
04084 virtual bool IsNodeType(field_t type) const;
04085 virtual field_t GetNodeType(int idx = 0) const;
04086 virtual int GetTypeCount() const;
04087 virtual const char * GetNodeName() const;
04088
04089 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04090 virtual bool FieldHasDefaultValue(field_t name) const;
04091 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04092 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04093 virtual int GetFieldCount() const;
04094 virtual field_t GetDefaultContainerField() const;
04095
04096 virtual const char * GetDefaultContainerFieldName() const;
04097
04098 virtual bool SetFieldByName(field_t name, const void *data);
04099
04100
04101 void set_vertices(const MFVec2f& vertices) { f_vertices = vertices; }
04102 MFVec2f& get_vertices() const { return const_cast<MFVec2f&>(f_vertices); }
04103 void set_solid(const SFBool& solid) { f_solid = solid; }
04104 SFBool get_solid() const { return f_solid; }
04105
04106 protected:
04107 MFVec2f f_vertices;
04108 SFBool f_solid;
04109 };
04110 typedef pointer::SmartPointer<TriangleSet2D> TriangleSet2DPtr;
04111
04112
04113
04114
04115
04116
04117
04118 class Box : public X3DGeometryNode
04119 {
04120 public:
04121 Box();
04122 virtual ~Box();
04123
04124 virtual bool IsNodeType(field_t type) const;
04125 virtual field_t GetNodeType(int idx = 0) const;
04126 virtual int GetTypeCount() const;
04127 virtual const char * GetNodeName() const;
04128
04129 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04130 virtual bool FieldHasDefaultValue(field_t name) const;
04131 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04132 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04133 virtual int GetFieldCount() const;
04134 virtual field_t GetDefaultContainerField() const;
04135
04136 virtual const char * GetDefaultContainerFieldName() const;
04137
04138 virtual bool SetFieldByName(field_t name, const void *data);
04139
04140
04141 void set_size(const SFVec3f& size) { f_size = size; }
04142 SFVec3f& get_size() const { return const_cast<SFVec3f&>(f_size); }
04143 void set_solid(const SFBool& solid) { f_solid = solid; }
04144 SFBool get_solid() const { return f_solid; }
04145
04146 protected:
04147 SFVec3f f_size;
04148 SFBool f_solid;
04149 };
04150 typedef pointer::SmartPointer<Box> BoxPtr;
04151
04152
04153
04154
04155
04156
04157
04158 class Cone : public X3DGeometryNode
04159 {
04160 public:
04161 Cone();
04162 virtual ~Cone();
04163
04164 virtual bool IsNodeType(field_t type) const;
04165 virtual field_t GetNodeType(int idx = 0) const;
04166 virtual int GetTypeCount() const;
04167 virtual const char * GetNodeName() const;
04168
04169 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04170 virtual bool FieldHasDefaultValue(field_t name) const;
04171 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04172 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04173 virtual int GetFieldCount() const;
04174 virtual field_t GetDefaultContainerField() const;
04175
04176 virtual const char * GetDefaultContainerFieldName() const;
04177
04178 virtual bool SetFieldByName(field_t name, const void *data);
04179
04180
04181 void set_bottom(const SFBool& bottom) { f_bottom = bottom; }
04182 SFBool get_bottom() const { return f_bottom; }
04183 void set_bottomRadius(const SFFloat& bottomRadius) { f_bottomRadius = bottomRadius; }
04184 SFFloat get_bottomRadius() const { return f_bottomRadius; }
04185 void set_height(const SFFloat& height) { f_height = height; }
04186 SFFloat get_height() const { return f_height; }
04187 void set_side(const SFBool& side) { f_side = side; }
04188 SFBool get_side() const { return f_side; }
04189 void set_solid(const SFBool& solid) { f_solid = solid; }
04190 SFBool get_solid() const { return f_solid; }
04191
04192 protected:
04193 SFBool f_bottom;
04194 SFFloat f_bottomRadius;
04195 SFFloat f_height;
04196 SFBool f_side;
04197 SFBool f_solid;
04198 };
04199 typedef pointer::SmartPointer<Cone> ConePtr;
04200
04201
04202
04203
04204
04205
04206
04207 class Cylinder : public X3DGeometryNode
04208 {
04209 public:
04210 Cylinder();
04211 virtual ~Cylinder();
04212
04213 virtual bool IsNodeType(field_t type) const;
04214 virtual field_t GetNodeType(int idx = 0) const;
04215 virtual int GetTypeCount() const;
04216 virtual const char * GetNodeName() const;
04217
04218 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04219 virtual bool FieldHasDefaultValue(field_t name) const;
04220 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04221 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04222 virtual int GetFieldCount() const;
04223 virtual field_t GetDefaultContainerField() const;
04224
04225 virtual const char * GetDefaultContainerFieldName() const;
04226
04227 virtual bool SetFieldByName(field_t name, const void *data);
04228
04229
04230 void set_bottom(const SFBool& bottom) { f_bottom = bottom; }
04231 SFBool get_bottom() const { return f_bottom; }
04232 void set_height(const SFFloat& height) { f_height = height; }
04233 SFFloat get_height() const { return f_height; }
04234 void set_radius(const SFFloat& radius) { f_radius = radius; }
04235 SFFloat get_radius() const { return f_radius; }
04236 void set_side(const SFBool& side) { f_side = side; }
04237 SFBool get_side() const { return f_side; }
04238 void set_solid(const SFBool& solid) { f_solid = solid; }
04239 SFBool get_solid() const { return f_solid; }
04240 void set_top(const SFBool& top) { f_top = top; }
04241 SFBool get_top() const { return f_top; }
04242
04243 protected:
04244 SFBool f_bottom;
04245 SFFloat f_height;
04246 SFFloat f_radius;
04247 SFBool f_side;
04248 SFBool f_solid;
04249 SFBool f_top;
04250 };
04251 typedef pointer::SmartPointer<Cylinder> CylinderPtr;
04252
04253
04254
04255
04256
04257
04258
04259 class ElevationGrid : public X3DGeometryNode
04260 {
04261 public:
04262 ElevationGrid();
04263 virtual ~ElevationGrid();
04264
04265 virtual bool IsNodeType(field_t type) const;
04266 virtual field_t GetNodeType(int idx = 0) const;
04267 virtual int GetTypeCount() const;
04268 virtual const char * GetNodeName() const;
04269
04270 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04271 virtual bool FieldHasDefaultValue(field_t name) const;
04272 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04273 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04274 virtual int GetFieldCount() const;
04275 virtual field_t GetDefaultContainerField() const;
04276
04277 virtual const char * GetDefaultContainerFieldName() const;
04278
04279 virtual bool SetFieldByName(field_t name, const void *data);
04280
04281
04282 void set_set_height(const MFFloat& set_height) { f_set_height = set_height; }
04283 MFFloat& get_set_height() const { return const_cast<MFFloat&>(f_set_height); }
04284 void set_color(SFNode *color) { f_color = color; }
04285 SFNodePtr get_color() const { return f_color; }
04286 void set_normal(SFNode *normal) { f_normal = normal; }
04287 SFNodePtr get_normal() const { return f_normal; }
04288 void set_texCoord(SFNode *texCoord) { f_texCoord = texCoord; }
04289 SFNodePtr get_texCoord() const { return f_texCoord; }
04290 void set_ccw(const SFBool& ccw) { f_ccw = ccw; }
04291 SFBool get_ccw() const { return f_ccw; }
04292 void set_colorPerVertex(const SFBool& colorPerVertex) { f_colorPerVertex = colorPerVertex; }
04293 SFBool get_colorPerVertex() const { return f_colorPerVertex; }
04294 void set_creaseAngle(const SFFloat& creaseAngle) { f_creaseAngle = creaseAngle; }
04295 SFFloat get_creaseAngle() const { return f_creaseAngle; }
04296 void set_height(const MFFloat& height) { f_height = height; }
04297 MFFloat& get_height() const { return const_cast<MFFloat&>(f_height); }
04298 void set_normalPerVertex(const SFBool& normalPerVertex) { f_normalPerVertex = normalPerVertex; }
04299 SFBool get_normalPerVertex() const { return f_normalPerVertex; }
04300 void set_solid(const SFBool& solid) { f_solid = solid; }
04301 SFBool get_solid() const { return f_solid; }
04302 void set_xDimension(const SFInt32& xDimension) { f_xDimension = xDimension; }
04303 SFInt32 get_xDimension() const { return f_xDimension; }
04304 void set_xSpacing(const SFFloat& xSpacing) { f_xSpacing = xSpacing; }
04305 SFFloat get_xSpacing() const { return f_xSpacing; }
04306 void set_zDimension(const SFInt32& zDimension) { f_zDimension = zDimension; }
04307 SFInt32 get_zDimension() const { return f_zDimension; }
04308 void set_zSpacing(const SFFloat& zSpacing) { f_zSpacing = zSpacing; }
04309 SFFloat get_zSpacing() const { return f_zSpacing; }
04310
04311 protected:
04312 MFFloat f_set_height;
04313 SFNodePtr f_color;
04314 SFNodePtr f_normal;
04315 SFNodePtr f_texCoord;
04316 SFBool f_ccw;
04317 SFBool f_colorPerVertex;
04318 SFFloat f_creaseAngle;
04319 MFFloat f_height;
04320 SFBool f_normalPerVertex;
04321 SFBool f_solid;
04322 SFInt32 f_xDimension;
04323 SFFloat f_xSpacing;
04324 SFInt32 f_zDimension;
04325 SFFloat f_zSpacing;
04326 };
04327 typedef pointer::SmartPointer<ElevationGrid> ElevationGridPtr;
04328
04329
04330
04331
04332
04333
04334
04335 class Extrusion : public X3DGeometryNode
04336 {
04337 public:
04338 Extrusion();
04339 virtual ~Extrusion();
04340
04341 virtual bool IsNodeType(field_t type) const;
04342 virtual field_t GetNodeType(int idx = 0) const;
04343 virtual int GetTypeCount() const;
04344 virtual const char * GetNodeName() const;
04345
04346 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04347 virtual bool FieldHasDefaultValue(field_t name) const;
04348 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04349 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04350 virtual int GetFieldCount() const;
04351 virtual field_t GetDefaultContainerField() const;
04352
04353 virtual const char * GetDefaultContainerFieldName() const;
04354
04355 virtual bool SetFieldByName(field_t name, const void *data);
04356
04357
04358 void set_set_crossSection(const MFVec2f& set_crossSection) { f_set_crossSection = set_crossSection; }
04359 MFVec2f& get_set_crossSection() const { return const_cast<MFVec2f&>(f_set_crossSection); }
04360 void set_set_orientation(const MFRotation& set_orientation) { f_set_orientation = set_orientation; }
04361 MFRotation& get_set_orientation() const { return const_cast<MFRotation&>(f_set_orientation); }
04362 void set_set_scale(const MFVec2f& set_scale) { f_set_scale = set_scale; }
04363 MFVec2f& get_set_scale() const { return const_cast<MFVec2f&>(f_set_scale); }
04364 void set_set_spine(const MFVec3f& set_spine) { f_set_spine = set_spine; }
04365 MFVec3f& get_set_spine() const { return const_cast<MFVec3f&>(f_set_spine); }
04366 void set_beginCap(const SFBool& beginCap) { f_beginCap = beginCap; }
04367 SFBool get_beginCap() const { return f_beginCap; }
04368 void set_ccw(const SFBool& ccw) { f_ccw = ccw; }
04369 SFBool get_ccw() const { return f_ccw; }
04370 void set_convex(const SFBool& convex) { f_convex = convex; }
04371 SFBool get_convex() const { return f_convex; }
04372 void set_creaseAngle(const SFFloat& creaseAngle) { f_creaseAngle = creaseAngle; }
04373 SFFloat get_creaseAngle() const { return f_creaseAngle; }
04374 void set_crossSection(const MFVec2f& crossSection) { f_crossSection = crossSection; }
04375 MFVec2f& get_crossSection() const { return const_cast<MFVec2f&>(f_crossSection); }
04376 void set_endCap(const SFBool& endCap) { f_endCap = endCap; }
04377 SFBool get_endCap() const { return f_endCap; }
04378 void set_orientation(const MFRotation& orientation) { f_orientation = orientation; }
04379 MFRotation& get_orientation() const { return const_cast<MFRotation&>(f_orientation); }
04380 void set_scale(const MFVec2f& scale) { f_scale = scale; }
04381 MFVec2f& get_scale() const { return const_cast<MFVec2f&>(f_scale); }
04382 void set_solid(const SFBool& solid) { f_solid = solid; }
04383 SFBool get_solid() const { return f_solid; }
04384 void set_spine(const MFVec3f& spine) { f_spine = spine; }
04385 MFVec3f& get_spine() const { return const_cast<MFVec3f&>(f_spine); }
04386
04387 protected:
04388 MFVec2f f_set_crossSection;
04389 MFRotation f_set_orientation;
04390 MFVec2f f_set_scale;
04391 MFVec3f f_set_spine;
04392 SFBool f_beginCap;
04393 SFBool f_ccw;
04394 SFBool f_convex;
04395 SFFloat f_creaseAngle;
04396 MFVec2f f_crossSection;
04397 SFBool f_endCap;
04398 MFRotation f_orientation;
04399 MFVec2f f_scale;
04400 SFBool f_solid;
04401 MFVec3f f_spine;
04402 };
04403 typedef pointer::SmartPointer<Extrusion> ExtrusionPtr;
04404
04405
04406
04407
04408
04409
04410
04411 class X3DComposedGeometryNode : public X3DGeometryNode
04412 {
04413 public:
04414 X3DComposedGeometryNode();
04415 virtual ~X3DComposedGeometryNode();
04416
04417 virtual bool IsNodeType(field_t type) const;
04418 virtual field_t GetNodeType(int idx = 0) const;
04419 virtual int GetTypeCount() const;
04420 virtual const char * GetNodeName() const;
04421
04422 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04423 virtual bool FieldHasDefaultValue(field_t name) const;
04424 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04425 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04426 virtual int GetFieldCount() const;
04427 virtual field_t GetDefaultContainerField() const;
04428
04429 virtual const char * GetDefaultContainerFieldName() const;
04430
04431 virtual bool SetFieldByName(field_t name, const void *data);
04432
04433
04434 void set_color(SFNode *color) { f_color = color; }
04435 SFNodePtr get_color() const { return f_color; }
04436 void set_coord(SFNode *coord) { f_coord = coord; }
04437 SFNodePtr get_coord() const { return f_coord; }
04438 void set_normal(SFNode *normal) { f_normal = normal; }
04439 SFNodePtr get_normal() const { return f_normal; }
04440 void set_texCoord(SFNode *texCoord) { f_texCoord = texCoord; }
04441 SFNodePtr get_texCoord() const { return f_texCoord; }
04442 void set_ccw(const SFBool& ccw) { f_ccw = ccw; }
04443 SFBool get_ccw() const { return f_ccw; }
04444 void set_colorPerVertex(const SFBool& colorPerVertex) { f_colorPerVertex = colorPerVertex; }
04445 SFBool get_colorPerVertex() const { return f_colorPerVertex; }
04446 void set_normalPerVertex(const SFBool& normalPerVertex) { f_normalPerVertex = normalPerVertex; }
04447 SFBool get_normalPerVertex() const { return f_normalPerVertex; }
04448 void set_solid(const SFBool& solid) { f_solid = solid; }
04449 SFBool get_solid() const { return f_solid; }
04450
04451 protected:
04452 SFNodePtr f_color;
04453 SFNodePtr f_coord;
04454 SFNodePtr f_normal;
04455 SFNodePtr f_texCoord;
04456 SFBool f_ccw;
04457 SFBool f_colorPerVertex;
04458 SFBool f_normalPerVertex;
04459 SFBool f_solid;
04460 };
04461 typedef pointer::SmartPointer<X3DComposedGeometryNode> X3DComposedGeometryNodePtr;
04462
04463
04464
04465
04466
04467
04468
04469 class IndexedFaceSet : public X3DComposedGeometryNode
04470 {
04471 public:
04472 IndexedFaceSet();
04473 virtual ~IndexedFaceSet();
04474
04475 virtual bool IsNodeType(field_t type) const;
04476 virtual field_t GetNodeType(int idx = 0) const;
04477 virtual int GetTypeCount() const;
04478 virtual const char * GetNodeName() const;
04479
04480 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04481 virtual bool FieldHasDefaultValue(field_t name) const;
04482 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04483 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04484 virtual int GetFieldCount() const;
04485 virtual field_t GetDefaultContainerField() const;
04486
04487 virtual const char * GetDefaultContainerFieldName() const;
04488
04489 virtual bool SetFieldByName(field_t name, const void *data);
04490
04491
04492 void set_set_colorIndex(const MFInt32& set_colorIndex) { f_set_colorIndex = set_colorIndex; }
04493 MFInt32& get_set_colorIndex() const { return const_cast<MFInt32&>(f_set_colorIndex); }
04494 void set_set_coordIndex(const MFInt32& set_coordIndex) { f_set_coordIndex = set_coordIndex; }
04495 MFInt32& get_set_coordIndex() const { return const_cast<MFInt32&>(f_set_coordIndex); }
04496 void set_set_normalIndex(const MFInt32& set_normalIndex) { f_set_normalIndex = set_normalIndex; }
04497 MFInt32& get_set_normalIndex() const { return const_cast<MFInt32&>(f_set_normalIndex); }
04498 void set_set_texCoordIndex(const MFInt32& set_texCoordIndex) { f_set_texCoordIndex = set_texCoordIndex; }
04499 MFInt32& get_set_texCoordIndex() const { return const_cast<MFInt32&>(f_set_texCoordIndex); }
04500 void set_colorIndex(const MFInt32& colorIndex) { f_colorIndex = colorIndex; }
04501 MFInt32& get_colorIndex() const { return const_cast<MFInt32&>(f_colorIndex); }
04502 void set_convex(const SFBool& convex) { f_convex = convex; }
04503 SFBool get_convex() const { return f_convex; }
04504 void set_coordIndex(const MFInt32& coordIndex) { f_coordIndex = coordIndex; }
04505 MFInt32& get_coordIndex() const { return const_cast<MFInt32&>(f_coordIndex); }
04506 void set_creaseAngle(const SFFloat& creaseAngle) { f_creaseAngle = creaseAngle; }
04507 SFFloat get_creaseAngle() const { return f_creaseAngle; }
04508 void set_normalIndex(const MFInt32& normalIndex) { f_normalIndex = normalIndex; }
04509 MFInt32& get_normalIndex() const { return const_cast<MFInt32&>(f_normalIndex); }
04510 void set_texCoordIndex(const MFInt32& texCoordIndex) { f_texCoordIndex = texCoordIndex; }
04511 MFInt32& get_texCoordIndex() const { return const_cast<MFInt32&>(f_texCoordIndex); }
04512
04513 protected:
04514 MFInt32 f_set_colorIndex;
04515 MFInt32 f_set_coordIndex;
04516 MFInt32 f_set_normalIndex;
04517 MFInt32 f_set_texCoordIndex;
04518 MFInt32 f_colorIndex;
04519 SFBool f_convex;
04520 MFInt32 f_coordIndex;
04521 SFFloat f_creaseAngle;
04522 MFInt32 f_normalIndex;
04523 MFInt32 f_texCoordIndex;
04524 };
04525 typedef pointer::SmartPointer<IndexedFaceSet> IndexedFaceSetPtr;
04526
04527
04528
04529
04530
04531
04532
04533 class Sphere : public X3DGeometryNode
04534 {
04535 public:
04536 Sphere();
04537 virtual ~Sphere();
04538
04539 virtual bool IsNodeType(field_t type) const;
04540 virtual field_t GetNodeType(int idx = 0) const;
04541 virtual int GetTypeCount() const;
04542 virtual const char * GetNodeName() const;
04543
04544 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04545 virtual bool FieldHasDefaultValue(field_t name) const;
04546 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04547 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04548 virtual int GetFieldCount() const;
04549 virtual field_t GetDefaultContainerField() const;
04550
04551 virtual const char * GetDefaultContainerFieldName() const;
04552
04553 virtual bool SetFieldByName(field_t name, const void *data);
04554
04555
04556 void set_radius(const SFFloat& radius) { f_radius = radius; }
04557 SFFloat get_radius() const { return f_radius; }
04558 void set_solid(const SFBool& solid) { f_solid = solid; }
04559 SFBool get_solid() const { return f_solid; }
04560
04561 protected:
04562 SFFloat f_radius;
04563 SFBool f_solid;
04564 };
04565 typedef pointer::SmartPointer<Sphere> SpherePtr;
04566
04567
04568
04569
04570
04571
04572
04573 class Group : public X3DGroupingNode
04574 {
04575 public:
04576 Group();
04577 virtual ~Group();
04578
04579 virtual bool IsNodeType(field_t type) const;
04580 virtual field_t GetNodeType(int idx = 0) const;
04581 virtual int GetTypeCount() const;
04582 virtual const char * GetNodeName() const;
04583
04584 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04585 virtual bool FieldHasDefaultValue(field_t name) const;
04586 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04587 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04588 virtual int GetFieldCount() const;
04589 virtual field_t GetDefaultContainerField() const;
04590
04591 virtual const char * GetDefaultContainerFieldName() const;
04592
04593 virtual bool SetFieldByName(field_t name, const void *data);
04594 };
04595 typedef pointer::SmartPointer<Group> GroupPtr;
04596
04597
04598
04599
04600
04601
04602
04603 class StaticGroup : public X3DChildNode, public X3DBoundedObject
04604 {
04605 public:
04606 StaticGroup();
04607 virtual ~StaticGroup();
04608
04609 virtual bool IsNodeType(field_t type) const;
04610 virtual field_t GetNodeType(int idx = 0) const;
04611 virtual int GetTypeCount() const;
04612 virtual const char * GetNodeName() const;
04613
04614 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04615 virtual bool FieldHasDefaultValue(field_t name) const;
04616 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04617 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04618 virtual int GetFieldCount() const;
04619 virtual field_t GetDefaultContainerField() const;
04620
04621 virtual const char * GetDefaultContainerFieldName() const;
04622
04623 virtual bool SetFieldByName(field_t name, const void *data);
04624
04625
04626 void set_children(const MFNode& children) { f_children = children; }
04627 MFNode& get_children() const { return const_cast<MFNode&>(f_children); }
04628
04629 protected:
04630 MFNode f_children;
04631 };
04632 typedef pointer::SmartPointer<StaticGroup> StaticGroupPtr;
04633
04634
04635
04636
04637
04638
04639
04640 class Switch : public X3DGroupingNode
04641 {
04642 public:
04643 Switch();
04644 virtual ~Switch();
04645
04646 virtual bool IsNodeType(field_t type) const;
04647 virtual field_t GetNodeType(int idx = 0) const;
04648 virtual int GetTypeCount() const;
04649 virtual const char * GetNodeName() const;
04650
04651 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04652 virtual bool FieldHasDefaultValue(field_t name) const;
04653 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04654 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04655 virtual int GetFieldCount() const;
04656 virtual field_t GetDefaultContainerField() const;
04657
04658 virtual const char * GetDefaultContainerFieldName() const;
04659
04660 virtual bool SetFieldByName(field_t name, const void *data);
04661
04662
04663 void set_whichChoice(const SFInt32& whichChoice) { f_whichChoice = whichChoice; }
04664 SFInt32 get_whichChoice() const { return f_whichChoice; }
04665
04666 protected:
04667 SFInt32 f_whichChoice;
04668 };
04669 typedef pointer::SmartPointer<Switch> SwitchPtr;
04670
04671
04672
04673
04674
04675
04676
04677 class Transform : public X3DGroupingNode
04678 {
04679 public:
04680 Transform();
04681 virtual ~Transform();
04682
04683 virtual bool IsNodeType(field_t type) const;
04684 virtual field_t GetNodeType(int idx = 0) const;
04685 virtual int GetTypeCount() const;
04686 virtual const char * GetNodeName() const;
04687
04688 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04689 virtual bool FieldHasDefaultValue(field_t name) const;
04690 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04691 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04692 virtual int GetFieldCount() const;
04693 virtual field_t GetDefaultContainerField() const;
04694
04695 virtual const char * GetDefaultContainerFieldName() const;
04696
04697 virtual bool SetFieldByName(field_t name, const void *data);
04698
04699
04700 void set_center(const SFVec3f& center) { f_center = center; }
04701 SFVec3f& get_center() const { return const_cast<SFVec3f&>(f_center); }
04702 void set_rotation(const SFRotation& rotation) { f_rotation = rotation; }
04703 SFRotation& get_rotation() const { return const_cast<SFRotation&>(f_rotation); }
04704 void set_scale(const SFVec3f& scale) { f_scale = scale; }
04705 SFVec3f& get_scale() const { return const_cast<SFVec3f&>(f_scale); }
04706 void set_scaleOrientation(const SFRotation& scaleOrientation) { f_scaleOrientation = scaleOrientation; }
04707 SFRotation& get_scaleOrientation() const { return const_cast<SFRotation&>(f_scaleOrientation); }
04708 void set_translation(const SFVec3f& translation) { f_translation = translation; }
04709 SFVec3f& get_translation() const { return const_cast<SFVec3f&>(f_translation); }
04710
04711 protected:
04712 SFVec3f f_center;
04713 SFRotation f_rotation;
04714 SFVec3f f_scale;
04715 SFRotation f_scaleOrientation;
04716 SFVec3f f_translation;
04717 };
04718 typedef pointer::SmartPointer<Transform> TransformPtr;
04719
04720
04721
04722
04723
04724
04725
04726 class WorldInfo : public X3DInfoNode
04727 {
04728 public:
04729 WorldInfo();
04730 virtual ~WorldInfo();
04731
04732 virtual bool IsNodeType(field_t type) const;
04733 virtual field_t GetNodeType(int idx = 0) const;
04734 virtual int GetTypeCount() const;
04735 virtual const char * GetNodeName() const;
04736
04737 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04738 virtual bool FieldHasDefaultValue(field_t name) const;
04739 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04740 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04741 virtual int GetFieldCount() const;
04742 virtual field_t GetDefaultContainerField() const;
04743
04744 virtual const char * GetDefaultContainerFieldName() const;
04745
04746 virtual bool SetFieldByName(field_t name, const void *data);
04747
04748
04749 void set_info(const MFString& info) { f_info = info; }
04750 MFString& get_info() const { return const_cast<MFString&>(f_info); }
04751 void set_title(const SFString& title) { f_title = title; }
04752 SFString& get_title() const { return const_cast<SFString&>(f_title); }
04753
04754 protected:
04755 MFString f_info;
04756 SFString f_title;
04757 };
04758 typedef pointer::SmartPointer<WorldInfo> WorldInfoPtr;
04759
04760
04761
04762
04763
04764
04765
04766 class HAnimDisplacer : public X3DGeometricPropertyNode
04767 {
04768 public:
04769 HAnimDisplacer();
04770 virtual ~HAnimDisplacer();
04771
04772 virtual bool IsNodeType(field_t type) const;
04773 virtual field_t GetNodeType(int idx = 0) const;
04774 virtual int GetTypeCount() const;
04775 virtual const char * GetNodeName() const;
04776
04777 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04778 virtual bool FieldHasDefaultValue(field_t name) const;
04779 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04780 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04781 virtual int GetFieldCount() const;
04782 virtual field_t GetDefaultContainerField() const;
04783
04784 virtual const char * GetDefaultContainerFieldName() const;
04785
04786 virtual bool SetFieldByName(field_t name, const void *data);
04787
04788
04789 void set_coordIndex(const MFInt32& coordIndex) { f_coordIndex = coordIndex; }
04790 MFInt32& get_coordIndex() const { return const_cast<MFInt32&>(f_coordIndex); }
04791 void set_displacements(const MFVec3f& displacements) { f_displacements = displacements; }
04792 MFVec3f& get_displacements() const { return const_cast<MFVec3f&>(f_displacements); }
04793 void set_name(const SFString& name) { f_name = name; }
04794 SFString& get_name() const { return const_cast<SFString&>(f_name); }
04795 void set_weight(const SFFloat& weight) { f_weight = weight; }
04796 SFFloat get_weight() const { return f_weight; }
04797
04798 protected:
04799 MFInt32 f_coordIndex;
04800 MFVec3f f_displacements;
04801 SFString f_name;
04802 SFFloat f_weight;
04803 };
04804 typedef pointer::SmartPointer<HAnimDisplacer> HAnimDisplacerPtr;
04805
04806
04807
04808
04809
04810
04811
04812 class HAnimHumanoid : public X3DChildNode, public X3DBoundedObject
04813 {
04814 public:
04815 HAnimHumanoid();
04816 virtual ~HAnimHumanoid();
04817
04818 virtual bool IsNodeType(field_t type) const;
04819 virtual field_t GetNodeType(int idx = 0) const;
04820 virtual int GetTypeCount() const;
04821 virtual const char * GetNodeName() const;
04822
04823 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04824 virtual bool FieldHasDefaultValue(field_t name) const;
04825 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04826 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04827 virtual int GetFieldCount() const;
04828 virtual field_t GetDefaultContainerField() const;
04829
04830 virtual const char * GetDefaultContainerFieldName() const;
04831
04832 virtual bool SetFieldByName(field_t name, const void *data);
04833
04834
04835 void set_center(const SFVec3f& center) { f_center = center; }
04836 SFVec3f& get_center() const { return const_cast<SFVec3f&>(f_center); }
04837 void set_info(const MFString& info) { f_info = info; }
04838 MFString& get_info() const { return const_cast<MFString&>(f_info); }
04839 void set_joints(const MFNode& joints) { f_joints = joints; }
04840 MFNode& get_joints() const { return const_cast<MFNode&>(f_joints); }
04841 void set_name(const SFString& name) { f_name = name; }
04842 SFString& get_name() const { return const_cast<SFString&>(f_name); }
04843 void set_rotation(const SFRotation& rotation) { f_rotation = rotation; }
04844 SFRotation& get_rotation() const { return const_cast<SFRotation&>(f_rotation); }
04845 void set_scale(const SFVec3f& scale) { f_scale = scale; }
04846 SFVec3f& get_scale() const { return const_cast<SFVec3f&>(f_scale); }
04847 void set_scaleOrientation(const SFRotation& scaleOrientation) { f_scaleOrientation = scaleOrientation; }
04848 SFRotation& get_scaleOrientation() const { return const_cast<SFRotation&>(f_scaleOrientation); }
04849 void set_segments(const MFNode& segments) { f_segments = segments; }
04850 MFNode& get_segments() const { return const_cast<MFNode&>(f_segments); }
04851 void set_sites(const MFNode& sites) { f_sites = sites; }
04852 MFNode& get_sites() const { return const_cast<MFNode&>(f_sites); }
04853 void set_skeleton(const MFNode& skeleton) { f_skeleton = skeleton; }
04854 MFNode& get_skeleton() const { return const_cast<MFNode&>(f_skeleton); }
04855 void set_skin(const MFNode& skin) { f_skin = skin; }
04856 MFNode& get_skin() const { return const_cast<MFNode&>(f_skin); }
04857 void set_skinCoord(SFNode *skinCoord) { f_skinCoord = skinCoord; }
04858 SFNodePtr get_skinCoord() const { return f_skinCoord; }
04859 void set_skinNormal(SFNode *skinNormal) { f_skinNormal = skinNormal; }
04860 SFNodePtr get_skinNormal() const { return f_skinNormal; }
04861 void set_translation(const SFVec3f& translation) { f_translation = translation; }
04862 SFVec3f& get_translation() const { return const_cast<SFVec3f&>(f_translation); }
04863 void set_version(const SFString& version) { f_version = version; }
04864 SFString& get_version() const { return const_cast<SFString&>(f_version); }
04865 void set_viewpoints(const MFNode& viewpoints) { f_viewpoints = viewpoints; }
04866 MFNode& get_viewpoints() const { return const_cast<MFNode&>(f_viewpoints); }
04867
04868 protected:
04869 SFVec3f f_center;
04870 MFString f_info;
04871 MFNode f_joints;
04872 SFString f_name;
04873 SFRotation f_rotation;
04874 SFVec3f f_scale;
04875 SFRotation f_scaleOrientation;
04876 MFNode f_segments;
04877 MFNode f_sites;
04878 MFNode f_skeleton;
04879 MFNode f_skin;
04880 SFNodePtr f_skinCoord;
04881 SFNodePtr f_skinNormal;
04882 SFVec3f f_translation;
04883 SFString f_version;
04884 MFNode f_viewpoints;
04885 };
04886 typedef pointer::SmartPointer<HAnimHumanoid> HAnimHumanoidPtr;
04887
04888
04889
04890
04891
04892
04893
04894 class HAnimJoint : public X3DGroupingNode
04895 {
04896 public:
04897 HAnimJoint();
04898 virtual ~HAnimJoint();
04899
04900 virtual bool IsNodeType(field_t type) const;
04901 virtual field_t GetNodeType(int idx = 0) const;
04902 virtual int GetTypeCount() const;
04903 virtual const char * GetNodeName() const;
04904
04905 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04906 virtual bool FieldHasDefaultValue(field_t name) const;
04907 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04908 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04909 virtual int GetFieldCount() const;
04910 virtual field_t GetDefaultContainerField() const;
04911
04912 virtual const char * GetDefaultContainerFieldName() const;
04913
04914 virtual bool SetFieldByName(field_t name, const void *data);
04915
04916
04917 void set_center(const SFVec3f& center) { f_center = center; }
04918 SFVec3f& get_center() const { return const_cast<SFVec3f&>(f_center); }
04919 void set_displacers(const MFNode& displacers) { f_displacers = displacers; }
04920 MFNode& get_displacers() const { return const_cast<MFNode&>(f_displacers); }
04921 void set_limitOrientation(const SFRotation& limitOrientation) { f_limitOrientation = limitOrientation; }
04922 SFRotation& get_limitOrientation() const { return const_cast<SFRotation&>(f_limitOrientation); }
04923 void set_llimit(const MFFloat& llimit) { f_llimit = llimit; }
04924 MFFloat& get_llimit() const { return const_cast<MFFloat&>(f_llimit); }
04925 void set_name(const SFString& name) { f_name = name; }
04926 SFString& get_name() const { return const_cast<SFString&>(f_name); }
04927 void set_rotation(const SFRotation& rotation) { f_rotation = rotation; }
04928 SFRotation& get_rotation() const { return const_cast<SFRotation&>(f_rotation); }
04929 void set_scale(const SFVec3f& scale) { f_scale = scale; }
04930 SFVec3f& get_scale() const { return const_cast<SFVec3f&>(f_scale); }
04931 void set_scaleOrientation(const SFRotation& scaleOrientation) { f_scaleOrientation = scaleOrientation; }
04932 SFRotation& get_scaleOrientation() const { return const_cast<SFRotation&>(f_scaleOrientation); }
04933 void set_skinCoordIndex(const MFInt32& skinCoordIndex) { f_skinCoordIndex = skinCoordIndex; }
04934 MFInt32& get_skinCoordIndex() const { return const_cast<MFInt32&>(f_skinCoordIndex); }
04935 void set_skinCoordWeight(const MFFloat& skinCoordWeight) { f_skinCoordWeight = skinCoordWeight; }
04936 MFFloat& get_skinCoordWeight() const { return const_cast<MFFloat&>(f_skinCoordWeight); }
04937 void set_stiffness(const MFFloat& stiffness) { f_stiffness = stiffness; }
04938 MFFloat& get_stiffness() const { return const_cast<MFFloat&>(f_stiffness); }
04939 void set_translation(const SFVec3f& translation) { f_translation = translation; }
04940 SFVec3f& get_translation() const { return const_cast<SFVec3f&>(f_translation); }
04941 void set_ulimit(const MFFloat& ulimit) { f_ulimit = ulimit; }
04942 MFFloat& get_ulimit() const { return const_cast<MFFloat&>(f_ulimit); }
04943
04944 protected:
04945 SFVec3f f_center;
04946 MFNode f_displacers;
04947 SFRotation f_limitOrientation;
04948 MFFloat f_llimit;
04949 SFString f_name;
04950 SFRotation f_rotation;
04951 SFVec3f f_scale;
04952 SFRotation f_scaleOrientation;
04953 MFInt32 f_skinCoordIndex;
04954 MFFloat f_skinCoordWeight;
04955 MFFloat f_stiffness;
04956 SFVec3f f_translation;
04957 MFFloat f_ulimit;
04958 };
04959 typedef pointer::SmartPointer<HAnimJoint> HAnimJointPtr;
04960
04961
04962
04963
04964
04965
04966
04967 class HAnimSegment : public X3DGroupingNode
04968 {
04969 public:
04970 HAnimSegment();
04971 virtual ~HAnimSegment();
04972
04973 virtual bool IsNodeType(field_t type) const;
04974 virtual field_t GetNodeType(int idx = 0) const;
04975 virtual int GetTypeCount() const;
04976 virtual const char * GetNodeName() const;
04977
04978 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
04979 virtual bool FieldHasDefaultValue(field_t name) const;
04980 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
04981 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
04982 virtual int GetFieldCount() const;
04983 virtual field_t GetDefaultContainerField() const;
04984
04985 virtual const char * GetDefaultContainerFieldName() const;
04986
04987 virtual bool SetFieldByName(field_t name, const void *data);
04988
04989
04990 void set_centerOfMass(const SFVec3f& centerOfMass) { f_centerOfMass = centerOfMass; }
04991 SFVec3f& get_centerOfMass() const { return const_cast<SFVec3f&>(f_centerOfMass); }
04992 void set_coord(SFNode *coord) { f_coord = coord; }
04993 SFNodePtr get_coord() const { return f_coord; }
04994 void set_displacers(const MFNode& displacers) { f_displacers = displacers; }
04995 MFNode& get_displacers() const { return const_cast<MFNode&>(f_displacers); }
04996 void set_mass(const SFFloat& mass) { f_mass = mass; }
04997 SFFloat get_mass() const { return f_mass; }
04998 void set_momentsOfInertia(const MFFloat& momentsOfInertia) { f_momentsOfInertia = momentsOfInertia; }
04999 MFFloat& get_momentsOfInertia() const { return const_cast<MFFloat&>(f_momentsOfInertia); }
05000 void set_name(const SFString& name) { f_name = name; }
05001 SFString& get_name() const { return const_cast<SFString&>(f_name); }
05002
05003 protected:
05004 SFVec3f f_centerOfMass;
05005 SFNodePtr f_coord;
05006 MFNode f_displacers;
05007 SFFloat f_mass;
05008 MFFloat f_momentsOfInertia;
05009 SFString f_name;
05010 };
05011 typedef pointer::SmartPointer<HAnimSegment> HAnimSegmentPtr;
05012
05013
05014
05015
05016
05017
05018
05019 class HAnimSite : public X3DGroupingNode
05020 {
05021 public:
05022 HAnimSite();
05023 virtual ~HAnimSite();
05024
05025 virtual bool IsNodeType(field_t type) const;
05026 virtual field_t GetNodeType(int idx = 0) const;
05027 virtual int GetTypeCount() const;
05028 virtual const char * GetNodeName() const;
05029
05030 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05031 virtual bool FieldHasDefaultValue(field_t name) const;
05032 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05033 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05034 virtual int GetFieldCount() const;
05035 virtual field_t GetDefaultContainerField() const;
05036
05037 virtual const char * GetDefaultContainerFieldName() const;
05038
05039 virtual bool SetFieldByName(field_t name, const void *data);
05040
05041
05042 void set_center(const SFVec3f& center) { f_center = center; }
05043 SFVec3f& get_center() const { return const_cast<SFVec3f&>(f_center); }
05044 void set_name(const SFString& name) { f_name = name; }
05045 SFString& get_name() const { return const_cast<SFString&>(f_name); }
05046 void set_rotation(const SFRotation& rotation) { f_rotation = rotation; }
05047 SFRotation& get_rotation() const { return const_cast<SFRotation&>(f_rotation); }
05048 void set_scale(const SFVec3f& scale) { f_scale = scale; }
05049 SFVec3f& get_scale() const { return const_cast<SFVec3f&>(f_scale); }
05050 void set_scaleOrientation(const SFRotation& scaleOrientation) { f_scaleOrientation = scaleOrientation; }
05051 SFRotation& get_scaleOrientation() const { return const_cast<SFRotation&>(f_scaleOrientation); }
05052 void set_translation(const SFVec3f& translation) { f_translation = translation; }
05053 SFVec3f& get_translation() const { return const_cast<SFVec3f&>(f_translation); }
05054
05055 protected:
05056 SFVec3f f_center;
05057 SFString f_name;
05058 SFRotation f_rotation;
05059 SFVec3f f_scale;
05060 SFRotation f_scaleOrientation;
05061 SFVec3f f_translation;
05062 };
05063 typedef pointer::SmartPointer<HAnimSite> HAnimSitePtr;
05064
05065
05066
05067
05068
05069
05070
05071 class ColorInterpolator : public X3DInterpolatorNode
05072 {
05073 public:
05074 ColorInterpolator();
05075 virtual ~ColorInterpolator();
05076
05077 virtual bool IsNodeType(field_t type) const;
05078 virtual field_t GetNodeType(int idx = 0) const;
05079 virtual int GetTypeCount() const;
05080 virtual const char * GetNodeName() const;
05081
05082 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05083 virtual bool FieldHasDefaultValue(field_t name) const;
05084 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05085 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05086 virtual int GetFieldCount() const;
05087 virtual field_t GetDefaultContainerField() const;
05088
05089 virtual const char * GetDefaultContainerFieldName() const;
05090
05091 virtual bool SetFieldByName(field_t name, const void *data);
05092
05093
05094 void set_keyValue(const MFColor& keyValue) { f_keyValue = keyValue; }
05095 MFColor& get_keyValue() const { return const_cast<MFColor&>(f_keyValue); }
05096 void set_value_changed(const SFColor& value_changed) { f_value_changed = value_changed; }
05097 SFColor get_value_changed() const { return f_value_changed; }
05098
05099 protected:
05100 MFColor f_keyValue;
05101 SFColor f_value_changed;
05102 };
05103 typedef pointer::SmartPointer<ColorInterpolator> ColorInterpolatorPtr;
05104
05105
05106
05107
05108
05109
05110
05111 class CoordinateInterpolator : public X3DInterpolatorNode
05112 {
05113 public:
05114 CoordinateInterpolator();
05115 virtual ~CoordinateInterpolator();
05116
05117 virtual bool IsNodeType(field_t type) const;
05118 virtual field_t GetNodeType(int idx = 0) const;
05119 virtual int GetTypeCount() const;
05120 virtual const char * GetNodeName() const;
05121
05122 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05123 virtual bool FieldHasDefaultValue(field_t name) const;
05124 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05125 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05126 virtual int GetFieldCount() const;
05127 virtual field_t GetDefaultContainerField() const;
05128
05129 virtual const char * GetDefaultContainerFieldName() const;
05130
05131 virtual bool SetFieldByName(field_t name, const void *data);
05132
05133
05134 void set_keyValue(const MFVec3f& keyValue) { f_keyValue = keyValue; }
05135 MFVec3f& get_keyValue() const { return const_cast<MFVec3f&>(f_keyValue); }
05136 void set_value_changed(const MFVec3f& value_changed) { f_value_changed = value_changed; }
05137 MFVec3f& get_value_changed() const { return const_cast<MFVec3f&>(f_value_changed); }
05138
05139 protected:
05140 MFVec3f f_keyValue;
05141 MFVec3f f_value_changed;
05142 };
05143 typedef pointer::SmartPointer<CoordinateInterpolator> CoordinateInterpolatorPtr;
05144
05145
05146
05147
05148
05149
05150
05151 class CoordinateInterpolator2D : public X3DInterpolatorNode
05152 {
05153 public:
05154 CoordinateInterpolator2D();
05155 virtual ~CoordinateInterpolator2D();
05156
05157 virtual bool IsNodeType(field_t type) const;
05158 virtual field_t GetNodeType(int idx = 0) const;
05159 virtual int GetTypeCount() const;
05160 virtual const char * GetNodeName() const;
05161
05162 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05163 virtual bool FieldHasDefaultValue(field_t name) const;
05164 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05165 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05166 virtual int GetFieldCount() const;
05167 virtual field_t GetDefaultContainerField() const;
05168
05169 virtual const char * GetDefaultContainerFieldName() const;
05170
05171 virtual bool SetFieldByName(field_t name, const void *data);
05172
05173
05174 void set_keyValue(const MFVec2f& keyValue) { f_keyValue = keyValue; }
05175 MFVec2f& get_keyValue() const { return const_cast<MFVec2f&>(f_keyValue); }
05176 void set_value_changed(const MFVec2f& value_changed) { f_value_changed = value_changed; }
05177 MFVec2f& get_value_changed() const { return const_cast<MFVec2f&>(f_value_changed); }
05178
05179 protected:
05180 MFVec2f f_keyValue;
05181 MFVec2f f_value_changed;
05182 };
05183 typedef pointer::SmartPointer<CoordinateInterpolator2D> CoordinateInterpolator2DPtr;
05184
05185
05186
05187
05188
05189
05190
05191 class NormalInterpolator : public X3DInterpolatorNode
05192 {
05193 public:
05194 NormalInterpolator();
05195 virtual ~NormalInterpolator();
05196
05197 virtual bool IsNodeType(field_t type) const;
05198 virtual field_t GetNodeType(int idx = 0) const;
05199 virtual int GetTypeCount() const;
05200 virtual const char * GetNodeName() const;
05201
05202 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05203 virtual bool FieldHasDefaultValue(field_t name) const;
05204 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05205 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05206 virtual int GetFieldCount() const;
05207 virtual field_t GetDefaultContainerField() const;
05208
05209 virtual const char * GetDefaultContainerFieldName() const;
05210
05211 virtual bool SetFieldByName(field_t name, const void *data);
05212
05213
05214 void set_keyValue(const MFVec3f& keyValue) { f_keyValue = keyValue; }
05215 MFVec3f& get_keyValue() const { return const_cast<MFVec3f&>(f_keyValue); }
05216 void set_value_changed(const MFVec3f& value_changed) { f_value_changed = value_changed; }
05217 MFVec3f& get_value_changed() const { return const_cast<MFVec3f&>(f_value_changed); }
05218
05219 protected:
05220 MFVec3f f_keyValue;
05221 MFVec3f f_value_changed;
05222 };
05223 typedef pointer::SmartPointer<NormalInterpolator> NormalInterpolatorPtr;
05224
05225
05226
05227
05228
05229
05230
05231 class OrientationInterpolator : public X3DInterpolatorNode
05232 {
05233 public:
05234 OrientationInterpolator();
05235 virtual ~OrientationInterpolator();
05236
05237 virtual bool IsNodeType(field_t type) const;
05238 virtual field_t GetNodeType(int idx = 0) const;
05239 virtual int GetTypeCount() const;
05240 virtual const char * GetNodeName() const;
05241
05242 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05243 virtual bool FieldHasDefaultValue(field_t name) const;
05244 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05245 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05246 virtual int GetFieldCount() const;
05247 virtual field_t GetDefaultContainerField() const;
05248
05249 virtual const char * GetDefaultContainerFieldName() const;
05250
05251 virtual bool SetFieldByName(field_t name, const void *data);
05252
05253
05254 void set_keyValue(const MFRotation& keyValue) { f_keyValue = keyValue; }
05255 MFRotation& get_keyValue() const { return const_cast<MFRotation&>(f_keyValue); }
05256 void set_value_changed(const SFRotation& value_changed) { f_value_changed = value_changed; }
05257 SFRotation& get_value_changed() const { return const_cast<SFRotation&>(f_value_changed); }
05258
05259 protected:
05260 MFRotation f_keyValue;
05261 SFRotation f_value_changed;
05262 };
05263 typedef pointer::SmartPointer<OrientationInterpolator> OrientationInterpolatorPtr;
05264
05265
05266
05267
05268
05269
05270
05271 class PositionInterpolator : public X3DInterpolatorNode
05272 {
05273 public:
05274 PositionInterpolator();
05275 virtual ~PositionInterpolator();
05276
05277 virtual bool IsNodeType(field_t type) const;
05278 virtual field_t GetNodeType(int idx = 0) const;
05279 virtual int GetTypeCount() const;
05280 virtual const char * GetNodeName() const;
05281
05282 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05283 virtual bool FieldHasDefaultValue(field_t name) const;
05284 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05285 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05286 virtual int GetFieldCount() const;
05287 virtual field_t GetDefaultContainerField() const;
05288
05289 virtual const char * GetDefaultContainerFieldName() const;
05290
05291 virtual bool SetFieldByName(field_t name, const void *data);
05292
05293
05294 void set_keyValue(const MFVec3f& keyValue) { f_keyValue = keyValue; }
05295 MFVec3f& get_keyValue() const { return const_cast<MFVec3f&>(f_keyValue); }
05296 void set_value_changed(const SFVec3f& value_changed) { f_value_changed = value_changed; }
05297 SFVec3f& get_value_changed() const { return const_cast<SFVec3f&>(f_value_changed); }
05298
05299 protected:
05300 MFVec3f f_keyValue;
05301 SFVec3f f_value_changed;
05302 };
05303 typedef pointer::SmartPointer<PositionInterpolator> PositionInterpolatorPtr;
05304
05305
05306
05307
05308
05309
05310
05311 class PositionInterpolator2D : public X3DInterpolatorNode
05312 {
05313 public:
05314 PositionInterpolator2D();
05315 virtual ~PositionInterpolator2D();
05316
05317 virtual bool IsNodeType(field_t type) const;
05318 virtual field_t GetNodeType(int idx = 0) const;
05319 virtual int GetTypeCount() const;
05320 virtual const char * GetNodeName() const;
05321
05322 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05323 virtual bool FieldHasDefaultValue(field_t name) const;
05324 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05325 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05326 virtual int GetFieldCount() const;
05327 virtual field_t GetDefaultContainerField() const;
05328
05329 virtual const char * GetDefaultContainerFieldName() const;
05330
05331 virtual bool SetFieldByName(field_t name, const void *data);
05332
05333
05334 void set_keyValue(const MFVec2f& keyValue) { f_keyValue = keyValue; }
05335 MFVec2f& get_keyValue() const { return const_cast<MFVec2f&>(f_keyValue); }
05336 void set_value_changed(const SFVec2f& value_changed) { f_value_changed = value_changed; }
05337 SFVec2f& get_value_changed() const { return const_cast<SFVec2f&>(f_value_changed); }
05338
05339 protected:
05340 MFVec2f f_keyValue;
05341 SFVec2f f_value_changed;
05342 };
05343 typedef pointer::SmartPointer<PositionInterpolator2D> PositionInterpolator2DPtr;
05344
05345
05346
05347
05348
05349
05350
05351 class ScalarInterpolator : public X3DInterpolatorNode
05352 {
05353 public:
05354 ScalarInterpolator();
05355 virtual ~ScalarInterpolator();
05356
05357 virtual bool IsNodeType(field_t type) const;
05358 virtual field_t GetNodeType(int idx = 0) const;
05359 virtual int GetTypeCount() const;
05360 virtual const char * GetNodeName() const;
05361
05362 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05363 virtual bool FieldHasDefaultValue(field_t name) const;
05364 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05365 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05366 virtual int GetFieldCount() const;
05367 virtual field_t GetDefaultContainerField() const;
05368
05369 virtual const char * GetDefaultContainerFieldName() const;
05370
05371 virtual bool SetFieldByName(field_t name, const void *data);
05372
05373
05374 void set_keyValue(const MFFloat& keyValue) { f_keyValue = keyValue; }
05375 MFFloat& get_keyValue() const { return const_cast<MFFloat&>(f_keyValue); }
05376 void set_value_changed(const SFFloat& value_changed) { f_value_changed = value_changed; }
05377 SFFloat get_value_changed() const { return f_value_changed; }
05378
05379 protected:
05380 MFFloat f_keyValue;
05381 SFFloat f_value_changed;
05382 };
05383 typedef pointer::SmartPointer<ScalarInterpolator> ScalarInterpolatorPtr;
05384
05385
05386
05387
05388
05389
05390
05391 class X3DKeyDeviceSensorNode : public X3DChildNode, public X3DSensorNode
05392 {
05393 public:
05394 X3DKeyDeviceSensorNode();
05395 virtual ~X3DKeyDeviceSensorNode();
05396
05397 virtual bool IsNodeType(field_t type) const;
05398 virtual field_t GetNodeType(int idx = 0) const;
05399 virtual int GetTypeCount() const;
05400 virtual const char * GetNodeName() const;
05401
05402 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05403 virtual bool FieldHasDefaultValue(field_t name) const;
05404 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05405 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05406 virtual int GetFieldCount() const;
05407 virtual field_t GetDefaultContainerField() const;
05408
05409 virtual const char * GetDefaultContainerFieldName() const;
05410
05411 virtual bool SetFieldByName(field_t name, const void *data);
05412 };
05413 typedef pointer::SmartPointer<X3DKeyDeviceSensorNode> X3DKeyDeviceSensorNodePtr;
05414
05415
05416
05417
05418
05419
05420
05421 class KeySensor : public X3DKeyDeviceSensorNode
05422 {
05423 public:
05424 KeySensor();
05425 virtual ~KeySensor();
05426
05427 virtual bool IsNodeType(field_t type) const;
05428 virtual field_t GetNodeType(int idx = 0) const;
05429 virtual int GetTypeCount() const;
05430 virtual const char * GetNodeName() const;
05431
05432 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05433 virtual bool FieldHasDefaultValue(field_t name) const;
05434 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05435 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05436 virtual int GetFieldCount() const;
05437 virtual field_t GetDefaultContainerField() const;
05438
05439 virtual const char * GetDefaultContainerFieldName() const;
05440
05441 virtual bool SetFieldByName(field_t name, const void *data);
05442
05443
05444 void set_actionKeyPress(const SFInt32& actionKeyPress) { f_actionKeyPress = actionKeyPress; }
05445 SFInt32 get_actionKeyPress() const { return f_actionKeyPress; }
05446 void set_actionKeyRelease(const SFInt32& actionKeyRelease) { f_actionKeyRelease = actionKeyRelease; }
05447 SFInt32 get_actionKeyRelease() const { return f_actionKeyRelease; }
05448 void set_altKey(const SFBool& altKey) { f_altKey = altKey; }
05449 SFBool get_altKey() const { return f_altKey; }
05450 void set_controlKey(const SFBool& controlKey) { f_controlKey = controlKey; }
05451 SFBool get_controlKey() const { return f_controlKey; }
05452 void set_keyPress(const SFString& keyPress) { f_keyPress = keyPress; }
05453 SFString& get_keyPress() const { return const_cast<SFString&>(f_keyPress); }
05454 void set_keyRelease(const SFString& keyRelease) { f_keyRelease = keyRelease; }
05455 SFString& get_keyRelease() const { return const_cast<SFString&>(f_keyRelease); }
05456 void set_shiftKey(const SFBool& shiftKey) { f_shiftKey = shiftKey; }
05457 SFBool get_shiftKey() const { return f_shiftKey; }
05458
05459 protected:
05460 SFInt32 f_actionKeyPress;
05461 SFInt32 f_actionKeyRelease;
05462 SFBool f_altKey;
05463 SFBool f_controlKey;
05464 SFString f_keyPress;
05465 SFString f_keyRelease;
05466 SFBool f_shiftKey;
05467 };
05468 typedef pointer::SmartPointer<KeySensor> KeySensorPtr;
05469
05470
05471
05472
05473
05474
05475
05476 class StringSensor : public X3DKeyDeviceSensorNode
05477 {
05478 public:
05479 StringSensor();
05480 virtual ~StringSensor();
05481
05482 virtual bool IsNodeType(field_t type) const;
05483 virtual field_t GetNodeType(int idx = 0) const;
05484 virtual int GetTypeCount() const;
05485 virtual const char * GetNodeName() const;
05486
05487 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05488 virtual bool FieldHasDefaultValue(field_t name) const;
05489 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05490 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05491 virtual int GetFieldCount() const;
05492 virtual field_t GetDefaultContainerField() const;
05493
05494 virtual const char * GetDefaultContainerFieldName() const;
05495
05496 virtual bool SetFieldByName(field_t name, const void *data);
05497
05498
05499 void set_deletionAllowed(const SFBool& deletionAllowed) { f_deletionAllowed = deletionAllowed; }
05500 SFBool get_deletionAllowed() const { return f_deletionAllowed; }
05501 void set_enteredText(const SFString& enteredText) { f_enteredText = enteredText; }
05502 SFString& get_enteredText() const { return const_cast<SFString&>(f_enteredText); }
05503 void set_finalText(const SFString& finalText) { f_finalText = finalText; }
05504 SFString& get_finalText() const { return const_cast<SFString&>(f_finalText); }
05505
05506 protected:
05507 SFBool f_deletionAllowed;
05508 SFString f_enteredText;
05509 SFString f_finalText;
05510 };
05511 typedef pointer::SmartPointer<StringSensor> StringSensorPtr;
05512
05513
05514
05515
05516
05517
05518
05519 class X3DLightNode : public X3DChildNode
05520 {
05521 public:
05522 X3DLightNode();
05523 virtual ~X3DLightNode();
05524
05525 virtual bool IsNodeType(field_t type) const;
05526 virtual field_t GetNodeType(int idx = 0) const;
05527 virtual int GetTypeCount() const;
05528 virtual const char * GetNodeName() const;
05529
05530 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05531 virtual bool FieldHasDefaultValue(field_t name) const;
05532 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05533 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05534 virtual int GetFieldCount() const;
05535 virtual field_t GetDefaultContainerField() const;
05536
05537 virtual const char * GetDefaultContainerFieldName() const;
05538
05539 virtual bool SetFieldByName(field_t name, const void *data);
05540
05541
05542 void set_ambientIntensity(const SFFloat& ambientIntensity) { f_ambientIntensity = ambientIntensity; }
05543 SFFloat get_ambientIntensity() const { return f_ambientIntensity; }
05544 void set_color(const SFColor& color) { f_color = color; }
05545 SFColor get_color() const { return f_color; }
05546 void set_intensity(const SFFloat& intensity) { f_intensity = intensity; }
05547 SFFloat get_intensity() const { return f_intensity; }
05548 void set_on(const SFBool& on) { f_on = on; }
05549 SFBool get_on() const { return f_on; }
05550
05551 protected:
05552 SFFloat f_ambientIntensity;
05553 SFColor f_color;
05554 SFFloat f_intensity;
05555 SFBool f_on;
05556 };
05557 typedef pointer::SmartPointer<X3DLightNode> X3DLightNodePtr;
05558
05559
05560
05561
05562
05563
05564
05565 class DirectionalLight : public X3DLightNode
05566 {
05567 public:
05568 DirectionalLight();
05569 virtual ~DirectionalLight();
05570
05571 virtual bool IsNodeType(field_t type) const;
05572 virtual field_t GetNodeType(int idx = 0) const;
05573 virtual int GetTypeCount() const;
05574 virtual const char * GetNodeName() const;
05575
05576 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05577 virtual bool FieldHasDefaultValue(field_t name) const;
05578 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05579 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05580 virtual int GetFieldCount() const;
05581 virtual field_t GetDefaultContainerField() const;
05582
05583 virtual const char * GetDefaultContainerFieldName() const;
05584
05585 virtual bool SetFieldByName(field_t name, const void *data);
05586
05587
05588 void set_direction(const SFVec3f& direction) { f_direction = direction; }
05589 SFVec3f& get_direction() const { return const_cast<SFVec3f&>(f_direction); }
05590
05591 protected:
05592 SFVec3f f_direction;
05593 };
05594 typedef pointer::SmartPointer<DirectionalLight> DirectionalLightPtr;
05595
05596
05597
05598
05599
05600
05601
05602 class PointLight : public X3DLightNode
05603 {
05604 public:
05605 PointLight();
05606 virtual ~PointLight();
05607
05608 virtual bool IsNodeType(field_t type) const;
05609 virtual field_t GetNodeType(int idx = 0) const;
05610 virtual int GetTypeCount() const;
05611 virtual const char * GetNodeName() const;
05612
05613 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05614 virtual bool FieldHasDefaultValue(field_t name) const;
05615 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05616 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05617 virtual int GetFieldCount() const;
05618 virtual field_t GetDefaultContainerField() const;
05619
05620 virtual const char * GetDefaultContainerFieldName() const;
05621
05622 virtual bool SetFieldByName(field_t name, const void *data);
05623
05624
05625 void set_attenuation(const SFVec3f& attenuation) { f_attenuation = attenuation; }
05626 SFVec3f& get_attenuation() const { return const_cast<SFVec3f&>(f_attenuation); }
05627 void set_location(const SFVec3f& location) { f_location = location; }
05628 SFVec3f& get_location() const { return const_cast<SFVec3f&>(f_location); }
05629 void set_radius(const SFFloat& radius) { f_radius = radius; }
05630 SFFloat get_radius() const { return f_radius; }
05631
05632 protected:
05633 SFVec3f f_attenuation;
05634 SFVec3f f_location;
05635 SFFloat f_radius;
05636 };
05637 typedef pointer::SmartPointer<PointLight> PointLightPtr;
05638
05639
05640
05641
05642
05643
05644
05645 class SpotLight : public X3DLightNode
05646 {
05647 public:
05648 SpotLight();
05649 virtual ~SpotLight();
05650
05651 virtual bool IsNodeType(field_t type) const;
05652 virtual field_t GetNodeType(int idx = 0) const;
05653 virtual int GetTypeCount() const;
05654 virtual const char * GetNodeName() const;
05655
05656 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05657 virtual bool FieldHasDefaultValue(field_t name) const;
05658 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05659 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05660 virtual int GetFieldCount() const;
05661 virtual field_t GetDefaultContainerField() const;
05662
05663 virtual const char * GetDefaultContainerFieldName() const;
05664
05665 virtual bool SetFieldByName(field_t name, const void *data);
05666
05667
05668 void set_attenuation(const SFVec3f& attenuation) { f_attenuation = attenuation; }
05669 SFVec3f& get_attenuation() const { return const_cast<SFVec3f&>(f_attenuation); }
05670 void set_beamWidth(const SFFloat& beamWidth) { f_beamWidth = beamWidth; }
05671 SFFloat get_beamWidth() const { return f_beamWidth; }
05672 void set_cutOffAngle(const SFFloat& cutOffAngle) { f_cutOffAngle = cutOffAngle; }
05673 SFFloat get_cutOffAngle() const { return f_cutOffAngle; }
05674 void set_direction(const SFVec3f& direction) { f_direction = direction; }
05675 SFVec3f& get_direction() const { return const_cast<SFVec3f&>(f_direction); }
05676 void set_location(const SFVec3f& location) { f_location = location; }
05677 SFVec3f& get_location() const { return const_cast<SFVec3f&>(f_location); }
05678 void set_radius(const SFFloat& radius) { f_radius = radius; }
05679 SFFloat get_radius() const { return f_radius; }
05680
05681 protected:
05682 SFVec3f f_attenuation;
05683 SFFloat f_beamWidth;
05684 SFFloat f_cutOffAngle;
05685 SFVec3f f_direction;
05686 SFVec3f f_location;
05687 SFFloat f_radius;
05688 };
05689 typedef pointer::SmartPointer<SpotLight> SpotLightPtr;
05690
05691
05692
05693
05694
05695
05696
05697 class Billboard : public X3DGroupingNode
05698 {
05699 public:
05700 Billboard();
05701 virtual ~Billboard();
05702
05703 virtual bool IsNodeType(field_t type) const;
05704 virtual field_t GetNodeType(int idx = 0) const;
05705 virtual int GetTypeCount() const;
05706 virtual const char * GetNodeName() const;
05707
05708 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05709 virtual bool FieldHasDefaultValue(field_t name) const;
05710 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05711 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05712 virtual int GetFieldCount() const;
05713 virtual field_t GetDefaultContainerField() const;
05714
05715 virtual const char * GetDefaultContainerFieldName() const;
05716
05717 virtual bool SetFieldByName(field_t name, const void *data);
05718
05719
05720 void set_axisOfRotation(const SFVec3f& axisOfRotation) { f_axisOfRotation = axisOfRotation; }
05721 SFVec3f& get_axisOfRotation() const { return const_cast<SFVec3f&>(f_axisOfRotation); }
05722
05723 protected:
05724 SFVec3f f_axisOfRotation;
05725 };
05726 typedef pointer::SmartPointer<Billboard> BillboardPtr;
05727
05728
05729
05730
05731
05732
05733
05734 class Collision : public X3DGroupingNode, public X3DSensorNode
05735 {
05736 public:
05737 Collision();
05738 virtual ~Collision();
05739
05740 virtual bool IsNodeType(field_t type) const;
05741 virtual field_t GetNodeType(int idx = 0) const;
05742 virtual int GetTypeCount() const;
05743 virtual const char * GetNodeName() const;
05744
05745 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05746 virtual bool FieldHasDefaultValue(field_t name) const;
05747 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05748 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05749 virtual int GetFieldCount() const;
05750 virtual field_t GetDefaultContainerField() const;
05751
05752 virtual const char * GetDefaultContainerFieldName() const;
05753
05754 virtual bool SetFieldByName(field_t name, const void *data);
05755
05756
05757 void set_collideTime(const SFTime& collideTime) { f_collideTime = collideTime; }
05758 SFTime get_collideTime() const { return f_collideTime; }
05759 void set_proxy(SFNode *proxy) { f_proxy = proxy; }
05760 SFNodePtr get_proxy() const { return f_proxy; }
05761
05762 protected:
05763 SFTime f_collideTime;
05764 SFNodePtr f_proxy;
05765 };
05766 typedef pointer::SmartPointer<Collision> CollisionPtr;
05767
05768
05769
05770
05771
05772
05773
05774 class LOD : public X3DGroupingNode
05775 {
05776 public:
05777 LOD();
05778 virtual ~LOD();
05779
05780 virtual bool IsNodeType(field_t type) const;
05781 virtual field_t GetNodeType(int idx = 0) const;
05782 virtual int GetTypeCount() const;
05783 virtual const char * GetNodeName() const;
05784
05785 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05786 virtual bool FieldHasDefaultValue(field_t name) const;
05787 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05788 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05789 virtual int GetFieldCount() const;
05790 virtual field_t GetDefaultContainerField() const;
05791
05792 virtual const char * GetDefaultContainerFieldName() const;
05793
05794 virtual bool SetFieldByName(field_t name, const void *data);
05795
05796
05797 void set_center(const SFVec3f& center) { f_center = center; }
05798 SFVec3f& get_center() const { return const_cast<SFVec3f&>(f_center); }
05799 void set_range(const MFFloat& range) { f_range = range; }
05800 MFFloat& get_range() const { return const_cast<MFFloat&>(f_range); }
05801
05802 protected:
05803 SFVec3f f_center;
05804 MFFloat f_range;
05805 };
05806 typedef pointer::SmartPointer<LOD> LODPtr;
05807
05808
05809
05810
05811
05812
05813
05814 class NavigationInfo : public X3DBindableNode
05815 {
05816 public:
05817 NavigationInfo();
05818 virtual ~NavigationInfo();
05819
05820 virtual bool IsNodeType(field_t type) const;
05821 virtual field_t GetNodeType(int idx = 0) const;
05822 virtual int GetTypeCount() const;
05823 virtual const char * GetNodeName() const;
05824
05825 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05826 virtual bool FieldHasDefaultValue(field_t name) const;
05827 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05828 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05829 virtual int GetFieldCount() const;
05830 virtual field_t GetDefaultContainerField() const;
05831
05832 virtual const char * GetDefaultContainerFieldName() const;
05833
05834 virtual bool SetFieldByName(field_t name, const void *data);
05835
05836
05837 void set_avatarSize(const MFFloat& avatarSize) { f_avatarSize = avatarSize; }
05838 MFFloat& get_avatarSize() const { return const_cast<MFFloat&>(f_avatarSize); }
05839 void set_headlight(const SFBool& headlight) { f_headlight = headlight; }
05840 SFBool get_headlight() const { return f_headlight; }
05841 void set_speed(const SFFloat& speed) { f_speed = speed; }
05842 SFFloat get_speed() const { return f_speed; }
05843 void set_transitionType(const SFInt32& transitionType) { f_transitionType = transitionType; }
05844 SFInt32 get_transitionType() const { return f_transitionType; }
05845 void set_type(const MFString& type) { f_type = type; }
05846 MFString& get_type() const { return const_cast<MFString&>(f_type); }
05847 void set_visibilityLimit(const SFFloat& visibilityLimit) { f_visibilityLimit = visibilityLimit; }
05848 SFFloat get_visibilityLimit() const { return f_visibilityLimit; }
05849
05850 protected:
05851 MFFloat f_avatarSize;
05852 SFBool f_headlight;
05853 SFFloat f_speed;
05854 SFInt32 f_transitionType;
05855 mutable SFInt32 f_transitionType__flags_last;
05856 mutable MFString f_transitionType__flags_names;
05857 MFString f_type;
05858 SFFloat f_visibilityLimit;
05859 };
05860 typedef pointer::SmartPointer<NavigationInfo> NavigationInfoPtr;
05861
05862
05863
05864
05865
05866
05867
05868 class Viewpoint : public X3DBindableNode
05869 {
05870 public:
05871 Viewpoint();
05872 virtual ~Viewpoint();
05873
05874 virtual bool IsNodeType(field_t type) const;
05875 virtual field_t GetNodeType(int idx = 0) const;
05876 virtual int GetTypeCount() const;
05877 virtual const char * GetNodeName() const;
05878
05879 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05880 virtual bool FieldHasDefaultValue(field_t name) const;
05881 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05882 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05883 virtual int GetFieldCount() const;
05884 virtual field_t GetDefaultContainerField() const;
05885
05886 virtual const char * GetDefaultContainerFieldName() const;
05887
05888 virtual bool SetFieldByName(field_t name, const void *data);
05889
05890
05891 void set_centerOfRotation(const SFVec3f& centerOfRotation) { f_centerOfRotation = centerOfRotation; }
05892 SFVec3f& get_centerOfRotation() const { return const_cast<SFVec3f&>(f_centerOfRotation); }
05893 void set_description(const SFString& description) { f_description = description; }
05894 SFString& get_description() const { return const_cast<SFString&>(f_description); }
05895 void set_fieldOfView(const SFFloat& fieldOfView) { f_fieldOfView = fieldOfView; }
05896 SFFloat get_fieldOfView() const { return f_fieldOfView; }
05897 void set_jump(const SFBool& jump) { f_jump = jump; }
05898 SFBool get_jump() const { return f_jump; }
05899 void set_orientation(const SFRotation& orientation) { f_orientation = orientation; }
05900 SFRotation& get_orientation() const { return const_cast<SFRotation&>(f_orientation); }
05901 void set_position(const SFVec3f& position) { f_position = position; }
05902 SFVec3f& get_position() const { return const_cast<SFVec3f&>(f_position); }
05903
05904 protected:
05905 SFVec3f f_centerOfRotation;
05906 SFString f_description;
05907 SFFloat f_fieldOfView;
05908 SFBool f_jump;
05909 SFRotation f_orientation;
05910 SFVec3f f_position;
05911 };
05912 typedef pointer::SmartPointer<Viewpoint> ViewpointPtr;
05913
05914
05915
05916
05917
05918
05919
05920 class X3DNetworkSensorNode : public X3DChildNode, public X3DSensorNode
05921 {
05922 public:
05923 X3DNetworkSensorNode();
05924 virtual ~X3DNetworkSensorNode();
05925
05926 virtual bool IsNodeType(field_t type) const;
05927 virtual field_t GetNodeType(int idx = 0) const;
05928 virtual int GetTypeCount() const;
05929 virtual const char * GetNodeName() const;
05930
05931 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05932 virtual bool FieldHasDefaultValue(field_t name) const;
05933 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05934 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05935 virtual int GetFieldCount() const;
05936 virtual field_t GetDefaultContainerField() const;
05937
05938 virtual const char * GetDefaultContainerFieldName() const;
05939
05940 virtual bool SetFieldByName(field_t name, const void *data);
05941 };
05942 typedef pointer::SmartPointer<X3DNetworkSensorNode> X3DNetworkSensorNodePtr;
05943
05944
05945
05946
05947
05948
05949
05950 class X3DUrlObject
05951 {
05952 public:
05953 X3DUrlObject();
05954 virtual ~X3DUrlObject();
05955
05956 virtual bool IsNodeType(field_t type) const;
05957 virtual field_t GetNodeType(int idx = 0) const;
05958 virtual int GetTypeCount() const;
05959 virtual const char * GetNodeName() const;
05960
05961 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05962 virtual bool FieldHasDefaultValue(field_t name) const;
05963 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
05964 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
05965 virtual int GetFieldCount() const;
05966 virtual field_t GetDefaultContainerField() const;
05967
05968 virtual const char * GetDefaultContainerFieldName() const;
05969
05970 virtual bool SetFieldByName(field_t name, const void *data);
05971
05972
05973 void set_url(const MFString& url) { f_url = url; }
05974 MFString& get_url() const { return const_cast<MFString&>(f_url); }
05975
05976 protected:
05977 MFString f_url;
05978 };
05979 typedef pointer::SmartPointer<X3DUrlObject> X3DUrlObjectPtr;
05980
05981
05982
05983
05984
05985
05986
05987 class Anchor : public X3DGroupingNode
05988 {
05989 public:
05990 Anchor();
05991 virtual ~Anchor();
05992
05993 virtual bool IsNodeType(field_t type) const;
05994 virtual field_t GetNodeType(int idx = 0) const;
05995 virtual int GetTypeCount() const;
05996 virtual const char * GetNodeName() const;
05997
05998 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
05999 virtual bool FieldHasDefaultValue(field_t name) const;
06000 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06001 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06002 virtual int GetFieldCount() const;
06003 virtual field_t GetDefaultContainerField() const;
06004
06005 virtual const char * GetDefaultContainerFieldName() const;
06006
06007 virtual bool SetFieldByName(field_t name, const void *data);
06008
06009
06010 void set_description(const SFString& description) { f_description = description; }
06011 SFString& get_description() const { return const_cast<SFString&>(f_description); }
06012 void set_parameter(const MFString& parameter) { f_parameter = parameter; }
06013 MFString& get_parameter() const { return const_cast<MFString&>(f_parameter); }
06014 void set_url(const MFString& url) { f_url = url; }
06015 MFString& get_url() const { return const_cast<MFString&>(f_url); }
06016
06017 protected:
06018 SFString f_description;
06019 MFString f_parameter;
06020 MFString f_url;
06021 };
06022 typedef pointer::SmartPointer<Anchor> AnchorPtr;
06023
06024
06025
06026
06027
06028
06029
06030 class Inline : public X3DChildNode, public X3DBoundedObject, public X3DUrlObject
06031 {
06032 public:
06033 Inline();
06034 virtual ~Inline();
06035
06036 virtual bool IsNodeType(field_t type) const;
06037 virtual field_t GetNodeType(int idx = 0) const;
06038 virtual int GetTypeCount() const;
06039 virtual const char * GetNodeName() const;
06040
06041 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06042 virtual bool FieldHasDefaultValue(field_t name) const;
06043 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06044 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06045 virtual int GetFieldCount() const;
06046 virtual field_t GetDefaultContainerField() const;
06047
06048 virtual const char * GetDefaultContainerFieldName() const;
06049
06050 virtual bool SetFieldByName(field_t name, const void *data);
06051
06052
06053 void set_load(const SFBool& load) { f_load = load; }
06054 SFBool get_load() const { return f_load; }
06055
06056 protected:
06057 SFBool f_load;
06058 };
06059 typedef pointer::SmartPointer<Inline> InlinePtr;
06060
06061
06062
06063
06064
06065
06066
06067 class LoadSensor : public X3DNetworkSensorNode
06068 {
06069 public:
06070 LoadSensor();
06071 virtual ~LoadSensor();
06072
06073 virtual bool IsNodeType(field_t type) const;
06074 virtual field_t GetNodeType(int idx = 0) const;
06075 virtual int GetTypeCount() const;
06076 virtual const char * GetNodeName() const;
06077
06078 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06079 virtual bool FieldHasDefaultValue(field_t name) const;
06080 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06081 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06082 virtual int GetFieldCount() const;
06083 virtual field_t GetDefaultContainerField() const;
06084
06085 virtual const char * GetDefaultContainerFieldName() const;
06086
06087 virtual bool SetFieldByName(field_t name, const void *data);
06088
06089
06090 void set_timeOut(const SFTime& timeOut) { f_timeOut = timeOut; }
06091 SFTime get_timeOut() const { return f_timeOut; }
06092 void set_watchList(const MFNode& watchList) { f_watchList = watchList; }
06093 MFNode& get_watchList() const { return const_cast<MFNode&>(f_watchList); }
06094 void set_isLoaded(const SFBool& isLoaded) { f_isLoaded = isLoaded; }
06095 SFBool get_isLoaded() const { return f_isLoaded; }
06096 void set_loadTime(const SFTime& loadTime) { f_loadTime = loadTime; }
06097 SFTime get_loadTime() const { return f_loadTime; }
06098 void set_progress(const SFFloat& progress) { f_progress = progress; }
06099 SFFloat get_progress() const { return f_progress; }
06100
06101 protected:
06102 SFTime f_timeOut;
06103 MFNode f_watchList;
06104 SFBool f_isLoaded;
06105 SFTime f_loadTime;
06106 SFFloat f_progress;
06107 };
06108 typedef pointer::SmartPointer<LoadSensor> LoadSensorPtr;
06109
06110
06111
06112
06113
06114
06115
06116 class X3DNurbsControlCurveNode : public X3DNode
06117 {
06118 public:
06119 X3DNurbsControlCurveNode();
06120 virtual ~X3DNurbsControlCurveNode();
06121
06122 virtual bool IsNodeType(field_t type) const;
06123 virtual field_t GetNodeType(int idx = 0) const;
06124 virtual int GetTypeCount() const;
06125 virtual const char * GetNodeName() const;
06126
06127 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06128 virtual bool FieldHasDefaultValue(field_t name) const;
06129 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06130 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06131 virtual int GetFieldCount() const;
06132 virtual field_t GetDefaultContainerField() const;
06133
06134 virtual const char * GetDefaultContainerFieldName() const;
06135
06136 virtual bool SetFieldByName(field_t name, const void *data);
06137
06138
06139 void set_controlPoint(const MFVec2d& controlPoint) { f_controlPoint = controlPoint; }
06140 MFVec2d& get_controlPoint() const { return const_cast<MFVec2d&>(f_controlPoint); }
06141
06142 protected:
06143 MFVec2d f_controlPoint;
06144 };
06145 typedef pointer::SmartPointer<X3DNurbsControlCurveNode> X3DNurbsControlCurveNodePtr;
06146
06147
06148
06149
06150
06151
06152
06153 class X3DParametricGeometryNode : public X3DGeometryNode
06154 {
06155 public:
06156 X3DParametricGeometryNode();
06157 virtual ~X3DParametricGeometryNode();
06158
06159 virtual bool IsNodeType(field_t type) const;
06160 virtual field_t GetNodeType(int idx = 0) const;
06161 virtual int GetTypeCount() const;
06162 virtual const char * GetNodeName() const;
06163
06164 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06165 virtual bool FieldHasDefaultValue(field_t name) const;
06166 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06167 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06168 virtual int GetFieldCount() const;
06169 virtual field_t GetDefaultContainerField() const;
06170
06171 virtual const char * GetDefaultContainerFieldName() const;
06172
06173 virtual bool SetFieldByName(field_t name, const void *data);
06174 };
06175 typedef pointer::SmartPointer<X3DParametricGeometryNode> X3DParametricGeometryNodePtr;
06176
06177
06178
06179
06180
06181
06182
06183 class X3DNurbsSurfaceGeometryNode : public X3DParametricGeometryNode
06184 {
06185 public:
06186 X3DNurbsSurfaceGeometryNode();
06187 virtual ~X3DNurbsSurfaceGeometryNode();
06188
06189 virtual bool IsNodeType(field_t type) const;
06190 virtual field_t GetNodeType(int idx = 0) const;
06191 virtual int GetTypeCount() const;
06192 virtual const char * GetNodeName() const;
06193
06194 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06195 virtual bool FieldHasDefaultValue(field_t name) const;
06196 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06197 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06198 virtual int GetFieldCount() const;
06199 virtual field_t GetDefaultContainerField() const;
06200
06201 virtual const char * GetDefaultContainerFieldName() const;
06202
06203 virtual bool SetFieldByName(field_t name, const void *data);
06204
06205
06206 void set_controlPoint(SFNode *controlPoint) { f_controlPoint = controlPoint; }
06207 SFNodePtr get_controlPoint() const { return f_controlPoint; }
06208 void set_texCoord(SFNode *texCoord) { f_texCoord = texCoord; }
06209 SFNodePtr get_texCoord() const { return f_texCoord; }
06210 void set_uTessellation(const SFInt32& uTessellation) { f_uTessellation = uTessellation; }
06211 SFInt32 get_uTessellation() const { return f_uTessellation; }
06212 void set_vTessellation(const SFInt32& vTessellation) { f_vTessellation = vTessellation; }
06213 SFInt32 get_vTessellation() const { return f_vTessellation; }
06214 void set_weight(const MFDouble& weight) { f_weight = weight; }
06215 MFDouble& get_weight() const { return const_cast<MFDouble&>(f_weight); }
06216 void set_solid(const SFBool& solid) { f_solid = solid; }
06217 SFBool get_solid() const { return f_solid; }
06218 void set_uClosed(const SFBool& uClosed) { f_uClosed = uClosed; }
06219 SFBool get_uClosed() const { return f_uClosed; }
06220 void set_uDimension(const SFInt32& uDimension) { f_uDimension = uDimension; }
06221 SFInt32 get_uDimension() const { return f_uDimension; }
06222 void set_uKnot(const MFDouble& uKnot) { f_uKnot = uKnot; }
06223 MFDouble& get_uKnot() const { return const_cast<MFDouble&>(f_uKnot); }
06224 void set_uOrder(const SFInt32& uOrder) { f_uOrder = uOrder; }
06225 SFInt32 get_uOrder() const { return f_uOrder; }
06226 void set_vClosed(const SFBool& vClosed) { f_vClosed = vClosed; }
06227 SFBool get_vClosed() const { return f_vClosed; }
06228 void set_vDimension(const SFInt32& vDimension) { f_vDimension = vDimension; }
06229 SFInt32 get_vDimension() const { return f_vDimension; }
06230 void set_vKnot(const MFDouble& vKnot) { f_vKnot = vKnot; }
06231 MFDouble& get_vKnot() const { return const_cast<MFDouble&>(f_vKnot); }
06232 void set_vOrder(const SFInt32& vOrder) { f_vOrder = vOrder; }
06233 SFInt32 get_vOrder() const { return f_vOrder; }
06234
06235 protected:
06236 SFNodePtr f_controlPoint;
06237 SFNodePtr f_texCoord;
06238 SFInt32 f_uTessellation;
06239 SFInt32 f_vTessellation;
06240 MFDouble f_weight;
06241 SFBool f_solid;
06242 SFBool f_uClosed;
06243 SFInt32 f_uDimension;
06244 MFDouble f_uKnot;
06245 SFInt32 f_uOrder;
06246 SFBool f_vClosed;
06247 SFInt32 f_vDimension;
06248 MFDouble f_vKnot;
06249 SFInt32 f_vOrder;
06250 };
06251 typedef pointer::SmartPointer<X3DNurbsSurfaceGeometryNode> X3DNurbsSurfaceGeometryNodePtr;
06252
06253
06254
06255
06256
06257
06258
06259 class Contour2D : public X3DNode
06260 {
06261 public:
06262 Contour2D();
06263 virtual ~Contour2D();
06264
06265 virtual bool IsNodeType(field_t type) const;
06266 virtual field_t GetNodeType(int idx = 0) const;
06267 virtual int GetTypeCount() const;
06268 virtual const char * GetNodeName() const;
06269
06270 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06271 virtual bool FieldHasDefaultValue(field_t name) const;
06272 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06273 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06274 virtual int GetFieldCount() const;
06275 virtual field_t GetDefaultContainerField() const;
06276
06277 virtual const char * GetDefaultContainerFieldName() const;
06278
06279 virtual bool SetFieldByName(field_t name, const void *data);
06280
06281
06282 void set_addChildren(const MFNode& addChildren) { f_addChildren = addChildren; }
06283 MFNode& get_addChildren() const { return const_cast<MFNode&>(f_addChildren); }
06284 void set_removeChildren(const MFNode& removeChildren) { f_removeChildren = removeChildren; }
06285 MFNode& get_removeChildren() const { return const_cast<MFNode&>(f_removeChildren); }
06286 void set_children(const MFNode& children) { f_children = children; }
06287 MFNode& get_children() const { return const_cast<MFNode&>(f_children); }
06288
06289 protected:
06290 MFNode f_addChildren;
06291 MFNode f_removeChildren;
06292 MFNode f_children;
06293 };
06294 typedef pointer::SmartPointer<Contour2D> Contour2DPtr;
06295
06296
06297
06298
06299
06300
06301
06302 class ContourPolyline2D : public X3DNurbsControlCurveNode
06303 {
06304 public:
06305 ContourPolyline2D();
06306 virtual ~ContourPolyline2D();
06307
06308 virtual bool IsNodeType(field_t type) const;
06309 virtual field_t GetNodeType(int idx = 0) const;
06310 virtual int GetTypeCount() const;
06311 virtual const char * GetNodeName() const;
06312
06313 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06314 virtual bool FieldHasDefaultValue(field_t name) const;
06315 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06316 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06317 virtual int GetFieldCount() const;
06318 virtual field_t GetDefaultContainerField() const;
06319
06320 virtual const char * GetDefaultContainerFieldName() const;
06321
06322 virtual bool SetFieldByName(field_t name, const void *data);
06323
06324
06325 void set_point(const MFVec2f& point) { f_point = point; }
06326 MFVec2f& get_point() const { return const_cast<MFVec2f&>(f_point); }
06327
06328 protected:
06329 MFVec2f f_point;
06330 };
06331 typedef pointer::SmartPointer<ContourPolyline2D> ContourPolyline2DPtr;
06332
06333
06334
06335
06336
06337
06338
06339 class CoordinateDouble : public X3DCoordinateNode
06340 {
06341 public:
06342 CoordinateDouble();
06343 virtual ~CoordinateDouble();
06344
06345 virtual bool IsNodeType(field_t type) const;
06346 virtual field_t GetNodeType(int idx = 0) const;
06347 virtual int GetTypeCount() const;
06348 virtual const char * GetNodeName() const;
06349
06350 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06351 virtual bool FieldHasDefaultValue(field_t name) const;
06352 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06353 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06354 virtual int GetFieldCount() const;
06355 virtual field_t GetDefaultContainerField() const;
06356
06357 virtual const char * GetDefaultContainerFieldName() const;
06358
06359 virtual bool SetFieldByName(field_t name, const void *data);
06360
06361
06362 void set_point(const MFVec3d& point) { f_point = point; }
06363 MFVec3d& get_point() const { return const_cast<MFVec3d&>(f_point); }
06364
06365 protected:
06366 MFVec3d f_point;
06367 };
06368 typedef pointer::SmartPointer<CoordinateDouble> CoordinateDoublePtr;
06369
06370
06371
06372
06373
06374
06375
06376 class NurbsCurve : public X3DParametricGeometryNode
06377 {
06378 public:
06379 NurbsCurve();
06380 virtual ~NurbsCurve();
06381
06382 virtual bool IsNodeType(field_t type) const;
06383 virtual field_t GetNodeType(int idx = 0) const;
06384 virtual int GetTypeCount() const;
06385 virtual const char * GetNodeName() const;
06386
06387 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06388 virtual bool FieldHasDefaultValue(field_t name) const;
06389 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06390 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06391 virtual int GetFieldCount() const;
06392 virtual field_t GetDefaultContainerField() const;
06393
06394 virtual const char * GetDefaultContainerFieldName() const;
06395
06396 virtual bool SetFieldByName(field_t name, const void *data);
06397
06398
06399 void set_controlPoint(SFNode *controlPoint) { f_controlPoint = controlPoint; }
06400 SFNodePtr get_controlPoint() const { return f_controlPoint; }
06401 void set_tessellation(const SFInt32& tessellation) { f_tessellation = tessellation; }
06402 SFInt32 get_tessellation() const { return f_tessellation; }
06403 void set_weight(const MFDouble& weight) { f_weight = weight; }
06404 MFDouble& get_weight() const { return const_cast<MFDouble&>(f_weight); }
06405 void set_closed(const SFBool& closed) { f_closed = closed; }
06406 SFBool get_closed() const { return f_closed; }
06407 void set_knot(const MFDouble& knot) { f_knot = knot; }
06408 MFDouble& get_knot() const { return const_cast<MFDouble&>(f_knot); }
06409 void set_order(const SFInt32& order) { f_order = order; }
06410 SFInt32 get_order() const { return f_order; }
06411
06412 protected:
06413 SFNodePtr f_controlPoint;
06414 SFInt32 f_tessellation;
06415 MFDouble f_weight;
06416 SFBool f_closed;
06417 MFDouble f_knot;
06418 SFInt32 f_order;
06419 };
06420 typedef pointer::SmartPointer<NurbsCurve> NurbsCurvePtr;
06421
06422
06423
06424
06425
06426
06427
06428 class NurbsCurve2D : public X3DNurbsControlCurveNode
06429 {
06430 public:
06431 NurbsCurve2D();
06432 virtual ~NurbsCurve2D();
06433
06434 virtual bool IsNodeType(field_t type) const;
06435 virtual field_t GetNodeType(int idx = 0) const;
06436 virtual int GetTypeCount() const;
06437 virtual const char * GetNodeName() const;
06438
06439 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06440 virtual bool FieldHasDefaultValue(field_t name) const;
06441 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06442 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06443 virtual int GetFieldCount() const;
06444 virtual field_t GetDefaultContainerField() const;
06445
06446 virtual const char * GetDefaultContainerFieldName() const;
06447
06448 virtual bool SetFieldByName(field_t name, const void *data);
06449
06450
06451 void set_tessellation(const SFInt32& tessellation) { f_tessellation = tessellation; }
06452 SFInt32 get_tessellation() const { return f_tessellation; }
06453 void set_weight(const MFDouble& weight) { f_weight = weight; }
06454 MFDouble& get_weight() const { return const_cast<MFDouble&>(f_weight); }
06455 void set_knot(const MFDouble& knot) { f_knot = knot; }
06456 MFDouble& get_knot() const { return const_cast<MFDouble&>(f_knot); }
06457 void set_order(const SFInt32& order) { f_order = order; }
06458 SFInt32 get_order() const { return f_order; }
06459 void set_closed(const SFBool& closed) { f_closed = closed; }
06460 SFBool get_closed() const { return f_closed; }
06461
06462 protected:
06463 SFInt32 f_tessellation;
06464 MFDouble f_weight;
06465 MFDouble f_knot;
06466 SFInt32 f_order;
06467 SFBool f_closed;
06468 };
06469 typedef pointer::SmartPointer<NurbsCurve2D> NurbsCurve2DPtr;
06470
06471
06472
06473
06474
06475
06476
06477 class NurbsOrientationInterpolator : public X3DChildNode
06478 {
06479 public:
06480 NurbsOrientationInterpolator();
06481 virtual ~NurbsOrientationInterpolator();
06482
06483 virtual bool IsNodeType(field_t type) const;
06484 virtual field_t GetNodeType(int idx = 0) const;
06485 virtual int GetTypeCount() const;
06486 virtual const char * GetNodeName() const;
06487
06488 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06489 virtual bool FieldHasDefaultValue(field_t name) const;
06490 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06491 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06492 virtual int GetFieldCount() const;
06493 virtual field_t GetDefaultContainerField() const;
06494
06495 virtual const char * GetDefaultContainerFieldName() const;
06496
06497 virtual bool SetFieldByName(field_t name, const void *data);
06498
06499
06500 void set_set_fraction(const SFFloat& set_fraction) { f_set_fraction = set_fraction; }
06501 SFFloat get_set_fraction() const { return f_set_fraction; }
06502 void set_controlPoints(SFNode *controlPoints) { f_controlPoints = controlPoints; }
06503 SFNodePtr get_controlPoints() const { return f_controlPoints; }
06504 void set_knot(const MFDouble& knot) { f_knot = knot; }
06505 MFDouble& get_knot() const { return const_cast<MFDouble&>(f_knot); }
06506 void set_order(const SFInt32& order) { f_order = order; }
06507 SFInt32 get_order() const { return f_order; }
06508 void set_weight(const MFDouble& weight) { f_weight = weight; }
06509 MFDouble& get_weight() const { return const_cast<MFDouble&>(f_weight); }
06510 void set_value_changed(const SFRotation& value_changed) { f_value_changed = value_changed; }
06511 SFRotation& get_value_changed() const { return const_cast<SFRotation&>(f_value_changed); }
06512
06513 protected:
06514 SFFloat f_set_fraction;
06515 SFNodePtr f_controlPoints;
06516 MFDouble f_knot;
06517 SFInt32 f_order;
06518 MFDouble f_weight;
06519 SFRotation f_value_changed;
06520 };
06521 typedef pointer::SmartPointer<NurbsOrientationInterpolator> NurbsOrientationInterpolatorPtr;
06522
06523
06524
06525
06526
06527
06528
06529 class NurbsPatchSurface : public X3DNurbsSurfaceGeometryNode
06530 {
06531 public:
06532 NurbsPatchSurface();
06533 virtual ~NurbsPatchSurface();
06534
06535 virtual bool IsNodeType(field_t type) const;
06536 virtual field_t GetNodeType(int idx = 0) const;
06537 virtual int GetTypeCount() const;
06538 virtual const char * GetNodeName() const;
06539
06540 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06541 virtual bool FieldHasDefaultValue(field_t name) const;
06542 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06543 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06544 virtual int GetFieldCount() const;
06545 virtual field_t GetDefaultContainerField() const;
06546
06547 virtual const char * GetDefaultContainerFieldName() const;
06548
06549 virtual bool SetFieldByName(field_t name, const void *data);
06550 };
06551 typedef pointer::SmartPointer<NurbsPatchSurface> NurbsPatchSurfacePtr;
06552
06553
06554
06555
06556
06557
06558
06559 class NurbsPositionInterpolator : public X3DChildNode
06560 {
06561 public:
06562 NurbsPositionInterpolator();
06563 virtual ~NurbsPositionInterpolator();
06564
06565 virtual bool IsNodeType(field_t type) const;
06566 virtual field_t GetNodeType(int idx = 0) const;
06567 virtual int GetTypeCount() const;
06568 virtual const char * GetNodeName() const;
06569
06570 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06571 virtual bool FieldHasDefaultValue(field_t name) const;
06572 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06573 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06574 virtual int GetFieldCount() const;
06575 virtual field_t GetDefaultContainerField() const;
06576
06577 virtual const char * GetDefaultContainerFieldName() const;
06578
06579 virtual bool SetFieldByName(field_t name, const void *data);
06580
06581
06582 void set_set_fraction(const SFFloat& set_fraction) { f_set_fraction = set_fraction; }
06583 SFFloat get_set_fraction() const { return f_set_fraction; }
06584 void set_controlPoints(SFNode *controlPoints) { f_controlPoints = controlPoints; }
06585 SFNodePtr get_controlPoints() const { return f_controlPoints; }
06586 void set_knot(const MFDouble& knot) { f_knot = knot; }
06587 MFDouble& get_knot() const { return const_cast<MFDouble&>(f_knot); }
06588 void set_order(const SFInt32& order) { f_order = order; }
06589 SFInt32 get_order() const { return f_order; }
06590 void set_weight(const MFDouble& weight) { f_weight = weight; }
06591 MFDouble& get_weight() const { return const_cast<MFDouble&>(f_weight); }
06592 void set_value_changed(const SFVec3f& value_changed) { f_value_changed = value_changed; }
06593 SFVec3f& get_value_changed() const { return const_cast<SFVec3f&>(f_value_changed); }
06594
06595 protected:
06596 SFFloat f_set_fraction;
06597 SFNodePtr f_controlPoints;
06598 MFDouble f_knot;
06599 SFInt32 f_order;
06600 MFDouble f_weight;
06601 SFVec3f f_value_changed;
06602 };
06603 typedef pointer::SmartPointer<NurbsPositionInterpolator> NurbsPositionInterpolatorPtr;
06604
06605
06606
06607
06608
06609
06610
06611 class NurbsSet : public X3DChildNode, public X3DBoundedObject
06612 {
06613 public:
06614 NurbsSet();
06615 virtual ~NurbsSet();
06616
06617 virtual bool IsNodeType(field_t type) const;
06618 virtual field_t GetNodeType(int idx = 0) const;
06619 virtual int GetTypeCount() const;
06620 virtual const char * GetNodeName() const;
06621
06622 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06623 virtual bool FieldHasDefaultValue(field_t name) const;
06624 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06625 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06626 virtual int GetFieldCount() const;
06627 virtual field_t GetDefaultContainerField() const;
06628
06629 virtual const char * GetDefaultContainerFieldName() const;
06630
06631 virtual bool SetFieldByName(field_t name, const void *data);
06632
06633
06634 void set_addGeometry(const MFNode& addGeometry) { f_addGeometry = addGeometry; }
06635 MFNode& get_addGeometry() const { return const_cast<MFNode&>(f_addGeometry); }
06636 void set_removeGeometry(const MFNode& removeGeometry) { f_removeGeometry = removeGeometry; }
06637 MFNode& get_removeGeometry() const { return const_cast<MFNode&>(f_removeGeometry); }
06638 void set_geometry(const MFNode& geometry) { f_geometry = geometry; }
06639 MFNode& get_geometry() const { return const_cast<MFNode&>(f_geometry); }
06640 void set_tessellationScale(const SFFloat& tessellationScale) { f_tessellationScale = tessellationScale; }
06641 SFFloat get_tessellationScale() const { return f_tessellationScale; }
06642
06643 protected:
06644 MFNode f_addGeometry;
06645 MFNode f_removeGeometry;
06646 MFNode f_geometry;
06647 SFFloat f_tessellationScale;
06648 };
06649 typedef pointer::SmartPointer<NurbsSet> NurbsSetPtr;
06650
06651
06652
06653
06654
06655
06656
06657 class NurbsSurfaceInterpolator : public X3DChildNode
06658 {
06659 public:
06660 NurbsSurfaceInterpolator();
06661 virtual ~NurbsSurfaceInterpolator();
06662
06663 virtual bool IsNodeType(field_t type) const;
06664 virtual field_t GetNodeType(int idx = 0) const;
06665 virtual int GetTypeCount() const;
06666 virtual const char * GetNodeName() const;
06667
06668 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06669 virtual bool FieldHasDefaultValue(field_t name) const;
06670 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06671 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06672 virtual int GetFieldCount() const;
06673 virtual field_t GetDefaultContainerField() const;
06674
06675 virtual const char * GetDefaultContainerFieldName() const;
06676
06677 virtual bool SetFieldByName(field_t name, const void *data);
06678
06679
06680 void set_set_fraction(const SFVec2f& set_fraction) { f_set_fraction = set_fraction; }
06681 SFVec2f& get_set_fraction() const { return const_cast<SFVec2f&>(f_set_fraction); }
06682 void set_controlPoints(SFNode *controlPoints) { f_controlPoints = controlPoints; }
06683 SFNodePtr get_controlPoints() const { return f_controlPoints; }
06684 void set_weight(const MFDouble& weight) { f_weight = weight; }
06685 MFDouble& get_weight() const { return const_cast<MFDouble&>(f_weight); }
06686 void set_position_changed(const SFVec3f& position_changed) { f_position_changed = position_changed; }
06687 SFVec3f& get_position_changed() const { return const_cast<SFVec3f&>(f_position_changed); }
06688 void set_normal_changed(const SFVec3f& normal_changed) { f_normal_changed = normal_changed; }
06689 SFVec3f& get_normal_changed() const { return const_cast<SFVec3f&>(f_normal_changed); }
06690 void set_uDimension(const SFInt32& uDimension) { f_uDimension = uDimension; }
06691 SFInt32 get_uDimension() const { return f_uDimension; }
06692 void set_uKnot(const MFDouble& uKnot) { f_uKnot = uKnot; }
06693 MFDouble& get_uKnot() const { return const_cast<MFDouble&>(f_uKnot); }
06694 void set_uOrder(const SFInt32& uOrder) { f_uOrder = uOrder; }
06695 SFInt32 get_uOrder() const { return f_uOrder; }
06696 void set_vDimension(const SFInt32& vDimension) { f_vDimension = vDimension; }
06697 SFInt32 get_vDimension() const { return f_vDimension; }
06698 void set_vKnot(const MFDouble& vKnot) { f_vKnot = vKnot; }
06699 MFDouble& get_vKnot() const { return const_cast<MFDouble&>(f_vKnot); }
06700 void set_vOrder(const SFInt32& vOrder) { f_vOrder = vOrder; }
06701 SFInt32 get_vOrder() const { return f_vOrder; }
06702
06703 protected:
06704 SFVec2f f_set_fraction;
06705 SFNodePtr f_controlPoints;
06706 MFDouble f_weight;
06707 SFVec3f f_position_changed;
06708 SFVec3f f_normal_changed;
06709 SFInt32 f_uDimension;
06710 MFDouble f_uKnot;
06711 SFInt32 f_uOrder;
06712 SFInt32 f_vDimension;
06713 MFDouble f_vKnot;
06714 SFInt32 f_vOrder;
06715 };
06716 typedef pointer::SmartPointer<NurbsSurfaceInterpolator> NurbsSurfaceInterpolatorPtr;
06717
06718
06719
06720
06721
06722
06723
06724 class NurbsSweptSurface : public X3DParametricGeometryNode
06725 {
06726 public:
06727 NurbsSweptSurface();
06728 virtual ~NurbsSweptSurface();
06729
06730 virtual bool IsNodeType(field_t type) const;
06731 virtual field_t GetNodeType(int idx = 0) const;
06732 virtual int GetTypeCount() const;
06733 virtual const char * GetNodeName() const;
06734
06735 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06736 virtual bool FieldHasDefaultValue(field_t name) const;
06737 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06738 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06739 virtual int GetFieldCount() const;
06740 virtual field_t GetDefaultContainerField() const;
06741
06742 virtual const char * GetDefaultContainerFieldName() const;
06743
06744 virtual bool SetFieldByName(field_t name, const void *data);
06745
06746
06747 void set_crossSectionCurve(SFNode *crossSectionCurve) { f_crossSectionCurve = crossSectionCurve; }
06748 SFNodePtr get_crossSectionCurve() const { return f_crossSectionCurve; }
06749 void set_trajectoryCurve(SFNode *trajectoryCurve) { f_trajectoryCurve = trajectoryCurve; }
06750 SFNodePtr get_trajectoryCurve() const { return f_trajectoryCurve; }
06751 void set_ccw(const SFBool& ccw) { f_ccw = ccw; }
06752 SFBool get_ccw() const { return f_ccw; }
06753 void set_solid(const SFBool& solid) { f_solid = solid; }
06754 SFBool get_solid() const { return f_solid; }
06755
06756 protected:
06757 SFNodePtr f_crossSectionCurve;
06758 SFNodePtr f_trajectoryCurve;
06759 SFBool f_ccw;
06760 SFBool f_solid;
06761 };
06762 typedef pointer::SmartPointer<NurbsSweptSurface> NurbsSweptSurfacePtr;
06763
06764
06765
06766
06767
06768
06769
06770 class NurbsSwungSurface : public X3DParametricGeometryNode
06771 {
06772 public:
06773 NurbsSwungSurface();
06774 virtual ~NurbsSwungSurface();
06775
06776 virtual bool IsNodeType(field_t type) const;
06777 virtual field_t GetNodeType(int idx = 0) const;
06778 virtual int GetTypeCount() const;
06779 virtual const char * GetNodeName() const;
06780
06781 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06782 virtual bool FieldHasDefaultValue(field_t name) const;
06783 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06784 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06785 virtual int GetFieldCount() const;
06786 virtual field_t GetDefaultContainerField() const;
06787
06788 virtual const char * GetDefaultContainerFieldName() const;
06789
06790 virtual bool SetFieldByName(field_t name, const void *data);
06791
06792
06793 void set_profileCurve(SFNode *profileCurve) { f_profileCurve = profileCurve; }
06794 SFNodePtr get_profileCurve() const { return f_profileCurve; }
06795 void set_trajectoryCurve(SFNode *trajectoryCurve) { f_trajectoryCurve = trajectoryCurve; }
06796 SFNodePtr get_trajectoryCurve() const { return f_trajectoryCurve; }
06797 void set_ccw(const SFBool& ccw) { f_ccw = ccw; }
06798 SFBool get_ccw() const { return f_ccw; }
06799 void set_solid(const SFBool& solid) { f_solid = solid; }
06800 SFBool get_solid() const { return f_solid; }
06801
06802 protected:
06803 SFNodePtr f_profileCurve;
06804 SFNodePtr f_trajectoryCurve;
06805 SFBool f_ccw;
06806 SFBool f_solid;
06807 };
06808 typedef pointer::SmartPointer<NurbsSwungSurface> NurbsSwungSurfacePtr;
06809
06810
06811
06812
06813
06814
06815
06816 class NurbsTextureCoordinate : public X3DNode
06817 {
06818 public:
06819 NurbsTextureCoordinate();
06820 virtual ~NurbsTextureCoordinate();
06821
06822 virtual bool IsNodeType(field_t type) const;
06823 virtual field_t GetNodeType(int idx = 0) const;
06824 virtual int GetTypeCount() const;
06825 virtual const char * GetNodeName() const;
06826
06827 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06828 virtual bool FieldHasDefaultValue(field_t name) const;
06829 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06830 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06831 virtual int GetFieldCount() const;
06832 virtual field_t GetDefaultContainerField() const;
06833
06834 virtual const char * GetDefaultContainerFieldName() const;
06835
06836 virtual bool SetFieldByName(field_t name, const void *data);
06837
06838
06839 void set_controlPoint(const MFVec2f& controlPoint) { f_controlPoint = controlPoint; }
06840 MFVec2f& get_controlPoint() const { return const_cast<MFVec2f&>(f_controlPoint); }
06841 void set_weight(const MFFloat& weight) { f_weight = weight; }
06842 MFFloat& get_weight() const { return const_cast<MFFloat&>(f_weight); }
06843 void set_uDimension(const SFInt32& uDimension) { f_uDimension = uDimension; }
06844 SFInt32 get_uDimension() const { return f_uDimension; }
06845 void set_uKnot(const MFDouble& uKnot) { f_uKnot = uKnot; }
06846 MFDouble& get_uKnot() const { return const_cast<MFDouble&>(f_uKnot); }
06847 void set_uOrder(const SFInt32& uOrder) { f_uOrder = uOrder; }
06848 SFInt32 get_uOrder() const { return f_uOrder; }
06849 void set_vDimension(const SFInt32& vDimension) { f_vDimension = vDimension; }
06850 SFInt32 get_vDimension() const { return f_vDimension; }
06851 void set_vKnot(const MFDouble& vKnot) { f_vKnot = vKnot; }
06852 MFDouble& get_vKnot() const { return const_cast<MFDouble&>(f_vKnot); }
06853 void set_vOrder(const SFInt32& vOrder) { f_vOrder = vOrder; }
06854 SFInt32 get_vOrder() const { return f_vOrder; }
06855
06856 protected:
06857 MFVec2f f_controlPoint;
06858 MFFloat f_weight;
06859 SFInt32 f_uDimension;
06860 MFDouble f_uKnot;
06861 SFInt32 f_uOrder;
06862 SFInt32 f_vDimension;
06863 MFDouble f_vKnot;
06864 SFInt32 f_vOrder;
06865 };
06866 typedef pointer::SmartPointer<NurbsTextureCoordinate> NurbsTextureCoordinatePtr;
06867
06868
06869
06870
06871
06872
06873
06874 class NurbsTrimmedSurface : public X3DNurbsSurfaceGeometryNode
06875 {
06876 public:
06877 NurbsTrimmedSurface();
06878 virtual ~NurbsTrimmedSurface();
06879
06880 virtual bool IsNodeType(field_t type) const;
06881 virtual field_t GetNodeType(int idx = 0) const;
06882 virtual int GetTypeCount() const;
06883 virtual const char * GetNodeName() const;
06884
06885 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06886 virtual bool FieldHasDefaultValue(field_t name) const;
06887 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06888 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06889 virtual int GetFieldCount() const;
06890 virtual field_t GetDefaultContainerField() const;
06891
06892 virtual const char * GetDefaultContainerFieldName() const;
06893
06894 virtual bool SetFieldByName(field_t name, const void *data);
06895
06896
06897 void set_addTrimmingContour(const MFNode& addTrimmingContour) { f_addTrimmingContour = addTrimmingContour; }
06898 MFNode& get_addTrimmingContour() const { return const_cast<MFNode&>(f_addTrimmingContour); }
06899 void set_removeTrimmingContour(const MFNode& removeTrimmingContour) { f_removeTrimmingContour = removeTrimmingContour; }
06900 MFNode& get_removeTrimmingContour() const { return const_cast<MFNode&>(f_removeTrimmingContour); }
06901 void set_trimmingContour(const MFNode& trimmingContour) { f_trimmingContour = trimmingContour; }
06902 MFNode& get_trimmingContour() const { return const_cast<MFNode&>(f_trimmingContour); }
06903
06904 protected:
06905 MFNode f_addTrimmingContour;
06906 MFNode f_removeTrimmingContour;
06907 MFNode f_trimmingContour;
06908 };
06909 typedef pointer::SmartPointer<NurbsTrimmedSurface> NurbsTrimmedSurfacePtr;
06910
06911
06912
06913
06914
06915
06916
06917 class X3DDragSensorNode : public X3DPointingDeviceSensorNode
06918 {
06919 public:
06920 X3DDragSensorNode();
06921 virtual ~X3DDragSensorNode();
06922
06923 virtual bool IsNodeType(field_t type) const;
06924 virtual field_t GetNodeType(int idx = 0) const;
06925 virtual int GetTypeCount() const;
06926 virtual const char * GetNodeName() const;
06927
06928 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06929 virtual bool FieldHasDefaultValue(field_t name) const;
06930 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06931 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06932 virtual int GetFieldCount() const;
06933 virtual field_t GetDefaultContainerField() const;
06934
06935 virtual const char * GetDefaultContainerFieldName() const;
06936
06937 virtual bool SetFieldByName(field_t name, const void *data);
06938
06939
06940 void set_autoOffset(const SFBool& autoOffset) { f_autoOffset = autoOffset; }
06941 SFBool get_autoOffset() const { return f_autoOffset; }
06942 void set_trackPoint_changed(const SFVec3f& trackPoint_changed) { f_trackPoint_changed = trackPoint_changed; }
06943 SFVec3f& get_trackPoint_changed() const { return const_cast<SFVec3f&>(f_trackPoint_changed); }
06944
06945 protected:
06946 SFBool f_autoOffset;
06947 SFVec3f f_trackPoint_changed;
06948 };
06949 typedef pointer::SmartPointer<X3DDragSensorNode> X3DDragSensorNodePtr;
06950
06951
06952
06953
06954
06955
06956
06957 class CylinderSensor : public X3DDragSensorNode
06958 {
06959 public:
06960 CylinderSensor();
06961 virtual ~CylinderSensor();
06962
06963 virtual bool IsNodeType(field_t type) const;
06964 virtual field_t GetNodeType(int idx = 0) const;
06965 virtual int GetTypeCount() const;
06966 virtual const char * GetNodeName() const;
06967
06968 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
06969 virtual bool FieldHasDefaultValue(field_t name) const;
06970 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
06971 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
06972 virtual int GetFieldCount() const;
06973 virtual field_t GetDefaultContainerField() const;
06974
06975 virtual const char * GetDefaultContainerFieldName() const;
06976
06977 virtual bool SetFieldByName(field_t name, const void *data);
06978
06979
06980 void set_diskAngle(const SFFloat& diskAngle) { f_diskAngle = diskAngle; }
06981 SFFloat get_diskAngle() const { return f_diskAngle; }
06982 void set_maxAngle(const SFFloat& maxAngle) { f_maxAngle = maxAngle; }
06983 SFFloat get_maxAngle() const { return f_maxAngle; }
06984 void set_minAngle(const SFFloat& minAngle) { f_minAngle = minAngle; }
06985 SFFloat get_minAngle() const { return f_minAngle; }
06986 void set_offset(const SFFloat& offset) { f_offset = offset; }
06987 SFFloat get_offset() const { return f_offset; }
06988 void set_rotation_changed(const SFRotation& rotation_changed) { f_rotation_changed = rotation_changed; }
06989 SFRotation& get_rotation_changed() const { return const_cast<SFRotation&>(f_rotation_changed); }
06990
06991 protected:
06992 SFFloat f_diskAngle;
06993 SFFloat f_maxAngle;
06994 SFFloat f_minAngle;
06995 SFFloat f_offset;
06996 SFRotation f_rotation_changed;
06997 };
06998 typedef pointer::SmartPointer<CylinderSensor> CylinderSensorPtr;
06999
07000
07001
07002
07003
07004
07005
07006 class PlaneSensor : public X3DDragSensorNode
07007 {
07008 public:
07009 PlaneSensor();
07010 virtual ~PlaneSensor();
07011
07012 virtual bool IsNodeType(field_t type) const;
07013 virtual field_t GetNodeType(int idx = 0) const;
07014 virtual int GetTypeCount() const;
07015 virtual const char * GetNodeName() const;
07016
07017 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07018 virtual bool FieldHasDefaultValue(field_t name) const;
07019 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07020 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07021 virtual int GetFieldCount() const;
07022 virtual field_t GetDefaultContainerField() const;
07023
07024 virtual const char * GetDefaultContainerFieldName() const;
07025
07026 virtual bool SetFieldByName(field_t name, const void *data);
07027
07028
07029 void set_maxPosition(const SFVec2f& maxPosition) { f_maxPosition = maxPosition; }
07030 SFVec2f& get_maxPosition() const { return const_cast<SFVec2f&>(f_maxPosition); }
07031 void set_minPosition(const SFVec2f& minPosition) { f_minPosition = minPosition; }
07032 SFVec2f& get_minPosition() const { return const_cast<SFVec2f&>(f_minPosition); }
07033 void set_offset(const SFVec3f& offset) { f_offset = offset; }
07034 SFVec3f& get_offset() const { return const_cast<SFVec3f&>(f_offset); }
07035 void set_translation_changed(const SFVec3f& translation_changed) { f_translation_changed = translation_changed; }
07036 SFVec3f& get_translation_changed() const { return const_cast<SFVec3f&>(f_translation_changed); }
07037
07038 protected:
07039 SFVec2f f_maxPosition;
07040 SFVec2f f_minPosition;
07041 SFVec3f f_offset;
07042 SFVec3f f_translation_changed;
07043 };
07044 typedef pointer::SmartPointer<PlaneSensor> PlaneSensorPtr;
07045
07046
07047
07048
07049
07050
07051
07052 class SphereSensor : public X3DDragSensorNode
07053 {
07054 public:
07055 SphereSensor();
07056 virtual ~SphereSensor();
07057
07058 virtual bool IsNodeType(field_t type) const;
07059 virtual field_t GetNodeType(int idx = 0) const;
07060 virtual int GetTypeCount() const;
07061 virtual const char * GetNodeName() const;
07062
07063 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07064 virtual bool FieldHasDefaultValue(field_t name) const;
07065 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07066 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07067 virtual int GetFieldCount() const;
07068 virtual field_t GetDefaultContainerField() const;
07069
07070 virtual const char * GetDefaultContainerFieldName() const;
07071
07072 virtual bool SetFieldByName(field_t name, const void *data);
07073
07074
07075 void set_offset(const SFRotation& offset) { f_offset = offset; }
07076 SFRotation& get_offset() const { return const_cast<SFRotation&>(f_offset); }
07077 void set_rotation_changed(const SFRotation& rotation_changed) { f_rotation_changed = rotation_changed; }
07078 SFRotation& get_rotation_changed() const { return const_cast<SFRotation&>(f_rotation_changed); }
07079
07080 protected:
07081 SFRotation f_offset;
07082 SFRotation f_rotation_changed;
07083 };
07084 typedef pointer::SmartPointer<SphereSensor> SphereSensorPtr;
07085
07086
07087
07088
07089
07090
07091
07092 class TouchSensor : public X3DTouchSensorNode
07093 {
07094 public:
07095 TouchSensor();
07096 virtual ~TouchSensor();
07097
07098 virtual bool IsNodeType(field_t type) const;
07099 virtual field_t GetNodeType(int idx = 0) const;
07100 virtual int GetTypeCount() const;
07101 virtual const char * GetNodeName() const;
07102
07103 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07104 virtual bool FieldHasDefaultValue(field_t name) const;
07105 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07106 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07107 virtual int GetFieldCount() const;
07108 virtual field_t GetDefaultContainerField() const;
07109
07110 virtual const char * GetDefaultContainerFieldName() const;
07111
07112 virtual bool SetFieldByName(field_t name, const void *data);
07113
07114
07115 void set_hitNormal_changed(const SFVec3f& hitNormal_changed) { f_hitNormal_changed = hitNormal_changed; }
07116 SFVec3f& get_hitNormal_changed() const { return const_cast<SFVec3f&>(f_hitNormal_changed); }
07117 void set_hitPoint_changed(const SFVec3f& hitPoint_changed) { f_hitPoint_changed = hitPoint_changed; }
07118 SFVec3f& get_hitPoint_changed() const { return const_cast<SFVec3f&>(f_hitPoint_changed); }
07119 void set_hitTexCoord_changed(const SFVec2f& hitTexCoord_changed) { f_hitTexCoord_changed = hitTexCoord_changed; }
07120 SFVec2f& get_hitTexCoord_changed() const { return const_cast<SFVec2f&>(f_hitTexCoord_changed); }
07121
07122 protected:
07123 SFVec3f f_hitNormal_changed;
07124 SFVec3f f_hitPoint_changed;
07125 SFVec2f f_hitTexCoord_changed;
07126 };
07127 typedef pointer::SmartPointer<TouchSensor> TouchSensorPtr;
07128
07129
07130
07131
07132
07133
07134
07135 class X3DColorNode : public X3DGeometricPropertyNode
07136 {
07137 public:
07138 X3DColorNode();
07139 virtual ~X3DColorNode();
07140
07141 virtual bool IsNodeType(field_t type) const;
07142 virtual field_t GetNodeType(int idx = 0) const;
07143 virtual int GetTypeCount() const;
07144 virtual const char * GetNodeName() const;
07145
07146 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07147 virtual bool FieldHasDefaultValue(field_t name) const;
07148 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07149 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07150 virtual int GetFieldCount() const;
07151 virtual field_t GetDefaultContainerField() const;
07152
07153 virtual const char * GetDefaultContainerFieldName() const;
07154
07155 virtual bool SetFieldByName(field_t name, const void *data);
07156 };
07157 typedef pointer::SmartPointer<X3DColorNode> X3DColorNodePtr;
07158
07159
07160
07161
07162
07163
07164
07165 class X3DNormalNode : public X3DGeometricPropertyNode
07166 {
07167 public:
07168 X3DNormalNode();
07169 virtual ~X3DNormalNode();
07170
07171 virtual bool IsNodeType(field_t type) const;
07172 virtual field_t GetNodeType(int idx = 0) const;
07173 virtual int GetTypeCount() const;
07174 virtual const char * GetNodeName() const;
07175
07176 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07177 virtual bool FieldHasDefaultValue(field_t name) const;
07178 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07179 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07180 virtual int GetFieldCount() const;
07181 virtual field_t GetDefaultContainerField() const;
07182
07183 virtual const char * GetDefaultContainerFieldName() const;
07184
07185 virtual bool SetFieldByName(field_t name, const void *data);
07186 };
07187 typedef pointer::SmartPointer<X3DNormalNode> X3DNormalNodePtr;
07188
07189
07190
07191
07192
07193
07194
07195 class Color : public X3DColorNode
07196 {
07197 public:
07198 Color();
07199 virtual ~Color();
07200
07201 virtual bool IsNodeType(field_t type) const;
07202 virtual field_t GetNodeType(int idx = 0) const;
07203 virtual int GetTypeCount() const;
07204 virtual const char * GetNodeName() const;
07205
07206 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07207 virtual bool FieldHasDefaultValue(field_t name) const;
07208 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07209 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07210 virtual int GetFieldCount() const;
07211 virtual field_t GetDefaultContainerField() const;
07212
07213 virtual const char * GetDefaultContainerFieldName() const;
07214
07215 virtual bool SetFieldByName(field_t name, const void *data);
07216
07217
07218 void set_color(const MFColor& color) { f_color = color; }
07219 MFColor& get_color() const { return const_cast<MFColor&>(f_color); }
07220
07221 protected:
07222 MFColor f_color;
07223 };
07224 typedef pointer::SmartPointer<Color> ColorPtr;
07225
07226
07227
07228
07229
07230
07231
07232 class ColorRGBA : public X3DColorNode
07233 {
07234 public:
07235 ColorRGBA();
07236 virtual ~ColorRGBA();
07237
07238 virtual bool IsNodeType(field_t type) const;
07239 virtual field_t GetNodeType(int idx = 0) const;
07240 virtual int GetTypeCount() const;
07241 virtual const char * GetNodeName() const;
07242
07243 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07244 virtual bool FieldHasDefaultValue(field_t name) const;
07245 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07246 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07247 virtual int GetFieldCount() const;
07248 virtual field_t GetDefaultContainerField() const;
07249
07250 virtual const char * GetDefaultContainerFieldName() const;
07251
07252 virtual bool SetFieldByName(field_t name, const void *data);
07253
07254
07255 void set_color(const MFColorRGBA& color) { f_color = color; }
07256 MFColorRGBA& get_color() const { return const_cast<MFColorRGBA&>(f_color); }
07257
07258 protected:
07259 MFColorRGBA f_color;
07260 };
07261 typedef pointer::SmartPointer<ColorRGBA> ColorRGBAPtr;
07262
07263
07264
07265
07266
07267
07268
07269 class Coordinate : public X3DCoordinateNode
07270 {
07271 public:
07272 Coordinate();
07273 virtual ~Coordinate();
07274
07275 virtual bool IsNodeType(field_t type) const;
07276 virtual field_t GetNodeType(int idx = 0) const;
07277 virtual int GetTypeCount() const;
07278 virtual const char * GetNodeName() const;
07279
07280 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07281 virtual bool FieldHasDefaultValue(field_t name) const;
07282 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07283 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07284 virtual int GetFieldCount() const;
07285 virtual field_t GetDefaultContainerField() const;
07286
07287 virtual const char * GetDefaultContainerFieldName() const;
07288
07289 virtual bool SetFieldByName(field_t name, const void *data);
07290
07291
07292 void set_point(const MFVec3f& point) { f_point = point; }
07293 MFVec3f& get_point() const { return const_cast<MFVec3f&>(f_point); }
07294
07295 protected:
07296 MFVec3f f_point;
07297 };
07298 typedef pointer::SmartPointer<Coordinate> CoordinatePtr;
07299
07300
07301
07302
07303
07304
07305
07306 class IndexedLineSet : public X3DGeometryNode
07307 {
07308 public:
07309 IndexedLineSet();
07310 virtual ~IndexedLineSet();
07311
07312 virtual bool IsNodeType(field_t type) const;
07313 virtual field_t GetNodeType(int idx = 0) const;
07314 virtual int GetTypeCount() const;
07315 virtual const char * GetNodeName() const;
07316
07317 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07318 virtual bool FieldHasDefaultValue(field_t name) const;
07319 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07320 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07321 virtual int GetFieldCount() const;
07322 virtual field_t GetDefaultContainerField() const;
07323
07324 virtual const char * GetDefaultContainerFieldName() const;
07325
07326 virtual bool SetFieldByName(field_t name, const void *data);
07327
07328
07329 void set_set_colorIndex(const MFInt32& set_colorIndex) { f_set_colorIndex = set_colorIndex; }
07330 MFInt32& get_set_colorIndex() const { return const_cast<MFInt32&>(f_set_colorIndex); }
07331 void set_set_coordIndex(const MFInt32& set_coordIndex) { f_set_coordIndex = set_coordIndex; }
07332 MFInt32& get_set_coordIndex() const { return const_cast<MFInt32&>(f_set_coordIndex); }
07333 void set_color(SFNode *color) { f_color = color; }
07334 SFNodePtr get_color() const { return f_color; }
07335 void set_coord(SFNode *coord) { f_coord = coord; }
07336 SFNodePtr get_coord() const { return f_coord; }
07337 void set_colorIndex(const MFInt32& colorIndex) { f_colorIndex = colorIndex; }
07338 MFInt32& get_colorIndex() const { return const_cast<MFInt32&>(f_colorIndex); }
07339 void set_colorPerVertex(const SFBool& colorPerVertex) { f_colorPerVertex = colorPerVertex; }
07340 SFBool get_colorPerVertex() const { return f_colorPerVertex; }
07341 void set_coordIndex(const MFInt32& coordIndex) { f_coordIndex = coordIndex; }
07342 MFInt32& get_coordIndex() const { return const_cast<MFInt32&>(f_coordIndex); }
07343
07344 protected:
07345 MFInt32 f_set_colorIndex;
07346 MFInt32 f_set_coordIndex;
07347 SFNodePtr f_color;
07348 SFNodePtr f_coord;
07349 MFInt32 f_colorIndex;
07350 SFBool f_colorPerVertex;
07351 MFInt32 f_coordIndex;
07352 };
07353 typedef pointer::SmartPointer<IndexedLineSet> IndexedLineSetPtr;
07354
07355
07356
07357
07358
07359
07360
07361 class IndexedTriangleFanSet : public X3DComposedGeometryNode
07362 {
07363 public:
07364 IndexedTriangleFanSet();
07365 virtual ~IndexedTriangleFanSet();
07366
07367 virtual bool IsNodeType(field_t type) const;
07368 virtual field_t GetNodeType(int idx = 0) const;
07369 virtual int GetTypeCount() const;
07370 virtual const char * GetNodeName() const;
07371
07372 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07373 virtual bool FieldHasDefaultValue(field_t name) const;
07374 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07375 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07376 virtual int GetFieldCount() const;
07377 virtual field_t GetDefaultContainerField() const;
07378
07379 virtual const char * GetDefaultContainerFieldName() const;
07380
07381 virtual bool SetFieldByName(field_t name, const void *data);
07382
07383
07384 void set_set_index(const MFInt32& set_index) { f_set_index = set_index; }
07385 MFInt32& get_set_index() const { return const_cast<MFInt32&>(f_set_index); }
07386 void set_index(const MFInt32& index) { f_index = index; }
07387 MFInt32& get_index() const { return const_cast<MFInt32&>(f_index); }
07388
07389 protected:
07390 MFInt32 f_set_index;
07391 MFInt32 f_index;
07392 };
07393 typedef pointer::SmartPointer<IndexedTriangleFanSet> IndexedTriangleFanSetPtr;
07394
07395
07396
07397
07398
07399
07400
07401 class IndexedTriangleSet : public X3DComposedGeometryNode
07402 {
07403 public:
07404 IndexedTriangleSet();
07405 virtual ~IndexedTriangleSet();
07406
07407 virtual bool IsNodeType(field_t type) const;
07408 virtual field_t GetNodeType(int idx = 0) const;
07409 virtual int GetTypeCount() const;
07410 virtual const char * GetNodeName() const;
07411
07412 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07413 virtual bool FieldHasDefaultValue(field_t name) const;
07414 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07415 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07416 virtual int GetFieldCount() const;
07417 virtual field_t GetDefaultContainerField() const;
07418
07419 virtual const char * GetDefaultContainerFieldName() const;
07420
07421 virtual bool SetFieldByName(field_t name, const void *data);
07422
07423
07424 void set_set_index(const MFInt32& set_index) { f_set_index = set_index; }
07425 MFInt32& get_set_index() const { return const_cast<MFInt32&>(f_set_index); }
07426 void set_index(const MFInt32& index) { f_index = index; }
07427 MFInt32& get_index() const { return const_cast<MFInt32&>(f_index); }
07428
07429 protected:
07430 MFInt32 f_set_index;
07431 MFInt32 f_index;
07432 };
07433 typedef pointer::SmartPointer<IndexedTriangleSet> IndexedTriangleSetPtr;
07434
07435
07436
07437
07438
07439
07440
07441 class IndexedTriangleStripSet : public X3DComposedGeometryNode
07442 {
07443 public:
07444 IndexedTriangleStripSet();
07445 virtual ~IndexedTriangleStripSet();
07446
07447 virtual bool IsNodeType(field_t type) const;
07448 virtual field_t GetNodeType(int idx = 0) const;
07449 virtual int GetTypeCount() const;
07450 virtual const char * GetNodeName() const;
07451
07452 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07453 virtual bool FieldHasDefaultValue(field_t name) const;
07454 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07455 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07456 virtual int GetFieldCount() const;
07457 virtual field_t GetDefaultContainerField() const;
07458
07459 virtual const char * GetDefaultContainerFieldName() const;
07460
07461 virtual bool SetFieldByName(field_t name, const void *data);
07462
07463
07464 void set_set_index(const MFInt32& set_index) { f_set_index = set_index; }
07465 MFInt32& get_set_index() const { return const_cast<MFInt32&>(f_set_index); }
07466 void set_creaseAngle(const SFFloat& creaseAngle) { f_creaseAngle = creaseAngle; }
07467 SFFloat get_creaseAngle() const { return f_creaseAngle; }
07468 void set_index(const MFInt32& index) { f_index = index; }
07469 MFInt32& get_index() const { return const_cast<MFInt32&>(f_index); }
07470
07471 protected:
07472 MFInt32 f_set_index;
07473 SFFloat f_creaseAngle;
07474 MFInt32 f_index;
07475 };
07476 typedef pointer::SmartPointer<IndexedTriangleStripSet> IndexedTriangleStripSetPtr;
07477
07478
07479
07480
07481
07482
07483
07484 class LineSet : public X3DGeometryNode
07485 {
07486 public:
07487 LineSet();
07488 virtual ~LineSet();
07489
07490 virtual bool IsNodeType(field_t type) const;
07491 virtual field_t GetNodeType(int idx = 0) const;
07492 virtual int GetTypeCount() const;
07493 virtual const char * GetNodeName() const;
07494
07495 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07496 virtual bool FieldHasDefaultValue(field_t name) const;
07497 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07498 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07499 virtual int GetFieldCount() const;
07500 virtual field_t GetDefaultContainerField() const;
07501
07502 virtual const char * GetDefaultContainerFieldName() const;
07503
07504 virtual bool SetFieldByName(field_t name, const void *data);
07505
07506
07507 void set_color(SFNode *color) { f_color = color; }
07508 SFNodePtr get_color() const { return f_color; }
07509 void set_coord(SFNode *coord) { f_coord = coord; }
07510 SFNodePtr get_coord() const { return f_coord; }
07511 void set_vertexCount(const MFInt32& vertexCount) { f_vertexCount = vertexCount; }
07512 MFInt32& get_vertexCount() const { return const_cast<MFInt32&>(f_vertexCount); }
07513
07514 protected:
07515 SFNodePtr f_color;
07516 SFNodePtr f_coord;
07517 MFInt32 f_vertexCount;
07518 };
07519 typedef pointer::SmartPointer<LineSet> LineSetPtr;
07520
07521
07522
07523
07524
07525
07526
07527 class Normal : public X3DNormalNode
07528 {
07529 public:
07530 Normal();
07531 virtual ~Normal();
07532
07533 virtual bool IsNodeType(field_t type) const;
07534 virtual field_t GetNodeType(int idx = 0) const;
07535 virtual int GetTypeCount() const;
07536 virtual const char * GetNodeName() const;
07537
07538 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07539 virtual bool FieldHasDefaultValue(field_t name) const;
07540 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07541 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07542 virtual int GetFieldCount() const;
07543 virtual field_t GetDefaultContainerField() const;
07544
07545 virtual const char * GetDefaultContainerFieldName() const;
07546
07547 virtual bool SetFieldByName(field_t name, const void *data);
07548
07549
07550 void set_vector(const MFVec3f& vector) { f_vector = vector; }
07551 MFVec3f& get_vector() const { return const_cast<MFVec3f&>(f_vector); }
07552
07553 protected:
07554 MFVec3f f_vector;
07555 };
07556 typedef pointer::SmartPointer<Normal> NormalPtr;
07557
07558
07559
07560
07561
07562
07563
07564 class PointSet : public X3DGeometryNode
07565 {
07566 public:
07567 PointSet();
07568 virtual ~PointSet();
07569
07570 virtual bool IsNodeType(field_t type) const;
07571 virtual field_t GetNodeType(int idx = 0) const;
07572 virtual int GetTypeCount() const;
07573 virtual const char * GetNodeName() const;
07574
07575 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07576 virtual bool FieldHasDefaultValue(field_t name) const;
07577 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07578 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07579 virtual int GetFieldCount() const;
07580 virtual field_t GetDefaultContainerField() const;
07581
07582 virtual const char * GetDefaultContainerFieldName() const;
07583
07584 virtual bool SetFieldByName(field_t name, const void *data);
07585
07586
07587 void set_color(SFNode *color) { f_color = color; }
07588 SFNodePtr get_color() const { return f_color; }
07589 void set_coord(SFNode *coord) { f_coord = coord; }
07590 SFNodePtr get_coord() const { return f_coord; }
07591
07592 protected:
07593 SFNodePtr f_color;
07594 SFNodePtr f_coord;
07595 };
07596 typedef pointer::SmartPointer<PointSet> PointSetPtr;
07597
07598
07599
07600
07601
07602
07603
07604 class TriangleFanSet : public X3DComposedGeometryNode
07605 {
07606 public:
07607 TriangleFanSet();
07608 virtual ~TriangleFanSet();
07609
07610 virtual bool IsNodeType(field_t type) const;
07611 virtual field_t GetNodeType(int idx = 0) const;
07612 virtual int GetTypeCount() const;
07613 virtual const char * GetNodeName() const;
07614
07615 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07616 virtual bool FieldHasDefaultValue(field_t name) const;
07617 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07618 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07619 virtual int GetFieldCount() const;
07620 virtual field_t GetDefaultContainerField() const;
07621
07622 virtual const char * GetDefaultContainerFieldName() const;
07623
07624 virtual bool SetFieldByName(field_t name, const void *data);
07625
07626
07627 void set_fanCount(const MFInt32& fanCount) { f_fanCount = fanCount; }
07628 MFInt32& get_fanCount() const { return const_cast<MFInt32&>(f_fanCount); }
07629
07630 protected:
07631 MFInt32 f_fanCount;
07632 };
07633 typedef pointer::SmartPointer<TriangleFanSet> TriangleFanSetPtr;
07634
07635
07636
07637
07638
07639
07640
07641 class TriangleSet : public X3DComposedGeometryNode
07642 {
07643 public:
07644 TriangleSet();
07645 virtual ~TriangleSet();
07646
07647 virtual bool IsNodeType(field_t type) const;
07648 virtual field_t GetNodeType(int idx = 0) const;
07649 virtual int GetTypeCount() const;
07650 virtual const char * GetNodeName() const;
07651
07652 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07653 virtual bool FieldHasDefaultValue(field_t name) const;
07654 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07655 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07656 virtual int GetFieldCount() const;
07657 virtual field_t GetDefaultContainerField() const;
07658
07659 virtual const char * GetDefaultContainerFieldName() const;
07660
07661 virtual bool SetFieldByName(field_t name, const void *data);
07662 };
07663 typedef pointer::SmartPointer<TriangleSet> TriangleSetPtr;
07664
07665
07666
07667
07668
07669
07670
07671 class TriangleStripSet : public X3DComposedGeometryNode
07672 {
07673 public:
07674 TriangleStripSet();
07675 virtual ~TriangleStripSet();
07676
07677 virtual bool IsNodeType(field_t type) const;
07678 virtual field_t GetNodeType(int idx = 0) const;
07679 virtual int GetTypeCount() const;
07680 virtual const char * GetNodeName() const;
07681
07682 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07683 virtual bool FieldHasDefaultValue(field_t name) const;
07684 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07685 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07686 virtual int GetFieldCount() const;
07687 virtual field_t GetDefaultContainerField() const;
07688
07689 virtual const char * GetDefaultContainerFieldName() const;
07690
07691 virtual bool SetFieldByName(field_t name, const void *data);
07692
07693
07694 void set_stripCount(const MFInt32& stripCount) { f_stripCount = stripCount; }
07695 MFInt32& get_stripCount() const { return const_cast<MFInt32&>(f_stripCount); }
07696
07697 protected:
07698 MFInt32 f_stripCount;
07699 };
07700 typedef pointer::SmartPointer<TriangleStripSet> TriangleStripSetPtr;
07701
07702
07703
07704
07705
07706
07707
07708 class X3DScriptNode : public X3DChildNode, public X3DUrlObject
07709 {
07710 public:
07711 X3DScriptNode();
07712 virtual ~X3DScriptNode();
07713
07714 virtual bool IsNodeType(field_t type) const;
07715 virtual field_t GetNodeType(int idx = 0) const;
07716 virtual int GetTypeCount() const;
07717 virtual const char * GetNodeName() const;
07718
07719 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07720 virtual bool FieldHasDefaultValue(field_t name) const;
07721 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07722 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07723 virtual int GetFieldCount() const;
07724 virtual field_t GetDefaultContainerField() const;
07725
07726 virtual const char * GetDefaultContainerFieldName() const;
07727
07728 virtual bool SetFieldByName(field_t name, const void *data);
07729 };
07730 typedef pointer::SmartPointer<X3DScriptNode> X3DScriptNodePtr;
07731
07732
07733
07734
07735
07736
07737
07738 class Script : public X3DScriptNode
07739 {
07740 public:
07741 Script();
07742 virtual ~Script();
07743
07744 virtual bool IsNodeType(field_t type) const;
07745 virtual field_t GetNodeType(int idx = 0) const;
07746 virtual int GetTypeCount() const;
07747 virtual const char * GetNodeName() const;
07748
07749 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07750 virtual bool FieldHasDefaultValue(field_t name) const;
07751 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07752 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07753 virtual int GetFieldCount() const;
07754 virtual field_t GetDefaultContainerField() const;
07755
07756 virtual const char * GetDefaultContainerFieldName() const;
07757
07758 virtual bool SetFieldByName(field_t name, const void *data);
07759
07760
07761 void set_directOutput(const SFBool& directOutput) { f_directOutput = directOutput; }
07762 SFBool get_directOutput() const { return f_directOutput; }
07763 void set_mustEvaluate(const SFBool& mustEvaluate) { f_mustEvaluate = mustEvaluate; }
07764 SFBool get_mustEvaluate() const { return f_mustEvaluate; }
07765 void set_inline(const SFString& _inline) { f_inline = _inline; }
07766 SFString& get_inline() const { return const_cast<SFString&>(f_inline); }
07767 void set_fields(const MFNode& fields) { f_fields = fields; }
07768 MFNode& get_fields() const { return const_cast<MFNode&>(f_fields); }
07769
07770 protected:
07771 SFBool f_directOutput;
07772 SFBool f_mustEvaluate;
07773 SFString f_inline;
07774 MFNode f_fields;
07775 };
07776 typedef pointer::SmartPointer<Script> ScriptPtr;
07777
07778
07779
07780
07781
07782
07783
07784 class X3DAppearanceChildNode : public X3DNode
07785 {
07786 public:
07787 X3DAppearanceChildNode();
07788 virtual ~X3DAppearanceChildNode();
07789
07790 virtual bool IsNodeType(field_t type) const;
07791 virtual field_t GetNodeType(int idx = 0) const;
07792 virtual int GetTypeCount() const;
07793 virtual const char * GetNodeName() const;
07794
07795 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07796 virtual bool FieldHasDefaultValue(field_t name) const;
07797 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07798 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07799 virtual int GetFieldCount() const;
07800 virtual field_t GetDefaultContainerField() const;
07801
07802 virtual const char * GetDefaultContainerFieldName() const;
07803
07804 virtual bool SetFieldByName(field_t name, const void *data);
07805 };
07806 typedef pointer::SmartPointer<X3DAppearanceChildNode> X3DAppearanceChildNodePtr;
07807
07808
07809
07810
07811
07812
07813
07814 class X3DAppearanceNode : public X3DNode
07815 {
07816 public:
07817 X3DAppearanceNode();
07818 virtual ~X3DAppearanceNode();
07819
07820 virtual bool IsNodeType(field_t type) const;
07821 virtual field_t GetNodeType(int idx = 0) const;
07822 virtual int GetTypeCount() const;
07823 virtual const char * GetNodeName() const;
07824
07825 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07826 virtual bool FieldHasDefaultValue(field_t name) const;
07827 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07828 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07829 virtual int GetFieldCount() const;
07830 virtual field_t GetDefaultContainerField() const;
07831
07832 virtual const char * GetDefaultContainerFieldName() const;
07833
07834 virtual bool SetFieldByName(field_t name, const void *data);
07835 };
07836 typedef pointer::SmartPointer<X3DAppearanceNode> X3DAppearanceNodePtr;
07837
07838
07839
07840
07841
07842
07843
07844 class X3DMaterialNode : public X3DAppearanceChildNode
07845 {
07846 public:
07847 X3DMaterialNode();
07848 virtual ~X3DMaterialNode();
07849
07850 virtual bool IsNodeType(field_t type) const;
07851 virtual field_t GetNodeType(int idx = 0) const;
07852 virtual int GetTypeCount() const;
07853 virtual const char * GetNodeName() const;
07854
07855 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07856 virtual bool FieldHasDefaultValue(field_t name) const;
07857 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07858 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07859 virtual int GetFieldCount() const;
07860 virtual field_t GetDefaultContainerField() const;
07861
07862 virtual const char * GetDefaultContainerFieldName() const;
07863
07864 virtual bool SetFieldByName(field_t name, const void *data);
07865 };
07866 typedef pointer::SmartPointer<X3DMaterialNode> X3DMaterialNodePtr;
07867
07868
07869
07870
07871
07872
07873
07874 class X3DShapeNode : public X3DChildNode, public X3DBoundedObject
07875 {
07876 public:
07877 X3DShapeNode();
07878 virtual ~X3DShapeNode();
07879
07880 virtual bool IsNodeType(field_t type) const;
07881 virtual field_t GetNodeType(int idx = 0) const;
07882 virtual int GetTypeCount() const;
07883 virtual const char * GetNodeName() const;
07884
07885 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07886 virtual bool FieldHasDefaultValue(field_t name) const;
07887 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07888 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07889 virtual int GetFieldCount() const;
07890 virtual field_t GetDefaultContainerField() const;
07891
07892 virtual const char * GetDefaultContainerFieldName() const;
07893
07894 virtual bool SetFieldByName(field_t name, const void *data);
07895
07896
07897 void set_appearance(SFNode *appearance) { f_appearance = appearance; }
07898 SFNodePtr get_appearance() const { return f_appearance; }
07899 void set_geometry(SFNode *geometry) { f_geometry = geometry; }
07900 SFNodePtr get_geometry() const { return f_geometry; }
07901
07902 protected:
07903 SFNodePtr f_appearance;
07904 SFNodePtr f_geometry;
07905 };
07906 typedef pointer::SmartPointer<X3DShapeNode> X3DShapeNodePtr;
07907
07908
07909
07910
07911
07912
07913
07914 class Appearance : public X3DAppearanceNode
07915 {
07916 public:
07917 Appearance();
07918 virtual ~Appearance();
07919
07920 virtual bool IsNodeType(field_t type) const;
07921 virtual field_t GetNodeType(int idx = 0) const;
07922 virtual int GetTypeCount() const;
07923 virtual const char * GetNodeName() const;
07924
07925 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07926 virtual bool FieldHasDefaultValue(field_t name) const;
07927 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07928 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07929 virtual int GetFieldCount() const;
07930 virtual field_t GetDefaultContainerField() const;
07931
07932 virtual const char * GetDefaultContainerFieldName() const;
07933
07934 virtual bool SetFieldByName(field_t name, const void *data);
07935
07936
07937 void set_fillProperties(SFNode *fillProperties) { f_fillProperties = fillProperties; }
07938 SFNodePtr get_fillProperties() const { return f_fillProperties; }
07939 void set_lineProperties(SFNode *lineProperties) { f_lineProperties = lineProperties; }
07940 SFNodePtr get_lineProperties() const { return f_lineProperties; }
07941 void set_material(SFNode *material) { f_material = material; }
07942 SFNodePtr get_material() const { return f_material; }
07943 void set_texture(SFNode *texture) { f_texture = texture; }
07944 SFNodePtr get_texture() const { return f_texture; }
07945 void set_textureTransform(SFNode *textureTransform) { f_textureTransform = textureTransform; }
07946 SFNodePtr get_textureTransform() const { return f_textureTransform; }
07947
07948 protected:
07949 SFNodePtr f_fillProperties;
07950 SFNodePtr f_lineProperties;
07951 SFNodePtr f_material;
07952 SFNodePtr f_texture;
07953 SFNodePtr f_textureTransform;
07954 };
07955 typedef pointer::SmartPointer<Appearance> AppearancePtr;
07956
07957
07958
07959
07960
07961
07962
07963 class FillProperties : public X3DAppearanceChildNode
07964 {
07965 public:
07966 FillProperties();
07967 virtual ~FillProperties();
07968
07969 virtual bool IsNodeType(field_t type) const;
07970 virtual field_t GetNodeType(int idx = 0) const;
07971 virtual int GetTypeCount() const;
07972 virtual const char * GetNodeName() const;
07973
07974 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
07975 virtual bool FieldHasDefaultValue(field_t name) const;
07976 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
07977 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
07978 virtual int GetFieldCount() const;
07979 virtual field_t GetDefaultContainerField() const;
07980
07981 virtual const char * GetDefaultContainerFieldName() const;
07982
07983 virtual bool SetFieldByName(field_t name, const void *data);
07984
07985
07986 void set_filled(const SFBool& filled) { f_filled = filled; }
07987 SFBool get_filled() const { return f_filled; }
07988 void set_hatchColor(const SFColor& hatchColor) { f_hatchColor = hatchColor; }
07989 SFColor get_hatchColor() const { return f_hatchColor; }
07990 void set_hatched(const SFBool& hatched) { f_hatched = hatched; }
07991 SFBool get_hatched() const { return f_hatched; }
07992 void set_hatchStyle(const SFInt32& hatchStyle) { f_hatchStyle = hatchStyle; }
07993 SFInt32 get_hatchStyle() const { return f_hatchStyle; }
07994
07995 protected:
07996 SFBool f_filled;
07997 SFColor f_hatchColor;
07998 SFBool f_hatched;
07999 SFInt32 f_hatchStyle;
08000 };
08001 typedef pointer::SmartPointer<FillProperties> FillPropertiesPtr;
08002
08003
08004
08005
08006
08007
08008
08009 class LineProperties : public X3DAppearanceChildNode
08010 {
08011 public:
08012 LineProperties();
08013 virtual ~LineProperties();
08014
08015 virtual bool IsNodeType(field_t type) const;
08016 virtual field_t GetNodeType(int idx = 0) const;
08017 virtual int GetTypeCount() const;
08018 virtual const char * GetNodeName() const;
08019
08020 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08021 virtual bool FieldHasDefaultValue(field_t name) const;
08022 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08023 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08024 virtual int GetFieldCount() const;
08025 virtual field_t GetDefaultContainerField() const;
08026
08027 virtual const char * GetDefaultContainerFieldName() const;
08028
08029 virtual bool SetFieldByName(field_t name, const void *data);
08030
08031
08032 void set_applied(const SFBool& applied) { f_applied = applied; }
08033 SFBool get_applied() const { return f_applied; }
08034 void set_linetype(const SFInt32& linetype) { f_linetype = linetype; }
08035 SFInt32 get_linetype() const { return f_linetype; }
08036 void set_linewidthScaleFactor(const SFFloat& linewidthScaleFactor) { f_linewidthScaleFactor = linewidthScaleFactor; }
08037 SFFloat get_linewidthScaleFactor() const { return f_linewidthScaleFactor; }
08038
08039 protected:
08040 SFBool f_applied;
08041 SFInt32 f_linetype;
08042 SFFloat f_linewidthScaleFactor;
08043 };
08044 typedef pointer::SmartPointer<LineProperties> LinePropertiesPtr;
08045
08046
08047
08048
08049
08050
08051
08052 class Material : public X3DMaterialNode
08053 {
08054 public:
08055 Material();
08056 virtual ~Material();
08057
08058 virtual bool IsNodeType(field_t type) const;
08059 virtual field_t GetNodeType(int idx = 0) const;
08060 virtual int GetTypeCount() const;
08061 virtual const char * GetNodeName() const;
08062
08063 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08064 virtual bool FieldHasDefaultValue(field_t name) const;
08065 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08066 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08067 virtual int GetFieldCount() const;
08068 virtual field_t GetDefaultContainerField() const;
08069
08070 virtual const char * GetDefaultContainerFieldName() const;
08071
08072 virtual bool SetFieldByName(field_t name, const void *data);
08073
08074
08075 void set_ambientIntensity(const SFFloat& ambientIntensity) { f_ambientIntensity = ambientIntensity; }
08076 SFFloat get_ambientIntensity() const { return f_ambientIntensity; }
08077 void set_diffuseColor(const SFColor& diffuseColor) { f_diffuseColor = diffuseColor; }
08078 SFColor get_diffuseColor() const { return f_diffuseColor; }
08079 void set_emissiveColor(const SFColor& emissiveColor) { f_emissiveColor = emissiveColor; }
08080 SFColor get_emissiveColor() const { return f_emissiveColor; }
08081 void set_shininess(const SFFloat& shininess) { f_shininess = shininess; }
08082 SFFloat get_shininess() const { return f_shininess; }
08083 void set_specularColor(const SFColor& specularColor) { f_specularColor = specularColor; }
08084 SFColor get_specularColor() const { return f_specularColor; }
08085 void set_transparency(const SFFloat& transparency) { f_transparency = transparency; }
08086 SFFloat get_transparency() const { return f_transparency; }
08087
08088 protected:
08089 SFFloat f_ambientIntensity;
08090 SFColor f_diffuseColor;
08091 SFColor f_emissiveColor;
08092 SFFloat f_shininess;
08093 SFColor f_specularColor;
08094 SFFloat f_transparency;
08095 };
08096 typedef pointer::SmartPointer<Material> MaterialPtr;
08097
08098
08099
08100
08101
08102
08103
08104 class Shape : public X3DShapeNode
08105 {
08106 public:
08107 Shape();
08108 virtual ~Shape();
08109
08110 virtual bool IsNodeType(field_t type) const;
08111 virtual field_t GetNodeType(int idx = 0) const;
08112 virtual int GetTypeCount() const;
08113 virtual const char * GetNodeName() const;
08114
08115 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08116 virtual bool FieldHasDefaultValue(field_t name) const;
08117 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08118 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08119 virtual int GetFieldCount() const;
08120 virtual field_t GetDefaultContainerField() const;
08121
08122 virtual const char * GetDefaultContainerFieldName() const;
08123
08124 virtual bool SetFieldByName(field_t name, const void *data);
08125 };
08126 typedef pointer::SmartPointer<Shape> ShapePtr;
08127
08128
08129
08130
08131
08132
08133
08134 class X3DSoundNode : public X3DChildNode
08135 {
08136 public:
08137 X3DSoundNode();
08138 virtual ~X3DSoundNode();
08139
08140 virtual bool IsNodeType(field_t type) const;
08141 virtual field_t GetNodeType(int idx = 0) const;
08142 virtual int GetTypeCount() const;
08143 virtual const char * GetNodeName() const;
08144
08145 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08146 virtual bool FieldHasDefaultValue(field_t name) const;
08147 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08148 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08149 virtual int GetFieldCount() const;
08150 virtual field_t GetDefaultContainerField() const;
08151
08152 virtual const char * GetDefaultContainerFieldName() const;
08153
08154 virtual bool SetFieldByName(field_t name, const void *data);
08155 };
08156 typedef pointer::SmartPointer<X3DSoundNode> X3DSoundNodePtr;
08157
08158
08159
08160
08161
08162
08163
08164 class X3DTimeDependentNode : public X3DChildNode
08165 {
08166 public:
08167 X3DTimeDependentNode();
08168 virtual ~X3DTimeDependentNode();
08169
08170 virtual bool IsNodeType(field_t type) const;
08171 virtual field_t GetNodeType(int idx = 0) const;
08172 virtual int GetTypeCount() const;
08173 virtual const char * GetNodeName() const;
08174
08175 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08176 virtual bool FieldHasDefaultValue(field_t name) const;
08177 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08178 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08179 virtual int GetFieldCount() const;
08180 virtual field_t GetDefaultContainerField() const;
08181
08182 virtual const char * GetDefaultContainerFieldName() const;
08183
08184 virtual bool SetFieldByName(field_t name, const void *data);
08185
08186
08187 void set_loop(const SFBool& loop) { f_loop = loop; }
08188 SFBool get_loop() const { return f_loop; }
08189 void set_pauseTime(const SFTime& pauseTime) { f_pauseTime = pauseTime; }
08190 SFTime get_pauseTime() const { return f_pauseTime; }
08191 void set_resumeTime(const SFTime& resumeTime) { f_resumeTime = resumeTime; }
08192 SFTime get_resumeTime() const { return f_resumeTime; }
08193 void set_startTime(const SFTime& startTime) { f_startTime = startTime; }
08194 SFTime get_startTime() const { return f_startTime; }
08195 void set_stopTime(const SFTime& stopTime) { f_stopTime = stopTime; }
08196 SFTime get_stopTime() const { return f_stopTime; }
08197 void set_elapsedTime(const SFTime& elapsedTime) { f_elapsedTime = elapsedTime; }
08198 SFTime get_elapsedTime() const { return f_elapsedTime; }
08199 void set_isActive(const SFBool& isActive) { f_isActive = isActive; }
08200 SFBool get_isActive() const { return f_isActive; }
08201 void set_isPaused(const SFBool& isPaused) { f_isPaused = isPaused; }
08202 SFBool get_isPaused() const { return f_isPaused; }
08203
08204 protected:
08205 SFBool f_loop;
08206 SFTime f_pauseTime;
08207 SFTime f_resumeTime;
08208 SFTime f_startTime;
08209 SFTime f_stopTime;
08210 SFTime f_elapsedTime;
08211 SFBool f_isActive;
08212 SFBool f_isPaused;
08213 };
08214 typedef pointer::SmartPointer<X3DTimeDependentNode> X3DTimeDependentNodePtr;
08215
08216
08217
08218
08219
08220
08221
08222 class X3DSoundSourceNode : public X3DTimeDependentNode
08223 {
08224 public:
08225 X3DSoundSourceNode();
08226 virtual ~X3DSoundSourceNode();
08227
08228 virtual bool IsNodeType(field_t type) const;
08229 virtual field_t GetNodeType(int idx = 0) const;
08230 virtual int GetTypeCount() const;
08231 virtual const char * GetNodeName() const;
08232
08233 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08234 virtual bool FieldHasDefaultValue(field_t name) const;
08235 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08236 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08237 virtual int GetFieldCount() const;
08238 virtual field_t GetDefaultContainerField() const;
08239
08240 virtual const char * GetDefaultContainerFieldName() const;
08241
08242 virtual bool SetFieldByName(field_t name, const void *data);
08243
08244
08245 void set_description(const SFString& description) { f_description = description; }
08246 SFString& get_description() const { return const_cast<SFString&>(f_description); }
08247 void set_pitch(const SFFloat& pitch) { f_pitch = pitch; }
08248 SFFloat get_pitch() const { return f_pitch; }
08249 void set_duration_changed(const SFTime& duration_changed) { f_duration_changed = duration_changed; }
08250 SFTime get_duration_changed() const { return f_duration_changed; }
08251
08252 protected:
08253 SFString f_description;
08254 SFFloat f_pitch;
08255 SFTime f_duration_changed;
08256 };
08257 typedef pointer::SmartPointer<X3DSoundSourceNode> X3DSoundSourceNodePtr;
08258
08259
08260
08261
08262
08263
08264
08265 class AudioClip : public X3DSoundSourceNode, public X3DUrlObject
08266 {
08267 public:
08268 AudioClip();
08269 virtual ~AudioClip();
08270
08271 virtual bool IsNodeType(field_t type) const;
08272 virtual field_t GetNodeType(int idx = 0) const;
08273 virtual int GetTypeCount() const;
08274 virtual const char * GetNodeName() const;
08275
08276 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08277 virtual bool FieldHasDefaultValue(field_t name) const;
08278 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08279 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08280 virtual int GetFieldCount() const;
08281 virtual field_t GetDefaultContainerField() const;
08282
08283 virtual const char * GetDefaultContainerFieldName() const;
08284
08285 virtual bool SetFieldByName(field_t name, const void *data);
08286 };
08287 typedef pointer::SmartPointer<AudioClip> AudioClipPtr;
08288
08289
08290
08291
08292
08293
08294
08295 class Sound : public X3DSoundNode
08296 {
08297 public:
08298 Sound();
08299 virtual ~Sound();
08300
08301 virtual bool IsNodeType(field_t type) const;
08302 virtual field_t GetNodeType(int idx = 0) const;
08303 virtual int GetTypeCount() const;
08304 virtual const char * GetNodeName() const;
08305
08306 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08307 virtual bool FieldHasDefaultValue(field_t name) const;
08308 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08309 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08310 virtual int GetFieldCount() const;
08311 virtual field_t GetDefaultContainerField() const;
08312
08313 virtual const char * GetDefaultContainerFieldName() const;
08314
08315 virtual bool SetFieldByName(field_t name, const void *data);
08316
08317
08318 void set_direction(const SFVec3f& direction) { f_direction = direction; }
08319 SFVec3f& get_direction() const { return const_cast<SFVec3f&>(f_direction); }
08320 void set_intensity(const SFFloat& intensity) { f_intensity = intensity; }
08321 SFFloat get_intensity() const { return f_intensity; }
08322 void set_location(const SFVec3f& location) { f_location = location; }
08323 SFVec3f& get_location() const { return const_cast<SFVec3f&>(f_location); }
08324 void set_maxBack(const SFFloat& maxBack) { f_maxBack = maxBack; }
08325 SFFloat get_maxBack() const { return f_maxBack; }
08326 void set_maxFront(const SFFloat& maxFront) { f_maxFront = maxFront; }
08327 SFFloat get_maxFront() const { return f_maxFront; }
08328 void set_minBack(const SFFloat& minBack) { f_minBack = minBack; }
08329 SFFloat get_minBack() const { return f_minBack; }
08330 void set_minFront(const SFFloat& minFront) { f_minFront = minFront; }
08331 SFFloat get_minFront() const { return f_minFront; }
08332 void set_priority(const SFFloat& priority) { f_priority = priority; }
08333 SFFloat get_priority() const { return f_priority; }
08334 void set_source(SFNode *source) { f_source = source; }
08335 SFNodePtr get_source() const { return f_source; }
08336 void set_spatialize(const SFBool& spatialize) { f_spatialize = spatialize; }
08337 SFBool get_spatialize() const { return f_spatialize; }
08338
08339 protected:
08340 SFVec3f f_direction;
08341 SFFloat f_intensity;
08342 SFVec3f f_location;
08343 SFFloat f_maxBack;
08344 SFFloat f_maxFront;
08345 SFFloat f_minBack;
08346 SFFloat f_minFront;
08347 SFFloat f_priority;
08348 SFNodePtr f_source;
08349 SFBool f_spatialize;
08350 };
08351 typedef pointer::SmartPointer<Sound> SoundPtr;
08352
08353
08354
08355
08356
08357
08358
08359 class X3DFontStyleNode : public X3DNode
08360 {
08361 public:
08362 X3DFontStyleNode();
08363 virtual ~X3DFontStyleNode();
08364
08365 virtual bool IsNodeType(field_t type) const;
08366 virtual field_t GetNodeType(int idx = 0) const;
08367 virtual int GetTypeCount() const;
08368 virtual const char * GetNodeName() const;
08369
08370 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08371 virtual bool FieldHasDefaultValue(field_t name) const;
08372 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08373 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08374 virtual int GetFieldCount() const;
08375 virtual field_t GetDefaultContainerField() const;
08376
08377 virtual const char * GetDefaultContainerFieldName() const;
08378
08379 virtual bool SetFieldByName(field_t name, const void *data);
08380 };
08381 typedef pointer::SmartPointer<X3DFontStyleNode> X3DFontStyleNodePtr;
08382
08383
08384
08385
08386
08387
08388
08389 class FontStyle : public X3DFontStyleNode
08390 {
08391 public:
08392 FontStyle();
08393 virtual ~FontStyle();
08394
08395 virtual bool IsNodeType(field_t type) const;
08396 virtual field_t GetNodeType(int idx = 0) const;
08397 virtual int GetTypeCount() const;
08398 virtual const char * GetNodeName() const;
08399
08400 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08401 virtual bool FieldHasDefaultValue(field_t name) const;
08402 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08403 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08404 virtual int GetFieldCount() const;
08405 virtual field_t GetDefaultContainerField() const;
08406
08407 virtual const char * GetDefaultContainerFieldName() const;
08408
08409 virtual bool SetFieldByName(field_t name, const void *data);
08410
08411
08412 void set_family(const MFString& family) { f_family = family; }
08413 MFString& get_family() const { return const_cast<MFString&>(f_family); }
08414 void set_horizontal(const SFBool& horizontal) { f_horizontal = horizontal; }
08415 SFBool get_horizontal() const { return f_horizontal; }
08416 void set_justify(const SFInt32& justify) { f_justify = justify; }
08417 SFInt32 get_justify() const { return f_justify; }
08418 void set_language(const SFString& language) { f_language = language; }
08419 SFString& get_language() const { return const_cast<SFString&>(f_language); }
08420 void set_leftToRight(const SFBool& leftToRight) { f_leftToRight = leftToRight; }
08421 SFBool get_leftToRight() const { return f_leftToRight; }
08422 void set_size(const SFFloat& size) { f_size = size; }
08423 SFFloat get_size() const { return f_size; }
08424 void set_spacing(const SFFloat& spacing) { f_spacing = spacing; }
08425 SFFloat get_spacing() const { return f_spacing; }
08426 void set_style(const SFInt32& style) { f_style = style; }
08427 SFInt32 get_style() const { return f_style; }
08428 void set_topToBottom(const SFBool& topToBottom) { f_topToBottom = topToBottom; }
08429 SFBool get_topToBottom() const { return f_topToBottom; }
08430
08431 protected:
08432 MFString f_family;
08433 SFBool f_horizontal;
08434 SFInt32 f_justify;
08435 mutable SFInt32 f_justify__flags_last;
08436 mutable MFString f_justify__flags_names;
08437 SFString f_language;
08438 SFBool f_leftToRight;
08439 SFFloat f_size;
08440 SFFloat f_spacing;
08441 SFInt32 f_style;
08442 mutable SFInt32 f_style__enum_last;
08443 mutable SFString f_style__enum_name;
08444 SFBool f_topToBottom;
08445 };
08446 typedef pointer::SmartPointer<FontStyle> FontStylePtr;
08447
08448
08449
08450
08451
08452
08453
08454 class Text : public X3DGeometryNode
08455 {
08456 public:
08457 Text();
08458 virtual ~Text();
08459
08460 virtual bool IsNodeType(field_t type) const;
08461 virtual field_t GetNodeType(int idx = 0) const;
08462 virtual int GetTypeCount() const;
08463 virtual const char * GetNodeName() const;
08464
08465 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08466 virtual bool FieldHasDefaultValue(field_t name) const;
08467 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08468 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08469 virtual int GetFieldCount() const;
08470 virtual field_t GetDefaultContainerField() const;
08471
08472 virtual const char * GetDefaultContainerFieldName() const;
08473
08474 virtual bool SetFieldByName(field_t name, const void *data);
08475
08476
08477 void set_fontStyle(SFNode *fontStyle) { f_fontStyle = fontStyle; }
08478 SFNodePtr get_fontStyle() const { return f_fontStyle; }
08479 void set_length(const MFFloat& length) { f_length = length; }
08480 MFFloat& get_length() const { return const_cast<MFFloat&>(f_length); }
08481 void set_maxExtent(const SFFloat& maxExtent) { f_maxExtent = maxExtent; }
08482 SFFloat get_maxExtent() const { return f_maxExtent; }
08483 void set_string(const MFString& string) { f_string = string; }
08484 MFString& get_string() const { return const_cast<MFString&>(f_string); }
08485 void set_solid(const SFBool& solid) { f_solid = solid; }
08486 SFBool get_solid() const { return f_solid; }
08487
08488 protected:
08489 SFNodePtr f_fontStyle;
08490 MFFloat f_length;
08491 SFFloat f_maxExtent;
08492 MFString f_string;
08493 SFBool f_solid;
08494 };
08495 typedef pointer::SmartPointer<Text> TextPtr;
08496
08497
08498
08499
08500
08501
08502
08503 class X3DTextureCoordinateNode : public X3DGeometricPropertyNode
08504 {
08505 public:
08506 X3DTextureCoordinateNode();
08507 virtual ~X3DTextureCoordinateNode();
08508
08509 virtual bool IsNodeType(field_t type) const;
08510 virtual field_t GetNodeType(int idx = 0) const;
08511 virtual int GetTypeCount() const;
08512 virtual const char * GetNodeName() const;
08513
08514 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08515 virtual bool FieldHasDefaultValue(field_t name) const;
08516 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08517 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08518 virtual int GetFieldCount() const;
08519 virtual field_t GetDefaultContainerField() const;
08520
08521 virtual const char * GetDefaultContainerFieldName() const;
08522
08523 virtual bool SetFieldByName(field_t name, const void *data);
08524 };
08525 typedef pointer::SmartPointer<X3DTextureCoordinateNode> X3DTextureCoordinateNodePtr;
08526
08527
08528
08529
08530
08531
08532
08533 class X3DTextureNode : public X3DAppearanceChildNode
08534 {
08535 public:
08536 X3DTextureNode();
08537 virtual ~X3DTextureNode();
08538
08539 virtual bool IsNodeType(field_t type) const;
08540 virtual field_t GetNodeType(int idx = 0) const;
08541 virtual int GetTypeCount() const;
08542 virtual const char * GetNodeName() const;
08543
08544 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08545 virtual bool FieldHasDefaultValue(field_t name) const;
08546 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08547 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08548 virtual int GetFieldCount() const;
08549 virtual field_t GetDefaultContainerField() const;
08550
08551 virtual const char * GetDefaultContainerFieldName() const;
08552
08553 virtual bool SetFieldByName(field_t name, const void *data);
08554 };
08555 typedef pointer::SmartPointer<X3DTextureNode> X3DTextureNodePtr;
08556
08557
08558
08559
08560
08561
08562
08563 class X3DTexture2DNode : public X3DTextureNode
08564 {
08565 public:
08566 X3DTexture2DNode();
08567 virtual ~X3DTexture2DNode();
08568
08569 virtual bool IsNodeType(field_t type) const;
08570 virtual field_t GetNodeType(int idx = 0) const;
08571 virtual int GetTypeCount() const;
08572 virtual const char * GetNodeName() const;
08573
08574 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08575 virtual bool FieldHasDefaultValue(field_t name) const;
08576 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08577 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08578 virtual int GetFieldCount() const;
08579 virtual field_t GetDefaultContainerField() const;
08580
08581 virtual const char * GetDefaultContainerFieldName() const;
08582
08583 virtual bool SetFieldByName(field_t name, const void *data);
08584
08585
08586 void set_repeatS(const SFBool& repeatS) { f_repeatS = repeatS; }
08587 SFBool get_repeatS() const { return f_repeatS; }
08588 void set_repeatT(const SFBool& repeatT) { f_repeatT = repeatT; }
08589 SFBool get_repeatT() const { return f_repeatT; }
08590
08591 protected:
08592 SFBool f_repeatS;
08593 SFBool f_repeatT;
08594 };
08595 typedef pointer::SmartPointer<X3DTexture2DNode> X3DTexture2DNodePtr;
08596
08597
08598
08599
08600
08601
08602
08603 class X3DTextureTransformNode : public X3DAppearanceChildNode
08604 {
08605 public:
08606 X3DTextureTransformNode();
08607 virtual ~X3DTextureTransformNode();
08608
08609 virtual bool IsNodeType(field_t type) const;
08610 virtual field_t GetNodeType(int idx = 0) const;
08611 virtual int GetTypeCount() const;
08612 virtual const char * GetNodeName() const;
08613
08614 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08615 virtual bool FieldHasDefaultValue(field_t name) const;
08616 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08617 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08618 virtual int GetFieldCount() const;
08619 virtual field_t GetDefaultContainerField() const;
08620
08621 virtual const char * GetDefaultContainerFieldName() const;
08622
08623 virtual bool SetFieldByName(field_t name, const void *data);
08624 };
08625 typedef pointer::SmartPointer<X3DTextureTransformNode> X3DTextureTransformNodePtr;
08626
08627
08628
08629
08630
08631
08632
08633 class X3DTextureTransform2DNode : public X3DTextureTransformNode
08634 {
08635 public:
08636 X3DTextureTransform2DNode();
08637 virtual ~X3DTextureTransform2DNode();
08638
08639 virtual bool IsNodeType(field_t type) const;
08640 virtual field_t GetNodeType(int idx = 0) const;
08641 virtual int GetTypeCount() const;
08642 virtual const char * GetNodeName() const;
08643
08644 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08645 virtual bool FieldHasDefaultValue(field_t name) const;
08646 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08647 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08648 virtual int GetFieldCount() const;
08649 virtual field_t GetDefaultContainerField() const;
08650
08651 virtual const char * GetDefaultContainerFieldName() const;
08652
08653 virtual bool SetFieldByName(field_t name, const void *data);
08654
08655
08656 void set_center(const SFVec2f& center) { f_center = center; }
08657 SFVec2f& get_center() const { return const_cast<SFVec2f&>(f_center); }
08658 void set_rotation(const SFFloat& rotation) { f_rotation = rotation; }
08659 SFFloat get_rotation() const { return f_rotation; }
08660 void set_scale(const SFVec2f& scale) { f_scale = scale; }
08661 SFVec2f& get_scale() const { return const_cast<SFVec2f&>(f_scale); }
08662 void set_translation(const SFVec2f& translation) { f_translation = translation; }
08663 SFVec2f& get_translation() const { return const_cast<SFVec2f&>(f_translation); }
08664
08665 protected:
08666 SFVec2f f_center;
08667 SFFloat f_rotation;
08668 SFVec2f f_scale;
08669 SFVec2f f_translation;
08670 };
08671 typedef pointer::SmartPointer<X3DTextureTransform2DNode> X3DTextureTransform2DNodePtr;
08672
08673
08674
08675
08676
08677
08678
08679 class ImageTexture : public X3DTexture2DNode
08680 {
08681 public:
08682 ImageTexture();
08683 virtual ~ImageTexture();
08684
08685 virtual bool IsNodeType(field_t type) const;
08686 virtual field_t GetNodeType(int idx = 0) const;
08687 virtual int GetTypeCount() const;
08688 virtual const char * GetNodeName() const;
08689
08690 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08691 virtual bool FieldHasDefaultValue(field_t name) const;
08692 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08693 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08694 virtual int GetFieldCount() const;
08695 virtual field_t GetDefaultContainerField() const;
08696
08697 virtual const char * GetDefaultContainerFieldName() const;
08698
08699 virtual bool SetFieldByName(field_t name, const void *data);
08700
08701
08702 void set_url(const MFString& url) { f_url = url; }
08703 MFString& get_url() const { return const_cast<MFString&>(f_url); }
08704
08705 protected:
08706 MFString f_url;
08707 };
08708 typedef pointer::SmartPointer<ImageTexture> ImageTexturePtr;
08709
08710
08711
08712
08713
08714
08715
08716
08717
08718
08719
08720
08721
08722 class MovieTexture : public X3DTexture2DNode, public X3DUrlObject
08723 {
08724 public:
08725 MovieTexture();
08726 virtual ~MovieTexture();
08727
08728 virtual bool IsNodeType(field_t type) const;
08729 virtual field_t GetNodeType(int idx = 0) const;
08730 virtual int GetTypeCount() const;
08731 virtual const char * GetNodeName() const;
08732
08733 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08734 virtual bool FieldHasDefaultValue(field_t name) const;
08735 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08736 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08737 virtual int GetFieldCount() const;
08738 virtual field_t GetDefaultContainerField() const;
08739
08740 virtual const char * GetDefaultContainerFieldName() const;
08741
08742 virtual bool SetFieldByName(field_t name, const void *data);
08743
08744
08745 void set_sound(SFNode *sound) { f_sound = sound; }
08746 SFNodePtr get_sound() const { return f_sound; }
08747 void set_speed(const SFFloat& speed) { f_speed = speed; }
08748 SFFloat get_speed() const { return f_speed; }
08749
08750 protected:
08751 SFNodePtr f_sound;
08752 SFFloat f_speed;
08753 };
08754 typedef pointer::SmartPointer<MovieTexture> MovieTexturePtr;
08755
08756
08757
08758
08759
08760
08761
08762
08763
08764
08765
08766
08767
08768 class MovieSound : public X3DSoundSourceNode, public X3DUrlObject
08769 {
08770 public:
08771 MovieSound();
08772 virtual ~MovieSound();
08773
08774 virtual bool IsNodeType(field_t type) const;
08775 virtual field_t GetNodeType(int idx = 0) const;
08776 virtual int GetTypeCount() const;
08777 virtual const char * GetNodeName() const;
08778
08779 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08780 virtual bool FieldHasDefaultValue(field_t name) const;
08781 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08782 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08783 virtual int GetFieldCount() const;
08784 virtual field_t GetDefaultContainerField() const;
08785
08786 virtual const char * GetDefaultContainerFieldName() const;
08787
08788 virtual bool SetFieldByName(field_t name, const void *data);
08789
08790
08791 void set_speed(const SFFloat& speed) { f_speed = speed; }
08792 SFFloat get_speed() const { return f_speed; }
08793
08794 protected:
08795 SFFloat f_speed;
08796 };
08797 typedef pointer::SmartPointer<MovieSound> MovieSoundPtr;
08798
08799
08800
08801
08802
08803
08804
08805 class MultiTexture : public X3DTextureNode
08806 {
08807 public:
08808 MultiTexture();
08809 virtual ~MultiTexture();
08810
08811 virtual bool IsNodeType(field_t type) const;
08812 virtual field_t GetNodeType(int idx = 0) const;
08813 virtual int GetTypeCount() const;
08814 virtual const char * GetNodeName() const;
08815
08816 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08817 virtual bool FieldHasDefaultValue(field_t name) const;
08818 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08819 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08820 virtual int GetFieldCount() const;
08821 virtual field_t GetDefaultContainerField() const;
08822
08823 virtual const char * GetDefaultContainerFieldName() const;
08824
08825 virtual bool SetFieldByName(field_t name, const void *data);
08826
08827
08828 void set_alpha(const SFFloat& alpha) { f_alpha = alpha; }
08829 SFFloat get_alpha() const { return f_alpha; }
08830 void set_color(const SFColor& color) { f_color = color; }
08831 SFColor get_color() const { return f_color; }
08832 void set_function(const MFString& function) { f_function = function; }
08833 MFString& get_function() const { return const_cast<MFString&>(f_function); }
08834 void set_mode(const MFString& mode) { f_mode = mode; }
08835 MFString& get_mode() const { return const_cast<MFString&>(f_mode); }
08836 void set_source(const MFString& source) { f_source = source; }
08837 MFString& get_source() const { return const_cast<MFString&>(f_source); }
08838 void set_texture(const MFNode& texture) { f_texture = texture; }
08839 MFNode& get_texture() const { return const_cast<MFNode&>(f_texture); }
08840
08841 protected:
08842 SFFloat f_alpha;
08843 SFColor f_color;
08844 MFString f_function;
08845 MFString f_mode;
08846 MFString f_source;
08847 MFNode f_texture;
08848 };
08849 typedef pointer::SmartPointer<MultiTexture> MultiTexturePtr;
08850
08851
08852
08853
08854
08855
08856
08857 class MultiTextureCoordinate : public X3DTextureCoordinateNode
08858 {
08859 public:
08860 MultiTextureCoordinate();
08861 virtual ~MultiTextureCoordinate();
08862
08863 virtual bool IsNodeType(field_t type) const;
08864 virtual field_t GetNodeType(int idx = 0) const;
08865 virtual int GetTypeCount() const;
08866 virtual const char * GetNodeName() const;
08867
08868 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08869 virtual bool FieldHasDefaultValue(field_t name) const;
08870 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08871 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08872 virtual int GetFieldCount() const;
08873 virtual field_t GetDefaultContainerField() const;
08874
08875 virtual const char * GetDefaultContainerFieldName() const;
08876
08877 virtual bool SetFieldByName(field_t name, const void *data);
08878
08879
08880 void set_texCoord(const MFNode& texCoord) { f_texCoord = texCoord; }
08881 MFNode& get_texCoord() const { return const_cast<MFNode&>(f_texCoord); }
08882
08883 protected:
08884 MFNode f_texCoord;
08885 };
08886 typedef pointer::SmartPointer<MultiTextureCoordinate> MultiTextureCoordinatePtr;
08887
08888
08889
08890
08891
08892
08893
08894 class MultiTextureTransform : public X3DTextureTransformNode
08895 {
08896 public:
08897 MultiTextureTransform();
08898 virtual ~MultiTextureTransform();
08899
08900 virtual bool IsNodeType(field_t type) const;
08901 virtual field_t GetNodeType(int idx = 0) const;
08902 virtual int GetTypeCount() const;
08903 virtual const char * GetNodeName() const;
08904
08905 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08906 virtual bool FieldHasDefaultValue(field_t name) const;
08907 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08908 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08909 virtual int GetFieldCount() const;
08910 virtual field_t GetDefaultContainerField() const;
08911
08912 virtual const char * GetDefaultContainerFieldName() const;
08913
08914 virtual bool SetFieldByName(field_t name, const void *data);
08915
08916
08917 void set_textureTransform(const MFNode& textureTransform) { f_textureTransform = textureTransform; }
08918 MFNode& get_textureTransform() const { return const_cast<MFNode&>(f_textureTransform); }
08919
08920 protected:
08921 MFNode f_textureTransform;
08922 };
08923 typedef pointer::SmartPointer<MultiTextureTransform> MultiTextureTransformPtr;
08924
08925
08926
08927
08928
08929
08930
08931 class PixelTexture : public X3DTexture2DNode
08932 {
08933 public:
08934 PixelTexture();
08935 virtual ~PixelTexture();
08936
08937 virtual bool IsNodeType(field_t type) const;
08938 virtual field_t GetNodeType(int idx = 0) const;
08939 virtual int GetTypeCount() const;
08940 virtual const char * GetNodeName() const;
08941
08942 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08943 virtual bool FieldHasDefaultValue(field_t name) const;
08944 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08945 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08946 virtual int GetFieldCount() const;
08947 virtual field_t GetDefaultContainerField() const;
08948
08949 virtual const char * GetDefaultContainerFieldName() const;
08950
08951 virtual bool SetFieldByName(field_t name, const void *data);
08952
08953
08954 void set_image(const SFImage& image) { f_image = image; }
08955 SFImage& get_image() const { return const_cast<SFImage&>(f_image); }
08956
08957 protected:
08958 SFImage f_image;
08959 };
08960 typedef pointer::SmartPointer<PixelTexture> PixelTexturePtr;
08961
08962
08963
08964
08965
08966
08967
08968 class TextureCoordinate : public X3DTextureCoordinateNode
08969 {
08970 public:
08971 TextureCoordinate();
08972 virtual ~TextureCoordinate();
08973
08974 virtual bool IsNodeType(field_t type) const;
08975 virtual field_t GetNodeType(int idx = 0) const;
08976 virtual int GetTypeCount() const;
08977 virtual const char * GetNodeName() const;
08978
08979 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
08980 virtual bool FieldHasDefaultValue(field_t name) const;
08981 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
08982 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
08983 virtual int GetFieldCount() const;
08984 virtual field_t GetDefaultContainerField() const;
08985
08986 virtual const char * GetDefaultContainerFieldName() const;
08987
08988 virtual bool SetFieldByName(field_t name, const void *data);
08989
08990
08991 void set_point(const MFVec2f& point) { f_point = point; }
08992 MFVec2f& get_point() const { return const_cast<MFVec2f&>(f_point); }
08993
08994 protected:
08995 MFVec2f f_point;
08996 };
08997 typedef pointer::SmartPointer<TextureCoordinate> TextureCoordinatePtr;
08998
08999
09000
09001
09002
09003
09004
09005 class TextureCoordinateGenerator : public X3DTextureCoordinateNode
09006 {
09007 public:
09008 TextureCoordinateGenerator();
09009 virtual ~TextureCoordinateGenerator();
09010
09011 virtual bool IsNodeType(field_t type) const;
09012 virtual field_t GetNodeType(int idx = 0) const;
09013 virtual int GetTypeCount() const;
09014 virtual const char * GetNodeName() const;
09015
09016 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09017 virtual bool FieldHasDefaultValue(field_t name) const;
09018 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09019 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09020 virtual int GetFieldCount() const;
09021 virtual field_t GetDefaultContainerField() const;
09022
09023 virtual const char * GetDefaultContainerFieldName() const;
09024
09025 virtual bool SetFieldByName(field_t name, const void *data);
09026
09027
09028 void set_mode(const SFInt32& mode) { f_mode = mode; }
09029 SFInt32 get_mode() const { return f_mode; }
09030 void set_parameter(const MFFloat& parameter) { f_parameter = parameter; }
09031 MFFloat& get_parameter() const { return const_cast<MFFloat&>(f_parameter); }
09032
09033 protected:
09034 SFInt32 f_mode;
09035 mutable SFInt32 f_mode__enum_last;
09036 mutable SFString f_mode__enum_name;
09037 MFFloat f_parameter;
09038 };
09039 typedef pointer::SmartPointer<TextureCoordinateGenerator> TextureCoordinateGeneratorPtr;
09040
09041
09042
09043
09044
09045
09046
09047 class TextureTransform : public X3DTextureTransform2DNode
09048 {
09049 public:
09050 TextureTransform();
09051 virtual ~TextureTransform();
09052
09053 virtual bool IsNodeType(field_t type) const;
09054 virtual field_t GetNodeType(int idx = 0) const;
09055 virtual int GetTypeCount() const;
09056 virtual const char * GetNodeName() const;
09057
09058 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09059 virtual bool FieldHasDefaultValue(field_t name) const;
09060 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09061 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09062 virtual int GetFieldCount() const;
09063 virtual field_t GetDefaultContainerField() const;
09064
09065 virtual const char * GetDefaultContainerFieldName() const;
09066
09067 virtual bool SetFieldByName(field_t name, const void *data);
09068 };
09069 typedef pointer::SmartPointer<TextureTransform> TextureTransformPtr;
09070
09071
09072
09073
09074
09075
09076
09077 class TimeSensor : public X3DTimeDependentNode, public X3DSensorNode
09078 {
09079 public:
09080 TimeSensor();
09081 virtual ~TimeSensor();
09082
09083 virtual bool IsNodeType(field_t type) const;
09084 virtual field_t GetNodeType(int idx = 0) const;
09085 virtual int GetTypeCount() const;
09086 virtual const char * GetNodeName() const;
09087
09088 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09089 virtual bool FieldHasDefaultValue(field_t name) const;
09090 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09091 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09092 virtual int GetFieldCount() const;
09093 virtual field_t GetDefaultContainerField() const;
09094
09095 virtual const char * GetDefaultContainerFieldName() const;
09096
09097 virtual bool SetFieldByName(field_t name, const void *data);
09098
09099
09100 void set_cycleInterval(const SFTime& cycleInterval) { f_cycleInterval = cycleInterval; }
09101 SFTime get_cycleInterval() const { return f_cycleInterval; }
09102 void set_cycleTime(const SFTime& cycleTime) { f_cycleTime = cycleTime; }
09103 SFTime get_cycleTime() const { return f_cycleTime; }
09104 void set_fraction_changed(const SFFloat& fraction_changed) { f_fraction_changed = fraction_changed; }
09105 SFFloat get_fraction_changed() const { return f_fraction_changed; }
09106 void set_time(const SFTime& time) { f_time = time; }
09107 SFTime get_time() const { return f_time; }
09108
09109 protected:
09110 SFTime f_cycleInterval;
09111 SFTime f_cycleTime;
09112 SFFloat f_fraction_changed;
09113 SFTime f_time;
09114 };
09115 typedef pointer::SmartPointer<TimeSensor> TimeSensorPtr;
09116
09117
09118
09119
09120
09121
09122
09123 class X3DSequencerNode : public X3DChildNode
09124 {
09125 public:
09126 X3DSequencerNode();
09127 virtual ~X3DSequencerNode();
09128
09129 virtual bool IsNodeType(field_t type) const;
09130 virtual field_t GetNodeType(int idx = 0) const;
09131 virtual int GetTypeCount() const;
09132 virtual const char * GetNodeName() const;
09133
09134 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09135 virtual bool FieldHasDefaultValue(field_t name) const;
09136 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09137 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09138 virtual int GetFieldCount() const;
09139 virtual field_t GetDefaultContainerField() const;
09140
09141 virtual const char * GetDefaultContainerFieldName() const;
09142
09143 virtual bool SetFieldByName(field_t name, const void *data);
09144
09145
09146 void set_next(const SFBool& next) { f_next = next; }
09147 SFBool get_next() const { return f_next; }
09148 void set_previous(const SFBool& previous) { f_previous = previous; }
09149 SFBool get_previous() const { return f_previous; }
09150 void set_set_fraction(const SFFloat& set_fraction) { f_set_fraction = set_fraction; }
09151 SFFloat get_set_fraction() const { return f_set_fraction; }
09152 void set_key(const MFFloat& key) { f_key = key; }
09153 MFFloat& get_key() const { return const_cast<MFFloat&>(f_key); }
09154
09155 protected:
09156 SFBool f_next;
09157 SFBool f_previous;
09158 SFFloat f_set_fraction;
09159 MFFloat f_key;
09160 };
09161 typedef pointer::SmartPointer<X3DSequencerNode> X3DSequencerNodePtr;
09162
09163
09164
09165
09166
09167
09168
09169 class X3DTriggerNode : public X3DChildNode
09170 {
09171 public:
09172 X3DTriggerNode();
09173 virtual ~X3DTriggerNode();
09174
09175 virtual bool IsNodeType(field_t type) const;
09176 virtual field_t GetNodeType(int idx = 0) const;
09177 virtual int GetTypeCount() const;
09178 virtual const char * GetNodeName() const;
09179
09180 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09181 virtual bool FieldHasDefaultValue(field_t name) const;
09182 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09183 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09184 virtual int GetFieldCount() const;
09185 virtual field_t GetDefaultContainerField() const;
09186
09187 virtual const char * GetDefaultContainerFieldName() const;
09188
09189 virtual bool SetFieldByName(field_t name, const void *data);
09190 };
09191 typedef pointer::SmartPointer<X3DTriggerNode> X3DTriggerNodePtr;
09192
09193
09194
09195
09196
09197
09198
09199 class BooleanFilter : public X3DChildNode
09200 {
09201 public:
09202 BooleanFilter();
09203 virtual ~BooleanFilter();
09204
09205 virtual bool IsNodeType(field_t type) const;
09206 virtual field_t GetNodeType(int idx = 0) const;
09207 virtual int GetTypeCount() const;
09208 virtual const char * GetNodeName() const;
09209
09210 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09211 virtual bool FieldHasDefaultValue(field_t name) const;
09212 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09213 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09214 virtual int GetFieldCount() const;
09215 virtual field_t GetDefaultContainerField() const;
09216
09217 virtual const char * GetDefaultContainerFieldName() const;
09218
09219 virtual bool SetFieldByName(field_t name, const void *data);
09220
09221
09222 void set_set_boolean(const SFBool& set_boolean) { f_set_boolean = set_boolean; }
09223 SFBool get_set_boolean() const { return f_set_boolean; }
09224 void set_inputFalse(const SFBool& inputFalse) { f_inputFalse = inputFalse; }
09225 SFBool get_inputFalse() const { return f_inputFalse; }
09226 void set_inputNegate(const SFBool& inputNegate) { f_inputNegate = inputNegate; }
09227 SFBool get_inputNegate() const { return f_inputNegate; }
09228 void set_inputTrue(const SFBool& inputTrue) { f_inputTrue = inputTrue; }
09229 SFBool get_inputTrue() const { return f_inputTrue; }
09230
09231 protected:
09232 SFBool f_set_boolean;
09233 SFBool f_inputFalse;
09234 SFBool f_inputNegate;
09235 SFBool f_inputTrue;
09236 };
09237 typedef pointer::SmartPointer<BooleanFilter> BooleanFilterPtr;
09238
09239
09240
09241
09242
09243
09244
09245 class BooleanSequencer : public X3DSequencerNode
09246 {
09247 public:
09248 BooleanSequencer();
09249 virtual ~BooleanSequencer();
09250
09251 virtual bool IsNodeType(field_t type) const;
09252 virtual field_t GetNodeType(int idx = 0) const;
09253 virtual int GetTypeCount() const;
09254 virtual const char * GetNodeName() const;
09255
09256 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09257 virtual bool FieldHasDefaultValue(field_t name) const;
09258 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09259 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09260 virtual int GetFieldCount() const;
09261 virtual field_t GetDefaultContainerField() const;
09262
09263 virtual const char * GetDefaultContainerFieldName() const;
09264
09265 virtual bool SetFieldByName(field_t name, const void *data);
09266
09267
09268 void set_keyValue(const MFBool& keyValue) { f_keyValue = keyValue; }
09269 MFBool& get_keyValue() const { return const_cast<MFBool&>(f_keyValue); }
09270 void set_value_changed(const SFBool& value_changed) { f_value_changed = value_changed; }
09271 SFBool get_value_changed() const { return f_value_changed; }
09272
09273 protected:
09274 MFBool f_keyValue;
09275 SFBool f_value_changed;
09276 };
09277 typedef pointer::SmartPointer<BooleanSequencer> BooleanSequencerPtr;
09278
09279
09280
09281
09282
09283
09284
09285 class BooleanToggle : public X3DChildNode
09286 {
09287 public:
09288 BooleanToggle();
09289 virtual ~BooleanToggle();
09290
09291 virtual bool IsNodeType(field_t type) const;
09292 virtual field_t GetNodeType(int idx = 0) const;
09293 virtual int GetTypeCount() const;
09294 virtual const char * GetNodeName() const;
09295
09296 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09297 virtual bool FieldHasDefaultValue(field_t name) const;
09298 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09299 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09300 virtual int GetFieldCount() const;
09301 virtual field_t GetDefaultContainerField() const;
09302
09303 virtual const char * GetDefaultContainerFieldName() const;
09304
09305 virtual bool SetFieldByName(field_t name, const void *data);
09306
09307
09308 void set_set_boolean(const SFBool& set_boolean) { f_set_boolean = set_boolean; }
09309 SFBool get_set_boolean() const { return f_set_boolean; }
09310 void set_toggle(const SFBool& toggle) { f_toggle = toggle; }
09311 SFBool get_toggle() const { return f_toggle; }
09312
09313 protected:
09314 SFBool f_set_boolean;
09315 SFBool f_toggle;
09316 };
09317 typedef pointer::SmartPointer<BooleanToggle> BooleanTogglePtr;
09318
09319
09320
09321
09322
09323
09324
09325 class BooleanTrigger : public X3DTriggerNode
09326 {
09327 public:
09328 BooleanTrigger();
09329 virtual ~BooleanTrigger();
09330
09331 virtual bool IsNodeType(field_t type) const;
09332 virtual field_t GetNodeType(int idx = 0) const;
09333 virtual int GetTypeCount() const;
09334 virtual const char * GetNodeName() const;
09335
09336 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09337 virtual bool FieldHasDefaultValue(field_t name) const;
09338 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09339 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09340 virtual int GetFieldCount() const;
09341 virtual field_t GetDefaultContainerField() const;
09342
09343 virtual const char * GetDefaultContainerFieldName() const;
09344
09345 virtual bool SetFieldByName(field_t name, const void *data);
09346
09347
09348 void set_set_triggerTime(const SFTime& set_triggerTime) { f_set_triggerTime = set_triggerTime; }
09349 SFTime get_set_triggerTime() const { return f_set_triggerTime; }
09350 void set_triggerTrue(const SFBool& triggerTrue) { f_triggerTrue = triggerTrue; }
09351 SFBool get_triggerTrue() const { return f_triggerTrue; }
09352
09353 protected:
09354 SFTime f_set_triggerTime;
09355 SFBool f_triggerTrue;
09356 };
09357 typedef pointer::SmartPointer<BooleanTrigger> BooleanTriggerPtr;
09358
09359
09360
09361
09362
09363
09364
09365 class IntegerSequencer : public X3DSequencerNode
09366 {
09367 public:
09368 IntegerSequencer();
09369 virtual ~IntegerSequencer();
09370
09371 virtual bool IsNodeType(field_t type) const;
09372 virtual field_t GetNodeType(int idx = 0) const;
09373 virtual int GetTypeCount() const;
09374 virtual const char * GetNodeName() const;
09375
09376 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09377 virtual bool FieldHasDefaultValue(field_t name) const;
09378 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09379 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09380 virtual int GetFieldCount() const;
09381 virtual field_t GetDefaultContainerField() const;
09382
09383 virtual const char * GetDefaultContainerFieldName() const;
09384
09385 virtual bool SetFieldByName(field_t name, const void *data);
09386
09387
09388 void set_keyValue(const MFInt32& keyValue) { f_keyValue = keyValue; }
09389 MFInt32& get_keyValue() const { return const_cast<MFInt32&>(f_keyValue); }
09390 void set_value_changed(const SFInt32& value_changed) { f_value_changed = value_changed; }
09391 SFInt32 get_value_changed() const { return f_value_changed; }
09392
09393 protected:
09394 MFInt32 f_keyValue;
09395 SFInt32 f_value_changed;
09396 };
09397 typedef pointer::SmartPointer<IntegerSequencer> IntegerSequencerPtr;
09398
09399
09400
09401
09402
09403
09404
09405 class IntegerTrigger : public X3DTriggerNode
09406 {
09407 public:
09408 IntegerTrigger();
09409 virtual ~IntegerTrigger();
09410
09411 virtual bool IsNodeType(field_t type) const;
09412 virtual field_t GetNodeType(int idx = 0) const;
09413 virtual int GetTypeCount() const;
09414 virtual const char * GetNodeName() const;
09415
09416 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09417 virtual bool FieldHasDefaultValue(field_t name) const;
09418 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09419 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09420 virtual int GetFieldCount() const;
09421 virtual field_t GetDefaultContainerField() const;
09422
09423 virtual const char * GetDefaultContainerFieldName() const;
09424
09425 virtual bool SetFieldByName(field_t name, const void *data);
09426
09427
09428 void set_set_boolean(const SFBool& set_boolean) { f_set_boolean = set_boolean; }
09429 SFBool get_set_boolean() const { return f_set_boolean; }
09430 void set_integerKey(const SFInt32& integerKey) { f_integerKey = integerKey; }
09431 SFInt32 get_integerKey() const { return f_integerKey; }
09432 void set_triggerValue(const SFInt32& triggerValue) { f_triggerValue = triggerValue; }
09433 SFInt32 get_triggerValue() const { return f_triggerValue; }
09434
09435 protected:
09436 SFBool f_set_boolean;
09437 SFInt32 f_integerKey;
09438 SFInt32 f_triggerValue;
09439 };
09440 typedef pointer::SmartPointer<IntegerTrigger> IntegerTriggerPtr;
09441
09442
09443
09444
09445
09446
09447
09448 class TimeTrigger : public X3DTriggerNode
09449 {
09450 public:
09451 TimeTrigger();
09452 virtual ~TimeTrigger();
09453
09454 virtual bool IsNodeType(field_t type) const;
09455 virtual field_t GetNodeType(int idx = 0) const;
09456 virtual int GetTypeCount() const;
09457 virtual const char * GetNodeName() const;
09458
09459 virtual bool GetFieldDefault(field_t name, FieldInfo *info) const;
09460 virtual bool FieldHasDefaultValue(field_t name) const;
09461 virtual bool GetFieldByName(field_t name, FieldInfo *info) const;
09462 virtual bool GetFieldByIndex(int idx, FieldInfo *info) const;
09463 virtual int GetFieldCount() const;
09464 virtual field_t GetDefaultContainerField() const;
09465
09466 virtual const char * GetDefaultContainerFieldName() const;
09467
09468 virtual bool SetFieldByName(field_t name, const void *data);
09469
09470
09471 void set_set_boolean(const SFBool& set_boolean) { f_set_boolean = set_boolean; }
09472 SFBool get_set_boolean() const { return f_set_boolean; }
09473 void set_triggerTime(const SFTime& triggerTime) { f_triggerTime = triggerTime; }
09474 SFTime get_triggerTime() const { return f_triggerTime; }
09475
09476 protected:
09477 SFBool f_set_boolean;
09478 SFTime f_triggerTime;
09479 };
09480 typedef pointer::SmartPointer<TimeTrigger> TimeTriggerPtr;
09481
09482
09483 };
09484
09485
09486
09487 #endif // #ifndef __X3D_OBJECTS_H__