diff options
Diffstat (limited to 'docs/doxygen/nel/classNL3D_1_1CCameraUser.html')
-rw-r--r-- | docs/doxygen/nel/classNL3D_1_1CCameraUser.html | 687 |
1 files changed, 687 insertions, 0 deletions
diff --git a/docs/doxygen/nel/classNL3D_1_1CCameraUser.html b/docs/doxygen/nel/classNL3D_1_1CCameraUser.html new file mode 100644 index 00000000..ae63a702 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CCameraUser.html @@ -0,0 +1,687 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<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">Compound 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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NL3D::CCameraUser Class Reference</h1><a class="el" href="classNL3D_1_1UCamera.html">UCamera</a> implementation. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="camera__user_8h-source.html">camera_user.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CCameraUser: +<p><center><img src="classNL3D_1_1CCameraUser.gif" usemap="#NL3D::CCameraUser_map" border="0"></center> +<map name="NL3D::CCameraUser_map"> +<area href="classNL3D_1_1UCamera.html" alt="NL3D::UCamera" shape="rect" coords="0,112,166,136"> +<area href="classNL3D_1_1CTransformUser.html" alt="NL3D::CTransformUser" shape="rect" coords="264,112,430,136"> +<area href="classNL3D_1_1UTransform.html" alt="NL3D::UTransform" shape="rect" coords="0,56,166,80"> +<area href="classNL3D_1_1UTransform.html" alt="NL3D::UTransform" shape="rect" coords="176,56,342,80"> +<area href="classNL3D_1_1CTransformableUser.html" alt="NL3D::CTransformableUser" shape="rect" coords="352,56,518,80"> +<area href="classNL3D_1_1UTransformable.html" alt="NL3D::UTransformable" shape="rect" coords="0,0,166,24"> +<area href="classNL3D_1_1UTransformable.html" alt="NL3D::UTransformable" shape="rect" coords="176,0,342,24"> +<area href="classNL3D_1_1UTransformable.html" alt="NL3D::UTransformable" shape="rect" coords="352,0,518,24"> +</map> +<a href="classNL3D_1_1CCameraUser-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 colspan="2"><div class="groupHeader">Object</div></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z392_0">CCameraUser</a> (<a class="el" href="classNL3D_1_1CScene.html">CScene</a> *scene)</td></tr> +<tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z392_1">~CCameraUser</a> ()</td></tr> +<tr><td colspan="2"><div class="groupHeader">Frustum</div></td></tr> +<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z393_0">setFrustum</a> (const <a class="el" href="classNL3D_1_1CFrustum.html">CFrustum</a> &f)</td></tr> +<tr><td> </td><td><font size=-1><em>Set the frustum of the camera.</em> <a href="#z393_0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual const <a class="el" href="classNL3D_1_1CFrustum.html">CFrustum</a> & </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z393_1">getFrustum</a> () const</td></tr> +<tr><td> </td><td><font size=-1><em>Get the frustum of the camera.</em> <a href="#z393_1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z393_2">setFrustum</a> (float left, float right, float bottom, float top, float znear, float zfar, bool perspective=true)</td></tr> +<tr><td> </td><td><font size=-1><em>Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective).</em> <a href="#z393_2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z393_3">setFrustum</a> (float <a class="el" href="driver__opengl__extension__def_8h.html#a389">width</a>, float <a class="el" href="driver__opengl__extension__def_8h.html#a390">height</a>, float znear, float zfar, bool perspective=true)</td></tr> +<tr><td> </td><td><font size=-1><em>Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective).</em> <a href="#z393_3">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z393_4">getFrustum</a> (float &left, float &right, float &bottom, float &top, float &znear, float &zfar) const</td></tr> +<tr><td> </td><td><font size=-1><em>Get the camera frustum.</em> <a href="#z393_4">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z393_5">isOrtho</a> () const</td></tr> +<tr><td> </td><td><font size=-1><em>Is a ortho camera?</em> <a href="#z393_5">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z393_6">isPerspective</a> () const</td></tr> +<tr><td> </td><td><font size=-1><em>Is a perspective camera?</em> <a href="#z393_6">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z393_7">setPerspective</a> (float fov, float aspectRatio, float znear, float zfar)</td></tr> +<tr><td> </td><td><font size=-1><em>Setup a perspective camera, giving a fov in radians.</em> <a href="#z393_7">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">Accessor for CSeneUser.</div></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1CCamera.html">CCamera</a> * </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#z394_0">getCamera</a> ()</td></tr> +<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1CCamera.html">CCamera</a> * </td><td valign=bottom><a class="el" href="classNL3D_1_1CCameraUser.html#n0">_Camera</a></td></tr> +<tr><td> </td><td><font size=-1><em>This is the SAME pointer than _Transform, but correctly casted.</em> <a href="#n0">More...</a><em></em></font><br><br></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<a class="el" href="classNL3D_1_1UCamera.html">UCamera</a> implementation. +<p> +<dl compact><dt><b> +Author: </b><dd> +Lionel Berenguier , Nevrax France </dl><dl compact><dt><b> +Date: </b><dd> +2001 </dl> +<p> + +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00048">48</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +<a name="z392_0" doxytag="NL3D::CCameraUser::CCameraUser"></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"> NL3D::CCameraUser::CCameraUser </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1CScene.html">CScene</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>scene</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00059">59</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, <a class="el" href="camera_8h-source.html#l00039">NL3D::CameraId</a>, <a class="el" href="transform__user_8h-source.html#l00065">NL3D::CTransformUser::CTransformUser</a>, <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>, and <a class="el" href="camera__user_8h-source.html#l00079">setFrustum</a>. </td> + </tr> +</table> +<a name="z392_1" doxytag="NL3D::CCameraUser::~CCameraUser"></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"> virtual NL3D::CCameraUser::~CCameraUser </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00068">68</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="z394_0" doxytag="NL3D::CCameraUser::getCamera"></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"> <a class="el" href="classNL3D_1_1CCamera.html">CCamera</a>* NL3D::CCameraUser::getCamera </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00125">125</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. </td> + </tr> +</table> +<a name="z393_4" doxytag="NL3D::CCameraUser::getFrustum"></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"> virtual void NL3D::CCameraUser::getFrustum </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float & </td> + <td class="mdname" nowrap> <em>left</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float & </td> + <td class="mdname" nowrap> <em>right</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float & </td> + <td class="mdname" nowrap> <em>bottom</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float & </td> + <td class="mdname" nowrap> <em>top</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float & </td> + <td class="mdname" nowrap> <em>znear</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float & </td> + <td class="mdname" nowrap> <em>zfar</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> const<code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the camera frustum. +<p> + +<p> +Implements <a class="el" href="classNL3D_1_1UCamera.html#z12_4">NL3D::UCamera</a>. +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00099">99</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. </td> + </tr> +</table> +<a name="z393_1" doxytag="NL3D::CCameraUser::getFrustum"></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"> virtual const <a class="el" href="classNL3D_1_1CFrustum.html">CFrustum</a>& NL3D::CCameraUser::getFrustum </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap> const<code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the frustum of the camera. +<p> + +<p> +Implements <a class="el" href="classNL3D_1_1UCamera.html#z12_1">NL3D::UCamera</a>. +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00084">84</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. </td> + </tr> +</table> +<a name="z393_5" doxytag="NL3D::CCameraUser::isOrtho"></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"> virtual bool NL3D::CCameraUser::isOrtho </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap> const<code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Is a ortho camera? +<p> + +<p> +Implements <a class="el" href="classNL3D_1_1UCamera.html#z12_5">NL3D::UCamera</a>. +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00104">104</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. </td> + </tr> +</table> +<a name="z393_6" doxytag="NL3D::CCameraUser::isPerspective"></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"> virtual bool NL3D::CCameraUser::isPerspective </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap> const<code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Is a perspective camera? +<p> + +<p> +Implements <a class="el" href="classNL3D_1_1UCamera.html#z12_6">NL3D::UCamera</a>. +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00109">109</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. </td> + </tr> +</table> +<a name="z393_3" doxytag="NL3D::CCameraUser::setFrustum"></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"> virtual void NL3D::CCameraUser::setFrustum </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname" nowrap> <em>width</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>height</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>znear</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>zfar</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>perspective</em> = true</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective). +<p> + +<p> +Implements <a class="el" href="classNL3D_1_1UCamera.html#z12_3">NL3D::UCamera</a>. +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00094">94</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00709">height</a>, <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00709">width</a>. </td> + </tr> +</table> +<a name="z393_2" doxytag="NL3D::CCameraUser::setFrustum"></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"> virtual void NL3D::CCameraUser::setFrustum </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname" nowrap> <em>left</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>right</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>bottom</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>top</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>znear</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>zfar</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>perspective</em> = true</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective). +<p> + +<p> +Implements <a class="el" href="classNL3D_1_1UCamera.html#z12_2">NL3D::UCamera</a>. +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00089">89</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. </td> + </tr> +</table> +<a name="z393_0" doxytag="NL3D::CCameraUser::setFrustum"></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"> virtual void NL3D::CCameraUser::setFrustum </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNL3D_1_1CFrustum.html">CFrustum</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the frustum of the camera. +<p> + +<p> +Implements <a class="el" href="classNL3D_1_1UCamera.html#z12_0">NL3D::UCamera</a>. +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00079">79</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. +<p> +Referenced by <a class="el" href="camera__user_8h-source.html#l00059">CCameraUser</a>. </td> + </tr> +</table> +<a name="z393_7" doxytag="NL3D::CCameraUser::setPerspective"></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"> virtual void NL3D::CCameraUser::setPerspective </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname" nowrap> <em>fov</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>aspectRatio</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>znear</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>zfar</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Setup a perspective camera, giving a fov in radians. +<p> +<dl compact><dt><b> +Parameters: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em>fov</em> </td><td> +the horizontal angle of view, in radians. (Pi/2 as example) </td></tr> +<tr><td valign=top><em>aspectRatio</em> </td><td> +the ratio horizontal/vertical (1.33 as example). </td></tr> +<tr><td valign=top><em>znear</em> </td><td> +the front clipping plane distance. </td></tr> +<tr><td valign=top><em>zfar</em> </td><td> +the back clipping plane distance. </td></tr> +</table> +</dl> +<p> +Implements <a class="el" href="classNL3D_1_1UCamera.html#z12_7">NL3D::UCamera</a>. +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00114">114</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +References <a class="el" href="camera__user_8h-source.html#l00052">_Camera</a>, and <a class="el" href="camera__user_8h-source.html#l00035">NL3D_MEM_CAMERA</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="n0" doxytag="NL3D::CCameraUser::_Camera"></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"> <a class="el" href="classNL3D_1_1CCamera.html">CCamera</a>* NL3D::CCameraUser::_Camera<code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This is the SAME pointer than _Transform, but correctly casted. +<p> + +<p> +Definition at line <a class="el" href="camera__user_8h-source.html#l00052">52</a> of file <a class="el" href="camera__user_8h-source.html">camera_user.h</a>. +<p> +Referenced by <a class="el" href="camera__user_8h-source.html#l00059">CCameraUser</a>, <a class="el" href="camera__user_8h-source.html#l00125">getCamera</a>, <a class="el" href="camera__user_8h-source.html#l00084">getFrustum</a>, <a class="el" href="camera__user_8h-source.html#l00104">isOrtho</a>, <a class="el" href="camera__user_8h-source.html#l00109">isPerspective</a>, <a class="el" href="camera__user_8h-source.html#l00079">setFrustum</a>, <a class="el" href="camera__user_8h-source.html#l00114">setPerspective</a>, and <a class="el" href="camera__user_8h-source.html#l00068">~CCameraUser</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="camera__user_8h-source.html">camera_user.h</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |