TRAFFIC(1)			UTILITAIRE RPN			     TRAFFIC(1)
NOM
     traffic - traducteur flexible de fichiers de caracteres.

USAGE

     traffic fichier [-in type]	[-ex type] [-com type]

     traffic -h		   Pour	obtenir	la sequence d'appel

DESCRIPTION
     traffic  -	est un utilitaire qui permet de	faire la conversion de chaines
de caracteres contenues	dans un	fichier	texte.	La conversion peut se faire de
majuscule a minuscule ou dans le sens inverse.	 traffic reconnait deux	 types
de chaines de caracteres  soit	les chaines de type  citation  et  les chaines
ordinaires.    Une  chaine  de type citation est une chaine de	caracteres  se
retrouvant  a l'interieur de guillemets	ou d'apostrophes.   Toutes les	autres
chaines	 sont  dites ordinaires.   On peut indiquer le traitement  desire pour
chacun des deux	types de chaines.

     Lorsqu'une	 ligne du fichier source debute	a la premiere colonne  par  un
des caracteres suivant:	'c', 'C' ou '*'	(commentaire FORTRAN) la conversion se
fait selon la  valeur de  type specifiee apres la clef -com.

     Toute  ligne  debutant par	une diese '#'  (directive cpp),	 ne  sera  pas
affectee par traffic.

     traffic imprime son resultat sur la sortie	normale.

OPTIONS

     -in  -  indique le	traitement a faire sur les chaines de type citation.
	     Par defaut, -in a pour valeur tel.

     -ex  -  indique le	traitement a faire sur les chaines ordinaires.
	     Par defaut, -ex a pour valeur min.

     -com  -   indique	le type	de conversion a	effectuer sur  les  lignes  de
	       commentaires.  Par defaut, -com a pour valeur min.

ARGUMENTS

     fichier	-    nom du fichier texte a convertir
     type	-    type de traitement	desire.	Les valeurs possibles
		     sont:
				min - mettre en	minuscules
				maj - mettre en	majuscules
				tel - laisser tel quel

TRAFFIC(1)			UTILITAIRE RPN			     TRAFFIC(1)

EXEMPLES

       Le fichier fentree contient les lignes suivantes:

     C IMPRIMER	LES VALEURS DES	VARIABLES
	   WRITE(6,*)' VALEUR DE LA VARIABLE X = ',X

       traffic fentree

	   produira:

     c imprimer	les valeurs des	variables
	   write(6,*)' VALEUR DE LA VARIABLE X = ',x

       traffic fentree -in min -ex maj -com tel

	   produira:

     C IMPRIMER	LES VALEURS DES	VARIABLES
	   WRITE(6,*)' valeur de la variable x = ',X

	traffic	fentree	-in min	-ex tel

	   produira:

     c imprimer	les valeurs des	variables
	   WRITE(6,*)' valeur de la variable x = ',X

AUTEUR

     James Caveen -  avril 1991	- RPN  (421-4735)

NOTES

     Le	 traitement du fichier d'entree	se fait	ligne par ligne.   Au debut de
chaque ligne,  traffic est en mode chaine ordinaire et se remet	dans ce	mode a
la fin de la ligne.  Une chaine	de type	citation contenue sur plus d'une ligne
ne sera	par consequent pas traitee de facon adequate.

     Exemple  de  conversion  d'une chaine de type  citation  de  majuscule  a
minuscule:

      WRITE(6,*)' VOICI	UNE CHAINE DE TYPE CITATION CONTENUE SUR
     1		  PLUS D''UNE LIGNE'

      sera convertie a:

      WRITE(6,*)' voici	une chaine de type citation contenue sur
     1		  PLUS D''UNE LIGNE'

     Derniere revision:	29 avril 1992

TTRRAAFFFFIICC((66DD))							   TTRRAAFFFFIICC((66DD))

NNAAMMEE
     traffic - real-time traffic simulation demo

SSYYNNOOPPSSIISS
     ttrraaffffiicc

