Logo Search packages:      
Sourcecode: blender version File versions  Download package

ntlRay Class Reference

#include <ntl_ray.h>

List of all members.


Detailed Description

the main ray class

Definition at line 41 of file ntl_ray.h.


Public Member Functions

ntlVec3Gfx getDirection () const
 Returns the ray direction.
int getID (void) const
ntlVec3Gfx getNormal () const
ntlVec3Gfx getOrigin () const
 Returns the ray origin.
ntlVec3Gfx getPositionAt (gfxReal t) const
unsigned char getReflected () const
unsigned char getRefracted () const
 Is this ray refracted?
ntlRenderGlobalsgetRenderglobals (void) const
void intersectBackAABB (ntlVec3Gfx mStart, ntlVec3Gfx mEnd, gfxReal &t, ntlVec3Gfx &normal, ntlVec3Gfx &retcoord) const
 intersect ray with AABB
void intersectCompleteAABB (ntlVec3Gfx mStart, ntlVec3Gfx mEnd, gfxReal &tmin, gfxReal &tmax) const
 intersect ray with AABB
void intersectFrontAABB (ntlVec3Gfx mStart, ntlVec3Gfx mEnd, gfxReal &t, ntlVec3Gfx &normal, ntlVec3Gfx &retcoord) const
 intersect ray with AABB
void intersectTriangle (vector< ntlVec3Gfx > *mpV, ntlTriangle *tri, gfxReal &t, gfxReal &u, gfxReal &v) const
 optimized intersect ray with triangle
void intersectTriangleBack (vector< ntlVec3Gfx > *mpV, ntlTriangle *tri, gfxReal &t, gfxReal &u, gfxReal &v) const
 intersect ray only with backsides
void intersectTriangleFront (vector< ntlVec3Gfx > *mpV, ntlTriangle *tri, gfxReal &t, gfxReal &u, gfxReal &v) const
 intersect only with front side
void intersectTriangleX (vector< ntlVec3Gfx > *mpV, ntlTriangle *tri, gfxReal &t, gfxReal &u, gfxReal &v) const
 optimized intersect ray with triangle along +X axis dir
 ntlRay (const ntlVec3Gfx &o, const ntlVec3Gfx &d, unsigned int i, gfxReal contrib, ntlRenderGlobals *glob)
 Explicitly init member variables with global render object.
 ntlRay (const ntlRay &r)
 Copy constructor, copy all members.
 ntlRay ()
 Initialize ray memebers, prints error message.
void setDirection (ntlVec3Gfx set)
void setNormal (ntlVec3Gfx set)
void setOrigin (ntlVec3Gfx set)
void setReflected (unsigned char set)
void setRefracted (unsigned char set)
 Set the refraction flag for refracted rays.
const ntlColor shade ()
 main ray recursion function
void tracePhoton (ntlColor) const
 ~ntlRay ()
 Destructor.

Protected Member Functions

const ntlColor getShadedColor (ntlLightObject *light, const ntlRay &reflectedray, const ntlVec3Gfx &normal, ntlMaterial *surf) const

Private Attributes

gfxReal mContribution
unsigned int mDepth
ntlVec3Gfx mDirection
int mID
unsigned char mIsReflected
unsigned char mIsRefracted
ntlVec3Gfx mOrigin
ntlRenderGlobalsmpGlob
ntlVec3Gfx mvNormal

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index