GClasses
GClasses::GRayTraceDirectionalLight Class Reference

Detailed Description

Represents directional light in a ray-tracing scene.

#include <GRayTrace.h>

Inheritance diagram for GClasses::GRayTraceDirectionalLight:
GClasses::GRayTraceLight

Public Member Functions

 GRayTraceDirectionalLight (G3DReal dx, G3DReal dy, G3DReal dz, G3DReal r, G3DReal g, G3DReal b, G3DReal jitter)
 Specify the direction to the light, not the direction the light travels. More...
 
 GRayTraceDirectionalLight (GDomNode *pNode)
 
virtual ~GRayTraceDirectionalLight ()
 
virtual void colorContribution (GRayTraceScene *pScene, GRayTraceRay *pRay, GRayTraceMaterial *pMaterial, bool bSpecular)
 
virtual LightType lightType () const
 
virtual GDomNodeserialize (GDom *pDoc, const GRayTraceScene *pScene) const
 
- Public Member Functions inherited from GClasses::GRayTraceLight
 GRayTraceLight (G3DReal r, G3DReal g, G3DReal b)
 
 GRayTraceLight (GDomNode *pNode)
 
virtual ~GRayTraceLight ()
 

Protected Attributes

G3DVector m_direction
 
G3DReal m_jitter
 
- Protected Attributes inherited from GClasses::GRayTraceLight
GRayTraceColor m_color
 

Additional Inherited Members

- Public Types inherited from GClasses::GRayTraceLight
- Static Public Member Functions inherited from GClasses::GRayTraceLight
static GRayTraceLightdeserialize (GDomNode *pNode, GRayTraceScene *pScene)
 
- Protected Member Functions inherited from GClasses::GRayTraceLight
GDomNodebaseDomNode (GDom *pDoc) const
 

Constructor & Destructor Documentation

GClasses::GRayTraceDirectionalLight::GRayTraceDirectionalLight ( G3DReal  dx,
G3DReal  dy,
G3DReal  dz,
G3DReal  r,
G3DReal  g,
G3DReal  b,
G3DReal  jitter 
)

Specify the direction to the light, not the direction the light travels.

GClasses::GRayTraceDirectionalLight::GRayTraceDirectionalLight ( GDomNode pNode)
virtual GClasses::GRayTraceDirectionalLight::~GRayTraceDirectionalLight ( )
virtual

Member Function Documentation

virtual void GClasses::GRayTraceDirectionalLight::colorContribution ( GRayTraceScene pScene,
GRayTraceRay *  pRay,
GRayTraceMaterial pMaterial,
bool  bSpecular 
)
virtual
virtual LightType GClasses::GRayTraceDirectionalLight::lightType ( ) const
inlinevirtual
virtual GDomNode* GClasses::GRayTraceDirectionalLight::serialize ( GDom pDoc,
const GRayTraceScene pScene 
) const
virtual

Member Data Documentation

G3DVector GClasses::GRayTraceDirectionalLight::m_direction
protected
G3DReal GClasses::GRayTraceDirectionalLight::m_jitter
protected