DDEESSCCRRIIPPTTIIOONN
     Traffic is	a traffic simulation, which makes use of various Inventor
     tools.  The user can add or delete	cars at	will, change individual	cars'
     behavior, ride in the car of choice, and so on.  Cars make	random choices
     in	direction when they reach an intersection, thus, the behavior of the
     demo is never the same from one run to the	next!

     The demo contains two kinds of cars (Hondas and Fieros), stop lights,
     stop signs, yield signs, speed limit signs, intersections,	overpasses,
     and so on.	 Cars do what they are "supposed" to do	when encountering
     each.  The	black boxes are	a car emitter and a car	absorber.  The emitter
     feeds cars	into the road network at a user-specified frequency.  Any car
     that happens to drive into	the absorber vanishes forever!

   TTrraaffffiicc ooppeerraattiioonn
     MMOOTTIIOONN OONN//OOFFFF
     The stoplight icon	in the upper left corner of the	examiner viewer	is a
     toggle that starts	and stops the motion of	the entire system.  (Note that
     "Decoration" invoked by the right-mouse popup must	be turned on.)

     MMEENNUUBBAARR OOPPTTIIOONNSS
     The menubar at the	top of the viewer invokes 4 different pulldown menus.
     The function of each is described as follows:

     1)	Network

	  Simple     Not Implemented (will be a	simpler	road system someday)

	  Quit	     Quits the demo.

     2)	Add/Delete

	  Copy	     Posts selected geometry to	the X clipboard

	  Add Honda  Adds a Honda to the road system.  To use this the user
		     must first	select a point on the road by going into
		     "pick mode", and then selecting the desired lane.	Note
		     that the entire lane will highlight when selected,	but
		     the car will be added at the exact	spot of	the pick.

	  Add Fiero  As	for Honda above, but a slicker car (lots more polys).

	  Delete     Deletes any car currently selected	by the user.

									PPaaggee 11

TTRRAAFFFFIICC((66DD))							   TTRRAAFFFFIICC((66DD))

     3)	Viewing

	  Examiner   Default viewing mode, as per regular examiner viewer.

	  Passenger  User becomes the "passenger" of any selected car.

     4)	Editors

	  Material Editor    Invokes a material	editor to change the material
			     characteristics of	any selected item in the
			     scene.

	  Color	Editor	     Invokes a color editor to change the color
			     of	any selected item in the scene.

	  Background Editor  Like the color editor, but	edits background
			     color.

	  Light	Editor	     Invokes a directional light source	editor.

	  Emitter Editor     Brings up a dialog	box so the user	can change
			     the frequency at which the	emitter	spits out
			     cars.

	  Performance Editor Brings up a dialog	window allowing	the user to
			     change the	performance characteristics of any
			     selected car.

TTIIPPSS
     When running on a machine with Elan graphics (or less), overall
     performance is improved by	displaying in wireframe	mode (see "drawstyle"
     in	the right-mouse	popup of the viewer).  Graphics	performance may	be
     enhanced by using the less-detailed geometry files	in the
     /usr/demos/data/traffic directory.	 The program reads in .iv files	from
     this directory, and the user may want to substitute less complicated
     geometry for the default geometry.	 For example, you may try moving
     stopSign.simplest.iv to stopSign.iv (be sure to save the originals
     though, in	case you change	your mind later!).

     It	is often useful	to freeze motion (upper	left stoplight button) when
     selecting,	adding,	deleting, and so on.

     It	is usually beneficial to keep the emitter frequency at 60 seconds or
     greater.  Otherwise, the system may get bogged down with too many cars!

     If	you are	in "passenger mode" and	your vehicle gets absorbed (i.e., you
     drive into	the absorber!),	switch back to examiner	mode.

RREEQQUUIIRREEMMEENNTTSS
     5.x and higher and	inventor_eoe (make sure	to include inventor_eoe.data).

									PPaaggee 22

TTRRAAFFFFIICC((66DD))							   TTRRAAFFFFIICC((66DD))

AAUUTTHHOORR
     Bruce Bailey
     (bruceb@denver.sgi.com)

									PPaaggee 33