Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > aaf33964de706a538481c929c1da6a44 > files > 2462

faust-doc-0.9.10-5mdv2010.1.x86_64.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>FAUST compiler: blockSchema 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.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>blockSchema Class Reference</h1><!-- doxytag: class="blockSchema" --><!-- doxytag: inherits="schema" -->
<p>A simple rectangular box with a text and inputs and outputs.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="blockSchema_8h_source.html">blockSchema.h</a>&gt;</code></p>

<p>Inherits <a class="el" href="classschema.html">schema</a>.</p>
<div class="dynheader">
Collaboration diagram for blockSchema:</div>
<div class="dynsection">
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classblockSchema-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#ac5e9e5fae7ab1544475cdc9cabec6411">place</a> (double x, double y, int orientation)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Define the graphic position of the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a>.  <a href="#ac5e9e5fae7ab1544475cdc9cabec6411"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#ac1293be3cac96a1f38daf9311eecd310">draw</a> (<a class="el" href="classdevice.html">device</a> &amp;dev)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> on the device.  <a href="#ac1293be3cac96a1f38daf9311eecd310"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structpoint.html">point</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#afcc617bef891e0db47fa4ce4835e319e">inputPoint</a> (unsigned int i) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an input point.  <a href="#afcc617bef891e0db47fa4ce4835e319e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structpoint.html">point</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#ab8aa4b475441fc6872f1d6265333dcf5">outputPoint</a> (unsigned int i) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an output point.  <a href="#ab8aa4b475441fc6872f1d6265333dcf5"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#acb6a21b650f8796dbff2d3482cf72a4f">blockSchema</a> (unsigned int inputs, unsigned int outputs, double width, double height, const string &amp;name, const string &amp;color, const string &amp;link)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Build a simple colored <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> with a certain number of inputs and outputs, a text to be displayed, and an optional link.  <a href="#acb6a21b650f8796dbff2d3482cf72a4f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a9fcbf30df9481a8407d1491ed322e42e">placeInputPoints</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computes the input points according to the position and the orientation of the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a>.  <a href="#a9fcbf30df9481a8407d1491ed322e42e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a9093cc787459218f88502db264b8af71">placeOutputPoints</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computes the output points according to the position and the orientation of the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a>.  <a href="#a9093cc787459218f88502db264b8af71"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#aa68a8f26bf74adfcffe17367844ec78d">drawRectangle</a> (<a class="el" href="classdevice.html">device</a> &amp;dev)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the colored rectangle with the optional link.  <a href="#aa68a8f26bf74adfcffe17367844ec78d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#aff8ec665e1575c6e3124c1eb51c280e2">drawText</a> (<a class="el" href="classdevice.html">device</a> &amp;dev)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the text centered on the box.  <a href="#aff8ec665e1575c6e3124c1eb51c280e2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a84ca7ddceccaa4187463f0b1b5aa9e0a">drawOrientationMark</a> (<a class="el" href="classdevice.html">device</a> &amp;dev)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the orientation mark, a small point that indicates the first input (like integrated circuits).  <a href="#a84ca7ddceccaa4187463f0b1b5aa9e0a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a6d96ceeba426d39dba0644ab0d6d765c">drawInputWires</a> (<a class="el" href="classdevice.html">device</a> &amp;dev)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw horizontal arrows from the input points to the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> rectangle.  <a href="#a6d96ceeba426d39dba0644ab0d6d765c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a0066a78c1d214fdf347190904112fefe">drawOutputWires</a> (<a class="el" href="classdevice.html">device</a> &amp;dev)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw horizontal line from the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> rectangle to the output points.  <a href="#a0066a78c1d214fdf347190904112fefe"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a04b7572fa7a39a8bf1f9c77ab029ccb8">fText</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Text to be displayed.  <a href="#a04b7572fa7a39a8bf1f9c77ab029ccb8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a70fa61dfe8650572d7e780c231fba34f">fColor</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">color of the box  <a href="#a70fa61dfe8650572d7e780c231fba34f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#aa83f85ff246d8c3b060057f6dbfe3a94">fLink</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">option URL link  <a href="#aa83f85ff246d8c3b060057f6dbfe3a94"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="structpoint.html">point</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#ac84b43b0f936d2d1a9c14601ccb1f21c">fInputPoint</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">input connection points  <a href="#ac84b43b0f936d2d1a9c14601ccb1f21c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="structpoint.html">point</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a5f647b14444c1a95336dc0e64d7036d2">fOutputPoint</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">output connection points  <a href="#a5f647b14444c1a95336dc0e64d7036d2"></a><br/></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classschema.html">schema</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblockSchema.html#a2958776e5bacb0de30ad6173de5c4503">makeBlockSchema</a> (unsigned int inputs, unsigned int outputs, const string &amp;name, const string &amp;color, const string &amp;link)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Build a simple colored <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> with a certain number of inputs and outputs, a text to be displayed, and an optional link.  <a href="#a2958776e5bacb0de30ad6173de5c4503"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A simple rectangular box with a text and inputs and outputs. </p>
<p>The constructor is private in order to make sure makeBlockSchema is used instead </p>

