Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 2066

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<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><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_dd37c879693a21e1d65a2840272c12ab.html">graphics</a>
  </div>
</div>
<div class="contents">
<h1>SymbolType.cxx</h1><a href="SymbolType_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="SymbolType_8h.html" title="SymbolType enumeration.">SymbolType.h</a>&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">namespace </span>hippodraw {
<a name="l00017"></a>00017 
<a name="l00018"></a><a class="code" href="namespacehippodraw_1_1Symbol.html">00018</a>   <span class="keyword">namespace </span>Symbol {
<a name="l00019"></a>00019 
<a name="l00025"></a><a class="code" href="namespacehippodraw_1_1Symbol.html#a95297d89b70967ab37e9333ec7a48dca">00025</a>     <span class="keyword">static</span> <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Enumeration of the type of symbols supported by this class.">Type</a> <a class="code" href="namespacehippodraw_1_1Symbol.html#a95297d89b70967ab37e9333ec7a48dca" title="An array to allow conversion of integer to enumeration.">types</a> [] = { <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a4233fbf0cafb86abcee94b38d769fc59">SQUARE</a>, <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a422a101b5abb93b446234c65ff7efc29">SOLIDSQUARE</a>,
<a name="l00026"></a>00026                              <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a87fe59ef12c3d13dc2a4d14c9b16c1f9">PLUS</a>, <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a17bf78adaa676d402dfe64d4513475e4">TIMES</a>,
<a name="l00027"></a>00027                              <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a2fd33892864d1c342d3bead2f2d9ad56">TRIANGLE</a>, <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7ac75b4eafe14fef81b021478ab04a69a0">FILLED_TRIANGLE</a>,
<a name="l00028"></a>00028                              <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7aa79c827759ea48f0735386c4b1188911">CIRCLE</a>, <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a530cf6b112bd978cadb4526dbc5bd044">FILLED_CIRCLE</a>,
<a name="l00029"></a>00029                              <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a59810d2438e63be8bce699880cb6dfad">INVISIBLE</a> };
<a name="l00030"></a>00030 
<a name="l00031"></a>00031     <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Enumeration of the type of symbols supported by this class.">Type</a> <a class="code" href="namespacehippodraw_1_1Symbol.html#a9f79b82b20945fae51b4ef52c8a05fd8">convert</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacenum__util.html#af7e893a8c6a5f6a426480fc85cda4fa1">type</a> )
<a name="l00032"></a>00032     {
<a name="l00033"></a>00033       type = type &gt; <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a59810d2438e63be8bce699880cb6dfad">INVISIBLE</a> ? <a class="code" href="namespacehippodraw_1_1Symbol.html#a1d1cfd8ffb84e947f82999c682b666a7a59810d2438e63be8bce699880cb6dfad">INVISIBLE</a> : type;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035       <span class="keywordflow">return</span> <a class="code" href="namespacehippodraw_1_1Symbol.html#a95297d89b70967ab37e9333ec7a48dca" title="An array to allow conversion of integer to enumeration.">types</a> [ type ];
<a name="l00036"></a>00036     }
<a name="l00037"></a>00037 
<a name="l00038"></a>00038   }
<a name="l00039"></a>00039 }
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>