Using the server
How to use the viewers
How to draw a polyline
--logfile=NAME
If specified, mainViz generates a logfile.
--iv-timer=INT
Timer interval between queue updates [msec]. Defaults to 20.
--iv-execute=INT
Allowed execution time at each queue update [msec]. Defaults to 10.
--viewers=INT
Number of viewers in the mainViz window (currently only 1 to 3 is supported).
Default is 1.
--version
Report mainViz version.
-h, --help
Help message.
The Viz server also uses a set of environment variables. Note that command
line arguments will take precedence over the environment variables.
VIZDATA points to a directory in which Viz can create output files.
VIZPATH points to a list of directories (separated by ':') containing
models. Viz will look in these directories if the path to these models
is not specified when adding the object.
VIZMSGPORT contains the Viz port number to which clients can
connect.
VIZSERVERHOST contains the hostname on which the viz server is running.
When the viewer is in Interactive Mode, pressing and holding
the ALT key temporarily switches the viewer to Viewing Mode. When
the ALT
key is released, the viewer returns to Interactive Mode. Note:
If any of the mouse buttons are currently depressed, the ALT key has no
effect.
Left Mouse: Rotate the virtual trackball.
Middle Mouse or Ctrl + Left Mouse: Translate up, down, left,
right.
Ctrl + Middle Mouse or Left + Middle Mouse: Dolly in and out
(gets closer to and further away from the object).
<s> + Left Mouse: Alternative to the Seek button. Press (but do
not hold down) the <s> key, then click on a target object.
Left Mouse: Click to increase speed.
<s> + Left Mouse: Alternative to the Seek button. Press (but do
not hold down) the <s> key, then click on a target object.
<u> + Left Mouse: Press (but do not hold down) the <u> key, then
click on a target object to set the "up" direction to the surface normal.
By default +y is the "up" direction.
Middle Mouse: Click to decrease speed.
Left and Middle Mouse: Click both simultaneously to stop.
Ctrl: Hold the key down to temporarily stop and rotate the viewpoint.
Left Mouse: Walk mode. Click down and move up and down for fowards and
backwards motion. Move right and left for turning. Speed increases
exponentially with the distance from the mouse-down origin.
Middle Mouse or Ctrl + Left Mouse: Translate up, down, left, and right.
Ctrl + Middle Mouse: Tilt the camera up/down and right/left. This allows
you to look around while stopped.
<s> + Left Mouse: Alternative to the Seek button. Press (but do
not hold down) the <s> key, then click on a target object.
<u> + Left Mouse: Press (but do not hold down) the <u> key, then
click on a target object to set the "up" direction to the surface normal.
By default +y is the "up" direction.
Left Mouse or Left + Middle Mouse: Dolly in and out (gets closer to
and further away from the object).
Middle Mouse or Ctrl + Left Mouse: Translate up, down, left and right.
Ctrl + Middle Mouse: Used for roll action (rotates around the viewer
forward direction).
<s> + Left Mouse: Alternative to the Seek button. Press (but do
not hold down) the <s> key, then click on a target object.
Using the setPolyline message, you can set the maximum number of points
(can be unlimited), and whether it's an open or closed polyline.
Drawing a polyline is done by clicking with the left button to define
the tie points of the polyline. A cursor that follows the models will show
the current 3D location of the point.
If the maximum number of points is reached and the polyline is set to be closed, then no more points can be added and a line connecting the last point to the first points is drawn: the polyline is closed. You can close the polyline at any time by pressing the middle button. You can finish the polyline by setting the last point location.
If the polyline is set to be open, you can finish the polyline at any time by pressing the middle button.
When a polyline is finished, no more points can be added or set, unless you reset the polyline. Viz then sends an output message 'polyline'.
Useful keys:
'1': Switch to open polyline mode and reset
'BACKSPACE': remove last point from polylines