1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--****************************************************************************
* *
* Viewmol *
* *
* N O D E 2 5 . H T M L *
* *
* Copyright (c) Joerg-R. Hill, December 2000 *
* *
********************************************************************************
*-->
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>The spectrum module</TITLE>
<META NAME="description" CONTENT="The spectrum module">
<META NAME="keywords" CONTENT="viewmol">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="viewmol.css">
</HEAD>
<BODY LANG="EN" BGCOLOR="#FFFFFF">
<H2><A NAME="SECTION00098000000000000000">
The <TT>spectrum</TT> module</A>
</H2>
<dl><dt><b><a name='l2h-59'><tt class='function'>show</tt></a></b> ()
<dd>
Displays the spectrum window for a molecule.
</dl>
<P>
<dl><dt><b><a name='l2h-60'><tt class='function'>mode</tt></a></b> (<big>[</big><var>mode</var><big>]</big>)
<dd>
Displays the mode specified or returns the mode displayed. <var>mode</var> has to be an
integer between 0 and the maximum number of vibrational modes for this molecule.
</dl>
<P>
<dl><dt><b><a name='l2h-61'><tt class='function'>deselect</tt></a></b> ()
<dd>
Deselects modes previously selected with a call to <TT>mode</TT>.
</dl>
<P>
<dl><dt><b><a name='l2h-62'><tt class='function'>type</tt></a></b> (<big>[</big><var>type</var><big>]</big>)
<dd>
Sets or returns the type of the spectrum displayed. <var>type</var> has to be one of
the integer constants <TT>SPECTRUM_ALL</TT>, <TT>SPECTRUM_IR</TT>, <TT>SPECTRUM_RAMAN</TT>,
or <TT>SPECTRUM_INS</TT> defined in the <TT>spectrum</TT> module to set the display to
all modes, IR active modes, Raman active modes, or inelastic neutron scattering
display.
</dl>
<P>
<dl><dt><b><a name='l2h-63'><tt class='function'>display</tt></a></b> (<big>[</big><var>type</var><big>]</big>)
<dd>
Sets or returns the way normal modes are displayed. <var>type</var> has to be one of
the integer constants <TT>ANIMATE</TT>, <TT>ARROWS</TT>, or <TT>DISTORT</TT> defined
in the <TT>spectrum</TT> module to display normal modes animated, with arrows, or
as distortion.
</dl>
<P>
<dl><dt><b><a name='l2h-64'><tt class='function'>style</tt></a></b> (<big>[</big><var>style</var><big>]</big>)
<dd>
Sets or returns the display style of the spectrum. <var>style</var> has to be one of
the integer constants <TT>LINES</TT> or <TT>GAUSSIANS</TT> defined in the <TT>spectrum</TT>
module to set the display style to line spectrum or gaussian spectrum.
</dl>
<P>
<dl><dt><b><a name='l2h-65'><tt class='function'>amplitude</tt></a></b> (<big>[</big><var>amplitude</var><big>]</big>)
<dd>
Sets or returns the amplitude of a normal mode. <var>amplitude</var> has to be a
double.
</dl>
<P>
<dl><dt><b><a name='l2h-66'><tt class='function'>scaleFactor</tt></a></b> (<big>[</big><var>factor</var><big>]</big>)
<dd>
Sets or returns the scale factor for the wave numbers in a spectrum.
<var>factor</var> has to be a double.
</dl>
<P>
<dl><dt><b><a name='l2h-67'><tt class='function'>zoom</tt></a></b> (<var>x1, y1, x2, y2</var>)
<dd>
Sets the zoom of the spectrum. <var>x1</var>, <var>y1</var>, <var>x2</var>, and <var>y2</var> are
doubles specifying the minimum and maximum values of wave numbers and intensities,
respectively, to be displayed. <var>x1</var> and <var>x2</var> as well as <var>y1</var> and
<var>y2</var> cannot be equal.
</dl>
<P>
<dl><dt><b><a name='l2h-68'><tt class='function'>saveDrawing</tt></a></b> (<var>format, filename</var>)
<dd>
Saves the spectrum to file. <var>format</var> has to be one of the constants
<TT>TIFF</TT>, <TT>HPGL</TT>, or <TT>POSTSCRIPT</TT> defined in the <TT>viewmol</TT>
module, <var>filename</var> the name of the file the drawing is to be saved to.
</dl>
<P>
The spectrum window can be closed by deleting the spectrum object.
<P>
<BR><HR>
<ADDRESS>
<A HREF="mailto:joehill@users.sourceforge.net"><I>Jrg-Rdiger Hill</I></A><BR>Sun Dec 10 17:38:35 MET 2000
</ADDRESS>
</BODY>
</HTML>
|