Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1cde9f5eeb6e9b0b43fefba286186769 > files > 37

mercator-devel-0.3.0-4.fc15.i686.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>Mercator: Effector.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Mercator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">Effector.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This file may be redistributed and modified only under the terms of</span>
<a name="l00002"></a>00002 <span class="comment">// the GNU General Public License (See COPYING for details).</span>
<a name="l00003"></a>00003 <span class="comment">// Copyright (C) 2010 Alistair Riddoch</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef MERCATOR_EFFECTOR_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define MERCATOR_EFFECTOR_H</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;wfmath/axisbox.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;wfmath/polygon.h&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="keyword">namespace </span>Mercator
<a name="l00014"></a>00014 {
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">class </span>Segment;
<a name="l00017"></a>00017 <span class="keyword">class </span>Shader;
<a name="l00018"></a>00018 
<a name="l00025"></a><a class="code" href="classMercator_1_1Effector.html">00025</a> <span class="keyword">class </span><a class="code" href="classMercator_1_1Effector.html" title="Device which effects a change in the terrain.">Effector</a>
<a name="l00026"></a>00026 {
<a name="l00027"></a>00027   <span class="keyword">public</span>:
<a name="l00028"></a><a class="code" href="classMercator_1_1Effector_1_1Context.html">00028</a>     <span class="keyword">class </span><a class="code" href="classMercator_1_1Effector_1_1Context.html">Context</a> {
<a name="l00029"></a>00029       <span class="keyword">public</span>:
<a name="l00030"></a>00030         <a class="code" href="classMercator_1_1Effector_1_1Context.html">Context</a>();
<a name="l00031"></a>00031 
<a name="l00032"></a>00032         <span class="keyword">virtual</span> ~<a class="code" href="classMercator_1_1Effector_1_1Context.html">Context</a>();
<a name="l00033"></a>00033 
<a name="l00034"></a>00034         <span class="keyword">const</span> std::string &amp; id() { <span class="keywordflow">return</span> m_id; }
<a name="l00035"></a>00035 
<a name="l00036"></a>00036         <span class="keywordtype">void</span> setId(<span class="keyword">const</span> std::string &amp;);
<a name="l00037"></a>00037       <span class="keyword">protected</span>:
<a name="l00038"></a>00038         std::string m_id;
<a name="l00039"></a>00039     };
<a name="l00040"></a>00040 
<a name="l00041"></a>00041     <a class="code" href="classMercator_1_1Effector_1_1Context.html">Context</a> * context()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classMercator_1_1Effector.html#a9bd5b581ffab59a56fe1272dc1ad438b" title="The application context of this effector.">m_context</a>; }
<a name="l00042"></a>00042 
<a name="l00043"></a>00043     <span class="keywordtype">void</span> setContext(Context *);
<a name="l00044"></a>00044 
<a name="l00046"></a><a class="code" href="classMercator_1_1Effector.html#a65b1ab0b53c32cb45bc1523b387437c2">00046</a>     <span class="keyword">const</span> WFMath::AxisBox&lt;2&gt; &amp; <a class="code" href="classMercator_1_1Effector.html#a65b1ab0b53c32cb45bc1523b387437c2" title="Accessor for the bounding box of the geometric shape.">bbox</a>()<span class="keyword"> const</span>
<a name="l00047"></a>00047 <span class="keyword">    </span>{
<a name="l00048"></a>00048         <span class="keywordflow">return</span> <a class="code" href="classMercator_1_1Effector.html#a1dbe5e9d9d6ba69570f837dab8ead1e3" title="The bounding box of the geometric shape.">m_box</a>;
<a name="l00049"></a>00049     }
<a name="l00050"></a>00050 
<a name="l00051"></a>00051     <span class="keyword">virtual</span> ~<a class="code" href="classMercator_1_1Effector.html" title="Device which effects a change in the terrain.">Effector</a>() = 0;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> checkIntersects(<span class="keyword">const</span> <a class="code" href="classMercator_1_1Segment.html" title="Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...">Segment</a>&amp; s) <span class="keyword">const</span> = 0;
<a name="l00054"></a>00054 
<a name="l00055"></a>00055     <span class="keyword">virtual</span> <span class="keywordtype">int</span> addToSegment(<a class="code" href="classMercator_1_1Segment.html" title="Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...">Segment</a> &amp;) <span class="keyword">const</span> = 0;
<a name="l00056"></a>00056     <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateToSegment(<a class="code" href="classMercator_1_1Segment.html" title="Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...">Segment</a> &amp;) <span class="keyword">const</span> = 0;
<a name="l00057"></a>00057     <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeFromSegment(<a class="code" href="classMercator_1_1Segment.html" title="Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...">Segment</a> &amp;) <span class="keyword">const</span> = 0;
<a name="l00058"></a>00058     
<a name="l00059"></a>00059   <span class="keyword">protected</span>:
<a name="l00061"></a>00061     <a class="code" href="classMercator_1_1Effector.html#ac196bef39c97474f01e330981a51d809" title="Constructor.">Effector</a>();
<a name="l00062"></a>00062 
<a name="l00064"></a>00064     <a class="code" href="classMercator_1_1Effector.html#ac196bef39c97474f01e330981a51d809" title="Constructor.">Effector</a>(<span class="keyword">const</span> <a class="code" href="classMercator_1_1Effector.html" title="Device which effects a change in the terrain.">Effector</a> &amp;);
<a name="l00065"></a>00065 
<a name="l00067"></a>00067     <a class="code" href="classMercator_1_1Effector.html" title="Device which effects a change in the terrain.">Effector</a> &amp; <a class="code" href="classMercator_1_1Effector.html#a7b504e4f50b0c6ecb14cf8189541a728" title="Assignment.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classMercator_1_1Effector.html" title="Device which effects a change in the terrain.">Effector</a> &amp;);
<a name="l00068"></a>00068 
<a name="l00070"></a><a class="code" href="classMercator_1_1Effector.html#a1dbe5e9d9d6ba69570f837dab8ead1e3">00070</a>     WFMath::AxisBox&lt;2&gt; <a class="code" href="classMercator_1_1Effector.html#a1dbe5e9d9d6ba69570f837dab8ead1e3" title="The bounding box of the geometric shape.">m_box</a>;
<a name="l00071"></a>00071     
<a name="l00073"></a><a class="code" href="classMercator_1_1Effector.html#a9bd5b581ffab59a56fe1272dc1ad438b">00073</a>     <a class="code" href="classMercator_1_1Effector_1_1Context.html">Context</a> * <a class="code" href="classMercator_1_1Effector.html#a9bd5b581ffab59a56fe1272dc1ad438b" title="The application context of this effector.">m_context</a>;
<a name="l00074"></a>00074 };
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 }
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="preprocessor">#endif // of MERCATOR_EFFECTOR_H</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated for Mercator by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>