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

<para>Procedures to manage scales for image display. </para>
 
</para>
<simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para><link linkend="_bshow__scales_8tcl_1ac25164065697a0da8af5355c8b84102f">setupScales</link> w</para>

<para>Configures scales for the image window. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a4f6d6cfc0a56aae51ceef7dc909b96de">reconfigureScales</link></para>

<para>Resets the scales when the image changes. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a4360cda8477014d38ef66624afb0dd54">reconfigureMinMax</link></para>

<para>Resets the min and max scales when the range step size changes. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a4c2cf6f22f797c4cfa1d126c39b1b864">reconfigureRangeStep</link></para>

<para>Resets the range step size to the default value. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a9d79dd249de1fa92e932caef05061bd0">setScaleDialog</link></para>

<para>A dialog to type in a scale factor and new min and max values. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1acfb2346d1e3cc9c835c8bc2325ba3236">setScaleOK</link> wd</para>

<para>Sets the scales given in the dialog. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a2f740e1c174ae76be2b05236c54f98a5">setScale</link> scale</para>

<para>Sets the scale for display. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a9b78b5cf388cc419265356aeb70cffa0">setSlice</link> slice_num</para>

<para>Loads the requested slice in the current file into a photo image for display. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1abf4792bcff184dac5f3ce19b04578c10">setImage</link> img_num</para>

<para>Loads the requested image in the current file into a photo image for display. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a0b6474bac713331e9428bc0b4233bdef">setMin</link> smin</para>

<para>Sets the minimum display value. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1acbe36c347e54bb183e801b61060fea9b">setMax</link> smax</para>

<para>Sets the maximum display value. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a8682830c7ee2d3e3e3946099f7fa2a7a">autoScale</link></para>

<para>Sets reasonable minimum and maximum display values. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1ad3b572a25b6671d0603c1bb7afb8e91b">invertContrast</link></para>

<para>Switches the minimum and maximum display values. </para>
</listitem>
            <listitem><para><link linkend="_bshow__scales_8tcl_1a1a86e4115116e1d2efbced8f117cf618">do_animate_slices</link></para>

<para>Pages through slices. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Procedures to manage scales for image display. </para>

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

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

<para>Created: 20010516 </para>

<para>Modified: 20130820 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_bshow__scales_8tcl_1a8682830c7ee2d3e3e3946099f7fa2a7a"/>    <section>
    <title>autoScale()</title>
<indexterm><primary>autoScale</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>autoScale</secondary></indexterm>
<para><computeroutput>autoScale</computeroutput></para><para>

<para>Sets reasonable minimum and maximum display values. </para>
</para>
<para>
Definition at line 350 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1a1a86e4115116e1d2efbced8f117cf618"/>    <section>
    <title>do_animate_slices()</title>
<indexterm><primary>do_animate_slices</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>do_animate_slices</secondary></indexterm>
<para><computeroutput>do_animate_slices</computeroutput></para><para>

<para>Pages through slices. </para>
</para>
<para>
Definition at line 411 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1ad3b572a25b6671d0603c1bb7afb8e91b"/>    <section>
    <title>invertContrast()</title>
<indexterm><primary>invertContrast</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>invertContrast</secondary></indexterm>
<para><computeroutput>invertContrast</computeroutput></para><para>

<para>Switches the minimum and maximum display values. </para>
</para>
<para>
Definition at line 398 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1a4360cda8477014d38ef66624afb0dd54"/>    <section>
    <title>reconfigureMinMax()</title>
<indexterm><primary>reconfigureMinMax</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>reconfigureMinMax</secondary></indexterm>
<para><computeroutput>reconfigureMinMax</computeroutput></para><para>

<para>Resets the min and max scales when the range step size changes. </para>
</para>
<para>
Definition at line 119 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1a4c2cf6f22f797c4cfa1d126c39b1b864"/>    <section>
    <title>reconfigureRangeStep()</title>
<indexterm><primary>reconfigureRangeStep</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>reconfigureRangeStep</secondary></indexterm>
<para><computeroutput>reconfigureRangeStep</computeroutput></para><para>

