<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Irrlicht Engine: irr::scene::IMeshSceneNode Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table class="irrlicht" > <tr valign="middle"> <td><font size="2"><a class="qindex" href="index.html"><font color="#FFFFFF">Home</font></a> | <a class="qindex" href="namespaces.html"><font color="#FFFFFF">Namespaces</font></a> | <a class="qindex" href="hierarchy.html"><font color="#FFFFFF">Hierarchy</font></a> | <a class="qindex" href="classes.html"><font color="#FFFFFF">Alphabetical List</font></a> | <a class="qindex" href="annotated.html"><font color="#FFFFFF"> Class list</font></a> | <a class="qindex" href="files.html"><font color="#FFFFFF">Files</font></a> | <a class="qindex" href="namespacemembers.html"><font color="#FFFFFF"> Namespace Members</font></a> | <a class="qindex" href="functions.html"><font color="#FFFFFF">Class members</font></a> | <a class="qindex" href="globals.html"><font color="#FFFFFF">File members</font></a> | <a class="qindex" href="pages.html"><font color="#FFFFFF">Tutorials</font></a></font> </td> </tr> </table> <!-- Generated by Doxygen 1.5.6 --> <div class="navpath"><a class="el" href="namespaceirr.html">irr</a>::<a class="el" href="namespaceirr_1_1scene.html">scene</a>::<a class="el" href="classirr_1_1scene_1_1_i_mesh_scene_node.html">IMeshSceneNode</a> </div> <div class="contents"> <h1>irr::scene::IMeshSceneNode Class Reference</h1><!-- doxytag: class="irr::scene::IMeshSceneNode" --><!-- doxytag: inherits="irr::scene::ISceneNode" -->A <a class="el" href="namespaceirr_1_1scene.html" title="All scene management can be found in this namespace: Mesh loading, special scene...">scene</a> node displaying a static mesh. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="_i_mesh_scene_node_8h-source.html">IMeshSceneNode.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for irr::scene::IMeshSceneNode:</div> <div class="dynsection"> <p><center><img src="classirr_1_1scene_1_1_i_mesh_scene_node.png" usemap="#irr::scene::IMeshSceneNode_map" border="0" alt=""></center> <map name="irr::scene::IMeshSceneNode_map"> <area href="classirr_1_1scene_1_1_i_scene_node.html" alt="irr::scene::ISceneNode" shape="rect" coords="0,112,200,136"> <area href="classirr_1_1io_1_1_i_attribute_exchanging_object.html" alt="irr::io::IAttributeExchangingObject" shape="rect" coords="0,56,200,80"> <area href="classirr_1_1_i_reference_counted.html" alt="irr::IReferenceCounted" shape="rect" coords="0,0,200,24"> </map> </div> <p> <a href="classirr_1_1scene_1_1_i_mesh_scene_node-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">virtual <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1scene_1_1_i_mesh_scene_node.html#fe540de69bc3a058919cd5ce465be634">getMesh</a> (void)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the currently defined mesh for display. <a href="#fe540de69bc3a058919cd5ce465be634"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1scene_1_1_i_mesh_scene_node.html#491d6cac4ec270ab01c24e27c88e6ca4">IMeshSceneNode</a> (<a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *parent, <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html">ISceneManager</a> *mgr, <a class="el" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6">s32</a> id, const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> &position=<a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a>(0, 0, 0), const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> &rotation=<a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a>(0, 0, 0), const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> &scale=<a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a>(1, 1, 1))</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#491d6cac4ec270ab01c24e27c88e6ca4"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1scene_1_1_i_mesh_scene_node.html#1d7de4331b84480598f636c929418e3d">isReadOnlyMaterials</a> () const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Check if the <a class="el" href="namespaceirr_1_1scene.html" title="All scene management can be found in this namespace: Mesh loading, special scene...">scene</a> node should not copy the materials of the mesh but use them in a read only style. <a href="#1d7de4331b84480598f636c929418e3d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1scene_1_1_i_mesh_scene_node.html#8d7e98ddfb990bfc354c9c410a4d788f">setMesh</a> (<a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *mesh)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets a new mesh to display. <a href="#8d7e98ddfb990bfc354c9c410a4d788f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1scene_1_1_i_mesh_scene_node.html#3bae73b4f7b1a6b265a62ece964c008f">setReadOnlyMaterials</a> (bool readonly)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets if the <a class="el" href="namespaceirr_1_1scene.html" title="All scene management can be found in this namespace: Mesh loading, special scene...">scene</a> node should not copy the materials of the mesh but use them in a read only style. <a href="#3bae73b4f7b1a6b265a62ece964c008f"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A <a class="el" href="namespaceirr_1_1scene.html" title="All scene management can be found in this namespace: Mesh loading, special scene...">scene</a> node displaying a static mesh. <p>Definition at line <a class="el" href="_i_mesh_scene_node_8h-source.html#l00019">19</a> of file <a class="el" href="_i_mesh_scene_node_8h-source.html">IMeshSceneNode.h</a>.</p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="491d6cac4ec270ab01c24e27c88e6ca4"></a><!-- doxytag: member="irr::scene::IMeshSceneNode::IMeshSceneNode" ref="491d6cac4ec270ab01c24e27c88e6ca4" args="(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0), const core::vector3df &rotation=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(1, 1, 1))" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">irr::scene::IMeshSceneNode::IMeshSceneNode </td> <td>(</td> <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> * </td> <td class="paramname"> <em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html">ISceneManager</a> * </td> <td class="paramname"> <em>mgr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> <td class="paramname"> <em>id</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> & </td> <td class="paramname"> <em>position</em> = <code><a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a>(0,0,0)</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> & </td> <td class="paramname"> <em>rotation</em> = <code><a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a>(0,0,0)</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> & </td> <td class="paramname"> <em>scale</em> = <code><a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a>(1,1,1)</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> Use <a class="el" href="classirr_1_1scene_1_1_i_mesh_scene_node.html#8d7e98ddfb990bfc354c9c410a4d788f" title="Sets a new mesh to display.">setMesh()</a> to set the mesh to display. <p>Definition at line <a class="el" href="_i_mesh_scene_node_8h-source.html#l00026">26</a> of file <a class="el" href="_i_mesh_scene_node_8h-source.html">IMeshSceneNode.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="fe540de69bc3a058919cd5ce465be634"></a><!-- doxytag: member="irr::scene::IMeshSceneNode::getMesh" ref="fe540de69bc3a058919cd5ce465be634" args="(void)=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a>* irr::scene::IMeshSceneNode::getMesh </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the currently defined mesh for display. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Pointer to mesh which is displayed by this node. </dd></dl> </div> </div><p> <a class="anchor" name="1d7de4331b84480598f636c929418e3d"></a><!-- doxytag: member="irr::scene::IMeshSceneNode::isReadOnlyMaterials" ref="1d7de4331b84480598f636c929418e3d" args="() const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool irr::scene::IMeshSceneNode::isReadOnlyMaterials </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Check if the <a class="el" href="namespaceirr_1_1scene.html" title="All scene management can be found in this namespace: Mesh loading, special scene...">scene</a> node should not copy the materials of the mesh but use them in a read only style. <p> This flag can be set by <a class="el" href="classirr_1_1scene_1_1_i_mesh_scene_node.html#3bae73b4f7b1a6b265a62ece964c008f" title="Sets if the scene node should not copy the materials of the mesh but use them in...">setReadOnlyMaterials()</a>. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the materials are read-only. </dd></dl> </div> </div><p> <a class="anchor" name="8d7e98ddfb990bfc354c9c410a4d788f"></a><!-- doxytag: member="irr::scene::IMeshSceneNode::setMesh" ref="8d7e98ddfb990bfc354c9c410a4d788f" args="(IMesh *mesh)=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void irr::scene::IMeshSceneNode::setMesh </td> <td>(</td> <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> * </td> <td class="paramname"> <em>mesh</em> </td> <td> ) </td> <td><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Sets a new mesh to display. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>mesh</em> </td><td>Mesh to display. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="3bae73b4f7b1a6b265a62ece964c008f"></a><!-- doxytag: member="irr::scene::IMeshSceneNode::setReadOnlyMaterials" ref="3bae73b4f7b1a6b265a62ece964c008f" args="(bool readonly)=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void irr::scene::IMeshSceneNode::setReadOnlyMaterials </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>readonly</em> </td> <td> ) </td> <td><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Sets if the <a class="el" href="namespaceirr_1_1scene.html" title="All scene management can be found in this namespace: Mesh loading, special scene...">scene</a> node should not copy the materials of the mesh but use them in a read only style. <p> In this way it is possible to change the materials of a mesh causing all mesh <a class="el" href="namespaceirr_1_1scene.html" title="All scene management can be found in this namespace: Mesh loading, special scene...">scene</a> nodes referencing this mesh to change, too. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>readonly</em> </td><td>Flag if the materials shall be read-only. </td></tr> </table> </dl> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="_i_mesh_scene_node_8h-source.html">IMeshSceneNode.h</a></ul> </div> <hr size="1"> <address style="align: right;"> <small> </small> </address> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="0"> <div align="left"><small><a href="http://irrlicht.sourceforge.net" target="_blank"><img src="irrlicht.png" alt="The Irrlicht Engine" align="middle" border=0 width=88 height=31></a></small></div></td> <td> <div align="left"><small><em><font size="2">The <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht Engine</a> Documentation © 2003-2009 by Nikolaus Gebhardt. Generated on Sun Jan 10 09:24:14 2010 by <a href="http://www.doxygen.org" target="_blank">Doxygen</a> (1.5.6)</font></em></small></div></td> </tr> </table> <address style="align: right;"> </address> </body> </html>