<?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__filament_8tcl">
<title>/Users/bernard/b20/bsoft/tcltk/bshow_filament.tcl File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/tcltk/bshow_filament.tcl</primary></indexterm>
<para>

<para>Procedures to create, move and destroy filament selections. </para>
 
</para>
<simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para><link linkend="_bshow__filament_8tcl_1aa8083e79f8fa6faf550d9fb423191b96">Filaments</link></para>

<para>Dialog box to manipulate filaments on the main canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a38e017650d9802b66f9e7810a8b387d3">setNodeRadius</link></para>

<para>Sets the node radius from the dialog box. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a26a23532d54885410210c22468cdec27">filamentCreate</link> x y</para>

<para>Starts a new filament. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a52de978cac7fee418269058d0dd2dc7f">nodeCreateSelect</link> x y</para>

<para>Creates or selects a node. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a0f32d2b321a293822d5390021349bf6c">nodeSelect</link> x y</para>

<para>Selects a node on the canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1af36005b02ffaca1611e60c4b9a15c554">nodeMove</link> x y</para>

<para>Moves the selected node. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a82483d71281744903d51ef037f006a74">nodeDraw</link> fid nid</para>

<para>Draws a circle for a node on the canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a19324f23248d6b921f1505bac64bece5">nodeLinkDraw</link> fid nid1 nid2</para>

<para>Draws a line between two nodes on the canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a4abc84fa2242eb4be9aaab4bff4da045">filamentsDrawAll</link></para>

<para>Draws filament nodes and lines connecting nodes on the canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1ad8b285c4b818364b8dc8f12c53f7d9a1">filamentUpdateSelected</link></para>

<para>Updates the selected filament and node in the dialog window. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1aa95ed0b05213100ae1dbdb9b2121fbd1">nodeDelete</link> x y</para>

<para>Deletes the selected node. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a982a456ac93dac43c57a917bd73e5871">filamentDelete</link></para>

<para>Deletes the selected filament. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1ad923d91afa6e0f127af817e69de75831">filamentDeleteAll</link></para>

<para>Deletes all filaments. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a453ac8752d250118c9b5258e7a296e8f">filamentCenterNodes</link></para>

<para>Centers filament nodes. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1ac159b72eccb2cadc95faa3fa8c828821">filamentExtract</link></para>

<para>Extracts filaments defined in the micrograph parameters. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a0fdd51ebf5d6c63fade2fd058fad03ea">filamentExtract_and_DestroyWindow</link> w</para>

<para>Extracts filaments from the current set of node coordinates. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a6872aa6cee275a9628254e2ec5466d24">filamentsToParticles</link></para>

<para>Creates particles on filaments. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a6a0f0c514aef464cc0f996023fc05db3">updateNodeParam</link></para>

<para>Updates node parameters from the micrograph parameters in memory. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1afdb48d86a3c87a754e9f687273be59b7">filamentProfilePlot</link> fid nid</para>

<para>Plots the selected filament profile in the plot canvas. </para>
</listitem>
            <listitem><para><link linkend="_bshow__filament_8tcl_1a0113a6f9c8d712ab2248c7b34c5b7b25">filamentProfileWrite</link></para>

<para>Writes the selected filament profile to a file. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Procedures to create, move and destroy filament selections. </para>

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

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

<para>Created: 20020808 </para>

<para>Modified: 20180410 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_bshow__filament_8tcl_1a453ac8752d250118c9b5258e7a296e8f"/>    <section>
    <title>filamentCenterNodes()</title>
<indexterm><primary>filamentCenterNodes</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentCenterNodes</secondary></indexterm>
<para><computeroutput>filamentCenterNodes</computeroutput></para><para>

<para>Centers filament nodes. </para>
</para>
<para>
Definition at line 454 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a26a23532d54885410210c22468cdec27"/>    <section>
    <title>filamentCreate()</title>
<indexterm><primary>filamentCreate</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentCreate</secondary></indexterm>
<para><computeroutput>filamentCreate x y </computeroutput></para><para>

