media @ VU
[] readme course preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthoughts appendix references examples resources _

talk show tell print

proto-matrix-mfvec3f.vr

proto-matrix-mfvec3f.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  PROTO NetworkMFVec3f [
    eventIn MFVec3f set_value
    eventOut MFVec3f value_changed
    eventIn MFVec3f value_fromnet
    eventOut MFVec3f value_tonet
    exposedField SFString tag       ""
    exposedField SFBool   pilotOnly TRUE
    field SFBool   localCopy TRUE
    exposedField SFBool   echo      TRUE
    exposedField SFBool   cont      FALSE
  ]
  {
    Script {
      eventIn MFVec3f InSc IS set_value
      eventOut MFVec3f OutSc IS value_changed
      eventIn MFVec3f netInSc IS value_fromnet
      eventOut MFVec3f netOutSc IS value_tonet
      field SFBool local IS localCopy
  
      directOutput TRUE
      mustEvaluate TRUE
  
      url "javascript:
        function InSc(value) {
          netOutSc = value;
          if( local == true )
            OutSc = value;
        }
        function netInSc(value) {
          OutSc = value;
        }
      "
    }
  }
  


(C) A. Eliëns 21/5/2007

You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.