<p>Definition at line <a class="el" href="blockSchema_8h_source.html#l00035">35</a> of file <a class="el" href="blockSchema_8h_source.html">blockSchema.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="acb6a21b650f8796dbff2d3482cf72a4f"></a><!-- doxytag: member="blockSchema::blockSchema" ref="acb6a21b650f8796dbff2d3482cf72a4f" args="(unsigned int inputs, unsigned int outputs, double width, double height, const string &amp;name, const string &amp;color, const string &amp;link)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">blockSchema::blockSchema </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>link</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Build a simple colored <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> with a certain number of inputs and outputs, a text to be displayed, and an optional link. </p>
<p>The length of the text as well as th number of inputs and outputs are used to compute the size of the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00060">60</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="blockSchema_8h_source.html#l00043">fInputPoint</a>, and <a class="el" href="blockSchema_8h_source.html#l00044">fOutputPoint</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00068"></a>00068     :   <a class="code" href="classschema.html#a05b1cb48791b70b1ae5706e9a29020c9">schema</a>( <a class="code" href="classschema.html#ac0d35106760b7d113718e9ee9d02e108">inputs</a>, <a class="code" href="classschema.html#a217dc5df9996203d3ea0521c84c38567">outputs</a>, <a class="code" href="classschema.html#aa598f06d50f5cee518892c572453cf67">width</a>, <a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a> ),
<a name="l00069"></a>00069         <a class="code" href="classblockSchema.html#a04b7572fa7a39a8bf1f9c77ab029ccb8" title="Text to be displayed.">fText</a>(text),
<a name="l00070"></a>00070         <a class="code" href="classblockSchema.html#a70fa61dfe8650572d7e780c231fba34f" title="color of the box">fColor</a>(color),
<a name="l00071"></a>00071         <a class="code" href="classblockSchema.html#aa83f85ff246d8c3b060057f6dbfe3a94" title="option URL link">fLink</a>(link)
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classschema.html#ac0d35106760b7d113718e9ee9d02e108">inputs</a>; i++)   <a class="code" href="classblockSchema.html#ac84b43b0f936d2d1a9c14601ccb1f21c" title="input connection points">fInputPoint</a>.push_back(<a class="code" href="structpoint.html">point</a>(0));
<a name="l00074"></a>00074     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classschema.html#a217dc5df9996203d3ea0521c84c38567">outputs</a>; i++)  <a class="code" href="classblockSchema.html#a5f647b14444c1a95336dc0e64d7036d2" title="output connection points">fOutputPoint</a>.push_back(<a class="code" href="structpoint.html">point</a>(0));
<a name="l00075"></a>00075 }
</pre></div></p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac1293be3cac96a1f38daf9311eecd310"></a><!-- doxytag: member="blockSchema::draw" ref="ac1293be3cac96a1f38daf9311eecd310" args="(device &amp;dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::draw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdevice.html">device</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dev</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> on the device. </p>
<p>This methos can only be called after the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> have been placed </p>

<p>Implements <a class="el" href="classschema.html#a6b8ab062669efb5f96e45d4e40f123b0">schema</a>.</p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00174">174</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="blockSchema_8cpp_source.html#l00234">drawInputWires()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00215">drawOrientationMark()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00249">drawOutputWires()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00188">drawRectangle()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00203">drawText()</a>, and <a class="el" href="schema_8h_source.html#l00096">schema::placed()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00175"></a>00175 {
<a name="l00176"></a>00176     assert(<a class="code" href="classschema.html#a8c432179c626462d041ce2d8c68ef875">placed</a>());
<a name="l00177"></a>00177 
<a name="l00178"></a>00178     <a class="code" href="classblockSchema.html#aa68a8f26bf74adfcffe17367844ec78d" title="Draw the colored rectangle with the optional link.">drawRectangle</a>(dev);
<a name="l00179"></a>00179     <a class="code" href="classblockSchema.html#aff8ec665e1575c6e3124c1eb51c280e2" title="Draw the text centered on the box.">drawText</a>(dev);
<a name="l00180"></a>00180     <a class="code" href="classblockSchema.html#a84ca7ddceccaa4187463f0b1b5aa9e0a" title="Draw the orientation mark, a small point that indicates the first input (like integrated...">drawOrientationMark</a>(dev);
<a name="l00181"></a>00181     <a class="code" href="classblockSchema.html#a6d96ceeba426d39dba0644ab0d6d765c" title="Draw horizontal arrows from the input points to the blockSchema rectangle.">drawInputWires</a>(dev);
<a name="l00182"></a>00182     <a class="code" href="classblockSchema.html#a0066a78c1d214fdf347190904112fefe" title="Draw horizontal line from the blockSchema rectangle to the output points.">drawOutputWires</a>(dev);
<a name="l00183"></a>00183 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="a6d96ceeba426d39dba0644ab0d6d765c"></a><!-- doxytag: member="blockSchema::drawInputWires" ref="a6d96ceeba426d39dba0644ab0d6d765c" args="(device &amp;dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::drawInputWires </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdevice.html">device</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dev</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw horizontal arrows from the input points to the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> rectangle. </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00234">234</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="schema_8h_source.html#l00035">dHorz</a>, <a class="el" href="blockSchema_8h_source.html#l00043">fInputPoint</a>, <a class="el" href="classdevice.html#ae9ee5d3dfc45b2816828430cf8b4f19c">device::fleche()</a>, <a class="el" href="schema_8h_source.html#l00087">schema::inputs()</a>, <a class="el" href="schema_8h_source.html#l00050">kLeftRight</a>, <a class="el" href="schema_8h_source.html#l00099">schema::orientation()</a>, <a class="el" href="classdevice.html#a9fa8ce6f7449c3120908e75880f6b4e4">device::trait()</a>, <a class="el" href="schema_8h_source.html#l00041">point::x</a>, and <a class="el" href="schema_8h_source.html#l00042">point::y</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00174">draw()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00235"></a>00235 {
<a name="l00236"></a>00236     <span class="keywordtype">double</span> dx = (<a class="code" href="classschema.html#a929b2d9ad9fabd5f41623cbfce72c1d3">orientation</a>() == <a class="code" href="schema_8h.html#adf764cbdea00d65edcd07bb9953ad2b7ad0e4d4a0baf519fc3f4a41e2d30f4e96">kLeftRight</a>) ? <a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a> : -<a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a>;
<a name="l00237"></a>00237 
<a name="l00238"></a>00238     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classschema.html#ac0d35106760b7d113718e9ee9d02e108">inputs</a>(); i++) {
<a name="l00239"></a>00239         <a class="code" href="structpoint.html">point</a> p = <a class="code" href="classblockSchema.html#ac84b43b0f936d2d1a9c14601ccb1f21c" title="input connection points">fInputPoint</a>[i];
<a name="l00240"></a>00240         dev.<a class="code" href="classdevice.html#a9fa8ce6f7449c3120908e75880f6b4e4">trait</a>(p.<a class="code" href="structpoint.html#a9c6b34deaf4900ad4193c17935fd384a">x</a>, p.<a class="code" href="structpoint.html#a613f8f0d7352731638b0094e1b958b87">y</a>, p.<a class="code" href="structpoint.html#a9c6b34deaf4900ad4193c17935fd384a">x</a>+dx, p.<a class="code" href="structpoint.html#a613f8f0d7352731638b0094e1b958b87">y</a>);
<a name="l00241"></a>00241         dev.<a class="code" href="classdevice.html#ae9ee5d3dfc45b2816828430cf8b4f19c">fleche</a>(p.<a class="code" href="structpoint.html#a9c6b34deaf4900ad4193c17935fd384a">x</a>+dx, p.<a class="code" href="structpoint.html#a613f8f0d7352731638b0094e1b958b87">y</a>, 0, <a class="code" href="classschema.html#a929b2d9ad9fabd5f41623cbfce72c1d3">orientation</a>());
<a name="l00242"></a>00242     }
<a name="l00243"></a>00243 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="a84ca7ddceccaa4187463f0b1b5aa9e0a"></a><!-- doxytag: member="blockSchema::drawOrientationMark" ref="a84ca7ddceccaa4187463f0b1b5aa9e0a" args="(device &amp;dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::drawOrientationMark </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdevice.html">device</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dev</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the orientation mark, a small point that indicates the first input (like integrated circuits). </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00215">215</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="schema_8h_source.html#l00035">dHorz</a>, <a class="el" href="schema_8h_source.html#l00036">dVert</a>, <a class="el" href="schema_8h_source.html#l00086">schema::height()</a>, <a class="el" href="schema_8h_source.html#l00050">kLeftRight</a>, <a class="el" href="classdevice.html#a3c59d783b2377769785e63d105b54095">device::markSens()</a>, <a class="el" href="schema_8h_source.html#l00099">schema::orientation()</a>, <a class="el" href="schema_8h_source.html#l00085">schema::width()</a>, <a class="el" href="schema_8h_source.html#l00097">schema::x()</a>, and <a class="el" href="schema_8h_source.html#l00098">schema::y()</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00174">draw()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00216"></a>00216 {
<a name="l00217"></a>00217     <span class="keywordtype">double</span> px, py;
<a name="l00218"></a>00218 
<a name="l00219"></a>00219     <span class="keywordflow">if</span> (<a class="code" href="classschema.html#a929b2d9ad9fabd5f41623cbfce72c1d3">orientation</a>() == <a class="code" href="schema_8h.html#adf764cbdea00d65edcd07bb9953ad2b7ad0e4d4a0baf519fc3f4a41e2d30f4e96">kLeftRight</a>) {
<a name="l00220"></a>00220         px = <a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>() + <a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a>;
<a name="l00221"></a>00221         py = <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>() + <a class="code" href="schema_8h.html#aa0adc663ea7e3401767e9b3e76c63a7b" title="marge verticale">dVert</a>;
<a name="l00222"></a>00222     } <span class="keywordflow">else</span> {
<a name="l00223"></a>00223         px = <a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>() + <a class="code" href="classschema.html#aa598f06d50f5cee518892c572453cf67">width</a>() - <a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a>;
<a name="l00224"></a>00224         py = <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>() + <a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>() - <a class="code" href="schema_8h.html#aa0adc663ea7e3401767e9b3e76c63a7b" title="marge verticale">dVert</a>;
<a name="l00225"></a>00225     }
<a name="l00226"></a>00226 
<a name="l00227"></a>00227     dev.<a class="code" href="classdevice.html#a3c59d783b2377769785e63d105b54095">markSens</a>( px, py, <a class="code" href="classschema.html#a929b2d9ad9fabd5f41623cbfce72c1d3">orientation</a>() );
<a name="l00228"></a>00228 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="a0066a78c1d214fdf347190904112fefe"></a><!-- doxytag: member="blockSchema::drawOutputWires" ref="a0066a78c1d214fdf347190904112fefe" args="(device &amp;dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::drawOutputWires </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdevice.html">device</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dev</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw horizontal line from the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> rectangle to the output points. </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00249">249</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="schema_8h_source.html#l00035">dHorz</a>, <a class="el" href="blockSchema_8h_source.html#l00044">fOutputPoint</a>, <a class="el" href="schema_8h_source.html#l00050">kLeftRight</a>, <a class="el" href="schema_8h_source.html#l00099">schema::orientation()</a>, <a class="el" href="schema_8h_source.html#l00088">schema::outputs()</a>, <a class="el" href="classdevice.html#a9fa8ce6f7449c3120908e75880f6b4e4">device::trait()</a>, <a class="el" href="schema_8h_source.html#l00041">point::x</a>, and <a class="el" href="schema_8h_source.html#l00042">point::y</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00174">draw()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00250"></a>00250 {
<a name="l00251"></a>00251     <span class="keywordtype">double</span> dx = (<a class="code" href="classschema.html#a929b2d9ad9fabd5f41623cbfce72c1d3">orientation</a>() == <a class="code" href="schema_8h.html#adf764cbdea00d65edcd07bb9953ad2b7ad0e4d4a0baf519fc3f4a41e2d30f4e96">kLeftRight</a>) ? <a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a> : -<a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a>;
<a name="l00252"></a>00252 
<a name="l00253"></a>00253     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classschema.html#a217dc5df9996203d3ea0521c84c38567">outputs</a>(); i++) {
<a name="l00254"></a>00254         <a class="code" href="structpoint.html">point</a> p = <a class="code" href="classblockSchema.html#a5f647b14444c1a95336dc0e64d7036d2" title="output connection points">fOutputPoint</a>[i];
<a name="l00255"></a>00255         dev.<a class="code" href="classdevice.html#a9fa8ce6f7449c3120908e75880f6b4e4">trait</a>(p.<a class="code" href="structpoint.html#a9c6b34deaf4900ad4193c17935fd384a">x</a>, p.<a class="code" href="structpoint.html#a613f8f0d7352731638b0094e1b958b87">y</a>, p.<a class="code" href="structpoint.html#a9c6b34deaf4900ad4193c17935fd384a">x</a>-dx, p.<a class="code" href="structpoint.html#a613f8f0d7352731638b0094e1b958b87">y</a>);
<a name="l00256"></a>00256     }
<a name="l00257"></a>00257 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="aa68a8f26bf74adfcffe17367844ec78d"></a><!-- doxytag: member="blockSchema::drawRectangle" ref="aa68a8f26bf74adfcffe17367844ec78d" args="(device &amp;dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::drawRectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdevice.html">device</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dev</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the colored rectangle with the optional link. </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00188">188</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="schema_8h_source.html#l00035">dHorz</a>, <a class="el" href="schema_8h_source.html#l00036">dVert</a>, <a class="el" href="blockSchema_8h_source.html#l00039">fColor</a>, <a class="el" href="blockSchema_8h_source.html#l00040">fLink</a>, <a class="el" href="schema_8h_source.html#l00086">schema::height()</a>, <a class="el" href="classdevice.html#af5bf15228fed032fe21c0692153be25a">device::rect()</a>, <a class="el" href="schema_8h_source.html#l00085">schema::width()</a>, <a class="el" href="schema_8h_source.html#l00097">schema::x()</a>, and <a class="el" href="schema_8h_source.html#l00098">schema::y()</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00174">draw()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00189"></a>00189 {
<a name="l00190"></a>00190     dev.<a class="code" href="classdevice.html#af5bf15228fed032fe21c0692153be25a">rect</a>(   <a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>() + <a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a>,
<a name="l00191"></a>00191                 <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>() + <a class="code" href="schema_8h.html#aa0adc663ea7e3401767e9b3e76c63a7b" title="marge verticale">dVert</a>,
<a name="l00192"></a>00192                 <a class="code" href="classschema.html#aa598f06d50f5cee518892c572453cf67">width</a>() - 2*<a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a>,
<a name="l00193"></a>00193                 <a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>() - 2*<a class="code" href="schema_8h.html#aa0adc663ea7e3401767e9b3e76c63a7b" title="marge verticale">dVert</a>,
<a name="l00194"></a>00194                 <a class="code" href="classblockSchema.html#a70fa61dfe8650572d7e780c231fba34f" title="color of the box">fColor</a>.c_str(),
<a name="l00195"></a>00195                 <a class="code" href="classblockSchema.html#aa83f85ff246d8c3b060057f6dbfe3a94" title="option URL link">fLink</a>.c_str()
<a name="l00196"></a>00196             );
<a name="l00197"></a>00197 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="aff8ec665e1575c6e3124c1eb51c280e2"></a><!-- doxytag: member="blockSchema::drawText" ref="aff8ec665e1575c6e3124c1eb51c280e2" args="(device &amp;dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::drawText </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdevice.html">device</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dev</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the text centered on the box. </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00203">203</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="blockSchema_8h_source.html#l00038">fText</a>, <a class="el" href="schema_8h_source.html#l00086">schema::height()</a>, <a class="el" href="classdevice.html#a4aec578878db9551e5538639d6b0339d">device::text()</a>, <a class="el" href="schema_8h_source.html#l00085">schema::width()</a>, <a class="el" href="schema_8h_source.html#l00097">schema::x()</a>, and <a class="el" href="schema_8h_source.html#l00098">schema::y()</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00174">draw()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00204"></a>00204 {
<a name="l00205"></a>00205     dev.<a class="code" href="classdevice.html#a4aec578878db9551e5538639d6b0339d">text</a>(   <a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>() + <a class="code" href="classschema.html#aa598f06d50f5cee518892c572453cf67">width</a>()/2,
<a name="l00206"></a>00206                 <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>() + <a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>()/2,
<a name="l00207"></a>00207                 <a class="code" href="classblockSchema.html#a04b7572fa7a39a8bf1f9c77ab029ccb8" title="Text to be displayed.">fText</a>.c_str()
<a name="l00208"></a>00208             );
<a name="l00209"></a>00209 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="afcc617bef891e0db47fa4ce4835e319e"></a><!-- doxytag: member="blockSchema::inputPoint" ref="afcc617bef891e0db47fa4ce4835e319e" args="(unsigned int i) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structpoint.html">point</a> blockSchema::inputPoint </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>i</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an input point. </p>

