From: <br...@us...> - 2008-04-09 23:13:22
|
Revision: 3454 http://openvrml.svn.sourceforge.net/openvrml/?rev=3454&view=rev Author: braden Date: 2008-04-09 16:13:08 -0700 (Wed, 09 Apr 2008) Log Message: ----------- Moved DIS component definition to XML. Modified Paths: -------------- branches/node-modules/data/Makefile.am branches/node-modules/src/libopenvrml/openvrml/browser.cpp Added Paths: ----------- branches/node-modules/data/component/dis.xml Modified: branches/node-modules/data/Makefile.am =================================================================== --- branches/node-modules/data/Makefile.am 2008-04-09 03:30:31 UTC (rev 3453) +++ branches/node-modules/data/Makefile.am 2008-04-09 23:13:08 UTC (rev 3454) @@ -21,4 +21,5 @@ component/environmental-effects.xml \ component/geospatial.xml \ component/h-anim.xml \ - component/nurbs.xml + component/nurbs.xml \ + component/dis.xml Added: branches/node-modules/data/component/dis.xml =================================================================== --- branches/node-modules/data/component/dis.xml (rev 0) +++ branches/node-modules/data/component/dis.xml 2008-04-09 23:13:08 UTC (rev 3454) @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component id="DIS"> + <level> + <node id="EspduTransform" + metatype-id="urn:X-openvrml:node:EspduTransform"> + <field id="metadata" type="SFNode" access-type="inputOutput" /> + <field id="addChildren" type="MFNode" access-type="inputOnly" /> + <field id="removeChildren" type="MFNode" access-type="inputOnly" /> + <field id="set_articulationParameterValue0" type="SFFloat" access-type="inputOnly" /> + <field id="set_articulationParameterValue1" type="SFFloat" access-type="inputOnly" /> + <field id="set_articulationParameterValue2" type="SFFloat" access-type="inputOnly" /> + <field id="set_articulationParameterValue3" type="SFFloat" access-type="inputOnly" /> + <field id="set_articulationParameterValue4" type="SFFloat" access-type="inputOnly" /> + <field id="set_articulationParameterValue5" type="SFFloat" access-type="inputOnly" /> + <field id="set_articulationParameterValue6" type="SFFloat" access-type="inputOnly" /> + <field id="set_articulationParameterValue7" type="SFFloat" access-type="inputOnly" /> + <field id="address" type="SFString" access-type="inputOutput" /> + <field id="applicationID" type="SFInt32" access-type="inputOutput" /> + <field id="articulationParameterCount" type="SFInt32" access-type="inputOutput" /> + <field id="articulationParameterDesignatorArray" type="MFInt32" access-type="inputOutput" /> + <field id="articulationParameterChangeIndicatorArray" type="MFInt32" access-type="inputOutput" /> + <field id="articulationParameterIdPartAttachedToArray" type="MFInt32" access-type="inputOutput" /> + <field id="articulationParameterTypeArray" type="MFInt32" access-type="inputOutput" /> + <field id="articulationParameterArray" type="MFFloat" access-type="inputOutput" /> + <field id="center" type="SFVec3f" access-type="inputOutput" /> + <field id="children" type="MFNode" access-type="inputOutput" /> + <field id="collisionType" type="SFInt32" access-type="inputOutput" /> + <field id="deadReckoning" type="SFInt32" access-type="inputOutput" /> + <field id="detonationLocation" type="SFVec3f" access-type="inputOutput" /> + <field id="detonationRelativeLocation" type="SFVec3f" access-type="inputOutput" /> + <field id="detonationResult" type="SFInt32" access-type="inputOutput" /> + <field id="entityCategory" type="SFInt32" access-type="inputOutput" /> + <field id="entityCountry" type="SFInt32" access-type="inputOutput" /> + <field id="entityDomain" type="SFInt32" access-type="inputOutput" /> + <field id="entityExtra" type="SFInt32" access-type="inputOutput" /> + <field id="entityID" type="SFInt32" access-type="inputOutput" /> + <field id="entityKind" type="SFInt32" access-type="inputOutput" /> + <field id="entitySpecific" type="SFInt32" access-type="inputOutput" /> + <field id="entitySubCategory" type="SFInt32" access-type="inputOutput" /> + <field id="eventApplicationID" type="SFInt32" access-type="inputOutput" /> + <field id="eventEntityID" type="SFInt32" access-type="inputOutput" /> + <field id="eventNumber" type="SFInt32" access-type="inputOutput" /> + <field id="eventSiteID" type="SFInt32" access-type="inputOutput" /> + <field id="fired1" type="SFBool" access-type="inputOutput" /> + <field id="fired2" type="SFBool" access-type="inputOutput" /> + <field id="fireMissionIndex" type="SFInt32" access-type="inputOutput" /> + <field id="firingRange" type="SFFloat" access-type="inputOutput" /> + <field id="firingRate" type="SFInt32" access-type="inputOutput" /> + <field id="forceID" type="SFInt32" access-type="inputOutput" /> + <field id="fuse" type="SFInt32" access-type="inputOutput" /> + <field id="linearVelocity" type="SFVec3f" access-type="inputOutput" /> + <field id="linearAcceleration" type="SFVec3f" access-type="inputOutput" /> + <field id="marking" type="SFString" access-type="inputOutput" /> + <field id="multicastRelayHost" type="SFString" access-type="inputOutput" /> + <field id="multicastRelayPort" type="SFInt32" access-type="inputOutput" /> + <field id="munitionApplicationID" type="SFInt32" access-type="inputOutput" /> + <field id="munitionEndPoint" type="SFVec3f" access-type="inputOutput" /> + <field id="munitionEntityID" type="SFInt32" access-type="inputOutput" /> + <field id="munitionQuantity" type="SFInt32" access-type="inputOutput" /> + <field id="munitionSiteID" type="SFInt32" access-type="inputOutput" /> + <field id="munitionStartPoint" type="SFVec3f" access-type="inputOutput" /> + <field id="networkMode" type="SFString" access-type="inputOutput" /> + <field id="port" type="SFInt32" access-type="inputOutput" /> + <field id="readInterval" type="SFTime" access-type="inputOutput" /> + <field id="rotation" type="SFRotation" access-type="inputOutput" /> + <field id="scale" type="SFVec3f" access-type="inputOutput" /> + <field id="scaleOrientation" type="SFRotation" access-type="inputOutput" /> + <field id="siteID" type="SFInt32" access-type="inputOutput" /> + <field id="translation" type="SFVec3f" access-type="inputOutput" /> + <field id="warhead" type="SFInt32" access-type="inputOutput" /> + <field id="writeInterval" type="SFTime" access-type="inputOutput" /> + <field id="articulationParameterValue0_changed" type="SFFloat" access-type="outputOnly" /> + <field id="articulationParameterValue1_changed" type="SFFloat" access-type="outputOnly" /> + <field id="articulationParameterValue2_changed" type="SFFloat" access-type="outputOnly" /> + <field id="articulationParameterValue3_changed" type="SFFloat" access-type="outputOnly" /> + <field id="articulationParameterValue4_changed" type="SFFloat" access-type="outputOnly" /> + <field id="articulationParameterValue5_changed" type="SFFloat" access-type="outputOnly" /> + <field id="articulationParameterValue6_changed" type="SFFloat" access-type="outputOnly" /> + <field id="articulationParameterValue7_changed" type="SFFloat" access-type="outputOnly" /> + <field id="collideTime" type="SFTime" access-type="outputOnly" /> + <field id="detonateTime" type="SFTime" access-type="outputOnly" /> + <field id="firedTime" type="SFTime" access-type="outputOnly" /> + <field id="isActive" type="SFBool" access-type="outputOnly" /> + <field id="isCollided" type="SFBool" access-type="outputOnly" /> + <field id="isDetonated" type="SFBool" access-type="outputOnly" /> + <field id="isNetworkReader" type="SFBool" access-type="outputOnly" /> + <field id="isNetworkWriter" type="SFBool" access-type="outputOnly" /> + <field id="isRtpHeaderHeard" type="SFBool" access-type="outputOnly" /> + <field id="isStandAlone" type="SFBool" access-type="outputOnly" /> + <field id="timestamp" type="SFTime" access-type="outputOnly" /> + <field id="bboxCenter" type="SFVec3f" access-type="initializeOnly" /> + <field id="bboxSize" type="SFVec3f" access-type="initializeOnly" /> + <field id="rtpHeaderExpected" type="SFBool" access-type="initializeOnly" /> + </node> + <node id="ReceiverPDU" + metatype-id="urn:X-openvrml:node:ReceiverPDU"> + <field id="metadata" type="SFNode" access-type="inputOutput" /> + <field id="address" type="SFString" access-type="inputOutput" /> + <field id="applicationID" type="SFInt32" access-type="inputOutput" /> + <field id="entityID" type="SFInt32" access-type="inputOutput" /> + <field id="multicastRelayHost" type="SFString" access-type="inputOutput" /> + <field id="multicastRelayPort" type="SFInt32" access-type="inputOutput" /> + <field id="networkMode" type="SFString" access-type="inputOutput" /> + <field id="port" type="SFInt32" access-type="inputOutput" /> + <field id="radioID" type="SFInt32" access-type="inputOutput" /> + <field id="readInterval" type="SFFloat" access-type="inputOutput" /> + <field id="receivedPower" type="SFFloat" access-type="inputOutput" /> + <field id="receiverState" type="SFInt32" access-type="inputOutput" /> + <field id="rtpHeaderExpected" type="SFBool" access-type="inputOutput" /> + <field id="siteID" type="SFInt32" access-type="inputOutput" /> + <field id="transmitterApplicationID" type="SFInt32" access-type="inputOutput" /> + <field id="transmitterEntityID" type="SFInt32" access-type="inputOutput" /> + <field id="transmitterRadioID" type="SFInt32" access-type="inputOutput" /> + <field id="transmitterSiteID" type="SFInt32" access-type="inputOutput" /> + <field id="whichGeometry" type="SFInt32" access-type="inputOutput" /> + <field id="writeInterval" type="SFFloat" access-type="inputOutput" /> + <field id="isActive" type="SFBool" access-type="outputOnly" /> + <field id="isNetworkReader" type="SFBool" access-type="outputOnly" /> + <field id="isNetworkWriter" type="SFBool" access-type="outputOnly" /> + <field id="isRtpHeaderHeard" type="SFBool" access-type="outputOnly" /> + <field id="isStandAlone" type="SFBool" access-type="outputOnly" /> + <field id="timestamp" type="SFTime" access-type="outputOnly" /> + <field id="bboxCenter" type="SFVec3f" access-type="initializeOnly" /> + <field id="bboxSize" type="SFVec3f" access-type="initializeOnly" /> + </node> + <node id="SignalPDU" + metatype-id="urn:X-openvrml:node:SignalPDU"> + <field id="metadata" type="SFNode" access-type="inputOutput" /> + <field id="address" type="SFString" access-type="inputOutput" /> + <field id="applicationID" type="SFInt32" access-type="inputOutput" /> + <field id="data" type="MFInt32" access-type="inputOutput" /> + <field id="dataLength" type="SFInt32" access-type="inputOutput" /> + <field id="encodingScheme" type="SFInt32" access-type="inputOutput" /> + <field id="entityID" type="SFInt32" access-type="inputOutput" /> + <field id="multicastRelayHost" type="SFString" access-type="inputOutput" /> + <field id="multicastRelayPort" type="SFInt32" access-type="inputOutput" /> + <field id="networkMode" type="SFString" access-type="inputOutput" /> + <field id="port" type="SFInt32" access-type="inputOutput" /> + <field id="radioID" type="SFInt32" access-type="inputOutput" /> + <field id="readInterval" type="SFFloat" access-type="inputOutput" /> + <field id="rtpHeaderExpected" type="SFBool" access-type="inputOutput" /> + <field id="sampleRate" type="SFInt32" access-type="inputOutput" /> + <field id="samples" type="SFInt32" access-type="inputOutput" /> + <field id="siteID" type="SFInt32" access-type="inputOutput" /> + <field id="tdlType" type="SFInt32" access-type="inputOutput" /> + <field id="whichGeometry" type="SFInt32" access-type="inputOutput" /> + <field id="writeInterval" type="SFFloat" access-type="inputOutput" /> + <field id="isActive" type="SFBool" access-type="outputOnly" /> + <field id="isNetworkReader" type="SFBool" access-type="outputOnly" /> + <field id="isNetworkWriter" type="SFBool" access-type="outputOnly" /> + <field id="isRtpHeaderHeard" type="SFBool" access-type="outputOnly" /> + <field id="isStandAlone" type="SFBool" access-type="outputOnly" /> + <field id="timestamp" type="SFTime" access-type="outputOnly" /> + <field id="bboxCenter" type="SFVec3f" access-type="initializeOnly" /> + <field id="bboxSize" type="SFVec3f" access-type="initializeOnly" /> + </node> + <node id="TransmitterPDU" + metatype-id="urn:X-openvrml:node:TransmitterPDU"> + <field id="metadata" type="SFNode" access-type="inputOutput" /> + <field id="address" type="SFString" access-type="inputOutput" /> + <field id="antennaLocation" type="SFVec3f" access-type="inputOutput" /> + <field id="antennaPatternLength" type="MFInt32" access-type="inputOutput" /> + <field id="antennaPatternType" type="MFInt32" access-type="inputOutput" /> + <field id="applicationID" type="SFInt32" access-type="inputOutput" /> + <field id="cryptoKeyID" type="MFInt32" access-type="inputOutput" /> + <field id="cryptoSystem" type="MFInt32" access-type="inputOutput" /> + <field id="entityID" type="SFInt32" access-type="inputOutput" /> + <field id="frequency" type="MFInt32" access-type="inputOutput" /> + <field id="inputSource" type="MFInt32" access-type="inputOutput" /> + <field id="lengthOfModulationParameters" type="MFInt32" access-type="inputOutput" /> + <field id="modulationTypeDetail" type="MFInt32" access-type="inputOutput" /> + <field id="modulationTypeMajor" type="MFInt32" access-type="inputOutput" /> + <field id="modulationTypeSpreadSpectrum" type="MFInt32" access-type="inputOutput" /> + <field id="modulationTypeSystem" type="MFInt32" access-type="inputOutput" /> + <field id="multicastRelayHost" type="SFString" access-type="inputOutput" /> + <field id="multicastRelayPort" type="SFInt32" access-type="inputOutput" /> + <field id="networkMode" type="SFString" access-type="inputOutput" /> + <field id="port" type="SFInt32" access-type="inputOutput" /> + <field id="power" type="SFInt32" access-type="inputOutput" /> + <field id="radioEntityTypeCategory" type="SFInt32" access-type="inputOutput" /> + <field id="radioEntityTypeCountry" type="SFInt32" access-type="inputOutput" /> + <field id="radioEntityTypeDomain" type="SFInt32" access-type="inputOutput" /> + <field id="radioEntityTypeKind" type="SFInt32" access-type="inputOutput" /> + <field id="radioEntityTypeNomenclature" type="SFInt32" access-type="inputOutput" /> + <field id="radioEntityTypeNomenclatureVersion" type="SFInt32" access-type="inputOutput" /> + <field id="radioID" type="SFInt32" access-type="inputOutput" /> + <field id="readInterval" type="SFFloat" access-type="inputOutput" /> + <field id="relativeAntennaLocation" type="SFVec3f" access-type="inputOutput" /> + <field id="rtpHeaderExpected" type="SFBool" access-type="inputOutput" /> + <field id="siteID" type="SFInt32" access-type="inputOutput" /> + <field id="transmitFrequencyBandwidth" type="SFFloat" access-type="inputOutput" /> + <field id="transmitState" type="SFInt32" access-type="inputOutput" /> + <field id="whichGeometry" type="SFInt32" access-type="inputOutput" /> + <field id="writeInterval" type="SFFloat" access-type="inputOutput" /> + <field id="isActive" type="SFBool" access-type="outputOnly" /> + <field id="isNetworkReader" type="SFBool" access-type="outputOnly" /> + <field id="isNetworkWriter" type="SFBool" access-type="outputOnly" /> + <field id="isRtpHeaderHeard" type="SFBool" access-type="outputOnly" /> + <field id="isStandAlone" type="SFBool" access-type="outputOnly" /> + <field id="timestamp" type="SFTime" access-type="outputOnly" /> + <field id="bboxCenter" type="SFVec3f" access-type="initializeOnly" /> + <field id="bboxSize" type="SFVec3f" access-type="initializeOnly" /> + </node> + </level> +</component> Modified: branches/node-modules/src/libopenvrml/openvrml/browser.cpp =================================================================== --- branches/node-modules/src/libopenvrml/openvrml/browser.cpp 2008-04-09 03:30:31 UTC (rev 3453) +++ branches/node-modules/src/libopenvrml/openvrml/browser.cpp 2008-04-09 23:13:08 UTC (rev 3454) @@ -12533,724 +12533,6 @@ } - class OPENVRML_LOCAL x3d_dis_component : public component { - static const boost::array<openvrml::node_interface, 88> - espdu_transform_interfaces_; - static const boost::array<openvrml::node_interface, 28> - receiver_pdu_interfaces_; - static const boost::array<openvrml::node_interface, 28> - signal_pdu_interfaces_; - static const boost::array<openvrml::node_interface, 44> - transmitter_pdu_interfaces_; - - public: - static const char * const id; - - virtual size_t support_level() const OPENVRML_NOTHROW; - - private: - virtual void do_add_to_scope(const openvrml::browser & b, - openvrml::scope & scope, - size_t level) const - OPENVRML_THROW1(std::bad_alloc); - - virtual void - do_add_to_node_type_desc_map( - openvrml::node_type_decls & type_descs, size_t level) const - OPENVRML_THROW1(std::bad_alloc); - }; - - const boost::array<openvrml::node_interface, 88> - x3d_dis_component::espdu_transform_interfaces_ = { - node_interface(node_interface::exposedfield_id, - field_value::sfnode_id, - "metadata"), - node_interface(node_interface::eventin_id, - field_value::mfnode_id, - "addChildren"), - node_interface(node_interface::eventin_id, - field_value::mfnode_id, - "removeChildren"), - node_interface(node_interface::eventin_id, - field_value::sffloat_id, - "set_articulationParameterValue0"), - node_interface(node_interface::eventin_id, - field_value::sffloat_id, - "set_articulationParameterValue1"), - node_interface(node_interface::eventin_id, - field_value::sffloat_id, - "set_articulationParameterValue2"), - node_interface(node_interface::eventin_id, - field_value::sffloat_id, - "set_articulationParameterValue3"), - node_interface(node_interface::eventin_id, - field_value::sffloat_id, - "set_articulationParameterValue4"), - node_interface(node_interface::eventin_id, - field_value::sffloat_id, - "set_articulationParameterValue5"), - node_interface(node_interface::eventin_id, - field_value::sffloat_id, - "set_articulationParameterValue6"), - node_interface(node_interface::eventin_id, - field_value::sffloat_id, - "set_articulationParameterValue7"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "address"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "applicationID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "articulationParameterCount"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "articulationParameterDesignatorArray"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "articulationParameterChangeIndicatorArray"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "articulationParameterIdPartAttachedToArray"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "articulationParameterTypeArray"), - node_interface(node_interface::exposedfield_id, - field_value::mffloat_id, - "articulationParameterArray"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "center"), - node_interface(node_interface::exposedfield_id, - field_value::mfnode_id, - "children"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "collisionType"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "deadReckoning"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "detonationLocation"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "detonationRelativeLocation"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "detonationResult"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityCategory"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityCountry"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityDomain"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityExtra"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityKind"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entitySpecific"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entitySubCategory"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "eventApplicationID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "eventEntityID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "eventNumber"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "eventSiteID"), - node_interface(node_interface::exposedfield_id, - field_value::sfbool_id, - "fired1"), - node_interface(node_interface::exposedfield_id, - field_value::sfbool_id, - "fired2"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "fireMissionIndex"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "firingRange"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "firingRate"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "forceID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "fuse"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "linearVelocity"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "linearAcceleration"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "marking"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "multicastRelayHost"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "multicastRelayPort"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "munitionApplicationID"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "munitionEndPoint"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "munitionEntityID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "munitionQuantity"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "munitionSiteID"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "munitionStartPoint"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "networkMode"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "port"), - node_interface(node_interface::exposedfield_id, - field_value::sftime_id, - "readInterval"), - node_interface(node_interface::exposedfield_id, - field_value::sfrotation_id, - "rotation"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "scale"), - node_interface(node_interface::exposedfield_id, - field_value::sfrotation_id, - "scaleOrientation"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "siteID"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "translation"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "warhead"), - node_interface(node_interface::exposedfield_id, - field_value::sftime_id, - "writeInterval"), - node_interface(node_interface::eventout_id, - field_value::sffloat_id, - "articulationParameterValue0_changed"), - node_interface(node_interface::eventout_id, - field_value::sffloat_id, - "articulationParameterValue1_changed"), - node_interface(node_interface::eventout_id, - field_value::sffloat_id, - "articulationParameterValue2_changed"), - node_interface(node_interface::eventout_id, - field_value::sffloat_id, - "articulationParameterValue3_changed"), - node_interface(node_interface::eventout_id, - field_value::sffloat_id, - "articulationParameterValue4_changed"), - node_interface(node_interface::eventout_id, - field_value::sffloat_id, - "articulationParameterValue5_changed"), - node_interface(node_interface::eventout_id, - field_value::sffloat_id, - "articulationParameterValue6_changed"), - node_interface(node_interface::eventout_id, - field_value::sffloat_id, - "articulationParameterValue7_changed"), - node_interface(node_interface::eventout_id, - field_value::sftime_id, - "collideTime"), - node_interface(node_interface::eventout_id, - field_value::sftime_id, - "detonateTime"), - node_interface(node_interface::eventout_id, - field_value::sftime_id, - "firedTime"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isActive"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isCollided"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isDetonated"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isNetworkReader"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isNetworkWriter"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isRtpHeaderHeard"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isStandAlone"), - node_interface(node_interface::eventout_id, - field_value::sftime_id, - "timestamp"), - node_interface(node_interface::field_id, - field_value::sfvec3f_id, - "bboxCenter"), - node_interface(node_interface::field_id, - field_value::sfvec3f_id, - "bboxSize"), - node_interface(node_interface::field_id, - field_value::sfbool_id, - "rtpHeaderExpected") - }; - - const boost::array<openvrml::node_interface, 28> - x3d_dis_component::receiver_pdu_interfaces_ = { - node_interface(node_interface::exposedfield_id, - field_value::sfnode_id, - "metadata"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "address"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "applicationID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityID"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "multicastRelayHost"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "multicastRelayPort"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "networkMode"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "port"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioID"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "readInterval"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "receivedPower"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "receiverState"), - node_interface(node_interface::exposedfield_id, - field_value::sfbool_id, - "rtpHeaderExpected"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "siteID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "transmitterApplicationID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "transmitterEntityID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "transmitterRadioID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "transmitterSiteID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "whichGeometry"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "writeInterval"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isActive"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isNetworkReader"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isNetworkWriter"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isRtpHeaderHeard"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isStandAlone"), - node_interface(node_interface::eventout_id, - field_value::sftime_id, - "timestamp"), - node_interface(node_interface::field_id, - field_value::sfvec3f_id, - "bboxCenter"), - node_interface(node_interface::field_id, - field_value::sfvec3f_id, - "bboxSize") - }; - - const boost::array<openvrml::node_interface, 28> - x3d_dis_component::signal_pdu_interfaces_ = { - node_interface(node_interface::exposedfield_id, - field_value::sfnode_id, - "metadata"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "address"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "applicationID"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "data"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "dataLength"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "encodingScheme"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityID"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "multicastRelayHost"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "multicastRelayPort"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "networkMode"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "port"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioID"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "readInterval"), - node_interface(node_interface::exposedfield_id, - field_value::sfbool_id, - "rtpHeaderExpected"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "sampleRate"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "samples"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "siteID"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "tdlType"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "whichGeometry"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "writeInterval"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isActive"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isNetworkReader"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isNetworkWriter"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isRtpHeaderHeard"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isStandAlone"), - node_interface(node_interface::eventout_id, - field_value::sftime_id, - "timestamp"), - node_interface(node_interface::field_id, - field_value::sfvec3f_id, - "bboxCenter"), - node_interface(node_interface::field_id, - field_value::sfvec3f_id, - "bboxSize") - }; - - const boost::array<openvrml::node_interface, 44> - x3d_dis_component::transmitter_pdu_interfaces_ = { - node_interface(node_interface::exposedfield_id, - field_value::sfnode_id, - "metadata"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "address"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "antennaLocation"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "antennaPatternLength"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "antennaPatternType"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "applicationID"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "cryptoKeyID"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "cryptoSystem"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "entityID"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "frequency"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "inputSource"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "lengthOfModulationParameters"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "modulationTypeDetail"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "modulationTypeMajor"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "modulationTypeSpreadSpectrum"), - node_interface(node_interface::exposedfield_id, - field_value::mfint32_id, - "modulationTypeSystem"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "multicastRelayHost"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "multicastRelayPort"), - node_interface(node_interface::exposedfield_id, - field_value::sfstring_id, - "networkMode"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "port"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "power"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioEntityTypeCategory"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioEntityTypeCountry"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioEntityTypeDomain"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioEntityTypeKind"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioEntityTypeNomenclature"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioEntityTypeNomenclatureVersion"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "radioID"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "readInterval"), - node_interface(node_interface::exposedfield_id, - field_value::sfvec3f_id, - "relativeAntennaLocation"), - node_interface(node_interface::exposedfield_id, - field_value::sfbool_id, - "rtpHeaderExpected"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "siteID"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "transmitFrequencyBandwidth"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "transmitState"), - node_interface(node_interface::exposedfield_id, - field_value::sfint32_id, - "whichGeometry"), - node_interface(node_interface::exposedfield_id, - field_value::sffloat_id, - "writeInterval"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isActive"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isNetworkReader"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isNetworkWriter"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isRtpHeaderHeard"), - node_interface(node_interface::eventout_id, - field_value::sfbool_id, - "isStandAlone"), - node_interface(node_interface::eventout_id, - field_value::sftime_id, - "timestamp"), - node_interface(node_interface::field_id, - field_value::sfvec3f_id, - "bboxCenter"), - node_interface(node_interface::field_id, - field_value::sfvec3f_id, - "bboxSize") - }; - - const char * const x3d_dis_component::id = "DIS"; - - size_t x3d_dis_component::support_level() const OPENVRML_NOTHROW - { - return 1; - } - - void x3d_dis_component::do_add_to_scope(const openvrml::browser & b, - openvrml::scope & scope, - const size_t level) const - OPENVRML_THROW1(std::bad_alloc) - { - using namespace openvrml; - - if (level >= 1) { - // - // EspduTransform node - // - { - static const node_interface_set - interface_set( - x3d_dis_component::espdu_transform_interfaces_.begin(), - x3d_dis_component::espdu_transform_interfaces_.end()); - add_scope_entry(b, - "EspduTransform", - interface_set, - "urn:X-openvrml:node:EspduTransform", - scope); - } - - // - // ReceiverPdu node - // - { - static const node_interface_set - interface_set( - x3d_dis_component::receiver_pdu_interfaces_.begin(), - x3d_dis_component::receiver_pdu_interfaces_.end()); - add_scope_entry(b, - "ReceiverPdu", - interface_set, - "urn:X-openvrml:node:ReceiverPdu", - scope); - } - - // - // SignalPdu node - // - { - static const node_interface_set - interface_set( - x3d_dis_component::signal_pdu_interfaces_.begin(), - x3d_dis_component::signal_pdu_interfaces_.end()); - add_scope_entry(b, - "SignalPdu", - interface_set, - "urn:X-openvrml:node:SignalPdu", - scope); - } - - // - // TransmitterPdu node - // - { - static const node_interface_set - interface_set( - x3d_dis_component::transmitter_pdu_interfaces_.begin(), - x3d_dis_component::transmitter_pdu_interfaces_.end()); - add_scope_entry(b, - "TransmitterPdu", - interface_set, - "urn:X-openvrml:node:TransmitterPdu", - scope); - } - } - } - - void - x3d_dis_component:: - do_add_to_node_type_desc_map(openvrml::node_type_decls & type_descs, - size_t /* level */) const - OPENVRML_THROW1(std::bad_alloc) - { - using openvrml::node_interface_set; - component::add_type_desc( - type_descs, - "EspduTransform", - node_interface_set( - x3d_dis_component::espdu_transform_interfaces_.begin(), - x3d_dis_component::espdu_transform_interfaces_.end())); - component::add_type_desc( - type_descs, - "ReceiverPdu", - node_interface_set( - x3d_dis_component::receiver_pdu_interfaces_.begin(), - x3d_dis_component::receiver_pdu_interfaces_.end())); - component::add_type_desc( - type_descs, - "SignalPdu", - node_interface_set( - x3d_dis_component::signal_pdu_interfaces_.begin(), - x3d_dis_component::signal_pdu_interfaces_.end())); - component::add_type_desc( - type_descs, - "TransmitterPdu", - node_interface_set( - x3d_dis_component::transmitter_pdu_interfaces_.begin(), - x3d_dis_component::transmitter_pdu_interfaces_.end())); - } - - class OPENVRML_LOCAL x3d_event_utilities_component : public component { static const boost::array<openvrml::node_interface, 5> boolean_filter_interfaces_; @@ -13614,10 +12896,6 @@ } } - key = x3d_dis_component::id; - succeeded = this->insert(key, new x3d_dis_component).second; - assert(succeeded); - key = x3d_event_utilities_component::id; succeeded = this->insert(key, new x3d_event_utilities_component).second; @@ -13813,7 +13091,7 @@ this->add_component("Geospatial", 1); this->add_component("H-Anim", 1); this->add_component("NURBS", 4); - this->add_component(x3d_dis_component::id, 1); + this->add_component("DIS", 1); this->add_component(x3d_event_utilities_component::id, 1); } } // namespace This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |