<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_bshow__xtal_8tcl">
<title>/Users/bernard/b20/bsoft/tcltk/bshow_xtal.tcl File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/tcltk/bshow_xtal.tcl</primary></indexterm>
<para>

<para>Procedures to manage crystallographic images. </para>
 
</para>
<simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a2ac85a8e2a91130ab67ac45b47109695">Crystallography</link></para>

<para>Dialog box to manage crystallographic information. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a27f0725282151165ce3c76b6e9fe9a54">setSpotIndices</link></para>

<para>Dialog box to set Miller indices for the selected structure factor. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a85b9e40c1e160474f86976e1d4f89396">setSpotIndices_and_DestroyWindow</link> w</para>

<para>Sets the indices for a structure factor. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a28cf673ddbf9b637f9ef62b578261853">calcUnitCellVectors</link></para>

<para>Calculates the unit cell vectors from the current structure factors. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1aedf5174bb40cc768874b5af721144c2a">spotSelect</link> x y</para>

<para>Select a structure factor. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a801e8503a75a39200683d19daf83dec8">spotCreateSelect</link> x y</para>

<para>Creates or selects a structure factor. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a3e13b6757873fcba9d56043bc2ffeceb">spotMove</link> x y</para>

<para>Moves the selected structure factor. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a54a0a272af4b8a9e378154b28cfaa613">spotDisplayLocation</link> loc</para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1af32cfc35b7db47b99d0075bb490f20fe">spotDraw</link> h k l</para>

<para>Draws a structure factor on the canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1ad5ce89a2cc4378ae9a4d17d22454b717">spotsDrawAll</link></para>

<para>Draws all structure factors on the canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a3f7252de058a228f87fb2a48503ee13f">spotDelete</link> x y</para>

<para>Deletes the selected structure factor on the canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a5f1e7dba6887fc619883588484b43d03">spotsDeleteAll</link></para>

<para>Deletes all structure factors. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a0e10bbc7f8ebc878a795a115efddf494">spotGenerate</link></para>

<para>Generates structure factors from unit cell vectors. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a39439552eb1e875a519c4d8df7d2c202">spotGenerate_and_DestroyWindow</link> w</para>

<para>Changes the data type of an image. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1abd464e14b6841e91e0b2836c6b25cb68">spotMask</link></para>

<para>Masks structure factors. </para>
</listitem>
            <listitem><para><link linkend="_bshow__xtal_8tcl_1a8ab1b93cd7dd2c602151bdf6ad72836e">updateSpotParam</link></para>

<para>Updates structure factor parameters from the micrograph parameters in memory. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Procedures to manage crystallographic images. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 20061104 </para>

<para>Modified: 20181030 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_bshow__xtal_8tcl_1a28cf673ddbf9b637f9ef62b578261853"/>    <section>
    <title>calcUnitCellVectors()</title>
<indexterm><primary>calcUnitCellVectors</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>calcUnitCellVectors</secondary></indexterm>
<para><computeroutput>calcUnitCellVectors</computeroutput></para><para>

<para>Calculates the unit cell vectors from the current structure factors. </para>
</para>
<para>
Definition at line 239 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a2ac85a8e2a91130ab67ac45b47109695"/>    <section>
    <title>Crystallography()</title>
<indexterm><primary>Crystallography</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>Crystallography</secondary></indexterm>
<para><computeroutput>Crystallography</computeroutput></para><para>

<para>Dialog box to manage crystallographic information. </para>
</para>
<para>
Definition at line 20 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a27f0725282151165ce3c76b6e9fe9a54"/>    <section>
    <title>setSpotIndices()</title>
<indexterm><primary>setSpotIndices</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>setSpotIndices</secondary></indexterm>
<para><computeroutput>setSpotIndices</computeroutput></para><para>

<para>Dialog box to set Miller indices for the selected structure factor. </para>
</para>
<para>
Definition at line 164 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a85b9e40c1e160474f86976e1d4f89396"/>    <section>
    <title>setSpotIndices_and_DestroyWindow()</title>
<indexterm><primary>setSpotIndices_and_DestroyWindow</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>setSpotIndices_and_DestroyWindow</secondary></indexterm>
<para><computeroutput>setSpotIndices_and_DestroyWindow w </computeroutput></para><para>

<para>Sets the indices for a structure factor. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>w</entry>
                                <entry>
<para>the window to destroy. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 214 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a801e8503a75a39200683d19daf83dec8"/>    <section>
    <title>spotCreateSelect()</title>
<indexterm><primary>spotCreateSelect</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotCreateSelect</secondary></indexterm>
<para><computeroutput>spotCreateSelect x y </computeroutput></para><para>

<para>Creates or selects a structure factor. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>x</entry>
                                <entry>
<para></para>
</entry>
                            </row>
                            <row>
                                <entry>y</entry>
                                <entry>
<para>Structure factor position in canvas coordinates. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 289 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a3f7252de058a228f87fb2a48503ee13f"/>    <section>
    <title>spotDelete()</title>
