Sophie

Sophie

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

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: SVGDev 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>SVGDev Class Reference</h1><!-- doxytag: class="SVGDev" --><!-- doxytag: inherits="device" -->
<p><code>#include &lt;<a class="el" href="SVGDev_8h_source.html">SVGDev.h</a>&gt;</code></p>

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

<p><a href="classSVGDev-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#a4f8d8c8c7f2806408d1daaf85ac085b0">SVGDev</a> (const char *, double, double)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#aa7f2713024b9b913e61a656e908bc13e">~SVGDev</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#af958b7e7813cdb4eeea105956153e639">rect</a> (double, double, double, double, const char *, const char *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#a3dd8a47f184dd41502be3c3162f5370f">rond</a> (double, double, double)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#a2a043f0b9db3d14add6f562d8ec94443">carre</a> (double, double, double)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#a494f0145ed98c57ca0d8f3494bb892e4">fleche</a> (double, double, double, int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#a9eb8bb7840b44f51c4dad62280d8788d">trait</a> (double, double, double, double)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#abd04f96090467600dad6b7539f6e25c2">dasharray</a> (double, double, double, double)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#a286722261b3144a1c7b6172efd46faaa">text</a> (double, double, const char *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#ad5b0c2ea97bb28505afb0a9cb7ac7218">label</a> (double, double, const char *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#aed3484be36565e53a013a1fb024e700f">markSens</a> (double, double, int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSVGDev.html#a7be32445b644958d785388620bf81b61">Error</a> (const char *, const char *, int, double, double, double)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition at line <a class="el" href="SVGDev_8h_source.html#l00031">31</a> of file <a class="el" href="SVGDev_8h_source.html">SVGDev.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4f8d8c8c7f2806408d1daaf85ac085b0"></a><!-- doxytag: member="SVGDev::SVGDev" ref="a4f8d8c8c7f2806408d1daaf85ac085b0" args="(const char *, double, double)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SVGDev::SVGDev </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>ficName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>largeur</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>hauteur</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00054">54</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>, and <a class="el" href="main_8cpp_source.html#l00111">gShadowBlur</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00055"></a>00055 {
<a name="l00056"></a>00056     <span class="keywordtype">double</span> gScale = 0.5;
<a name="l00057"></a>00057 <span class="comment">//  if ((fic_repr = fopen(addFileNum(ficName),&quot;w+&quot;)) == NULL) {</span>
<a name="l00058"></a>00058     <span class="keywordflow">if</span> ((<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a> = fopen(ficName,<span class="stringliteral">&quot;w+&quot;</span>)) == NULL) {
<a name="l00059"></a>00059     <span class="comment">//if((fic_repr = fopen(ficName,&quot;w+&quot;)) == NULL) {</span>
<a name="l00060"></a>00060         cout&lt;&lt;<span class="stringliteral">&quot;Impossible de creer ou d&#39;ouvrir &quot;</span>&lt;&lt;ficName&lt;&lt;endl;
<a name="l00061"></a>00061     }
<a name="l00062"></a>00062 
<a name="l00063"></a>00063     <span class="comment">// representation file:</span>
<a name="l00064"></a>00064     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;?xml version=\&quot;1.0\&quot;?&gt;\n&quot;</span>);
<a name="l00065"></a>00065     <span class="comment">// + DTD ...</span>
<a name="l00066"></a>00066     <span class="comment">// viewBox:</span>
<a name="l00067"></a>00067     <span class="comment">//fprintf(fic_repr,&quot;&lt;svg xmlns=\&quot;http://www.w3.org/2000/svg\&quot; xmlns:xlink=\&quot;http://www.w3.org/1999/xlink\&quot; preserveAspectRatio=\&quot;xMidYMid meet\&quot; viewBox=\&quot;0 0 %f %f\&quot; width=\&quot;200mm\&quot; height=\&quot;150mm\&quot; &gt;\n&quot;,largeur,hauteur);</span>
<a name="l00068"></a>00068     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;svg xmlns=\&quot;http://www.w3.org/2000/svg\&quot; xmlns:xlink=\&quot;http://www.w3.org/1999/xlink\&quot; viewBox=\&quot;0 0 %f %f\&quot; width=\&quot;%fmm\&quot; height=\&quot;%fmm\&quot; version=\&quot;1.1\&quot;&gt;\n&quot;</span>, largeur, hauteur, largeur*gScale, hauteur*gScale);
<a name="l00069"></a>00069 
<a name="l00070"></a>00070     <span class="keywordflow">if</span> (<a class="code" href="SVGDev_8cpp.html#a595b1bcec2a76e15debe16ac5ab703d4">gShadowBlur</a>) {
<a name="l00071"></a>00071      fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,
<a name="l00072"></a>00072         <span class="stringliteral">&quot;&lt;defs&gt;\n&quot;</span>
<a name="l00073"></a>00073         <span class="stringliteral">&quot;   &lt;filter id=\&quot;filter\&quot; filterRes=\&quot;50\&quot; x=\&quot;0\&quot; y=\&quot;0\&quot;&gt;\n&quot;</span>
<a name="l00074"></a>00074         <span class="stringliteral">&quot;     &lt;feGaussianBlur in=\&quot;SourceGraphic\&quot; stdDeviation=\&quot;1.5\&quot;/&gt;\n&quot;</span>
<a name="l00075"></a>00075         <span class="stringliteral">&quot;     &lt;feOffset dx=\&quot;1\&quot; dy=\&quot;1\&quot;/&gt;\n&quot;</span>
<a name="l00076"></a>00076         <span class="stringliteral">&quot;   &lt;/filter&gt;\n&quot;</span>
<a name="l00077"></a>00077         <span class="stringliteral">&quot;&lt;/defs&gt;\n&quot;</span>
<a name="l00078"></a>00078         );
<a name="l00079"></a>00079     }
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 }
</pre></div></p>