<p>Implements <a class="el" href="classschema.html#a6b533651c7b65aeec424762c42777bd8">schema</a>.</p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00095">95</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="blockSchema_8h_source.html#l00043">fInputPoint</a>, <a class="el" href="schema_8h_source.html#l00087">schema::inputs()</a>, and <a class="el" href="schema_8h_source.html#l00096">schema::placed()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00096"></a>00096 {
<a name="l00097"></a>00097     assert (<a class="code" href="classschema.html#a8c432179c626462d041ce2d8c68ef875">placed</a>());
<a name="l00098"></a>00098     assert (i &lt; <a class="code" href="classschema.html#ac0d35106760b7d113718e9ee9d02e108">inputs</a>());
<a name="l00099"></a>00099     <span class="keywordflow">return</span> <a class="code" href="classblockSchema.html#ac84b43b0f936d2d1a9c14601ccb1f21c" title="input connection points">fInputPoint</a>[i];
<a name="l00100"></a>00100 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="ab8aa4b475441fc6872f1d6265333dcf5"></a><!-- doxytag: member="blockSchema::outputPoint" ref="ab8aa4b475441fc6872f1d6265333dcf5" args="(unsigned int i) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structpoint.html">point</a> blockSchema::outputPoint </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>i</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an output point. </p>