<para>Resets the range step size to the default value. </para>
</para>
<para>
Definition at line 139 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1a4f6d6cfc0a56aae51ceef7dc909b96de"/>    <section>
    <title>reconfigureScales()</title>
<indexterm><primary>reconfigureScales</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>reconfigureScales</secondary></indexterm>
<para><computeroutput>reconfigureScales</computeroutput></para><para>

<para>Resets the scales when the image changes. </para>
</para>
<para>
Definition at line 91 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1abf4792bcff184dac5f3ce19b04578c10"/>    <section>
    <title>setImage()</title>
<indexterm><primary>setImage</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>setImage</secondary></indexterm>
<para><computeroutput>setImage img_num </computeroutput></para><para>

<para>Loads the requested image in the current file into a photo image for display. </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>img_num</entry>
                                <entry>
<para>Current image number stored in the image scale </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 286 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1acbe36c347e54bb183e801b61060fea9b"/>    <section>
    <title>setMax()</title>
<indexterm><primary>setMax</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>setMax</secondary></indexterm>
<para><computeroutput>setMax smax </computeroutput></para><para>

<para>Sets the maximum display value. </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>smax</entry>
                                <entry>
<para>New display maximum. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 327 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1a0b6474bac713331e9428bc0b4233bdef"/>    <section>
    <title>setMin()</title>
<indexterm><primary>setMin</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>setMin</secondary></indexterm>
<para><computeroutput>setMin smin </computeroutput></para><para>

<para>Sets the minimum display value. </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>smin</entry>
                                <entry>
<para>New display minimum. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 303 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1a2f740e1c174ae76be2b05236c54f98a5"/>    <section>
    <title>setScale()</title>
<indexterm><primary>setScale</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>setScale</secondary></indexterm>
<para><computeroutput>setScale scale </computeroutput></para><para>

<para>Sets the scale for display. </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>scale</entry>
                                <entry>
<para>Display scale stored in the scale scale </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 238 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1a9d79dd249de1fa92e932caef05061bd0"/>    <section>
    <title>setScaleDialog()</title>
<indexterm><primary>setScaleDialog</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>setScaleDialog</secondary></indexterm>
<para><computeroutput>setScaleDialog</computeroutput></para><para>

<para>A dialog to type in a scale factor and new min and max values. </para>
</para>
<para>
Definition at line 157 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1acfb2346d1e3cc9c835c8bc2325ba3236"/>    <section>
    <title>setScaleOK()</title>
<indexterm><primary>setScaleOK</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>setScaleOK</secondary></indexterm>
<para><computeroutput>setScaleOK wd </computeroutput></para><para>

<para>Sets the scales given in the dialog. </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>wd</entry>
                                <entry>
<para>Dialog window. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 218 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1a9b78b5cf388cc419265356aeb70cffa0"/>    <section>
    <title>setSlice()</title>
<indexterm><primary>setSlice</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>setSlice</secondary></indexterm>
<para><computeroutput>setSlice slice_num </computeroutput></para><para>

<para>Loads the requested slice in the current file into a photo image for display. </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>slice_num</entry>
                                <entry>
<para>Current slice number stored in the slice scale </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 266 of file bshow_scales.tcl.</para>
    </section><anchor xml:id="_bshow__scales_8tcl_1ac25164065697a0da8af5355c8b84102f"/>    <section>
    <title>setupScales()</title>
<indexterm><primary>setupScales</primary><secondary>bshow_scales.tcl</secondary></indexterm>
<indexterm><primary>bshow_scales.tcl</primary><secondary>setupScales</secondary></indexterm>
<para><computeroutput>setupScales w </computeroutput></para><para>

<para>Configures scales for the image window. </para>
</para>

<para>These scales are used as stores for the slice and image numbers as well as the scaling of the image itself</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>Control window to put scales in. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                </para>
<para>
Definition at line 20 of file bshow_scales.tcl.</para>
</section>
</section>
</section>
