GClasses
GClasses::GRayTraceLight Class Referenceabstract

Detailed Description

Represents a source of light in a ray-tracing scene.

#include <GRayTrace.h>

Inheritance diagram for GClasses::GRayTraceLight:
GClasses::GRayTraceAreaLight GClasses::GRayTraceDirectionalLight GClasses::GRayTracePointLight

Public Types

Public Member Functions

 GRayTraceLight (G3DReal r, G3DReal g, G3DReal b)
 
 GRayTraceLight (GDomNode *pNode)
 
virtual ~GRayTraceLight ()
 
virtual void colorContribution (GRayTraceScene *pScene, GRayTraceRay *pRay, GRayTraceMaterial *pMaterial, bool bSpecular)=0
 
virtual LightType lightType () const =0
 
virtual GDomNodeserialize (GDom *pDoc, const GRayTraceScene *pScene) const =0
 

Static Public Member Functions

static GRayTraceLightdeserialize (GDomNode *pNode, GRayTraceScene *pScene)
 

Protected Member Functions

GDomNodebaseDomNode (GDom *pDoc) const
 

Protected Attributes

GRayTraceColor m_color
 

Member Enumeration Documentation

Enumerator
Directional 
Point 
Area 

Constructor & Destructor Documentation

GClasses::GRayTraceLight::GRayTraceLight ( G3DReal  r,
G3DReal  g,
G3DReal  b 
)
GClasses::GRayTraceLight::GRayTraceLight ( GDomNode pNode)
virtual GClasses::GRayTraceLight::~GRayTraceLight ( )
virtual

Member Function Documentation

GDomNode* GClasses::GRayTraceLight::baseDomNode ( GDom pDoc) const
protected
virtual void GClasses::GRayTraceLight::colorContribution ( GRayTraceScene pScene,
GRayTraceRay *  pRay,
GRayTraceMaterial pMaterial,
bool  bSpecular 
)
pure virtual
static GRayTraceLight* GClasses::GRayTraceLight::deserialize ( GDomNode pNode,
GRayTraceScene pScene 
)
static
virtual LightType GClasses::GRayTraceLight::lightType ( ) const
pure virtual
virtual GDomNode* GClasses::GRayTraceLight::serialize ( GDom pDoc,
const GRayTraceScene pScene 
) const
pure virtual

Member Data Documentation

GRayTraceColor GClasses::GRayTraceLight::m_color
protected