<?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="_class_r_g_b">
<title>RGB&lt; Type &gt; Class Template Reference</title>
<indexterm><primary>RGB&lt; Type &gt;</primary></indexterm>
<para>
<computeroutput>#include &lt;Color.h&gt;</computeroutput>
</para>
<simplesect>
    <title>Public Member Functions    </title>
        <itemizedlist>
            <listitem><para><link linkend="_class_r_g_b_1a761dcbddf06f851cf139d8702d0b11c3">RGB</link> ()</para>
</listitem>
            <listitem><para><link linkend="_class_r_g_b_1a1d4ef4f6af8105f9c0eff324191182a5">RGB</link> (const <link linkend="_class_r_g_b">RGB</link> &amp;c)</para>
</listitem>
            <listitem><para><link linkend="_class_r_g_b_1af5b99355a3f9b4d8384841d4ae04dad3">RGB</link> (const double d[3])</para>
</listitem>
            <listitem><para><link linkend="_class_r_g_b_1a6e3ed7d196643f6692a72acf26cd27a6">RGB</link> (const double rr, const double gg, const double bb)</para>
</listitem>
            <listitem><para><link linkend="_class_r_g_b">RGB</link> <link linkend="_class_r_g_b_1a3e4c8ed8cf9b6138d33fb2ee688ef23a">operator=</link> (const <link linkend="_class_r_g_b">RGB</link> &amp;c)</para>
</listitem>
            <listitem><para><link linkend="_class_r_g_b">RGB</link> <link linkend="_class_r_g_b_1a3d8173183356bac79b5621a02bac513f">operator-</link> (const <link linkend="_class_r_g_b">RGB</link> &amp;c)</para>
</listitem>
            <listitem><para>Type &amp; <link linkend="_class_r_g_b_1a6a4d0931ef2ae45da9820fe6461c4197">operator[]</link> (const unsigned int i)</para>
</listitem>
            <listitem><para>Type <link linkend="_class_r_g_b_1abb43bd1c84a0025d07c65dbfe64a6218">r</link> ()</para>
</listitem>
            <listitem><para>Type <link linkend="_class_r_g_b_1a8a053d272a3c150523ffe93ebb61b952">g</link> ()</para>
</listitem>
            <listitem><para>Type <link linkend="_class_r_g_b_1ad5493272dd7a53c67af873a9a92b6803">b</link> ()</para>
</listitem>
            <listitem><para>void <link linkend="_class_r_g_b_1ac0354bcdc742c545d6a7f6a41d915782">red</link> ()</para>
</listitem>
            <listitem><para>template&lt;typename T2 &gt; </para><para><link linkend="_class_r_g_b">RGB</link> <link linkend="_class_r_g_b_1ac4c7f73c4e88094fc33c7da7d32c117f">operator=</link> (<link linkend="_class_r_g_b_a">RGBA</link>&lt; T2 &gt; &amp;c)</para>
</listitem>
            <listitem><para>template&lt;typename T2 &gt; </para><para><link linkend="_class_r_g_b_1a7d7c612fa78c5aef534c3ef278179b71">operator RGB&lt; T2 &gt;</link> () const</para>
</listitem>
            <listitem><para><link linkend="_class_r_g_b_1a814f30921e3ba0cb7db251aab4ef0328">RGB</link> (<link linkend="_class_r_g_b_a">RGBA</link>&lt; Type &gt; &amp;c)</para>
</listitem>
            <listitem><para><link linkend="_class_r_g_b_1a7a15a2b29fa6ecc614785ae209141ac8">RGB</link> (<link linkend="_class_c_m_y_k">CMYK</link>&lt; Type &gt; &amp;cmyk)</para>
</listitem>
            <listitem><para><link linkend="_class_r_g_b_1ad50e480b1b1f43fba284e0ca318b38f9">RGB</link> (<link linkend="_class_bstring">Bstring</link> &amp;<link linkend="_class_r_g_b_1a1b1e3734f52d36001536204e9f257192">hex</link>)</para>
