<html> <head> <title>Ogre::HeightmapTerrainPageSource 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.3.6 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> <h1>Ogre::HeightmapTerrainPageSource Class Reference</h1>Specialisation of the <a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a> class to provide tiles loaded from a 2D greyscale image. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>></code> <p> Inheritance diagram for Ogre::HeightmapTerrainPageSource:<p><center><img src="classOgre_1_1HeightmapTerrainPageSource__inherit__graph.png" border="0" usemap="#Ogre_1_1HeightmapTerrainPageSource__inherit__map" alt="Inheritance graph"></center> <map name="Ogre_1_1HeightmapTerrainPageSource__inherit__map"> <area href="classOgre_1_1TerrainPageSource.html" shape="rect" coords="39,17,199,36" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1HeightmapTerrainPageSource-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcea0">HeightmapTerrainPageSource</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcea1">~HeightmapTerrainPageSource</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcea2">shutdown</a> (void)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a>. <a href="#Ogre_1_1HeightmapTerrainPageSourcea2"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcea3">requestPage</a> (<a class="el" href="namespaceOgre.html#a422">ushort</a> x, <a class="el" href="namespaceOgre.html#a422">ushort</a> y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a>. <a href="#Ogre_1_1HeightmapTerrainPageSourcea3"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcea4">expirePage</a> (<a class="el" href="namespaceOgre.html#a422">ushort</a> x, <a class="el" href="namespaceOgre.html#a422">ushort</a> y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a>. <a href="#Ogre_1_1HeightmapTerrainPageSourcea4"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcea5">initialise</a> (<a class="el" href="classOgre_1_1TerrainSceneManager.html">TerrainSceneManager</a> *tsm, <a class="el" href="namespaceOgre.html#a422">ushort</a> tileSize, <a class="el" href="namespaceOgre.html#a422">ushort</a> pageSize, bool asyncLoading, <a class="el" href="namespaceOgre.html#a560">TerrainPageSourceOptionList</a> &optionList)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a>. <a href="#Ogre_1_1HeightmapTerrainPageSourcea5"></a><br><br></td></tr> <tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcee0">addListener</a> (<a class="el" href="classOgre_1_1TerrainPageSourceListener.html">TerrainPageSourceListener</a> *pl)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Register a class which will be called back whenever a new page is available. <a href="#Ogre_1_1TerrainPageSourcee0"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcee1">removeListener</a> (<a class="el" href="classOgre_1_1TerrainPageSourceListener.html">TerrainPageSourceListener</a> *pl)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unregister a class which will be called back whenever a new page is available. <a href="#Ogre_1_1TerrainPageSourcee1"></a><br><br></td></tr> <tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourceb0">loadHeightmap</a> (void)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Load a heightmap. <a href="#Ogre_1_1HeightmapTerrainPageSourceb0"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1TerrainPage.html">TerrainPage</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourceb0">buildPage</a> (<a class="el" href="namespaceOgre.html#a420">Real</a> *heightData, const <a class="el" href="classOgre_1_1MaterialPtr.html">MaterialPtr</a> &pMaterial)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Utility method for building a page of tiles based on some source data, wherever that may have come from. <a href="#Ogre_1_1TerrainPageSourceb0"></a><br><br></td></tr> <tr><td colspan=2><br><h2>Static Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcef0">firePageConstructed</a> (size_t pagex, size_t pagez, <a class="el" href="namespaceOgre.html#a420">Real</a> *heightData)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Internal method for firing pageContructed events. <a href="#Ogre_1_1TerrainPageSourcef0"></a><br><br></td></tr> <tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep0">mIsRaw</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Is this input RAW? <a href="#Ogre_1_1HeightmapTerrainPageSourcep0"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep1">mFlipTerrain</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Should we flip terrain vertically? <a href="#Ogre_1_1HeightmapTerrainPageSourcep1"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Image.html">Image</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep2">mImage</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classOgre_1_1Image.html">Image</a> containing the source heightmap if loaded from non-RAW. <a href="#Ogre_1_1HeightmapTerrainPageSourcep2"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1SharedPtr.html">MemoryDataStreamPtr</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep3">mRawData</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Arbitrary data loaded from RAW. <a href="#Ogre_1_1HeightmapTerrainPageSourcep3"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1TerrainPage.html">TerrainPage</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep4">mPage</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The (single) terrain page this source will provide. <a href="#Ogre_1_1HeightmapTerrainPageSourcep4"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a426">String</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep5">mSource</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Source file name. <a href="#Ogre_1_1HeightmapTerrainPageSourcep5"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>size_t </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep6">mRawSize</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Manual size if source is RAW. <a href="#Ogre_1_1HeightmapTerrainPageSourcep6"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a421">uchar</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep7">mRawBpp</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Manual bpp if source is RAW. <a href="#Ogre_1_1HeightmapTerrainPageSourcep7"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1TerrainSceneManager.html">TerrainSceneManager</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcep0">mSceneManager</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Link back to parent manager. <a href="#Ogre_1_1TerrainPageSourcep0"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcep1">mAsyncLoading</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Has asynchronous loading been requested? <a href="#Ogre_1_1TerrainPageSourcep1"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned short </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcep2">mPageSize</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The expected size of the page in number of vertices. <a href="#Ogre_1_1TerrainPageSourcep2"></a><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned short </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcep3">mTileSize</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The expected size of a tile in number of vertices. <a href="#Ogre_1_1TerrainPageSourcep3"></a><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Specialisation of the <a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a> class to provide tiles loaded from a 2D greyscale image. <p> <dl compact><dt><b>Remarks:</b></dt><dd>This is a simple tile provider that does not support paging; it is assumed that the entire heightmap is loaded as one page. </dd></dl> <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00040">40</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcea0" doxytag="Ogre::HeightmapTerrainPageSource::HeightmapTerrainPageSource" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Ogre::HeightmapTerrainPageSource::HeightmapTerrainPageSource </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcea1" doxytag="Ogre::HeightmapTerrainPageSource::~HeightmapTerrainPageSource" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Ogre::HeightmapTerrainPageSource::~<a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html">HeightmapTerrainPageSource</a> </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="Ogre_1_1TerrainPageSourcee0" doxytag="Ogre::HeightmapTerrainPageSource::addListener" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::TerrainPageSource::addListener </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1TerrainPageSourceListener.html">TerrainPageSourceListener</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pl</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Register a class which will be called back whenever a new page is available. <p> <dl compact><dt><b>Remarks:</b></dt><dd>Since this method is static, it applies to any page source which is in active use; there is no need to register one per source. </dd></dl> </td> </tr> </table> <a class="anchor" name="Ogre_1_1TerrainPageSourceb0" doxytag="Ogre::HeightmapTerrainPageSource::buildPage" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1TerrainPage.html">TerrainPage</a>* Ogre::TerrainPageSource::buildPage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a420">Real</a> * </td> <td class="mdname" nowrap> <em>heightData</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const <a class="el" href="classOgre_1_1MaterialPtr.html">MaterialPtr</a> & </td> <td class="mdname" nowrap> <em>pMaterial</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected, virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Utility method for building a page of tiles based on some source data, wherever that may have come from. <p> <dl compact><dt><b>Remarks:</b></dt><dd>It is expected that this height data is represented in the range [0..1], which will be duly scaled by the TerrainRenderables it creates. </dd></dl> </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcea4" doxytag="Ogre::HeightmapTerrainPageSource::expirePage" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::HeightmapTerrainPageSource::expirePage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a422">ushort</a> </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="namespaceOgre.html#a422">ushort</a> </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a>. <p> <p> Implements <a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcea5">Ogre::TerrainPageSource</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1TerrainPageSourcef0" doxytag="Ogre::HeightmapTerrainPageSource::firePageConstructed" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::TerrainPageSource::firePageConstructed </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">size_t </td> <td class="mdname" nowrap> <em>pagex</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>pagez</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="namespaceOgre.html#a420">Real</a> * </td> <td class="mdname" nowrap> <em>heightData</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static, protected, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Internal method for firing pageContructed events. <p> </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcea5" doxytag="Ogre::HeightmapTerrainPageSource::initialise" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::HeightmapTerrainPageSource::initialise </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1TerrainSceneManager.html">TerrainSceneManager</a> * </td> <td class="mdname" nowrap> <em>tsm</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="namespaceOgre.html#a422">ushort</a> </td> <td class="mdname" nowrap> <em>tileSize</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="namespaceOgre.html#a422">ushort</a> </td> <td class="mdname" nowrap> <em>pageSize</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>asyncLoading</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="namespaceOgre.html#a560">TerrainPageSourceOptionList</a> & </td> <td class="mdname" nowrap> <em>optionList</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a>. <p> <p> Reimplemented from <a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcea2">Ogre::TerrainPageSource</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourceb0" doxytag="Ogre::HeightmapTerrainPageSource::loadHeightmap" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::HeightmapTerrainPageSource::loadHeightmap </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Load a heightmap. <p> </td> </tr> </table> <a class="anchor" name="Ogre_1_1TerrainPageSourcee1" doxytag="Ogre::HeightmapTerrainPageSource::removeListener" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::TerrainPageSource::removeListener </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1TerrainPageSourceListener.html">TerrainPageSourceListener</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pl</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Unregister a class which will be called back whenever a new page is available. <p> </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcea3" doxytag="Ogre::HeightmapTerrainPageSource::requestPage" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::HeightmapTerrainPageSource::requestPage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a422">ushort</a> </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="namespaceOgre.html#a422">ushort</a> </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a>. <p> <p> Implements <a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcea4">Ogre::TerrainPageSource</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcea2" doxytag="Ogre::HeightmapTerrainPageSource::shutdown" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::HeightmapTerrainPageSource::shutdown </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <a class="el" href="classOgre_1_1TerrainPageSource.html">TerrainPageSource</a>. <p> <p> Reimplemented from <a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcea3">Ogre::TerrainPageSource</a>. </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="Ogre_1_1TerrainPageSourcep1" doxytag="Ogre::HeightmapTerrainPageSource::mAsyncLoading" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool <a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcep1">Ogre::TerrainPageSource::mAsyncLoading</a><code> [protected, inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Has asynchronous loading been requested? <p> <p> Definition at line <a class="el" href="OgreTerrainPageSource_8h-source.html#l00137">137</a> of file <a class="el" href="OgreTerrainPageSource_8h-source.html">OgreTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcep1" doxytag="Ogre::HeightmapTerrainPageSource::mFlipTerrain" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool <a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep1">Ogre::HeightmapTerrainPageSource::mFlipTerrain</a><code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Should we flip terrain vertically? <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00046">46</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcep2" doxytag="Ogre::HeightmapTerrainPageSource::mImage" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Image.html">Image</a> <a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep2">Ogre::HeightmapTerrainPageSource::mImage</a><code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <a class="el" href="classOgre_1_1Image.html">Image</a> containing the source heightmap if loaded from non-RAW. <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00048">48</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcep0" doxytag="Ogre::HeightmapTerrainPageSource::mIsRaw" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool <a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep0">Ogre::HeightmapTerrainPageSource::mIsRaw</a><code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Is this input RAW? <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00044">44</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcep4" doxytag="Ogre::HeightmapTerrainPageSource::mPage" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1TerrainPage.html">TerrainPage</a>* <a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep4">Ogre::HeightmapTerrainPageSource::mPage</a><code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> The (single) terrain page this source will provide. <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00052">52</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1TerrainPageSourcep2" doxytag="Ogre::HeightmapTerrainPageSource::mPageSize" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned short <a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcep2">Ogre::TerrainPageSource::mPageSize</a><code> [protected, inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> The expected size of the page in number of vertices. <p> <p> Definition at line <a class="el" href="OgreTerrainPageSource_8h-source.html#l00139">139</a> of file <a class="el" href="OgreTerrainPageSource_8h-source.html">OgreTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcep7" doxytag="Ogre::HeightmapTerrainPageSource::mRawBpp" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a421">uchar</a> <a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep7">Ogre::HeightmapTerrainPageSource::mRawBpp</a><code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Manual bpp if source is RAW. <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00058">58</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcep3" doxytag="Ogre::HeightmapTerrainPageSource::mRawData" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1SharedPtr.html">MemoryDataStreamPtr</a> <a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep3">Ogre::HeightmapTerrainPageSource::mRawData</a><code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Arbitrary data loaded from RAW. <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00050">50</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcep6" doxytag="Ogre::HeightmapTerrainPageSource::mRawSize" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> size_t <a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep6">Ogre::HeightmapTerrainPageSource::mRawSize</a><code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Manual size if source is RAW. <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00056">56</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1TerrainPageSourcep0" doxytag="Ogre::HeightmapTerrainPageSource::mSceneManager" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1TerrainSceneManager.html">TerrainSceneManager</a>* <a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcep0">Ogre::TerrainPageSource::mSceneManager</a><code> [protected, inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Link back to parent manager. <p> <p> Definition at line <a class="el" href="OgreTerrainPageSource_8h-source.html#l00135">135</a> of file <a class="el" href="OgreTerrainPageSource_8h-source.html">OgreTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1HeightmapTerrainPageSourcep5" doxytag="Ogre::HeightmapTerrainPageSource::mSource" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a426">String</a> <a class="el" href="classOgre_1_1HeightmapTerrainPageSource.html#Ogre_1_1HeightmapTerrainPageSourcep5">Ogre::HeightmapTerrainPageSource::mSource</a><code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Source file name. <p> <p> Definition at line <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html#l00054">54</a> of file <a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a>. </td> </tr> </table> <a class="anchor" name="Ogre_1_1TerrainPageSourcep3" doxytag="Ogre::HeightmapTerrainPageSource::mTileSize" ></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned short <a class="el" href="classOgre_1_1TerrainPageSource.html#Ogre_1_1TerrainPageSourcep3">Ogre::TerrainPageSource::mTileSize</a><code> [protected, inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> The expected size of a tile in number of vertices. <p> <p> Definition at line <a class="el" href="OgreTerrainPageSource_8h-source.html#l00141">141</a> of file <a class="el" href="OgreTerrainPageSource_8h-source.html">OgreTerrainPageSource.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="OgreHeightmapTerrainPageSource_8h-source.html">OgreHeightmapTerrainPageSource.h</a></ul> <p> Copyright © 2000-2005 by The OGRE Team<br /> Last modified Wed Feb 23 00:25:44 2005 </p> </body> </html>