This reference page is linked to from the following overview topics: Thread Safety, Plug-in Base Classes.
#include <sfx.h>
Public Member Functions |
|
RefResult | NotifyRefChanged (Interval changeInt, RefTargetHandle hTarget, PartID &partID, RefMessage message) |
Receives and responds to messages. |
|
SClass_ID | SuperClassID () |
Retrieves a constant representing the type
of the plugin. |
|
IOResult | Save (ISave *isave) |
IOResult | Load (ILoad *iload) |
virtual AtmosParamDlg * | CreateParamDialog (IRendParams *ip) |
virtual BOOL | SetDlgThing (AtmosParamDlg *dlg) |
virtual void | Shade (ShadeContext &sc, const Point3 &p0, const Point3 &p1, Color &color, Color &trans, BOOL isBG=FALSE)=0 |
RefResult NotifyRefChanged | ( | Interval | changeInt, |
RefTargetHandle | hTarget, | ||
PartID & | partID, | ||
RefMessage | message | ||
) | [inline, virtual] |
Receives and responds to messages.
A plugin which makes references must implement a method to receive and respond to messages broadcast by its dependents. This is done by implementing NotifyRefChanged(). The plugin developer usually implements this method as a switch statement where each case is one of the messages the plugin needs to respond to. The Method StdNotifyRefChanged calls this, which can change the partID to new value. If it doesn't depend on the particular message& partID, it should return REF_DONTCARE.
changeInt | - This is the interval of time over which the message is active. Currently, all plug-ins will receive FOREVER for this interval. |
hTarget | - This is the handle of the reference target the message was sent by. The reference maker uses this handle to know specifically which reference target sent the message. |
partID | - This contains information specific to the message passed in. Some messages don't use the partID at all. See the section List of Reference Messages for more information about the meaning of the partID for some common messages. |
message | - The message parameters passed into this method is the specific message which needs to be handled. |
Implements ReferenceMaker.
Reimplemented in MSPluginSpecialFX< Atmospheric >.
{ return REF_SUCCEED; }
SClass_ID SuperClassID | ( | ) | [inline, virtual] |
Retrieves a constant representing the type of the plugin.
Reimplemented from ReferenceTarget.
Reimplemented in IXRefAtmospheric.
{ return ATMOSPHERIC_CLASS_ID; }
Reimplemented from SpecialFX.
Reimplemented in MSPluginSpecialFX< Atmospheric >.
{ return SpecialFX::Save(isave); }
Reimplemented from SpecialFX.
Reimplemented in MSPluginSpecialFX< Atmospheric >.
{ return SpecialFX::Load(iload); }
virtual AtmosParamDlg* CreateParamDialog | ( | IRendParams * | ip | ) | [inline, virtual] |
Reimplemented from SpecialFX.
Reimplemented in MSPluginAtmos, and MSAtmosXtnd.
{ return NULL; }
virtual BOOL SetDlgThing | ( | AtmosParamDlg * | dlg | ) | [inline, virtual] |
Reimplemented from SpecialFX.
Reimplemented in MSPluginAtmos, and MSAtmosXtnd.
{ return FALSE; }
virtual void Shade | ( | ShadeContext & | sc, |
const Point3 & | p0, | ||
const Point3 & | p1, | ||
Color & | color, | ||
Color & | trans, | ||
BOOL | isBG = FALSE |
||
) | [pure virtual] |
Implemented in MSPluginAtmos, and MSAtmosXtnd.