<Group>
  <ImportLibrary url="..\bin\H3DNetworkingUtils_vc9_d.dll"/>
  <!--ImportLibrary url="..\bin\H3DNetworkingUtils_vc9.dll"/-->

  <IMPORT inlineDEF="H3D_EXPORTS" exportedDEF="HDEV" AS="HDEV"/>

   <!--Represents the other user's tool-->
   <Transform DEF="rem_graphic">
      <Transform rotation="1 0 0 -1.57">  
         <Shape>
            <Appearance>
               <Material DEF="mat1" diffuseColor="0.6 0.9 0"/>
            </Appearance>
            <Cylinder radius="0.005" height="0.1"/>
         </Shape>
      </Transform>
   </Transform>

   <RemoteTCPServer DEF="server"
      listeningPort="40000"
      open="TRUE">
      <RemoteSFVec3f DEF="graphic_tool_pos" fieldId="0"/>
      <RemoteSFRotation DEF="graphic_tool_or" fieldId="1"/>
      <RemoteSFBool DEF="button" fieldId="2"/>
   </RemoteTCPServer>

   <!--Sending and receiving the tool position-->
   <ROUTE fromNode="HDEV" fromField="proxyPosition"
          toNode="graphic_tool_pos" toField="toBeSent"/>
   <ROUTE fromNode="graphic_tool_pos" fromField="received"
          toNode="rem_graphic" toField="translation"/>

   <!--Sending and receiving the tool orientation-->
   <ROUTE fromNode="HDEV" fromField="trackerOrientation"
   toNode="graphic_tool_or" toField="toBeSent"/>
   <ROUTE fromNode="graphic_tool_or" fromField="received"
          toNode="rem_graphic" toField="rotation"/>

   <!--Sending and receiving the button-->
   <PythonScript DEF="ps" url="Example1.py"/>
   <ROUTE fromNode="HDEV" fromField="mainButton" toNode="button" toField="toBeSent"/>
   <ROUTE fromNode="button" fromField="received" toNode="ps" toField="boolToFloat"/>
   <ROUTE fromNode="ps" fromField="boolToFloat" toNode="mat1" toField="transparency"/>
</Group>

