Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > 58828b263d8f56d90ac336dea07a4586 > files > 80

irrlicht-doc-1.6.1-1mdv2010.1.x86_64.rpm

<!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: ICameraSceneNode.h Source File</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&nbsp;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 -->
<h1>ICameraSceneNode.h</h1><a href="_i_camera_scene_node_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2002-2009 Nikolaus Gebhardt</span>
<a name="l00002"></a>00002 <span class="comment">// This file is part of the "Irrlicht Engine".</span>
<a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __I_CAMERA_SCENE_NODE_H_INCLUDED__</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __I_CAMERA_SCENE_NODE_H_INCLUDED__</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="_i_scene_node_8h.html">ISceneNode.h</a>"</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include "<a class="code" href="_i_event_receiver_8h.html">IEventReceiver.h</a>"</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="keyword">namespace </span>irr
<a name="l00012"></a>00012 {
<a name="l00013"></a>00013 <span class="keyword">namespace </span>scene
<a name="l00014"></a>00014 {
<a name="l00015"></a>00015         <span class="keyword">struct </span>SViewFrustum;
<a name="l00016"></a>00016 
<a name="l00018"></a>00018 
<a name="l00023"></a><a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html">00023</a>         <span class="keyword">class </span><a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html" title="Scene Node which is a (controlable) camera.">ICameraSceneNode</a> : <span class="keyword">public</span> <a class="code" href="classirr_1_1scene_1_1_i_scene_node.html" title="Scene node interface.">ISceneNode</a>, <span class="keyword">public</span> <a class="code" href="classirr_1_1_i_event_receiver.html" title="Interface of an object which can receive events.">IEventReceiver</a>
<a name="l00024"></a>00024         {
<a name="l00025"></a>00025         <span class="keyword">public</span>:
<a name="l00026"></a>00026 
<a name="l00028"></a><a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#80e2a6e96feaf3191129eb6abefebc6f">00028</a>                 <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#80e2a6e96feaf3191129eb6abefebc6f" title="Constructor.">ICameraSceneNode</a>(<a class="code" href="classirr_1_1scene_1_1_i_scene_node.html" title="Scene node interface.">ISceneNode</a>* parent, <a class="code" href="classirr_1_1scene_1_1_i_scene_manager.html" title="The Scene Manager manages scene nodes, mesh recources, cameras and all the other...">ISceneManager</a>* mgr, <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <span class="keywordtype">id</span>,
<a name="l00029"></a>00029                         <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>&amp; position = <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>(0,0,0),
<a name="l00030"></a>00030                         <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>&amp; rotation = <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>(0,0,0),
<a name="l00031"></a>00031                         <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>&amp; scale = <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>(1.0f,1.0f,1.0f))
<a name="l00032"></a>00032                         : <a class="code" href="classirr_1_1scene_1_1_i_scene_node.html" title="Scene node interface.">ISceneNode</a>(parent, mgr, id, position, rotation, scale), <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#b0487690db54b06683f5ceb5db2dcad1">IsOrthogonal</a>(false) {}
<a name="l00033"></a>00033 
<a name="l00035"></a>00035 
<a name="l00045"></a>00045                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#022415e06070ad77c6053eba64ba62ae" title="Sets the projection matrix of the camera.">setProjectionMatrix</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; projection, <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#6d3054077c7514f05101644e143b1ab8" title="Checks if a camera is orthogonal.">isOrthogonal</a>=<span class="keyword">false</span>) =0;
<a name="l00046"></a>00046 
<a name="l00048"></a>00048 
<a name="l00049"></a>00049                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#80f4a43d24dc31d797a84e0e2f62f1a1" title="Gets the current projection matrix of the camera.">getProjectionMatrix</a>() <span class="keyword">const</span> =0;
<a name="l00050"></a>00050 
<a name="l00052"></a>00052 
<a name="l00053"></a>00053                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#ef40bb2f8f4a95a66dbb7fc3abee3e49" title="Gets the current view matrix of the camera.">getViewMatrix</a>() <span class="keyword">const</span> =0;
<a name="l00054"></a>00054 
<a name="l00056"></a>00056 
<a name="l00060"></a>00060                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#db3500cac2a8a47e6a3f48aa343ce2fd" title="Sets a custom view matrix affector.">setViewMatrixAffector</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; affector) =0;
<a name="l00061"></a>00061 
<a name="l00063"></a>00063 
<a name="l00064"></a>00064                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#033018cccdb26f94cc33256e23d764c6" title="Get the custom view matrix affector.">getViewMatrixAffector</a>() <span class="keyword">const</span> =0;
<a name="l00065"></a>00065 
<a name="l00067"></a>00067 
<a name="l00073"></a>00073                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#f27145518f43a17f803cdea086f68f3c" title="It is possible to send mouse and key events to the camera.">OnEvent</a>(<span class="keyword">const</span> <a class="code" href="structirr_1_1_s_event.html" title="SEvents hold information about an event. See irr::IEventReceiver for details on event...">SEvent</a>&amp; event) =0;
<a name="l00074"></a>00074 
<a name="l00076"></a>00076 
<a name="l00080"></a>00080                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#7280b07fd7915c64350db5a132b4ba07" title="Sets the look at target of the camera.">setTarget</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>&amp; pos) =0;
<a name="l00081"></a>00081 
<a name="l00083"></a>00083 
<a name="l00088"></a>00088                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#f95d5f50c192f212e11f3f050e92a470" title="Sets the rotation of the node.">setRotation</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>&amp; rotation) =0;
<a name="l00089"></a>00089 
<a name="l00091"></a>00091 
<a name="l00092"></a>00092                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>&amp; <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#3ce50433986650eea15b20e4ed19c952" title="Gets the current look at target of the camera.">getTarget</a>() <span class="keyword">const</span> =0;
<a name="l00093"></a>00093 
<a name="l00095"></a>00095 
<a name="l00096"></a>00096                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#1e74c17d89979fde4738276ccdcc0d3a" title="Sets the up vector of the camera.">setUpVector</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>&amp; pos) =0;
<a name="l00097"></a>00097 
<a name="l00099"></a>00099 
<a name="l00100"></a>00100                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector3d.html" title="3d vector template class with lots of operators and methods.">core::vector3df</a>&amp; <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#0dfb97859302021b9a44f2ead59fa230" title="Gets the up vector of the camera.">getUpVector</a>() <span class="keyword">const</span> =0;
<a name="l00101"></a>00101 
<a name="l00103"></a>00103 
<a name="l00104"></a>00104                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#ee5dfccee2ec0b0cbcdb1079a6430a25" title="Gets the value of the near plane of the camera.">getNearValue</a>() <span class="keyword">const</span> =0;
<a name="l00105"></a>00105 
<a name="l00107"></a>00107 
<a name="l00108"></a>00108                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#7a6603b808522605276359b834d48245" title="Gets the value of the far plane of the camera.">getFarValue</a>() <span class="keyword">const</span> =0;
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00112"></a>00112                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#ed7af13bc5a076d61a10a1998f71742e" title="Gets the aspect ratio of the camera.">getAspectRatio</a>() <span class="keyword">const</span> =0;
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 
<a name="l00116"></a>00116                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#8396148b1c3e27e79a615a859ae7d75d" title="Gets the field of view of the camera.">getFOV</a>() <span class="keyword">const</span> =0;
<a name="l00117"></a>00117 
<a name="l00119"></a>00119 
<a name="l00120"></a>00120                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#ab5107ae5d0373d6fb005a87741e7057" title="Sets the value of the near clipping plane. (default: 1.0f).">setNearValue</a>(<a class="code" href="namespaceirr.html#0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> zn) =0;
<a name="l00121"></a>00121 
<a name="l00123"></a>00123 
<a name="l00124"></a>00124                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#b7e427dd639b6bb63f648d6d087da1ea" title="Sets the value of the far clipping plane (default: 2000.0f).">setFarValue</a>(<a class="code" href="namespaceirr.html#0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> zf) =0;
<a name="l00125"></a>00125 
<a name="l00127"></a>00127 
<a name="l00128"></a>00128                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#5c3728a61a208376b9df6a701f4a5b3c" title="Sets the aspect ratio (default: 4.0f / 3.0f).">setAspectRatio</a>(<a class="code" href="namespaceirr.html#0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> aspect) =0;
<a name="l00129"></a>00129 
<a name="l00131"></a>00131 
<a name="l00132"></a>00132                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#43ee11523e9cf842d4b5d8c6a572241c" title="Sets the field of view (Default: PI / 2.5f).">setFOV</a>(<a class="code" href="namespaceirr.html#0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> fovy) =0;
<a name="l00133"></a>00133 
<a name="l00135"></a>00135 
<a name="l00137"></a>00137                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html" title="Defines the view frustum. That&amp;#39;s the space visible by the camera.">SViewFrustum</a>* <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#dd0cba097d3e59714546f04f2c53477e" title="Get the view frustum.">getViewFrustum</a>() <span class="keyword">const</span> =0;
<a name="l00138"></a>00138 
<a name="l00140"></a>00140 
<a name="l00142"></a>00142                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#5b5c89233c1805676d6fcb392236dfec" title="Disables or enables the camera to get key or mouse inputs.">setInputReceiverEnabled</a>(<span class="keywordtype">bool</span> enabled) =0;
<a name="l00143"></a>00143 
<a name="l00145"></a>00145                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#15eeaf8a5c69af91d920b8243f76796f" title="Checks if the input receiver of the camera is currently enabled.">isInputReceiverEnabled</a>() <span class="keyword">const</span> =0;
<a name="l00146"></a>00146 
<a name="l00148"></a><a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#6d3054077c7514f05101644e143b1ab8">00148</a>                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#6d3054077c7514f05101644e143b1ab8" title="Checks if a camera is orthogonal.">isOrthogonal</a>()<span class="keyword"> const</span>
<a name="l00149"></a>00149 <span class="keyword">                </span>{
<a name="l00150"></a>00150                         <a class="code" href="irr_types_8h.html#d19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00151"></a>00151                         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#b0487690db54b06683f5ceb5db2dcad1">IsOrthogonal</a>;
<a name="l00152"></a>00152                 }
<a name="l00153"></a>00153 
<a name="l00155"></a>00155 
<a name="l00163"></a>00163                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#d8785d7b2f730933a8d4425ac54e7205" title="Binds the camera scene node&amp;#39;s rotation to its target position and vice vera,...">bindTargetAndRotation</a>(<span class="keywordtype">bool</span> bound) =0;
<a name="l00164"></a>00164 
<a name="l00166"></a>00166 
<a name="l00167"></a>00167                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#343be24b2c43db7580127229db2dec6a" title="Queries if the camera scene node&amp;#39;s rotation and its target position are bound...">getTargetAndRotationBinding</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span> =0;
<a name="l00168"></a>00168 
<a name="l00169"></a>00169         <span class="keyword">protected</span>:
<a name="l00170"></a>00170 
<a name="l00171"></a><a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#b0487690db54b06683f5ceb5db2dcad1">00171</a>                 <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1scene_1_1_i_camera_scene_node.html#b0487690db54b06683f5ceb5db2dcad1">IsOrthogonal</a>;
<a name="l00172"></a>00172         };
<a name="l00173"></a>00173 
<a name="l00174"></a>00174 } <span class="comment">// end namespace scene</span>
<a name="l00175"></a>00175 } <span class="comment">// end namespace irr</span>
<a name="l00176"></a>00176 
<a name="l00177"></a>00177 <span class="preprocessor">#endif</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span>
</pre></div></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 &copy; 2003-2009 by Nikolaus Gebhardt. Generated 
        on Sun Jan 10 09:24:03 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>