<?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="_ps__tree_8cpp">
<title>/Users/bernard/b20/bsoft/src/ps/ps_tree.cpp File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/src/ps/ps_tree.cpp</primary></indexterm>
<para>

<para>Postscript tree output functions. </para>
 
</para>
<programlisting>#include &quot;ps_plot.h&quot;
#include &quot;ps_tree.h&quot;
#include &quot;utilities.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_ps__tree_8cpp_1a0e96a583797a451b2dddf3d184a12f85">ps_draw_tree</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bnode">Bnode</link> *root, float scale)</para>

<para>Draws a tree into a postscript file. </para>
</listitem>
            <listitem><para>int <link linkend="_ps__tree_8cpp_1ad3ef1da9f601841a1cd6b99201d41db3">ps_draw_node</link> (ofstream *fps, <link linkend="_struct_bnode">Bnode</link> *node, float scale, float x, float y)</para>

<para>Draws a tree node into a postscript file. </para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_ps__tree_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Postscript tree output functions. </para>

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

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

<para>Created: 20010722 </para>

<para>Modified: 20120416 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_ps__tree_8cpp_1ad3ef1da9f601841a1cd6b99201d41db3"/>    <section>
    <title>ps_draw_node()</title>
<indexterm><primary>ps_draw_node</primary><secondary>ps_tree.cpp</secondary></indexterm>
<indexterm><primary>ps_tree.cpp</primary><secondary>ps_draw_node</secondary></indexterm>
<para><computeroutput>int ps_draw_node (ofstream * fps, <link linkend="_struct_bnode">Bnode</link> * node, float scale, float x, float y)</computeroutput></para><para>

<para>Draws a tree node into a postscript file. </para>
</para>

<para><literallayout><computeroutput>Requirements:
    The tree must be well-formed, i.e., it must have branch lengths 
    and angles defined.
</computeroutput></literallayout></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>*fps</entry>
                                <entry>
<para>file pointer. </para>
</entry>
                            </row>
                            <row>
                                <entry>*node</entry>
                                <entry>
<para>node. </para>
</entry>
                            </row>
                            <row>
                                <entry>scale</entry>
                                <entry>
<para>scale for branch lengths </para>
</entry>
                            </row>
                            <row>
                                <entry>x</entry>
                                <entry>
<para>x-coordinate for the node. </para>
</entry>
                            </row>
                            <row>
                                <entry>y</entry>
                                <entry>
<para>y-coordinate for the node. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0. </para>
</formalpara>
</para>
<para>
Definition at line 63 of file ps_tree.cpp.</para>
    </section><anchor xml:id="_ps__tree_8cpp_1a0e96a583797a451b2dddf3d184a12f85"/>    <section>
    <title>ps_draw_tree()</title>
<indexterm><primary>ps_draw_tree</primary><secondary>ps_tree.cpp</secondary></indexterm>
<indexterm><primary>ps_tree.cpp</primary><secondary>ps_draw_tree</secondary></indexterm>
<para><computeroutput>int ps_draw_tree (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bnode">Bnode</link> * root, float scale)</computeroutput></para><para>

<para>Draws a tree into a postscript file. </para>
</para>

<para><literallayout><computeroutput>Requirements:
    The tree must be well-formed, i.e., it must have branch lengths 
    and angles defined.
</computeroutput></literallayout></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>&amp;filename</entry>
                                <entry>
<para>postscript file name. </para>
</entry>
                            </row>
                            <row>
                                <entry>*root</entry>
                                <entry>
<para>root node. </para>
</entry>
                            </row>
                            <row>
                                <entry>scale</entry>
                                <entry>
<para>scale for branch lengths. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0. </para>
</formalpara>
</para>
<para>
Definition at line 28 of file ps_tree.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_ps__tree_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>ps_tree.cpp</secondary></indexterm>
<indexterm><primary>ps_tree.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