</div>
</div>
<a class="anchor" id="aa7f2713024b9b913e61a656e908bc13e"></a><!-- doxytag: member="SVGDev::~SVGDev" ref="aa7f2713024b9b913e61a656e908bc13e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SVGDev::~SVGDev </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00083">83</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00084"></a>00084 {
<a name="l00085"></a>00085     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;/svg&gt;\n&quot;</span>);
<a name="l00086"></a>00086     fclose(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>);
<a name="l00087"></a>00087 }
</pre></div></p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2a043f0b9db3d14add6f562d8ec94443"></a><!-- doxytag: member="SVGDev::carre" ref="a2a043f0b9db3d14add6f562d8ec94443" args="(double, double, double)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::carre </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">double&nbsp;</td>
          <td class="paramname"> <em>cote</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>Implements <a class="el" href="classdevice.html#a4432b309ada271520f53af9e354415e1">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00136">136</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00137"></a>00137 {
<a name="l00138"></a>00138     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;rect x=\&quot;%f\&quot; y=\&quot;%f\&quot; width=\&quot;%f\&quot; height=\&quot;%f\&quot; style=\&quot;stroke: black;stroke-width:0.5;fill:none;\&quot;/&gt;\n&quot;</span>,x-0.5*cote,y-cote,cote,cote);
<a name="l00139"></a>00139 }
</pre></div></p>

</div>
</div>
<a class="anchor" id="abd04f96090467600dad6b7539f6e25c2"></a><!-- doxytag: member="SVGDev::dasharray" ref="abd04f96090467600dad6b7539f6e25c2" args="(double, double, double, double)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::dasharray </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y2</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>Implements <a class="el" href="classdevice.html#a9ad41d630ba977cee7c630dc5d60b84c">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00147">147</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00148"></a>00148 {
<a name="l00149"></a>00149     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;line x1=\&quot;%f\&quot; y1=\&quot;%f\&quot; x2=\&quot;%f\&quot; y2=\&quot;%f\&quot;  style=\&quot;stroke: black; stroke-linecap:round; stroke-width:0.25; stroke-dasharray:3,3;\&quot;/&gt;\n&quot;</span>,x1,y1,x2,y2);
<a name="l00150"></a>00150 }
</pre></div></p>

