Sophie

Sophie

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

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

<html>
<head>
<title>Ogre::UserDefinedObject 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::UserDefinedObject  Class Reference</h1>This class is designed to be subclassed by OGRE users, to allow them to associate their own application objects with <a class="el" href="classOgre_1_1MovableObject.html">MovableObject</a> instances in the engine. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreUserDefinedObject_8h-source.html">OgreUserDefinedObject.h</a>&gt;</code>
<p>
<a href="classOgre_1_1UserDefinedObject-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_1UserDefinedObject.html#Ogre_1_1UserDefinedObjecta0">UserDefinedObject</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Standard constructor.</em> <a href="#Ogre_1_1UserDefinedObjecta0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual long&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1UserDefinedObject.html#Ogre_1_1UserDefinedObjecta1">getTypeID</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return a number identifying the type of user defined object.</em> <a href="#Ogre_1_1UserDefinedObjecta1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1UserDefinedObject.html#Ogre_1_1UserDefinedObjecta2">getTypeName</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return a string identifying the type of user defined object.</em> <a href="#Ogre_1_1UserDefinedObjecta2"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class is designed to be subclassed by OGRE users, to allow them to associate their own application objects with <a class="el" href="classOgre_1_1MovableObject.html">MovableObject</a> instances in the engine.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 It's always been suggested that an OGRE application would likley comprise a number of game objects which would keep pointers to OGRE objects in order to maintain the link. However, in some cases it would be very useful to be able to navigate directly from an OGRE instance back to a custom application object. This abstract class exists for this purpose; MovableObjects hold a pointer to a <a class="el" href="classOgre_1_1UserDefinedObject.html">UserDefinedObject</a> instance, which application writers subclass in order to include their own attributes. Your game objects themselves may be subclasses of this class, or your subclasses may merely be a link between them. 
<p>
 Because OGRE never uses instances of this object itself, there is very little definition to this class; the application is expected to add all the detail it wants. However, as a hint, and for debugging purposes, this class does define a 'type id', which it is recommended you use to differentiate between your subclasses, if you have more than one type. </dl>
<p>

<p>
Definition at line <a class="el" href="OgreUserDefinedObject_8h-source.html#l00052">52</a> of file <a class="el" href="OgreUserDefinedObject_8h-source.html">OgreUserDefinedObject.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="Ogre_1_1UserDefinedObjecta0" doxytag="Ogre::UserDefinedObject::UserDefinedObject"></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" nowrap valign="top"> Ogre::UserDefinedObject::UserDefinedObject </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></td>
        </tr>

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

<p>
Standard constructor.
<p>

<p>
Definition at line <a class="el" href="OgreUserDefinedObject_8cpp-source.html#l00032">32</a> of file <a class="el" href="OgreUserDefinedObject_8cpp-source.html">OgreUserDefinedObject.cpp</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="Ogre_1_1UserDefinedObjecta1" doxytag="Ogre::UserDefinedObject::getTypeID"></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" nowrap valign="top"> long Ogre::UserDefinedObject::getTypeID </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<code> [virtual]</code></td>
        </tr>

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

<p>
Return a number identifying the type of user defined object.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Can be used to differentiate between different types of object which you attach to OGRE <a class="el" href="classOgre_1_1MovableObject.html">MovableObject</a> instances. Recommend you override this in your classes if you use more than one type of object. 
<p>
 Alternatively, you can override the getTypeName method and use that instead;  that version is a litle more friendly and easier to scope, but obviously  slightly less efficient. You choose which you prefer. </dl>
<p>
Definition at line <a class="el" href="OgreUserDefinedObject_8cpp-source.html#l00036">36</a> of file <a class="el" href="OgreUserDefinedObject_8cpp-source.html">OgreUserDefinedObject.cpp</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1UserDefinedObjecta2" doxytag="Ogre::UserDefinedObject::getTypeName"></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" nowrap valign="top"> const <a class="el" href="classOgre_1_1String.html">String</a> &amp; Ogre::UserDefinedObject::getTypeName </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<code> [virtual]</code></td>
        </tr>

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

<p>
Return a string identifying the type of user defined object.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Can be used to differentiate between different types of object which you attach to OGRE <a class="el" href="classOgre_1_1MovableObject.html">MovableObject</a> instances. Recommend you override this in your classes if you use more than one type of object. 
<p>
 Alternatively, you can override the getTypeID method and use that instead;  that version is a litle more efficient, but obviously  slightly less easy to read. You choose which you prefer. </dl>
<p>
Definition at line <a class="el" href="OgreUserDefinedObject_8cpp-source.html#l00040">40</a> of file <a class="el" href="OgreUserDefinedObject_8cpp-source.html">OgreUserDefinedObject.cpp</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="OgreUserDefinedObject_8h-source.html">OgreUserDefinedObject.h</a><li><a class="el" href="OgreUserDefinedObject_8cpp-source.html">OgreUserDefinedObject.cpp</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:21:13 2004
</p>
</body>
</html>