mview - Molecule Sphere Demo
mview [-P] [-I models_dir] [-n model_name]
mview Is a demo of rendering methods useful for drawing molecules. Both
atoms and bond structures are drawn. mview uses the sphere primitive of
the Sphere Library for drawing the atoms. Various graphics features,
such as accumulation buffer, line antialiasing, real-time, full scene
multisampled antialiasing, and stereo in a window are configurable via a
graphical control panel.
When invoked without arguments, mview looks for data files in the current
directory and in /usr/demos/General_Demos/mview/data. mview -I dirname
will add the directory dirname to the list of directories to search for
models. mview -n mol_name will cause the program to start up displaying
the named molecule.
Pressing the ESC key exits the program.
The following describes the functionality of each mouse button.
Middle - Rotate the model objects about its center.
Left - Scale the model objects.
Left+Middle+Right - Translate the model objects in the z plane.
Left+Middle - Zoom in or out.
The following describes the functionality of each button
in the control panel.
Help - Click the help button to exit this window.
Model - Scroll through the different
available molecular models.
Reset - Reset the model objects to their original size,
and put the point of view back in its
original position. If the objects are rotating,
pressing the Reset button will stop them.
Quit - Quit the program.
Bitmap Spheres - Use the hw bitmapped sphere primitive (RealityEngine only)
Sphere Depth - Click the left mouse to decrease the
tessellation depth level.
Click the middle mouse to increase the
tessellation depth level.
The depth range is 1 through 30 inclusively.
Sphere Prim - Scroll through the different display
primitive options. The options are:
mesh, polygon, line, and point.
Sphere Type - Scroll through the different sphere
tessellation types. The options are:
oct, icos, bary, cube, and bilin.
Depthcue - Toggle depth-cue mode on/off.
Projection - Select orthographic or perspective projection.
Orient - Toggle orient mode on/off.
When on, the sphere is displayed in a fixed
orientation independent of world rotations.
Hemi Sphere - Toggle hemi sphere mode on/off.
Draw Quick - Toggle Quick drawing on/off.
In quick-draw mode no antialiasing or
accumulation processes are done.
Display Bonds - Toggle the display of the bonds on/off.
Display Atoms - Toggle the display of the atoms on/off.
Accumulate Atoms - Toggle the accumulation of the atoms on/off.
In this mode, successive full scene
antialiasing is done. When the objects stop
moving, the static image is accumulated in the
accumulation buffer with slight perturbations.
The way the perturbations of the atoms are
done is controlled by roll mode and spin mode.
The final image is antialiased.
Smooth Bonds - Scroll through the different line smooth
levels. The different levels are:
off, on, and smoother.
End Correct Bonds - Toggle the End Correct mode on/off.
In end correct mode the end point of the bonds
are antialiased. This is visible only if
the atoms are not displayed.
Accumulate Bonds - Toggle the accumulation of the bonds on/off.
This is an alternative way for displaying
Radius - Use the left mouse button to change
the relative size of the atom radii while
dragging the vertical bar.
Multisample - This will toggle real-time, full scene
on a suitable RealityEngine configuration.
Stereo - This will toggle in-the-window stereo on
a suitable RealityEngine configuration
with the proper monitor configuration
The Following Keys have useful functionality:
O/L - Will increase/decrease, respectively,
the separation for each eye when in stereo.
PPPPaaaaggggeeee 2222 [ Back ]