In addition to distance-determined links between stars, ChView also allows you to define routes. These are arbitrary connections that you can class into four categories. These are defined in a similar manner to adding stars.
The name of the parameter is the same as for a star; i.e. "body001" up to "body999". They mix and intermingle amongst the stars. The value of this setting is a similarly cryptic line to that for a star. Here is an example:
<param name="body022" value="R!Earth-Sol!Kinmoku!trade!1">
or, more abstractly:
<param name="body001" value="R!<from>!<to>!<comment>!<type>">
These fields refer to either the Stellar Name or Common Name of two stars. They must be stars that are already defined at this point in the numbering order. So, in the above example, if Earth-Sol was defined as entry body007 and Kinmoku was defined as body012 then this link must be defined in body013 or later. Because of this restriction, most people define their routes at the bottom of their star list.
This is a pure textual comment. It is not currently used by ChView.
This can be set to 1, 2, 3, or 4, or any combination of them. This is used to determine the type of link it is, and to color it accordingly. If more than one type is given, then the lowest numbered type takes precedence for coloring.
The last thing needed is to turn on showing of routes. By default it is off. But you can set the parameter "ShowRoutes" to the value "true" to enable this feature. Often you will want to use either routes, or links. Both together can get a bit messy.
<applet code=chview.ChViewer archive=chview.jar width=640 height=320> <param name="DataType" value="cherryh"> <param name="ShowRoutes" value="true"> <param name="ShowLinks" value="false"> <param name="body001" value="S!!!Alpha!!G!1!-4,0,0"> <param name="body002" value="S!!!Beta!!G!1!4,0,0"> <param name="body003" value="S!!!Gamma!!G!1!0,-4,0"> <param name="body004" value="S!!!Delta!!G!1!0,4,0"> <param name="body005" value="S!!!!Home!M!1!0,0,0"> <param name="Body006" value="R!Sol Station!Galileo!trade!1"> <param name="Body007" value="R!Sol Station!Bryant's!trade!1"> <param name="Body008" value="R!Viking!Epsilon Indi!military!2"> </applet>
As with most things, the default colors of routes can be altered. The parameters Route1Color through Route4Color set these values, just like StarOColor.
<applet code=chview.ChViewer archive=chview.jar width=640 height=320> <param name="ShowRoutes" value="true"> <param name="ShowLinks" value="false"> <param name="Route1Color" value="#FF0000"> <param name="Route2Color" value="#00FF00"> <param name="Route3Color" value="#0000FF"> <param name="Route4Color" value="#FF00FF"> <param name="body001" value="S!!!Alpha!!G!1!-4,0,0"> <param name="body002" value="S!!!Beta!!G!1!4,0,0"> <param name="body003" value="S!!!Gamma!!G!1!0,-4,0"> <param name="body004" value="S!!!Delta!!G!1!0,4,0"> <param name="body005" value="S!!!!Home!M!1!0,0,0"> <param name="Body006" value="R!Home!Alpha!!1"> <param name="Body007" value="R!Home!Beta!!2"> <param name="Body008" value="R!Home!Gamma!!3"> <param name="Body009" value="R!Home!Delta!!4"> </applet>
© 1998-2001 Sol Company. All Rights Reserved.