TBasicAtmosphere Class Reference
[Base Classes for plugins]

Inheritance diagram for TBasicAtmosphere:

I3DExAtmosphericShader TBasicDataExchanger IMCUnknown TBasicUnknown IMCUnknown List of all members.

Public Member Functions

virtual MCCOMErr MCCOMAPI QueryInterface (const MCIID &riid, void **ppvObj)
virtual uint32 MCCOMAPI AddRef ()
virtual MCCOMErr MCCOMAPI SegmentFilter (TVector3 &beg, TVector3 &end, TMCColorRGB &inOutFilter, boolean indirectLight)
virtual MCCOMErr MCCOMAPI DirectionFilter (TVector3 &origin, TVector3 &direction, TMCColorRGB &inOutFilter, boolean indirectLight)

Detailed Description

Basic Atmosphere class. Derive from this for a default implementation of I3DExAtmosphericShader
See also:
I3DExAtmosphericShader


Member Function Documentation

virtual uint32 MCCOMAPI TBasicAtmosphere::AddRef (   )  [inline, virtual]
 

Increments the reference count of the object

Reimplemented from TBasicUnknown.

virtual MCCOMErr MCCOMAPI TBasicAtmosphere::DirectionFilter (  TVector3 &  origin,
TVector3 &  direction,
TMCColorRGB &  inOutFilter,
boolean  indirectLight
)  [virtual]
 

Calculates the effect of the atmosphere on an infinite ray.

Parameters:
origin The origin of the ray in Global Coordinates
direction A unit vector that defines the direction of the ray in Global coordinates
inOutFilter On input it contains the color of the Background. On output it contains the color of the light filtered through the atmosphere.
indirectLight True if the ray is used to calculate indirect lighting.

Implements I3DExAtmosphericShader.

virtual MCCOMErr MCCOMAPI TBasicAtmosphere::QueryInterface (  const MCIID &  riid,
void **  ppvObj
)  [virtual]
 

Check if the object supports a given interface and returns a pointer to that interface if it does. Note that QueryInterface will increment the reference count of the object by one if the interface is found.

Parameters:
riid GUID of the interface
ppvObj A pointer to the pointer being returned.

Reimplemented from TBasicDataExchanger.

virtual MCCOMErr MCCOMAPI TBasicAtmosphere::SegmentFilter (  TVector3 &  beg,
TVector3 &  end,
TMCColorRGB &  inOutFilter,
boolean  indirectLight
)  [virtual]
 


The documentation for this class was generated from the following file:
Generated on Mon Mar 14 12:29:06 2005 for Carrara SDK Doc by  doxygen 1.3.9.1