</div>
</div>
<a class="anchor" id="a7be32445b644958d785388620bf81b61"></a><!-- doxytag: member="SVGDev::Error" ref="a7be32445b644958d785388620bf81b61" args="(const char *, const char *, int, double, double, double)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::Error </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>nb_error</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></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">double&nbsp;</td>
          <td class="paramname"> <em>largeur</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>Implements <a class="el" href="classdevice.html#afd0bdf432f2ca8979e10dd9aac6fadaf">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00173">173</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00174"></a>00174 {
<a name="l00175"></a>00175     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;text x=\&quot;%f\&quot; y=\&quot;%f\&quot;  textLength=\&quot;%f\&quot; lengthAdjust=\&quot;spacingAndGlyphs\&quot; style=\&quot;stroke: red; stroke-width:0.3; fill:red; text-anchor:middle;\&quot;&gt;%d : %s&lt;/text&gt;\n&quot;</span>,x,y-7,largeur,nb_error,message);
<a name="l00176"></a>00176     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;text x=\&quot;%f\&quot; y=\&quot;%f\&quot;  textLength=\&quot;%f\&quot; lengthAdjust=\&quot;spacingAndGlyphs\&quot; style=\&quot;stroke: red; stroke-width:0.3; fill:none; text-anchor:middle;\&quot;&gt;%s&lt;/text&gt;\n&quot;</span>,x,y+7,largeur,reason);
<a name="l00177"></a>00177 }
</pre></div></p>

</div>
</div>
<a class="anchor" id="a494f0145ed98c57ca0d8f3494bb892e4"></a><!-- doxytag: member="SVGDev::fleche" ref="a494f0145ed98c57ca0d8f3494bb892e4" args="(double, double, double, int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::fleche </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">double&nbsp;</td>
          <td class="paramname"> <em>rotation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>sens</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>Implements <a class="el" href="classdevice.html#ae9ee5d3dfc45b2816828430cf8b4f19c">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00119">119</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00120"></a>00120 {
<a name="l00121"></a>00121     <span class="keywordtype">double</span> dx = 3;
<a name="l00122"></a>00122     <span class="keywordtype">double</span> dy = 1;
<a name="l00123"></a>00123 
<a name="l00124"></a>00124     <span class="keywordflow">if</span>(sens == 1)
<a name="l00125"></a>00125     {
<a name="l00126"></a>00126         fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;line x1=\&quot;%f\&quot; y1=\&quot;%f\&quot; x2=\&quot;%f\&quot; y2=\&quot;%f\&quot;  transform=\&quot;rotate(%f,%f,%f)\&quot; style=\&quot;stroke: black; stroke-width:0.25;\&quot;/&gt;\n&quot;</span>,x-dx,y-dy,x,y,rotation,x,y);
<a name="l00127"></a>00127         fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;line x1=\&quot;%f\&quot; y1=\&quot;%f\&quot; x2=\&quot;%f\&quot; y2=\&quot;%f\&quot;  transform=\&quot;rotate(%f,%f,%f)\&quot; style=\&quot;stroke: black; stroke-width:0.25;\&quot;/&gt;\n&quot;</span>,x-dx,y+dy,x,y,rotation,x,y);
<a name="l00128"></a>00128     }
<a name="l00129"></a>00129     <span class="keywordflow">else</span> <span class="comment">//for recursion</span>
<a name="l00130"></a>00130     {
<a name="l00131"></a>00131         fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;line x1=\&quot;%f\&quot; y1=\&quot;%f\&quot; x2=\&quot;%f\&quot; y2=\&quot;%f\&quot;  transform=\&quot;rotate(%f,%f,%f)\&quot; style=\&quot;stroke: black; stroke-width:0.25;\&quot;/&gt;\n&quot;</span>,x+dx,y-dy,x,y,rotation,x,y);
<a name="l00132"></a>00132         fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;line x1=\&quot;%f\&quot; y1=\&quot;%f\&quot; x2=\&quot;%f\&quot; y2=\&quot;%f\&quot;  transform=\&quot;rotate(%f,%f,%f)\&quot; style=\&quot;stroke: black; stroke-width:0.25;\&quot;/&gt;\n&quot;</span>,x+dx,y+dy,x,y,rotation,x,y);
<a name="l00133"></a>00133     }
<a name="l00134"></a>00134 }
</pre></div></p>