<p>Implements <a class="el" href="classschema.html#a9521bca5db264dfdd0f523e1c3c03263">schema</a>.</p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00105">105</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="blockSchema_8h_source.html#l00044">fOutputPoint</a>, <a class="el" href="schema_8h_source.html#l00088">schema::outputs()</a>, and <a class="el" href="schema_8h_source.html#l00096">schema::placed()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00106"></a>00106 {
<a name="l00107"></a>00107     assert (<a class="code" href="classschema.html#a8c432179c626462d041ce2d8c68ef875">placed</a>());
<a name="l00108"></a>00108     assert (i &lt; <a class="code" href="classschema.html#a217dc5df9996203d3ea0521c84c38567">outputs</a>());
<a name="l00109"></a>00109     <span class="keywordflow">return</span> <a class="code" href="classblockSchema.html#a5f647b14444c1a95336dc0e64d7036d2" title="output connection points">fOutputPoint</a>[i];
<a name="l00110"></a>00110 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="ac5e9e5fae7ab1544475cdc9cabec6411"></a><!-- doxytag: member="blockSchema::place" ref="ac5e9e5fae7ab1544475cdc9cabec6411" args="(double x, double y, int orientation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::place </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>orientation</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Define the graphic position of the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a>. </p>
<p>Computes the graphic position of all the elements, in particular the inputs and outputs. This method must be called before <a class="el" href="classblockSchema.html#ac1293be3cac96a1f38daf9311eecd310" title="Draw the blockSchema on the device.">draw()</a>, otherwise draw is not allowed </p>

