<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd">
<![CDATA[
ecmascript: var bit; function initialize() { bit = 1; } function hit (val) { if (bit == 1) { tog = 0; bit = 0; } else { tog = 1; bit = 1; } }
]]>
<![CDATA[
ecmascript: function initialize() { msg = new MFString(); msg[0] = 'Metadata Here'; msg[1] = 'Metadata Here'; } function lungTS(val) { //msg = buildString(lungMeta); //msg[0] = lungMeta.reference; // works in .x3dv not .x3d??? msg[0] = 'FMA parser'; msg[1] = 'Preferred name: Upper_lobe_of_lung'; msg[2] = 'Synonym: Lobus_superior '; msg[3] = 'Synonym: Superior_lobe_of_lung'; } function liverTS(val) { //msg = buildString(liverMeta); //msg[0] = liverMeta.reference; msg[0] = 'FMA mysql'; msg[1] = 'short_value: Liver'; msg[2] = 'frame: 26212'; msg[3] = 'frame_type: 6 '; } function colonTS(val) { //msg = buildString(colonMeta); // msg[0] = colonMeta.reference; msg[0] ='SNOMED'; msg[1] = 'conceptId: 369445005 '; msg[2] = 'descriptionId: 774149015 '; msg[3] = 'fullySpecfiedName: Chronic proctocolitis (disorder)'; } function buildString(aNode) { // walking for metadata works differently across browsers encodings!!! str = new MFString(); str [0] = aNode.reference; // the top DEF'd MetaDataSet tmp = new MFNode(); tmp = aNode.children; Browser.println (tmp.length); for (i = 0; tmp.length ; i++) { // this = aNode.children[i]; // // if () // drill down one more level of children return str; } }
]]>
Event Graph ROUTE Table entries with 8 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
bodyTS
TouchSensor touchTime SFTime |
toggler
Script hit SFTime |
then |
toggler
Script tog SFInt32 |
SkinSwitch
Switch whichChoice SFInt32 |
colonTS
TouchSensor isOver SFBool |
viewMetadata
Script colonTS SFBool |
then |
viewMetadata
Script msg MFString |
msg
Text string MFString |
liverTS
TouchSensor isOver SFBool |
viewMetadata
Script liverTS SFBool |
then |
viewMetadata
Script msg MFString |
msg
Text string MFString |
lungTS
TouchSensor isOver SFBool |
viewMetadata
Script lungTS SFBool |
then |
viewMetadata
Script msg MFString |
msg
Text string MFString |
toggler
Script tog SFInt32 |
SkinSwitch
Switch whichChoice SFInt32 |
viewMetadata
Script msg MFString |
msg
Text string MFString |
PS
ProximitySensor position_changed SFVec3f |
HUD
Transform set_translation SFVec3f |
|
PS
ProximitySensor orientation_changed SFRotation |
HUD
Transform set_rotation SFRotation |
<!--
Online at
https://www.web3d.org/x3d/content/examples/Basic/Medical/MedicalMetadataViewerIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/Medical/MedicalMetadataViewer.x3d
-->
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->