TBasicGel Class Reference
[Base Classes for plugins]

Inheritance diagram for TBasicGel:

I3DExLightsourceGel 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 boolean MCCOMAPI GetGelValues (const TVector2 &gelScreenPosition, TMCColorRGB &result)

Detailed Description

Basic Gel class. Derive from this for a default implementation of I3DExLightsourceGel
See also:
I3DExLightsourceGel


Member Function Documentation

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

Increments the reference count of the object

Reimplemented from TBasicUnknown.

virtual boolean MCCOMAPI TBasicGel::GetGelValues (  const TVector2 &  gelScreenPosition,
TMCColorRGB &  result
)  [virtual]
 

Modifies the color of the light.

Parameters:
gelScreenPosition The position in the gel [0,1]x[0,1]
result On Enter, it contains the light emitted from the light source. On Exit, it contains the color of light filtered by the gel.

Implements I3DExLightsourceGel.

virtual MCCOMErr MCCOMAPI TBasicGel::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.


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