<p>Implements <a class="el" href="classschema.html#aa3ef082636956bead276445f203259a4">schema</a>.</p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00082">82</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="schema_8h_source.html#l00091">schema::beginPlace()</a>, <a class="el" href="schema_8h_source.html#l00093">schema::endPlace()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00116">placeInputPoints()</a>, and <a class="el" href="blockSchema_8cpp_source.html#l00145">placeOutputPoints()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00083"></a>00083 {
<a name="l00084"></a>00084     <a class="code" href="classschema.html#a84e7eb74cb2a656495a93985db7d5c9d">beginPlace</a>(<a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>, <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>, <a class="code" href="classschema.html#a929b2d9ad9fabd5f41623cbfce72c1d3">orientation</a>);
<a name="l00085"></a>00085 
<a name="l00086"></a>00086     <a class="code" href="classblockSchema.html#a9fcbf30df9481a8407d1491ed322e42e" title="Computes the input points according to the position and the orientation of the blockSchema...">placeInputPoints</a>();
<a name="l00087"></a>00087     <a class="code" href="classblockSchema.html#a9093cc787459218f88502db264b8af71" title="Computes the output points according to the position and the orientation of the blockSchema...">placeOutputPoints</a>();
<a name="l00088"></a>00088 
<a name="l00089"></a>00089     <a class="code" href="classschema.html#ad579c7aebc79bfbed5f73b35c399ff83">endPlace</a>();
<a name="l00090"></a>00090 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="a9fcbf30df9481a8407d1491ed322e42e"></a><!-- doxytag: member="blockSchema::placeInputPoints" ref="a9fcbf30df9481a8407d1491ed322e42e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::placeInputPoints </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Computes the input points according to the position and the orientation of the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a>. </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00116">116</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="schema_8h_source.html#l00032">dWire</a>, <a class="el" href="blockSchema_8h_source.html#l00043">fInputPoint</a>, <a class="el" href="schema_8h_source.html#l00086">schema::height()</a>, <a class="el" href="schema_8h_source.html#l00087">schema::inputs()</a>, <a class="el" href="schema_8h_source.html#l00050">kLeftRight</a>, <a class="el" href="schema_8h_source.html#l00099">schema::orientation()</a>, <a class="el" href="schema_8h_source.html#l00085">schema::width()</a>, <a class="el" href="schema_8h_source.html#l00097">schema::x()</a>, and <a class="el" href="schema_8h_source.html#l00098">schema::y()</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00082">place()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00117"></a>00117 {
<a name="l00118"></a>00118     <span class="keywordtype">int</span>     N = <a class="code" href="classschema.html#ac0d35106760b7d113718e9ee9d02e108">inputs</a>();
<a name="l00119"></a>00119 
<a name="l00120"></a>00120     <span class="keywordflow">if</span> (<a class="code" href="classschema.html#a929b2d9ad9fabd5f41623cbfce72c1d3">orientation</a>() == <a class="code" href="schema_8h.html#adf764cbdea00d65edcd07bb9953ad2b7ad0e4d4a0baf519fc3f4a41e2d30f4e96">kLeftRight</a>) {
<a name="l00121"></a>00121 
<a name="l00122"></a>00122         <span class="keywordtype">double</span>  px = <a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>();
<a name="l00123"></a>00123         <span class="keywordtype">double</span>  py = <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>() + (<a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>() - <a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>*(N-1))/2;
<a name="l00124"></a>00124 
<a name="l00125"></a>00125         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;N; i++) {
<a name="l00126"></a>00126             <a class="code" href="classblockSchema.html#ac84b43b0f936d2d1a9c14601ccb1f21c" title="input connection points">fInputPoint</a>[i] = <a class="code" href="structpoint.html">point</a>(px, py+i*<a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>);
<a name="l00127"></a>00127         }
<a name="l00128"></a>00128 
<a name="l00129"></a>00129     } <span class="keywordflow">else</span> {
<a name="l00130"></a>00130 
<a name="l00131"></a>00131         <span class="keywordtype">double</span> px = <a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>() + <a class="code" href="classschema.html#aa598f06d50f5cee518892c572453cf67">width</a>();
<a name="l00132"></a>00132         <span class="keywordtype">double</span> py = <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>() + <a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>() - (<a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>() - <a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>*(N-1))/2;
<a name="l00133"></a>00133 
<a name="l00134"></a>00134         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;N; i++) {
<a name="l00135"></a>00135             <a class="code" href="classblockSchema.html#ac84b43b0f936d2d1a9c14601ccb1f21c" title="input connection points">fInputPoint</a>[i] = <a class="code" href="structpoint.html">point</a>(px, py-i*<a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>);
<a name="l00136"></a>00136         }
<a name="l00137"></a>00137     }
<a name="l00138"></a>00138 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="a9093cc787459218f88502db264b8af71"></a><!-- doxytag: member="blockSchema::placeOutputPoints" ref="a9093cc787459218f88502db264b8af71" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void blockSchema::placeOutputPoints </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Computes the output points according to the position and the orientation of the <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a>. </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00145">145</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p>References <a class="el" href="schema_8h_source.html#l00032">dWire</a>, <a class="el" href="blockSchema_8h_source.html#l00044">fOutputPoint</a>, <a class="el" href="schema_8h_source.html#l00086">schema::height()</a>, <a class="el" href="schema_8h_source.html#l00050">kLeftRight</a>, <a class="el" href="schema_8h_source.html#l00099">schema::orientation()</a>, <a class="el" href="schema_8h_source.html#l00088">schema::outputs()</a>, <a class="el" href="schema_8h_source.html#l00085">schema::width()</a>, <a class="el" href="schema_8h_source.html#l00097">schema::x()</a>, and <a class="el" href="schema_8h_source.html#l00098">schema::y()</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00082">place()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00146"></a>00146 {
<a name="l00147"></a>00147     <span class="keywordtype">int</span> N = <a class="code" href="classschema.html#a217dc5df9996203d3ea0521c84c38567">outputs</a>();
<a name="l00148"></a>00148 
<a name="l00149"></a>00149     <span class="keywordflow">if</span> (<a class="code" href="classschema.html#a929b2d9ad9fabd5f41623cbfce72c1d3">orientation</a>() == <a class="code" href="schema_8h.html#adf764cbdea00d65edcd07bb9953ad2b7ad0e4d4a0baf519fc3f4a41e2d30f4e96">kLeftRight</a>) {
<a name="l00150"></a>00150 
<a name="l00151"></a>00151         <span class="keywordtype">double</span> px = <a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>() + <a class="code" href="classschema.html#aa598f06d50f5cee518892c572453cf67">width</a>();
<a name="l00152"></a>00152         <span class="keywordtype">double</span> py = <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>() + (<a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>() - <a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>*(N-1))/2;
<a name="l00153"></a>00153 
<a name="l00154"></a>00154         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;N; i++) {
<a name="l00155"></a>00155             <a class="code" href="classblockSchema.html#a5f647b14444c1a95336dc0e64d7036d2" title="output connection points">fOutputPoint</a>[i] = <a class="code" href="structpoint.html">point</a>(px, py + i*<a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>);
<a name="l00156"></a>00156         }
<a name="l00157"></a>00157 
<a name="l00158"></a>00158     } <span class="keywordflow">else</span> {
<a name="l00159"></a>00159 
<a name="l00160"></a>00160         <span class="keywordtype">double</span> px = <a class="code" href="classschema.html#a120e106abe224a0e9170565edffa106a">x</a>();
<a name="l00161"></a>00161         <span class="keywordtype">double</span> py = <a class="code" href="classschema.html#a82c4e6b273c7e48607f3bbf44d5b2c27">y</a>() + <a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>() - (<a class="code" href="classschema.html#acd72d5b630acd4eadf3f856aa6176c99">height</a>() - <a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>*(N-1))/2;
<a name="l00162"></a>00162 
<a name="l00163"></a>00163         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;N; i++) {
<a name="l00164"></a>00164             <a class="code" href="classblockSchema.html#a5f647b14444c1a95336dc0e64d7036d2" title="output connection points">fOutputPoint</a>[i] = <a class="code" href="structpoint.html">point</a>(px, py - i*<a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>);
<a name="l00165"></a>00165         }
<a name="l00166"></a>00166     }
<a name="l00167"></a>00167 }
</pre></div></p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a2958776e5bacb0de30ad6173de5c4503"></a><!-- doxytag: member="blockSchema::makeBlockSchema" ref="a2958776e5bacb0de30ad6173de5c4503" args="(unsigned int inputs, unsigned int outputs, const string &amp;name, const string &amp;color, const string &amp;link)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classschema.html">schema</a>* makeBlockSchema </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>link</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Build a simple colored <a class="el" href="classblockSchema.html" title="A simple rectangular box with a text and inputs and outputs.">blockSchema</a> with a certain number of inputs and outputs, a text to be displayed, and an optional link. </p>
<p>Computes the size of the box according to the length of the text and the maximum number of ports. </p>