</div>
</div>
<a class="anchor" id="ad5b0c2ea97bb28505afb0a9cb7ac7218"></a><!-- doxytag: member="SVGDev::label" ref="ad5b0c2ea97bb28505afb0a9cb7ac7218" args="(double, double, const char *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::label </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">const char *&nbsp;</td>
          <td class="paramname"> <em>name</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>Implements <a class="el" href="classdevice.html#af10cdf9ab7e69b8a823b52d12fff8967">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00159">159</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>, and <a class="el" href="SVGDev_8cpp_source.html#l00033">xmlcode()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00160"></a>00160 {
<a name="l00161"></a>00161     <span class="keywordtype">char</span> name2[256];
<a name="l00162"></a>00162 <span class="comment">//  fprintf(fic_repr,&quot;&lt;text x=\&quot;%f\&quot; y=\&quot;%f\&quot; style=\&quot;font-family:Courier;font-weight:normal;font-style:normal;font-size:7\&quot;&gt;%s&lt;/text&gt;\n&quot;,x,y+2,xmlcode(name,name2));</span>
<a name="l00163"></a>00163     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;text x=\&quot;%f\&quot; y=\&quot;%f\&quot; font-family=\&quot;Arial\&quot; font-size=\&quot;7\&quot;&gt;%s&lt;/text&gt;\n&quot;</span>,x,y+2,<a class="code" href="SVGDev_8cpp.html#acc3c10bd3c0bd5e785a2a546659d7228">xmlcode</a>(<a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>,name2));
<a name="l00164"></a>00164 <span class="comment">//  fprintf(fic_repr,&quot;&lt;text x=\&quot;%f\&quot; y=\&quot;%f\&quot; font-family=\&quot;Courier\&quot; font-size=\&quot;7\&quot; fill=\&quot;#000000\&quot;&gt;%s&lt;/text&gt;\n&quot;,x,y+2,xmlcode(name,name2));</span>
<a name="l00165"></a>00165 }
</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="aed3484be36565e53a013a1fb024e700f"></a><!-- doxytag: member="SVGDev::markSens" ref="aed3484be36565e53a013a1fb024e700f" args="(double, double, int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::markSens </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>sens</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>Implements <a class="el" href="classdevice.html#a3c59d783b2377769785e63d105b54095">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00167">167</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00168"></a>00168 {
<a name="l00169"></a>00169     <span class="keywordtype">int</span> offset = (sens == 1) ? 2 : -2;
<a name="l00170"></a>00170     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;circle cx=\&quot;%f\&quot; cy=\&quot;%f\&quot; r=\&quot;1\&quot;/&gt;\n&quot;</span>, x+offset, y+offset);
<a name="l00171"></a>00171 }
</pre></div></p>

</div>
</div>
<a class="anchor" id="af958b7e7813cdb4eeea105956153e639"></a><!-- doxytag: member="SVGDev::rect" ref="af958b7e7813cdb4eeea105956153e639" args="(double, double, double, double, const char *, const char *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::rect </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">double&nbsp;</td>
          <td class="paramname"> <em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>link</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>Implements <a class="el" href="classdevice.html#af5bf15228fed032fe21c0692153be25a">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00089">89</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>, <a class="el" href="main_8cpp_source.html#l00111">gShadowBlur</a>, and <a class="el" href="SVGDev_8cpp_source.html#l00033">xmlcode()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00090"></a>00090 {
