Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 006f25f0acc4b3df764eea70a130a63f > files > 67

gnome-chemistry-utils-devel-0.13.5-4.mga2.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>The Gnome Chemistry Utils: gccv::Hash Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">The Gnome Chemistry Utils&#160;<span id="projectnumber">0.13.5</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacegccv.html">gccv</a>      </li>
      <li class="navelem"><a class="el" href="classgccv_1_1Hash.html">Hash</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">gccv::Hash Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="gccv::Hash" --><!-- doxytag: inherits="gccv::Wedge" -->
<p>Equilateral hashed triangle.  
 <a href="classgccv_1_1Hash.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="hash_8h_source.html">hash.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for gccv::Hash:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classgccv_1_1Hash.png" usemap="#gccv::Hash_map" alt=""/>
  <map id="gccv::Hash_map" name="gccv::Hash_map">
<area href="classgccv_1_1Wedge.html" title="Equilateral triangle." alt="gccv::Wedge" shape="rect" coords="0,56,85,80"/>
<area href="classgccv_1_1Item.html" title="The base class for the canvas contents." alt="gccv::Item" shape="rect" coords="0,0,85,24"/>
</map>
 </div></div>

<p><a href="classgccv_1_1Hash-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1Hash.html#ac2f4e9314f509792af7bfb74f837cec4">Hash</a> (<a class="el" href="classgccv_1_1Canvas.html">Canvas</a> *canvas, double x0, double y0, double x1, double y1, double width)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1Hash.html#a8f583652da95b41cfbdd9e0727f9e003">Hash</a> (<a class="el" href="classgccv_1_1Group.html">Group</a> *parent, double x0, double y0, double x1, double y1, double width, <a class="el" href="classgccv_1_1ItemClient.html">ItemClient</a> *client=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1Hash.html#a3235a11672ee9f38308eb870b7bba406">~Hash</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1Hash.html#a29e823b5835313761677ec287c214ee5">Draw</a> (cairo_t *cr, bool is_vector) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1Hash.html#af4bed44e26cc717fe7195fae50bc74ef">SetLineWidth</a> (double val)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1Hash.html#a02c4bce87e8c21ef4705b77a024e086c">GetLineWidth</a> (void) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1Hash.html#af211cc09089de25042b4085f534096de">SetLineDist</a> (double val)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1Hash.html#a6210dfe3713f196f97b13259377a9a25">GetLineDist</a> (void) const </td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Equilateral hashed triangle. </p>
<p>Equilateral triangle filled with regularly spaced hashes parallel to the triangle base. </p>