<p>Definition at line <a class="el" href="blockSchema_8cpp_source.html#l00040">40</a> of file <a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00045"></a>00045 {
<a name="l00046"></a>00046     <span class="comment">// determine the optimal size of the box</span>
<a name="l00047"></a>00047     <span class="keywordtype">double</span> minimal = 3*<a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a>;
<a name="l00048"></a>00048     <span class="keywordtype">double</span> w = 2*<a class="code" href="schema_8h.html#a9d883e2a1657d36b7ac2e2b18caa109f" title="marge horizontale">dHorz</a> + <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>( minimal, <a class="code" href="blockSchema_8cpp.html#a82783eb82012f45834402b08210d2634">quantize</a>(text.size()) );
<a name="l00049"></a>00049     <span class="keywordtype">double</span> h = 2*<a class="code" href="schema_8h.html#aa0adc663ea7e3401767e9b3e76c63a7b" title="marge verticale">dVert</a> + <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>( minimal, <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>(<a class="code" href="classschema.html#ac0d35106760b7d113718e9ee9d02e108">inputs</a>, <a class="code" href="classschema.html#a217dc5df9996203d3ea0521c84c38567">outputs</a>) * <a class="code" href="schema_8h.html#a30d1c9623bb68689e23907427368ed1f" title="distance between two wires">dWire</a> );
<a name="l00050"></a>00050 
<a name="l00051"></a>00051     <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classblockSchema.html#acb6a21b650f8796dbff2d3482cf72a4f" title="Build a simple colored blockSchema with a certain number of inputs and outputs, a...">blockSchema</a>(<a class="code" href="classschema.html#ac0d35106760b7d113718e9ee9d02e108">inputs</a>, <a class="code" href="classschema.html#a217dc5df9996203d3ea0521c84c38567">outputs</a>, w, h, text, color, link);
<a name="l00052"></a>00052 }
</pre></div></p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a70fa61dfe8650572d7e780c231fba34f"></a><!-- doxytag: member="blockSchema::fColor" ref="a70fa61dfe8650572d7e780c231fba34f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const string <a class="el" href="classblockSchema.html#a70fa61dfe8650572d7e780c231fba34f">blockSchema::fColor</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>color of the box </p>