<para>Starts a new filament. </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>First node position in canvas coordinates. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 191 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a982a456ac93dac43c57a917bd73e5871"/>    <section>
    <title>filamentDelete()</title>
<indexterm><primary>filamentDelete</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentDelete</secondary></indexterm>
<para><computeroutput>filamentDelete</computeroutput></para><para>

<para>Deletes the selected filament. </para>
</para>
<para>
Definition at line 425 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1ad923d91afa6e0f127af817e69de75831"/>    <section>
    <title>filamentDeleteAll()</title>
<indexterm><primary>filamentDeleteAll</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentDeleteAll</secondary></indexterm>
<para><computeroutput>filamentDeleteAll</computeroutput></para><para>

<para>Deletes all filaments. </para>
</para>
<para>
Definition at line 441 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1ac159b72eccb2cadc95faa3fa8c828821"/>    <section>
    <title>filamentExtract()</title>
<indexterm><primary>filamentExtract</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentExtract</secondary></indexterm>
<para><computeroutput>filamentExtract</computeroutput></para><para>

<para>Extracts filaments defined in the micrograph parameters. </para>
</para>
<para>
Definition at line 465 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a0fdd51ebf5d6c63fade2fd058fad03ea"/>    <section>
    <title>filamentExtract_and_DestroyWindow()</title>
<indexterm><primary>filamentExtract_and_DestroyWindow</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentExtract_and_DestroyWindow</secondary></indexterm>
<para><computeroutput>filamentExtract_and_DestroyWindow w </computeroutput></para><para>

<para>Extracts filaments from the current set of node coordinates. </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>Dialog window. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 533 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1afdb48d86a3c87a754e9f687273be59b7"/>    <section>
    <title>filamentProfilePlot()</title>
<indexterm><primary>filamentProfilePlot</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentProfilePlot</secondary></indexterm>
<para><computeroutput>filamentProfilePlot fid nid </computeroutput></para><para>

<para>Plots the selected filament profile in the plot 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>fid</entry>
                                <entry>
<para>filament identifier. </para>
</entry>
                            </row>
                            <row>
                                <entry>nid</entry>
                                <entry>
<para>node identifier. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 610 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a0113a6f9c8d712ab2248c7b34c5b7b25"/>    <section>
    <title>filamentProfileWrite()</title>
<indexterm><primary>filamentProfileWrite</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentProfileWrite</secondary></indexterm>
<para><computeroutput>filamentProfileWrite</computeroutput></para><para>

<para>Writes the selected filament profile to a file. </para>
</para>
<para>
Definition at line 669 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1aa8083e79f8fa6faf550d9fb423191b96"/>    <section>
    <title>Filaments()</title>
<indexterm><primary>Filaments</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>Filaments</secondary></indexterm>
<para><computeroutput>Filaments</computeroutput></para><para>

<para>Dialog box to manipulate filaments on the main canvas. </para>
</para>
<para>
Definition at line 25 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a4abc84fa2242eb4be9aaab4bff4da045"/>    <section>
    <title>filamentsDrawAll()</title>
<indexterm><primary>filamentsDrawAll</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentsDrawAll</secondary></indexterm>
<para><computeroutput>filamentsDrawAll</computeroutput></para><para>

<para>Draws filament nodes and lines connecting nodes on the canvas. </para>
</para>
<para>
Definition at line 356 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a6872aa6cee275a9628254e2ec5466d24"/>    <section>
    <title>filamentsToParticles()</title>
<indexterm><primary>filamentsToParticles</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentsToParticles</secondary></indexterm>
<para><computeroutput>filamentsToParticles</computeroutput></para><para>

<para>Creates particles on filaments. </para>
</para>
<para>
Definition at line 560 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1ad8b285c4b818364b8dc8f12c53f7d9a1"/>    <section>
    <title>filamentUpdateSelected()</title>
<indexterm><primary>filamentUpdateSelected</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>filamentUpdateSelected</secondary></indexterm>
<para><computeroutput>filamentUpdateSelected</computeroutput></para><para>