</listitem>
            <listitem><para><link linkend="_class_bstring">Bstring</link> <link linkend="_class_r_g_b_1a1b1e3734f52d36001536204e9f257192">hex</link> ()</para>
</listitem>
            <listitem><para>double <link linkend="_class_r_g_b_1a1c2f8fa272d4064835cc4c38ec21c974">average</link> ()</para>
</listitem>
            <listitem><para>double <link linkend="_class_r_g_b_1a54e931abb6bb7c1ad93848cf573ed3f7">rms</link> ()</para>
</listitem>
            <listitem><para>void <link linkend="_class_r_g_b_1a646f779055b10fc5e4db98694f2e4eca">spectrum</link> (double value, double cmin, double cmax)</para>
</listitem>
            <listitem><para>void <link linkend="_class_r_g_b_1a4ab9dacb9b0db968b4cbc191433b0888">phase</link> (double phi, double amp_ratio)</para>
</listitem>
            <listitem><para>void <link linkend="_class_r_g_b_1a2484ec68d17a31fbd752e0de1993850e">random_color</link> ()</para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>
<simplesect><title>template&lt;typename Type&gt;
class RGB&lt; Type &gt;</title></simplesect>

<para>
Definition at line 24 of file Color.h.</para>
</section>
<section>
<title>Constructor &amp; Destructor Documentation</title>
<anchor xml:id="_class_r_g_b_1a761dcbddf06f851cf139d8702d0b11c3"/>    <section>
    <title>RGB()<computeroutput>[1/7]</computeroutput></title>
<indexterm><primary>RGB</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>RGB</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::<link linkend="_class_r_g_b">RGB</link> ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 28 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a1d4ef4f6af8105f9c0eff324191182a5"/>    <section>
    <title>RGB()<computeroutput>[2/7]</computeroutput></title>
<indexterm><primary>RGB</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>RGB</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::<link linkend="_class_r_g_b">RGB</link> (const <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt; &amp; c)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 29 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1af5b99355a3f9b4d8384841d4ae04dad3"/>    <section>
    <title>RGB()<computeroutput>[3/7]</computeroutput></title>
<indexterm><primary>RGB</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>RGB</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::<link linkend="_class_r_g_b">RGB</link> (const double d[3])<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 30 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a6e3ed7d196643f6692a72acf26cd27a6"/>    <section>
    <title>RGB()<computeroutput>[4/7]</computeroutput></title>
<indexterm><primary>RGB</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>RGB</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::<link linkend="_class_r_g_b">RGB</link> (const double rr, const double gg, const double bb)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 31 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a814f30921e3ba0cb7db251aab4ef0328"/>    <section>
    <title>RGB()<computeroutput>[5/7]</computeroutput></title>
<indexterm><primary>RGB</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>RGB</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::<link linkend="_class_r_g_b">RGB</link> (<link linkend="_class_r_g_b_a">RGBA</link>&lt; Type &gt; &amp; c)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 56 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a7a15a2b29fa6ecc614785ae209141ac8"/>    <section>
    <title>RGB()<computeroutput>[6/7]</computeroutput></title>
<indexterm><primary>RGB</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>RGB</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::<link linkend="_class_r_g_b">RGB</link> (<link linkend="_class_c_m_y_k">CMYK</link>&lt; Type &gt; &amp; cmyk)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 57 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1ad50e480b1b1f43fba284e0ca318b38f9"/>    <section>
    <title>RGB()<computeroutput>[7/7]</computeroutput></title>
<indexterm><primary>RGB</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>RGB</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::<link linkend="_class_r_g_b">RGB</link> (<link linkend="_class_bstring">Bstring</link> &amp; hex)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 73 of file Color.h.</para>
</section>
</section>
<section>
<title>Member Function Documentation</title>
<anchor xml:id="_class_r_g_b_1a1c2f8fa272d4064835cc4c38ec21c974"/>    <section>
    <title>average()</title>