<p>Definition at line <a class="el" href="blockSchema_8h_source.html#l00039">39</a> of file <a class="el" href="blockSchema_8h_source.html">blockSchema.h</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00188">drawRectangle()</a>.</p>

</div>
</div>
<a class="anchor" id="ac84b43b0f936d2d1a9c14601ccb1f21c"></a><!-- doxytag: member="blockSchema::fInputPoint" ref="ac84b43b0f936d2d1a9c14601ccb1f21c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt;<a class="el" href="structpoint.html">point</a>&gt; <a class="el" href="classblockSchema.html#ac84b43b0f936d2d1a9c14601ccb1f21c">blockSchema::fInputPoint</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>input connection points </p>

<p>Definition at line <a class="el" href="blockSchema_8h_source.html#l00043">43</a> of file <a class="el" href="blockSchema_8h_source.html">blockSchema.h</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00060">blockSchema()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00234">drawInputWires()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00095">inputPoint()</a>, and <a class="el" href="blockSchema_8cpp_source.html#l00116">placeInputPoints()</a>.</p>

</div>
</div>
<a class="anchor" id="aa83f85ff246d8c3b060057f6dbfe3a94"></a><!-- doxytag: member="blockSchema::fLink" ref="aa83f85ff246d8c3b060057f6dbfe3a94" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const string <a class="el" href="classblockSchema.html#aa83f85ff246d8c3b060057f6dbfe3a94">blockSchema::fLink</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>option URL link </p>