<a name="l00091"></a>00091     <span class="keywordtype">char</span> buf[512];
<a name="l00092"></a>00092     <span class="keywordflow">if</span> (link != 0 &amp;&amp; link[0]!=0) {
<a name="l00093"></a>00093         <span class="comment">// open the optional link tag</span>
<a name="l00094"></a>00094         fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;a xlink:href=\&quot;%s\&quot;&gt;\n&quot;</span>, <a class="code" href="SVGDev_8cpp.html#acc3c10bd3c0bd5e785a2a546659d7228">xmlcode</a>(link, buf));
<a name="l00095"></a>00095     }
<a name="l00096"></a>00096     <span class="comment">// draw the shadow</span>
<a name="l00097"></a>00097     <span class="keywordflow">if</span> (<a class="code" href="SVGDev_8cpp.html#a595b1bcec2a76e15debe16ac5ab703d4">gShadowBlur</a>) {
<a name="l00098"></a>00098         fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;rect x=\&quot;%f\&quot; y=\&quot;%f\&quot; width=\&quot;%f\&quot; height=\&quot;%f\&quot; rx=\&quot;0\&quot; ry=\&quot;0\&quot; style=\&quot;stroke:none;fill:#888888;;filter:url(#filter);\&quot;/&gt;\n&quot;</span>,x+1,y+1,l,h);
<a name="l00099"></a>00099     } <span class="keywordflow">else</span> {
<a name="l00100"></a>00100         fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;rect x=\&quot;%f\&quot; y=\&quot;%f\&quot; width=\&quot;%f\&quot; height=\&quot;%f\&quot; rx=\&quot;0\&quot; ry=\&quot;0\&quot; style=\&quot;stroke:none;fill:#cccccc;\&quot;/&gt;\n&quot;</span>,x+1,y+1,l,h);
<a name="l00101"></a>00101     }
<a name="l00102"></a>00102 
<a name="l00103"></a>00103     <span class="comment">// draw the rectangle</span>
<a name="l00104"></a>00104     <span class="comment">//fprintf(fic_repr,&quot;&lt;rect x=\&quot;%f\&quot; y=\&quot;%f\&quot; width=\&quot;%f\&quot; height=\&quot;%f\&quot; rx=\&quot;0\&quot; ry=\&quot;0\&quot; style=\&quot;shape-rendering: crispEdges; stroke: black;stroke-width:0.25;fill:%s;\&quot;/&gt;\n&quot;, x, y, l, h, color);</span>
<a name="l00105"></a>00105     <span class="comment">//fprintf(fic_repr,&quot;&lt;rect x=\&quot;%f\&quot; y=\&quot;%f\&quot; width=\&quot;%f\&quot; height=\&quot;%f\&quot; rx=\&quot;0\&quot; ry=\&quot;0\&quot; style=\&quot;stroke: black;stroke-width:0.25;fill:%s;\&quot;/&gt;\n&quot;, x, y, l, h, color);</span>
<a name="l00106"></a>00106     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;rect x=\&quot;%f\&quot; y=\&quot;%f\&quot; width=\&quot;%f\&quot; height=\&quot;%f\&quot; rx=\&quot;0\&quot; ry=\&quot;0\&quot; style=\&quot;stroke:none;fill:%s;\&quot;/&gt;\n&quot;</span>, x, y, l, h, color);
<a name="l00107"></a>00107     <span class="keywordflow">if</span> (link != 0 &amp;&amp; link[0]!=0) {
<a name="l00108"></a>00108         <span class="comment">// close the optional link tag</span>
<a name="l00109"></a>00109         fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;/a&gt;\n&quot;</span>);
<a name="l00110"></a>00110     }
<a name="l00111"></a>00111 
<a name="l00112"></a>00112 }
</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="a3dd8a47f184dd41502be3c3162f5370f"></a><!-- doxytag: member="SVGDev::rond" ref="a3dd8a47f184dd41502be3c3162f5370f" args="(double, double, double)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::rond </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">double&nbsp;</td>
          <td class="paramname"> <em>rayon</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>Implements <a class="el" href="classdevice.html#ac4b731ee6de1f6283b4b92b4d5b8df2a">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00114">114</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00115"></a>00115 {
<a name="l00116"></a>00116     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;circle cx=\&quot;%f\&quot; cy=\&quot;%f\&quot; r=\&quot;%f\&quot;/&gt;\n&quot;</span>,x,y,rayon);
<a name="l00117"></a>00117 }
</pre></div></p>