<para>Updates the selected filament and node in the dialog window. </para>
</para>
<para>
Definition at line 384 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a52de978cac7fee418269058d0dd2dc7f"/>    <section>
    <title>nodeCreateSelect()</title>
<indexterm><primary>nodeCreateSelect</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>nodeCreateSelect</secondary></indexterm>
<para><computeroutput>nodeCreateSelect x y </computeroutput></para><para>

<para>Creates or selects a node. </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>Node position in canvas coordinates. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 202 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1aa95ed0b05213100ae1dbdb9b2121fbd1"/>    <section>
    <title>nodeDelete()</title>
<indexterm><primary>nodeDelete</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>nodeDelete</secondary></indexterm>
<para><computeroutput>nodeDelete x y </computeroutput></para><para>

<para>Deletes the selected node. </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>Node position in window coordinates. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 407 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a82483d71281744903d51ef037f006a74"/>    <section>
    <title>nodeDraw()</title>
<indexterm><primary>nodeDraw</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>nodeDraw</secondary></indexterm>
<para><computeroutput>nodeDraw fid nid </computeroutput></para><para>

<para>Draws a circle for a node 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>fid</entry>
                                <entry>
<para>Filament identifier. </para>
</entry>
                            </row>
                            <row>
                                <entry>nid</entry>
                                <entry>
<para>Node identifier. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 286 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a19324f23248d6b921f1505bac64bece5"/>    <section>
    <title>nodeLinkDraw()</title>
<indexterm><primary>nodeLinkDraw</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>nodeLinkDraw</secondary></indexterm>
<para><computeroutput>nodeLinkDraw fid nid1 nid2 </computeroutput></para><para>

<para>Draws a line between two nodes 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>fid</entry>
                                <entry>
<para>Filament identifier. </para>
</entry>
                            </row>
                            <row>
                                <entry>nid1</entry>
                                <entry>
<para>Node 1 identifier. </para>
</entry>
                            </row>
                            <row>
                                <entry>nid2</entry>
                                <entry>
<para>Node 2 identifier. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 326 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1af36005b02ffaca1611e60c4b9a15c554"/>    <section>
    <title>nodeMove()</title>
<indexterm><primary>nodeMove</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>nodeMove</secondary></indexterm>
<para><computeroutput>nodeMove x y </computeroutput></para><para>

<para>Moves the selected node. </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>Node position in canvas coordinates. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 260 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a0f32d2b321a293822d5390021349bf6c"/>    <section>
    <title>nodeSelect()</title>
<indexterm><primary>nodeSelect</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>nodeSelect</secondary></indexterm>
<para><computeroutput>nodeSelect x y </computeroutput></para><para>

<para>Selects a node 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>Node position in window coordinates.</para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>node_selected Index of the selected node, 0 if none selected. </para>
</formalpara>
</para>
<para>
Definition at line 234 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a38e017650d9802b66f9e7810a8b387d3"/>    <section>
    <title>setNodeRadius()</title>
<indexterm><primary>setNodeRadius</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>setNodeRadius</secondary></indexterm>
<para><computeroutput>setNodeRadius</computeroutput></para><para>

<para>Sets the node radius from the dialog box. </para>
</para>
<para>
Definition at line 179 of file bshow_filament.tcl.</para>
    </section><anchor xml:id="_bshow__filament_8tcl_1a6a0f0c514aef464cc0f996023fc05db3"/>    <section>
    <title>updateNodeParam()</title>
<indexterm><primary>updateNodeParam</primary><secondary>bshow_filament.tcl</secondary></indexterm>
<indexterm><primary>bshow_filament.tcl</primary><secondary>updateNodeParam</secondary></indexterm>
<para><computeroutput>updateNodeParam</computeroutput></para><para>

<para>Updates node parameters from the micrograph parameters in memory. </para>
</para>
<para>
Definition at line 581 of file bshow_filament.tcl.</para>
</section>
</section>
</section>