<p>Definition at line <a class="el" href="blockSchema_8h_source.html#l00040">40</a> of file <a class="el" href="blockSchema_8h_source.html">blockSchema.h</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00188">drawRectangle()</a>.</p>

</div>
</div>
<a class="anchor" id="a5f647b14444c1a95336dc0e64d7036d2"></a><!-- doxytag: member="blockSchema::fOutputPoint" ref="a5f647b14444c1a95336dc0e64d7036d2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt;<a class="el" href="structpoint.html">point</a>&gt; <a class="el" href="classblockSchema.html#a5f647b14444c1a95336dc0e64d7036d2">blockSchema::fOutputPoint</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>output connection points </p>

<p>Definition at line <a class="el" href="blockSchema_8h_source.html#l00044">44</a> of file <a class="el" href="blockSchema_8h_source.html">blockSchema.h</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00060">blockSchema()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00249">drawOutputWires()</a>, <a class="el" href="blockSchema_8cpp_source.html#l00105">outputPoint()</a>, and <a class="el" href="blockSchema_8cpp_source.html#l00145">placeOutputPoints()</a>.</p>

</div>
</div>
<a class="anchor" id="a04b7572fa7a39a8bf1f9c77ab029ccb8"></a><!-- doxytag: member="blockSchema::fText" ref="a04b7572fa7a39a8bf1f9c77ab029ccb8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const string <a class="el" href="classblockSchema.html#a04b7572fa7a39a8bf1f9c77ab029ccb8">blockSchema::fText</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Text to be displayed. </p>

<p>Definition at line <a class="el" href="blockSchema_8h_source.html#l00038">38</a> of file <a class="el" href="blockSchema_8h_source.html">blockSchema.h</a>.</p>

<p>Referenced by <a class="el" href="blockSchema_8cpp_source.html#l00203">drawText()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="blockSchema_8h_source.html">blockSchema.h</a></li>
<li><a class="el" href="blockSchema_8cpp_source.html">blockSchema.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:17 2010 for FAUST compiler by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>