<p>Definition at line <a class="el" href="hash_8h_source.html#l00040">40</a> of file <a class="el" href="hash_8h_source.html">hash.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac2f4e9314f509792af7bfb74f837cec4"></a><!-- doxytag: member="gccv::Hash::Hash" ref="ac2f4e9314f509792af7bfb74f837cec4" args="(Canvas *canvas, double x0, double y0, double x1, double y1, double width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gccv::Hash::Hash </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgccv_1_1Canvas.html">Canvas</a> *&#160;</td>
          <td class="paramname"><em>canvas</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">canvas</td><td>a <a class="el" href="classgccv_1_1Canvas.html" title="the Canvas class">Canvas</a>. </td></tr>
    <tr><td class="paramname">x0</td><td>the triangle top horizontal position. </td></tr>
    <tr><td class="paramname">y0</td><td>the triangle top vertical position. </td></tr>
    <tr><td class="paramname">x1</td><td>the horizontal position of the canter of the triangle base. </td></tr>
    <tr><td class="paramname">y1</td><td>the vertical position of the canter of the triangle base. </td></tr>
    <tr><td class="paramname">width</td><td>the triangle base width.</td></tr>
  </table>
  </dd>
</dl>
<p>Creates a new <a class="el" href="classgccv_1_1Hash.html" title="Equilateral hashed triangle.">Hash</a> and sets it as a child of the root <a class="el" href="classgccv_1_1Group.html" title="Item with Item children.">Group</a> of <em>canvas</em>. </p>

</div>
</div>
<a class="anchor" id="a8f583652da95b41cfbdd9e0727f9e003"></a><!-- doxytag: member="gccv::Hash::Hash" ref="a8f583652da95b41cfbdd9e0727f9e003" args="(Group *parent, double x0, double y0, double x1, double y1, double width, ItemClient *client=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gccv::Hash::Hash </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgccv_1_1Group.html">Group</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgccv_1_1ItemClient.html">ItemClient</a> *&#160;</td>
          <td class="paramname"><em>client</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>the <a class="el" href="classgccv_1_1Group.html" title="Item with Item children.">Group</a> to which the new <a class="el" href="classgccv_1_1Hash.html" title="Equilateral hashed triangle.">Hash</a> will be added. </td></tr>
    <tr><td class="paramname">x0</td><td>the triangle top horizontal position. </td></tr>
    <tr><td class="paramname">y0</td><td>the triangle top vertical position. </td></tr>
    <tr><td class="paramname">x1</td><td>the horizontal position of the canter of the triangle base. </td></tr>
    <tr><td class="paramname">y1</td><td>the vertical position of the canter of the triangle base. </td></tr>
    <tr><td class="paramname">width</td><td>the triangle base width. </td></tr>
    <tr><td class="paramname">client</td><td>the <a class="el" href="classgccv_1_1ItemClient.html" title="the base class for objects associated with a canvas item.">ItemClient</a> for the new <a class="el" href="classgccv_1_1Hash.html" title="Equilateral hashed triangle.">Hash</a> if any.</td></tr>
  </table>
  </dd>
</dl>
<p>Creates a new <a class="el" href="classgccv_1_1Hash.html" title="Equilateral hashed triangle.">Hash</a> inside <em>parent</em> and sets <em>client</em> as its associated <a class="el" href="classgccv_1_1ItemClient.html" title="the base class for objects associated with a canvas item.">ItemClient</a>. </p>

</div>
</div>
<a class="anchor" id="a3235a11672ee9f38308eb870b7bba406"></a><!-- doxytag: member="gccv::Hash::~Hash" ref="a3235a11672ee9f38308eb870b7bba406" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual gccv::Hash::~Hash </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a29e823b5835313761677ec287c214ee5"></a><!-- doxytag: member="gccv::Hash::Draw" ref="a29e823b5835313761677ec287c214ee5" args="(cairo_t *cr, bool is_vector) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gccv::Hash::Draw </td>
          <td>(</td>
          <td class="paramtype">cairo_t *&#160;</td>
          <td class="paramname"><em>cr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>is_vector</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cr</td><td>a cairo_t. </td></tr>
    <tr><td class="paramname">is_vector</td><td>whether the cairo_t is a vectorial context.</td></tr>
  </table>
  </dd>
</dl>
<p>Draws the <a class="el" href="classgccv_1_1Hash.html" title="Equilateral hashed triangle.">Hash</a> to <em>cr</em>. </p>

<p>Reimplemented from <a class="el" href="classgccv_1_1Wedge.html#a42a3537e7c4cb8542e4c53c6d3e17615">gccv::Wedge</a>.</p>

</div>
</div>
<a class="anchor" id="a6210dfe3713f196f97b13259377a9a25"></a><!-- doxytag: member="gccv::Hash::GetLineDist" ref="a6210dfe3713f196f97b13259377a9a25" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gccv::Hash::GetLineDist </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the distance between two consecutive hashes. </dd></dl>

<p>Definition at line <a class="el" href="hash_8h_source.html#l00099">99</a> of file <a class="el" href="hash_8h_source.html">hash.h</a>.</p>

</div>
</div>
<a class="anchor" id="a02c4bce87e8c21ef4705b77a024e086c"></a><!-- doxytag: member="gccv::Hash::GetLineWidth" ref="a02c4bce87e8c21ef4705b77a024e086c" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gccv::Hash::GetLineWidth </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the width of the hashes. </dd></dl>

<p>Definition at line <a class="el" href="hash_8h_source.html#l00089">89</a> of file <a class="el" href="hash_8h_source.html">hash.h</a>.</p>

</div>
</div>
<a class="anchor" id="af211cc09089de25042b4085f534096de"></a><!-- doxytag: member="gccv::Hash::SetLineDist" ref="af211cc09089de25042b4085f534096de" args="(double val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gccv::Hash::SetLineDist </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dist</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dist</td><td>the new hash distance.</td></tr>
  </table>
  </dd>
</dl>
<p>Sets the distance between two consecutive hashes. The periodicity is actually the sum of this distance and the hash width. </p>

<p>Definition at line <a class="el" href="hash_8h_source.html#l00099">99</a> of file <a class="el" href="hash_8h_source.html">hash.h</a>.</p>

</div>
</div>
<a class="anchor" id="af4bed44e26cc717fe7195fae50bc74ef"></a><!-- doxytag: member="gccv::Hash::SetLineWidth" ref="af4bed44e26cc717fe7195fae50bc74ef" args="(double val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gccv::Hash::SetLineWidth </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>the new hash width.</td></tr>
  </table>
  </dd>
</dl>
<p>Sets the width of the hashes. </p>

<p>Definition at line <a class="el" href="hash_8h_source.html#l00089">89</a> of file <a class="el" href="hash_8h_source.html">hash.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="hash_8h_source.html">hash.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Nov 11 2011 18:01:05 for The Gnome Chemistry Utils by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>