Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 1843

libogre1-devel-0.13.0-1mdk.i586.rpm

<html>
<head>
<title> TemplateOgre::Controller class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<link type="text/css" rel="stylesheet" href="style.css">
</head>

<body>
<!-- Generated by Doxygen 1.2.16 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>Ogre::Controller&lt; T &gt;  Class Template Reference</h1>Instances of this class 'control' the value of another object in the system. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreController_8h-source.html">OgreController.h</a>&gt;</code>
<p>
Collaboration diagram for Ogre::Controller&lt; T &gt;:<p><center><img src="classOgre_1_1Controller__coll__graph.png" border="0" usemap="#Ogre_1_1Controller_3_01T_01_4__coll__map" alt="Collaboration graph"></center>
<map name="Ogre_1_1Controller_3_01T_01_4__coll__map">
<area href="classOgre_1_1SharedPtr.html" shape="rect" coords="7,217,260,199" alt="">
<area href="classOgre_1_1ControllerValue.html" shape="rect" coords="49,127,217,108" alt="">
<area href="classOgre_1_1SharedPtr.html" shape="rect" coords="284,217,553,199" alt="">
<area href="classOgre_1_1ControllerFunction.html" shape="rect" coords="325,127,512,108" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1Controller-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera0">Controller</a> (<a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt; T &gt; &gt; src, <a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt; T &gt; &gt; dest, <a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a>&lt; T &gt; &gt; func)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Usual constructor.</em> <a href="#Ogre_1_1Controllera0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera1">~Controller</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Default d-tor.</em> <a href="#Ogre_1_1Controllera1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera2">setSource</a> (<a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt; T &gt; &gt; src)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the input controller value.</em> <a href="#Ogre_1_1Controllera2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt;<br>
 T &gt; &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera3">getSource</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the input controller value.</em> <a href="#Ogre_1_1Controllera3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera4">setDestination</a> (<a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt; T &gt; &gt; dest)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the output controller value.</em> <a href="#Ogre_1_1Controllera4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt;<br>
 T &gt; &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera5">getDestination</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the output controller value.</em> <a href="#Ogre_1_1Controllera5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera6">getEnabled</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns true if this controller is currently enabled.</em> <a href="#Ogre_1_1Controllera6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera7">setEnabled</a> (bool enabled)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets whether this controller is enabled.</em> <a href="#Ogre_1_1Controllera7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera8">setFunction</a> (<a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a>&lt; T &gt; &gt; func)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the function object to be used by this controller.</em> <a href="#Ogre_1_1Controllera8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a>&lt;<br>
 T &gt; &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera9">getFunction</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns a pointer to the function object used by this controller.</em> <a href="#Ogre_1_1Controllera9"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllera10">update</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Tells this controller to map it's input controller value to it's output controller value, via the controller function.</em> <a href="#Ogre_1_1Controllera10"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt;<br>
 T &gt; &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllern0">mSource</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Source value.</em> <a href="#Ogre_1_1Controllern0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt;<br>
 T &gt; &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllern1">mDest</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Destination value.</em> <a href="#Ogre_1_1Controllern1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a>&lt;<br>
 T &gt; &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllern2">mFunc</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Function.</em> <a href="#Ogre_1_1Controllern2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Controller.html#Ogre_1_1Controllern3">mEnabled</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em><a class="el" href="classOgre_1_1Controller.html">Controller</a> is enabled or not.</em> <a href="#Ogre_1_1Controllern3"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename T&gt;<br>
 class Ogre::Controller&lt; T &gt;</h3>

Instances of this class 'control' the value of another object in the system.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 <a class="el" href="classOgre_1_1Controller.html">Controller</a> classes are used to manage the values of object automatically based on the value of some input. For example, a <a class="el" href="classOgre_1_1Controller.html">Controller</a> could animate a texture by controlling the current frame of the texture based on time, or a different <a class="el" href="classOgre_1_1Controller.html">Controller</a> could change the colour of a material used for a spaceship shield mesh based on the remaining shield power level of the ship. 
<p>
 The <a class="el" href="classOgre_1_1Controller.html">Controller</a> is an intentionally abstract concept - it can generate values based on input and a function, which can either be one of the standard ones supplied, or a function can be 'plugged in' for custom behaviour - see the <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a> class for details. Both the input and output values are via <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a> objects, meaning that any value can be both input and output of the controller. 