<indexterm><primary>spotDelete</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotDelete</secondary></indexterm>
<para><computeroutput>spotDelete x y </computeroutput></para><para>

<para>Deletes the selected structure factor on the canvas. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>x</entry>
                                <entry>
<para></para>
</entry>
                            </row>
                            <row>
                                <entry>y</entry>
                                <entry>
<para>SF particle position in window coordinates. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 436 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a54a0a272af4b8a9e378154b28cfaa613"/>    <section>
    <title>spotDisplayLocation()</title>
<indexterm><primary>spotDisplayLocation</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotDisplayLocation</secondary></indexterm>
<para><computeroutput>spotDisplayLocation loc </computeroutput></para><para>
Definition at line 350 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1af32cfc35b7db47b99d0075bb490f20fe"/>    <section>
    <title>spotDraw()</title>
<indexterm><primary>spotDraw</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotDraw</secondary></indexterm>
<para><computeroutput>spotDraw h k l </computeroutput></para><para>

<para>Draws a structure factor on the canvas. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>h</entry>
                                <entry>
<para>SF index. </para>
</entry>
                            </row>
                            <row>
                                <entry>k</entry>
                                <entry>
<para>SF index. </para>
</entry>
                            </row>
                            <row>
                                <entry>l</entry>
                                <entry>
<para>SF index. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 375 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a0e10bbc7f8ebc878a795a115efddf494"/>    <section>
    <title>spotGenerate()</title>
<indexterm><primary>spotGenerate</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotGenerate</secondary></indexterm>
<para><computeroutput>spotGenerate</computeroutput></para><para>

<para>Generates structure factors from unit cell vectors. </para>
</para>
<para>
Definition at line 468 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a39439552eb1e875a519c4d8df7d2c202"/>    <section>
    <title>spotGenerate_and_DestroyWindow()</title>
<indexterm><primary>spotGenerate_and_DestroyWindow</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotGenerate_and_DestroyWindow</secondary></indexterm>
<para><computeroutput>spotGenerate_and_DestroyWindow w </computeroutput></para><para>

<para>Changes the data type of an image. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>w</entry>
                                <entry>
<para>the window to destroy. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 496 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1abd464e14b6841e91e0b2836c6b25cb68"/>    <section>
    <title>spotMask()</title>
<indexterm><primary>spotMask</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotMask</secondary></indexterm>
<para><computeroutput>spotMask</computeroutput></para><para>

<para>Masks structure factors. </para>
</para>
<para>
Definition at line 515 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a3e13b6757873fcba9d56043bc2ffeceb"/>    <section>
    <title>spotMove()</title>
<indexterm><primary>spotMove</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotMove</secondary></indexterm>
<para><computeroutput>spotMove x y </computeroutput></para><para>

<para>Moves the selected structure factor. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>x</entry>
                                <entry>
<para></para>
</entry>
                            </row>
                            <row>
                                <entry>y</entry>
                                <entry>
<para>SF position in canvas coordinates. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 326 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a5f1e7dba6887fc619883588484b43d03"/>    <section>
    <title>spotsDeleteAll()</title>
<indexterm><primary>spotsDeleteAll</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotsDeleteAll</secondary></indexterm>
<para><computeroutput>spotsDeleteAll</computeroutput></para><para>

<para>Deletes all structure factors. </para>
</para>
<para>
Definition at line 454 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1ad5ce89a2cc4378ae9a4d17d22454b717"/>    <section>
    <title>spotsDrawAll()</title>
<indexterm><primary>spotsDrawAll</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotsDrawAll</secondary></indexterm>
<para><computeroutput>spotsDrawAll</computeroutput></para><para>

<para>Draws all structure factors on the canvas. </para>
</para>
<para>
Definition at line 413 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1aedf5174bb40cc768874b5af721144c2a"/>    <section>
    <title>spotSelect()</title>
<indexterm><primary>spotSelect</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>spotSelect</secondary></indexterm>
<para><computeroutput>spotSelect x y </computeroutput></para><para>

<para>Select a structure factor. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>x</entry>
                                <entry>
<para></para>
</entry>
                            </row>
                            <row>
                                <entry>y</entry>
                                <entry>
<para>Structure factor position in canvas coordinates. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 255 of file bshow_xtal.tcl.</para>
    </section><anchor xml:id="_bshow__xtal_8tcl_1a8ab1b93cd7dd2c602151bdf6ad72836e"/>    <section>
    <title>updateSpotParam()</title>
<indexterm><primary>updateSpotParam</primary><secondary>bshow_xtal.tcl</secondary></indexterm>
<indexterm><primary>bshow_xtal.tcl</primary><secondary>updateSpotParam</secondary></indexterm>
<para><computeroutput>updateSpotParam</computeroutput></para><para>

<para>Updates structure factor parameters from the micrograph parameters in memory. </para>
</para>
<para>
Definition at line 527 of file bshow_xtal.tcl.</para>
</section>
</section>
</section>