<indexterm><primary>average</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>average</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>double <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::average ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 87 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1ad5493272dd7a53c67af873a9a92b6803"/>    <section>
    <title>b()</title>
<indexterm><primary>b</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>b</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>Type <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::b ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 47 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a8a053d272a3c150523ffe93ebb61b952"/>    <section>
    <title>g()</title>
<indexterm><primary>g</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>g</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>Type <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::g ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 46 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a1b1e3734f52d36001536204e9f257192"/>    <section>
    <title>hex()</title>
<indexterm><primary>hex</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>hex</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_bstring">Bstring</link> <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::hex ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 80 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a7d7c612fa78c5aef534c3ef278179b71"/>    <section>
    <title>operator RGB&lt; T2 &gt;()</title>
<indexterm><primary>operator RGB&lt; T2 &gt;</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>operator RGB&lt; T2 &gt;</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><computeroutput>template&lt;typename T2 &gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::operator <link linkend="_class_r_g_b">RGB</link>&lt; T2 &gt; ( ) const<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 53 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a3d8173183356bac79b5621a02bac513f"/>    <section>
    <title>operator-()</title>
<indexterm><primary>operator-</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>operator-</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link> <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::operator- (const <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt; &amp; c)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 37 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a3e4c8ed8cf9b6138d33fb2ee688ef23a"/>    <section>
    <title>operator=()<computeroutput>[1/2]</computeroutput></title>
<indexterm><primary>operator=</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>operator=</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link> <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::operator= (const <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt; &amp; c)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 33 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1ac4c7f73c4e88094fc33c7da7d32c117f"/>    <section>
    <title>operator=()<computeroutput>[2/2]</computeroutput></title>
<indexterm><primary>operator=</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>operator=</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><computeroutput>template&lt;typename T2 &gt; </computeroutput><para><computeroutput><link linkend="_class_r_g_b">RGB</link> <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::operator= (<link linkend="_class_r_g_b_a">RGBA</link>&lt; T2 &gt; &amp; c)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 49 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a6a4d0931ef2ae45da9820fe6461c4197"/>    <section>
    <title>operator[]()</title>
<indexterm><primary>operator[]</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>operator[]</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>Type&amp; <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::operator[] (const unsigned int i)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 41 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a4ab9dacb9b0db968b4cbc191433b0888"/>    <section>
    <title>phase()</title>
<indexterm><primary>phase</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>phase</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>void <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::phase (double phi, double amp_ratio)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 114 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1abb43bd1c84a0025d07c65dbfe64a6218"/>    <section>
    <title>r()</title>
<indexterm><primary>r</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>r</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>Type <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::r ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 45 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a2484ec68d17a31fbd752e0de1993850e"/>    <section>
    <title>random_color()</title>
<indexterm><primary>random_color</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>random_color</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>void <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::random_color ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 140 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1ac0354bcdc742c545d6a7f6a41d915782"/>    <section>
    <title>red()</title>
<indexterm><primary>red</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>red</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>void <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::red ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 48 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a54e931abb6bb7c1ad93848cf573ed3f7"/>    <section>
    <title>rms()</title>
<indexterm><primary>rms</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>rms</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>double <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::rms ( )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 88 of file Color.h.</para>
    </section><anchor xml:id="_class_r_g_b_1a646f779055b10fc5e4db98694f2e4eca"/>    <section>
    <title>spectrum()</title>
<indexterm><primary>spectrum</primary><secondary>RGB&lt; Type &gt;</secondary></indexterm>
<indexterm><primary>RGB&lt; Type &gt;</primary><secondary>spectrum</secondary></indexterm>
<computeroutput>template&lt;typename Type&gt; </computeroutput><para><computeroutput>void <link linkend="_class_r_g_b">RGB</link>&lt; Type &gt;::spectrum (double value, double cmin, double cmax)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 89 of file Color.h.</para>
</section>
<para>
The documentation for this class was generated from the following file:</para>
/Users/bernard/b20/bsoft/include/<link linkend="__color_8h">Color.h</link></section>
</section>
