aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02678.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02678.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a02678.html')
-rw-r--r--docs/doxygen/nel/a02678.html325
1 files changed, 325 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02678.html b/docs/doxygen/nel/a02678.html
new file mode 100644
index 00000000..3b90a99a
--- /dev/null
+++ b/docs/doxygen/nel/a02678.html
@@ -0,0 +1,325 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NL3D::CInstanceLighter::CPointLightRT struct Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NL3D::CInstanceLighter::CPointLightRT Struct Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
+A PointLight struct to test raytracing.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05825.html#l00218">218</a> of file <a class="el" href="a05825.html">instance_lighter.h</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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTa0">CPointLightRT</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTa1">testRaytrace</a> (const <a class="el" href="a03128.html">CVector</a> &amp;<a class="el" href="a04223.html#a576">v</a>, <a class="el" href="a04558.html#a14">sint</a> instanceComputed=-1)</td></tr>
+
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02291.html">NLMISC::CBSphere</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo0">BSphere</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo1">DstId</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02423.html">CCubeGrid</a>&lt; const <a class="el" href="a02680.html">CTriangle</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo2">FaceCubeGrid</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo3">OODeltaAttenuation</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03094.html">CPointLightNamed</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo4">PointLight</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo5">RefCount</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NL3D_1_1CInstanceLighter_1_1CPointLightRTa0" doxytag="NL3D::CInstanceLighter::CPointLightRT::CPointLightRT" ></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"> NL3D::CInstanceLighter::CPointLightRT::CPointLightRT </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05824.html#l00947">947</a> of file <a class="el" href="a05824.html">instance_lighter.cpp</a>.
+<p>
+References <a class="el" href="a05825.html#l00228">RefCount</a>.
+<p>
+<div class="fragment"><pre>00948 {
+00949 <a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo5">RefCount</a>= 0;
+00950 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CInstanceLighter_1_1CPointLightRTa1" doxytag="NL3D::CInstanceLighter::CPointLightRT::testRaytrace" ></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 NL3D::CInstanceLighter::CPointLightRT::testRaytrace </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>v</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a14">sint</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>instanceComputed</em> = -1</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Tells if a point is visible from this light. NB: test first if in BSphere. If occluded or out of radius, return false, else return true. if instanceComputed&gt;=0, then skip obstacles with InstanceId==instanceComputed. Also Skip if the light is an Ambient, and skip if the light is a spot and if the position is out of the cone
+<p>
+Definition at line <a class="el" href="a05824.html#l00954">954</a> of file <a class="el" href="a05824.html">instance_lighter.cpp</a>.
+<p>
+References <a class="el" href="a05825.html#l00223">BSphere</a>, <a class="el" href="a05505.html#l00048">NLMISC::CBSphere::Center</a>, <a class="el" href="a06179.html#l00267">NL3D::CPointLight::computeLinearAttenuation()</a>, <a class="el" href="a05825.html#l00226">FaceCubeGrid</a>, <a class="el" href="a05825.html#l00112">NL3D::CInstanceLighter::CTriangle::getPlane()</a>, <a class="el" href="a02423.html#NL3D_1_1CCubeGrida3">NL3D::CCubeGrid&lt; const CTriangle * &gt;::getSel()</a>, <a class="el" href="a06179.html#l00138">NL3D::CPointLight::getType()</a>, <a class="el" href="a05504.html#l00063">NLMISC::CBSphere::include()</a>, <a class="el" href="a05825.html#l00109">NL3D::CInstanceLighter::CTriangle::InstanceId</a>, <a class="el" href="a03616.html#NLMISC_1_1CTriangleUVa2">NLMISC::CTriangle::intersect()</a>, <a class="el" href="a02423.html#NL3D_1_1CCubeGrida5">NL3D::CCubeGrid&lt; const CTriangle * &gt;::isEndSel()</a>, <a class="el" href="a02423.html#NL3D_1_1CCubeGrida6">NL3D::CCubeGrid&lt; const CTriangle * &gt;::nextSel()</a>, <a class="el" href="a05825.html#l00220">PointLight</a>, <a class="el" href="a02423.html#NL3D_1_1CCubeGrida7">NL3D::CCubeGrid&lt; const CTriangle * &gt;::select()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05825.html#l00106">NL3D::CInstanceLighter::CTriangle::Triangle</a>, and <a class="el" href="a05646.html#l00237">v</a>.
+<p>
+Referenced by <a class="el" href="a05824.html#l01161">NL3D::CInstanceLighter::processIGPointLightRT()</a>.
+<p>
+<div class="fragment"><pre>00955 {
+00956 CVector dummy;
+00957
+00958 <span class="keywordflow">if</span>(!<a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo0">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSpherea3">include</a>(v))
+00959 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00960
+00961 <span class="comment">// If Ambient light, just skip</span>
+00962 <span class="keywordflow">if</span>(<a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo4">PointLight</a>.getType()== CPointLight::AmbientLight)
+00963 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00964
+00965 <span class="comment">// If SpotLight verify in angle radius.</span>
+00966 <span class="keywordflow">if</span>(<a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo4">PointLight</a>.getType()== CPointLight::SpotLight)
+00967 {
+00968 <span class="keywordtype">float</span> att= <a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo4">PointLight</a>.computeLinearAttenuation(v);
+00969 <span class="keywordflow">if</span> (att==0)
+00970 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00971 }
+00972
+00973
+00974 <span class="comment">// Select in the cubeGrid</span>
+00975 <a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo2">FaceCubeGrid</a>.select(v);
+00976 <span class="comment">// For all faces selected</span>
+00977 <span class="keywordflow">while</span>(!<a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo2">FaceCubeGrid</a>.isEndSel())
+00978 {
+00979 <span class="keyword">const</span> <a class="code" href="a03616.html">CTriangle</a> *tri= <a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo2">FaceCubeGrid</a>.getSel();
+00980
+00981 <span class="comment">// If the triangle is not a triangle of the instance currenlty lighted</span>
+00982 <span class="keywordflow">if</span>( instanceComputed&lt;0 || tri-&gt;InstanceId != instanceComputed )
+00983 {
+00984 <span class="comment">// If intersect, the point is occluded.</span>
+00985 <span class="keywordflow">if</span>( tri-&gt;Triangle.<a class="code" href="a03616.html#NLMISC_1_1CTriangleUVa2">intersect</a>(<a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo0">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo0">Center</a>, v, dummy, tri-&gt;getPlane()) )
+00986 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00987 }
+00988
+00989 <span class="comment">// next</span>
+00990 <a class="code" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo2">FaceCubeGrid</a>.nextSel();
+00991 }
+00992
+00993 <span class="comment">// Ok the point is visilbe from the light</span>
+00994 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00995 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CInstanceLighter_1_1CPointLightRTo0" doxytag="NL3D::CInstanceLighter::CPointLightRT::BSphere" ></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="a02291.html">NLMISC::CBSphere</a> <a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo0">NL3D::CInstanceLighter::CPointLightRT::BSphere</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05825.html#l00223">223</a> of file <a class="el" href="a05825.html">instance_lighter.h</a>.
+<p>
+Referenced by <a class="el" href="a05824.html#l00999">NL3D::CInstanceLighter::addStaticPointLight()</a>, <a class="el" href="a05824.html#l01023">NL3D::CInstanceLighter::compilePointLightRT()</a>, <a class="el" href="a05824.html#l01140">NL3D::CInstanceLighter::CPredPointLightToPoint::operator()()</a>, <a class="el" href="a05824.html#l01161">NL3D::CInstanceLighter::processIGPointLightRT()</a>, and <a class="el" href="a05824.html#l00954">testRaytrace()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CInstanceLighter_1_1CPointLightRTo1" doxytag="NL3D::CInstanceLighter::CPointLightRT::DstId" ></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="a04558.html#a15">uint</a> <a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo1">NL3D::CInstanceLighter::CPointLightRT::DstId</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05825.html#l00230">230</a> of file <a class="el" href="a05825.html">instance_lighter.h</a>.
+<p>
+Referenced by <a class="el" href="a05824.html#l01161">NL3D::CInstanceLighter::processIGPointLightRT()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CInstanceLighter_1_1CPointLightRTo2" doxytag="NL3D::CInstanceLighter::CPointLightRT::FaceCubeGrid" ></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="a02423.html">CCubeGrid</a>&lt;const <a class="el" href="a02680.html">CTriangle</a>*&gt; <a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo2">NL3D::CInstanceLighter::CPointLightRT::FaceCubeGrid</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05825.html#l00226">226</a> of file <a class="el" href="a05825.html">instance_lighter.h</a>.
+<p>
+Referenced by <a class="el" href="a05824.html#l01023">NL3D::CInstanceLighter::compilePointLightRT()</a>, and <a class="el" href="a05824.html#l00954">testRaytrace()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CInstanceLighter_1_1CPointLightRTo3" doxytag="NL3D::CInstanceLighter::CPointLightRT::OODeltaAttenuation" ></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"> float <a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo3">NL3D::CInstanceLighter::CPointLightRT::OODeltaAttenuation</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05825.html#l00221">221</a> of file <a class="el" href="a05825.html">instance_lighter.h</a>.
+<p>
+Referenced by <a class="el" href="a05824.html#l00999">NL3D::CInstanceLighter::addStaticPointLight()</a>, and <a class="el" href="a05824.html#l01140">NL3D::CInstanceLighter::CPredPointLightToPoint::operator()()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CInstanceLighter_1_1CPointLightRTo4" doxytag="NL3D::CInstanceLighter::CPointLightRT::PointLight" ></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="a03094.html">CPointLightNamed</a> <a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo4">NL3D::CInstanceLighter::CPointLightRT::PointLight</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05825.html#l00220">220</a> of file <a class="el" href="a05825.html">instance_lighter.h</a>.
+<p>
+Referenced by <a class="el" href="a05824.html#l00999">NL3D::CInstanceLighter::addStaticPointLight()</a>, <a class="el" href="a05824.html#l01023">NL3D::CInstanceLighter::compilePointLightRT()</a>, <a class="el" href="a05824.html#l01140">NL3D::CInstanceLighter::CPredPointLightToPoint::operator()()</a>, <a class="el" href="a05824.html#l01161">NL3D::CInstanceLighter::processIGPointLightRT()</a>, and <a class="el" href="a05824.html#l00954">testRaytrace()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CInstanceLighter_1_1CPointLightRTo5" doxytag="NL3D::CInstanceLighter::CPointLightRT::RefCount" ></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="a04558.html#a15">uint</a> <a class="el" href="a02678.html#NL3D_1_1CInstanceLighter_1_1CPointLightRTo5">NL3D::CInstanceLighter::CPointLightRT::RefCount</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05825.html#l00228">228</a> of file <a class="el" href="a05825.html">instance_lighter.h</a>.
+<p>
+Referenced by <a class="el" href="a05824.html#l01023">NL3D::CInstanceLighter::compilePointLightRT()</a>, <a class="el" href="a05824.html#l00947">CPointLightRT()</a>, and <a class="el" href="a05824.html#l01161">NL3D::CInstanceLighter::processIGPointLightRT()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this struct was generated from the following files:<ul>
+<li><a class="el" href="a05825.html">instance_lighter.h</a><li><a class="el" href="a05824.html">instance_lighter.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:47:44 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>