Brief  Description of  PATH  PROTO.
 

    1. What is it?

         It is a black box that animates the movement of a mover from start to end position.
         It is defined in 'path.wrl' file.
         It accepts a mover via eventIn 'arrive', animate the movement of the mover from origin to
        destination, and deliver the mover through eventOut 'depart'.

         There are several fields, or let say parameters, that you can designate the values:
           - name:    name of the mfactory to be displayed on the screen.
           - origin:    starting position of the mover
           - destination:    end position of the mover
           - visibility:    visibility of the path in the world.
 

    2. How do we use it?

           1) You need the following file(s)  in your directory:
               -  path.wrl : defines the PATH  PROTO.
               -  3 files (mfactory.wrl, forms.wrl, label.wrl) needed to implement  MFACTORY  PROTO.

           2) Declare the EXTERNPROTO PATH in your world:

                            EXTERNPROTO  PATH
                                [
                                    field        SFString   name
                                    field        SFVec3f    origin
                                    field        SFVec3f    destination
                                    field        SFColor    rug
                                    field        SFFloat    visibility
                                    eventIn    SFNode    arrive
                                    eventOut  SFNode    depart
                                    eventIn    SFFloat    setViz
                                ] "path.wrl#PATH"

           3) Use it in your world as follows:

                        DEF  path1  PATH  {name "path1" origin -3.5 1 -12  destination  0 1 -12, visibility 0}
                        ...

                        ROUTE   mGenerator.aMover   TO   path1.arrive
                        ROUTE   path1.depart                 TO   Machine1.aMoverIn

               - Above code will accept a mover generated from the mGenerator (see MFACTORY PROTO),
                  mGenerator.aMover and animate the movement of the mover from the orgin (-3.5 1 -12)
                  to the destination (0 1 -12).

               - The path will not show up in the world. (visibility 0).
 

    3. Sample worlds with the  PATH  PROTO implemented.

             Functional Block Model (FBM):

                - ...FBM World with one function...............files used for the world

                - ...FBM World with three functions........files used for the world