</div>
</div>
<a class="anchor" id="a286722261b3144a1c7b6172efd46faaa"></a><!-- doxytag: member="SVGDev::text" ref="a286722261b3144a1c7b6172efd46faaa" args="(double, double, const char *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::text </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">const char *&nbsp;</td>
          <td class="paramname"> <em>name</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>Implements <a class="el" href="classdevice.html#a4aec578878db9551e5538639d6b0339d">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00152">152</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>, and <a class="el" href="SVGDev_8cpp_source.html#l00033">xmlcode()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00153"></a>00153 {
<a name="l00154"></a>00154     <span class="keywordtype">char</span> name2[256];
<a name="l00155"></a>00155     <span class="comment">//fprintf(fic_repr,&quot;&lt;text x=\&quot;%f\&quot; y=\&quot;%f\&quot; font-family=\&quot;Courier\&quot; font-size=\&quot;8\&quot; text-anchor=\&quot;middle\&quot;&gt;%s&lt;/text&gt;\n&quot;,x,y+3,xmlcode(name,name2));</span>
<a name="l00156"></a>00156     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;text x=\&quot;%f\&quot; y=\&quot;%f\&quot; font-family=\&quot;Arial\&quot; font-size=\&quot;7\&quot; text-anchor=\&quot;middle\&quot; fill=\&quot;#FFFFFF\&quot;&gt;%s&lt;/text&gt;\n&quot;</span>,x,y+2,<a class="code" href="SVGDev_8cpp.html#acc3c10bd3c0bd5e785a2a546659d7228">xmlcode</a>(<a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>,name2));
<a name="l00157"></a>00157 }
</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="a9eb8bb7840b44f51c4dad62280d8788d"></a><!-- doxytag: member="SVGDev::trait" ref="a9eb8bb7840b44f51c4dad62280d8788d" args="(double, double, double, double)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SVGDev::trait </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y2</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>Implements <a class="el" href="classdevice.html#a9fa8ce6f7449c3120908e75880f6b4e4">device</a>.</p>

<p>Definition at line <a class="el" href="SVGDev_8cpp_source.html#l00141">141</a> of file <a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a>.</p>

<p>References <a class="el" href="device_8h_source.html#l00048">device::fic_repr</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00142"></a>00142 {
<a name="l00143"></a>00143     <span class="comment">//fprintf(fic_repr,&quot;&lt;line x1=\&quot;%f\&quot; y1=\&quot;%f\&quot; x2=\&quot;%f\&quot; y2=\&quot;%f\&quot;  style=\&quot;shape-rendering: crispEdges; stroke:black; stroke-linecap:round; stroke-width:0.25;\&quot;/&gt;\n&quot;,x1,y1,x2,y2);</span>
<a name="l00144"></a>00144     fprintf(<a class="code" href="classdevice.html#a0dd0aac8a55f20630492e8ae1dd3259d">fic_repr</a>,<span class="stringliteral">&quot;&lt;line x1=\&quot;%f\&quot; y1=\&quot;%f\&quot; x2=\&quot;%f\&quot; y2=\&quot;%f\&quot;  style=\&quot;stroke:black; stroke-linecap:round; stroke-width:0.25;\&quot;/&gt;\n&quot;</span>,x1,y1,x2,y2);
<a name="l00145"></a>00145 }
</pre></div></p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="SVGDev_8h_source.html">SVGDev.h</a></li>
<li><a class="el" href="SVGDev_8cpp_source.html">SVGDev.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:24 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>