<p>
 Whilst this is very flexible, it can be a little bit confusing so to make it simpler the most often used controller setups are available by calling methods on the <a class="el" href="classOgre_1_1ControllerManager.html">ControllerManager</a> object. </dl><dl compact><dt><b>
See also: </b><dd>
 <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a> </dl>
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00122">122</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="Ogre_1_1Controllera0" doxytag="Ogre::Controller::Controller"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> Ogre::Controller&lt; T &gt;::Controller </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt; T &gt; &gt;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>src</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt; T &gt; &gt;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>dest</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a>&lt; T &gt; &gt;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>func</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Usual constructor.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Requires source and destination values, and a function object. None of these are destroyed with the <a class="el" href="classOgre_1_1Controller.html">Controller</a> when it is deleted (they can be shared) so you must delete these as appropriate. </dl>
<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00142">142</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera1" doxytag="Ogre::Controller::~Controller"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> virtual Ogre::Controller&lt; T &gt;::~Controller </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Default d-tor.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00151">151</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="Ogre_1_1Controllera5" doxytag="Ogre::Controller::getDestination"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt;T&gt; &gt; Ogre::Controller&lt; T &gt;::getDestination </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the output controller value.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00171">171</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera6" doxytag="Ogre::Controller::getEnabled"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> bool Ogre::Controller&lt; T &gt;::getEnabled </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns true if this controller is currently enabled.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00177">177</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera9" doxytag="Ogre::Controller::getFunction"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a>&lt;T&gt; &gt; Ogre::Controller&lt; T &gt;::getFunction </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns a pointer to the function object used by this controller.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00197">197</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera3" doxytag="Ogre::Controller::getSource"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt;T&gt; &gt; Ogre::Controller&lt; T &gt;::getSource </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the input controller value.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00160">160</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera4" doxytag="Ogre::Controller::setDestination"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::Controller&lt; T &gt;::setDestination </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt; T &gt; &gt;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>dest</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the output controller value.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00165">165</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera7" doxytag="Ogre::Controller::setEnabled"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::Controller&lt; T &gt;::setEnabled </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>enabled</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether this controller is enabled.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00183">183</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera8" doxytag="Ogre::Controller::setFunction"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::Controller&lt; T &gt;::setFunction </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a>&lt; T &gt; &gt;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>func</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the function object to be used by this controller.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00190">190</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera2" doxytag="Ogre::Controller::setSource"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::Controller&lt; T &gt;::setSource </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt; T &gt; &gt;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>src</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the input controller value.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00155">155</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllera10" doxytag="Ogre::Controller::update"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::Controller&lt; T &gt;::update </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Tells this controller to map it's input controller value to it's output controller value, via the controller function.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 This method is called automatically every frame by <a class="el" href="classOgre_1_1ControllerManager.html">ControllerManager</a>. </dl>
<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00207">207</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.
<p>
Referenced by <a class="el" href="OgreControllerManager_8cpp-source.html#l00057">Ogre::ControllerManager::updateAllControllers</a>().    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="Ogre_1_1Controllern1" doxytag="Ogre::Controller::mDest"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt;T&gt; &gt; Ogre::Controller&lt; T &gt;::mDest<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destination value.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00128">128</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllern3" doxytag="Ogre::Controller::mEnabled"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> bool Ogre::Controller&lt; T &gt;::mEnabled<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<a class="el" href="classOgre_1_1Controller.html">Controller</a> is enabled or not.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00132">132</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllern2" doxytag="Ogre::Controller::mFunc"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a>&lt;T&gt; &gt; Ogre::Controller&lt; T &gt;::mFunc<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Function.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00130">130</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1Controllern0" doxytag="Ogre::Controller::mSource"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" colspan="4">
template&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt; <a class="el" href="classOgre_1_1ControllerValue.html">ControllerValue</a>&lt;T&gt; &gt; Ogre::Controller&lt; T &gt;::mSource<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Source value.
<p>

<p>
Definition at line <a class="el" href="OgreController_8h-source.html#l00126">126</a> of file <a class="el" href="OgreController_8h-source.html">OgreController.h</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="OgreController_8h-source.html">OgreController.h</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:17:07 2004
</p>
</body>
</html>