#VRML V2.0 utf8 # SimJava VRML Applet 1 # Include ICON object EXTERNPROTO ICON [ exposedField SFVec3f translation exposedField MFString picture ] "icon.wrl" # Include text object EXTERNPROTO TEXT [ eventIn MFString set_message field MFString message exposedField SFColor color exposedField SFVec3f translation ] "text.wrl" # Include link object EXTERNPROTO LINK [ eventIn MFVec3f set_spine field MFVec3f spine field SFColor color ] "link.wrl" # The main scene (Source + sink) # The DEF names have to match the entity names in simjava DEF BASEGROUP Transform { children [ DEF Sender ICON { picture ["bitmaps\source.jpg"] translation -1 0 0 } DEF Receiver ICON { picture ["bitmaps\sink.jpg" ] translation 1 0 0 } DEF Link1 LINK { spine [0 .5 0, 1 0.5 0] } DEF Receiver_count TEXT { message ["count=0"] translation 1 1.2 0 } ] } # Hook to allow java to get vrml time. DEF Clock TimeSensor { loop TRUE enabled TRUE} # Blue background Background { skyAngle [1.6] skyColor [.3 .3 .9, .3 .3 .5] }