Viewer demonstrating sample medical ontology integration with X3D scene graph.
(VT application for metadata generation)
X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit
"BodySkinIndexedFaceSetNIST.x3d" "https://www.web3d.org/x3d/content/examples/Basic/Medical/BodySkinIndexedFaceSetNIST.x3d" "BodySkinIndexedFaceSetNIST.wrl" "https://www.web3d.org/x3d/content/examples/Basic/Medical/BodySkinIndexedFaceSetNIST.wrl"
ecmascript: var bit; function initialize() { bit = 1; } function hit (val) { if (bit == 1) { tog = 0; bit = 0; } else { tog = 1; bit = 1; } }
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; } }