GClasses
GClasses::GRayTracePhysicalMaterial Class Reference

Detailed Description

Represents the material of which an object is made in a ray-tracing scene.

#include <GRayTrace.h>

Inheritance diagram for GClasses::GRayTracePhysicalMaterial:
GClasses::GRayTraceMaterial

Public Member Functions

 GRayTracePhysicalMaterial ()
 
 GRayTracePhysicalMaterial (GDomNode *pNode)
 
virtual ~GRayTracePhysicalMaterial ()
 
virtual G3DReal cloudiness ()
 
virtual GRayTraceColorcolor (ColorType eType, GRayTraceRay *pRay)
 Ignores pRay and returns the color of the specified type. (pRay is used by image-texture materials to determine which pixel applies.) More...
 
virtual GRayTraceMaterialcopy ()
 
virtual G3DReal glossiness ()
 
virtual G3DReal indexOfRefraction ()
 
virtual bool isSame (GRayTraceMaterial *pThat)
 
virtual MaterialType materialType () const
 
virtual GDomNodeserialize (GDom *pDoc) const
 
void setCloudiness (G3DReal val)
 
void setColor (ColorType eType, G3DReal r, G3DReal g, G3DReal b)
 
void setColor (ColorType eType, GRayTraceColor *pCol)
 
void setGlossiness (G3DReal val)
 
void setIndexOfRefraction (G3DReal val)
 
void setSpecularExponent (G3DReal val)
 
virtual G3DReal specularExponent ()
 
- Public Member Functions inherited from GClasses::GRayTraceMaterial
 GRayTraceMaterial ()
 
virtual ~GRayTraceMaterial ()
 
void computeColor (GRayTraceScene *pScene, GRayTraceRay *pRay, bool bAmbient, bool bSpecular)
 

Protected Attributes

G3DReal m_cloudiness
 
GRayTraceColor m_colors [Color_Type_Count]
 
G3DReal m_glossiness
 
G3DReal m_indexOfRefraction
 
G3DReal m_specularExponent
 

Additional Inherited Members

- Public Types inherited from GClasses::GRayTraceMaterial
- Static Public Member Functions inherited from GClasses::GRayTraceMaterial
static GRayTraceMaterialdeserialize (GDomNode *pNode)
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual G3DReal GClasses::GRayTracePhysicalMaterial::cloudiness ( )
inlinevirtual
virtual GRayTraceColor* GClasses::GRayTracePhysicalMaterial::color ( ColorType  eType,
GRayTraceRay *  pRay 
)
virtual

Ignores pRay and returns the color of the specified type. (pRay is used by image-texture materials to determine which pixel applies.)

Implements GClasses::GRayTraceMaterial.

virtual GRayTraceMaterial* GClasses::GRayTracePhysicalMaterial::copy ( )
virtual
virtual G3DReal GClasses::GRayTracePhysicalMaterial::glossiness ( )
inlinevirtual
virtual G3DReal GClasses::GRayTracePhysicalMaterial::indexOfRefraction ( )
inlinevirtual
virtual bool GClasses::GRayTracePhysicalMaterial::isSame ( GRayTraceMaterial pThat)
virtual
virtual MaterialType GClasses::GRayTracePhysicalMaterial::materialType ( ) const
inlinevirtual
virtual GDomNode* GClasses::GRayTracePhysicalMaterial::serialize ( GDom pDoc) const
virtual
void GClasses::GRayTracePhysicalMaterial::setCloudiness ( G3DReal  val)
inline
void GClasses::GRayTracePhysicalMaterial::setColor ( ColorType  eType,
G3DReal  r,
G3DReal  g,
G3DReal  b 
)
void GClasses::GRayTracePhysicalMaterial::setColor ( ColorType  eType,
GRayTraceColor pCol 
)
void GClasses::GRayTracePhysicalMaterial::setGlossiness ( G3DReal  val)
inline
void GClasses::GRayTracePhysicalMaterial::setIndexOfRefraction ( G3DReal  val)
inline
void GClasses::GRayTracePhysicalMaterial::setSpecularExponent ( G3DReal  val)
inline
virtual G3DReal GClasses::GRayTracePhysicalMaterial::specularExponent ( )
inlinevirtual

Member Data Documentation

G3DReal GClasses::GRayTracePhysicalMaterial::m_cloudiness
protected
GRayTraceColor GClasses::GRayTracePhysicalMaterial::m_colors[Color_Type_Count]
protected
G3DReal GClasses::GRayTracePhysicalMaterial::m_glossiness
protected
G3DReal GClasses::GRayTracePhysicalMaterial::m_indexOfRefraction
protected
G3DReal GClasses::GRayTracePhysicalMaterial::m_specularExponent
protected