#include <mxsPlugin.h>
Public Member Functions |
|
MSPluginAtmos () | |
MSPluginAtmos (MSPluginClass *pc, BOOL loading) | |
~MSPluginAtmos () | |
RefTargetHandle | Clone (RemapDir &remap) |
This method is used by 3ds Max to clone an
object. |
|
AtmosParamDlg * | CreateParamDialog (IRendParams *ip) |
BOOL | SetDlgThing (AtmosParamDlg *dlg) |
void | Shade (ShadeContext &sc, const Point3 &p0, const Point3 &p1, Color &color, Color &trans, BOOL isBG=FALSE) |
Atmospheric * | to_atmospheric () |
Static Public Member Functions |
|
static RefTargetHandle | create (MSPluginClass *pc, BOOL loading) |
Public Attributes |
|
MSAutoEParamDlg * | masterFXDlg |
MSPluginAtmos | ( | ) | [inline] |
{ }
MSPluginAtmos | ( | MSPluginClass * | pc, |
BOOL | loading | ||
) |
~MSPluginAtmos | ( | ) | [inline] |
{ DeleteAllRefsFromMe(); }
static RefTargetHandle create | ( | MSPluginClass * | pc, |
BOOL | loading | ||
) | [static] |
RefTargetHandle Clone | ( | RemapDir & | remap | ) | [virtual] |
This method is used by 3ds Max to clone an object.
class MyDerivedPlugin : public MyBasePlugin { const int MY_REFERENCE = 1; ReferenceTarget* Clone(RemapDir& remap) { ReferenceTarget* result = new MyDerivedPlugin(); BaseClone(this, result, remap); return result; } void BaseClone(ReferenceTarget* from, ReferenceTarget* to, RemapDir& remap) { if (!to || !from || from == to) return; MyBasePlugin::BaseClone(from, to, remap); to->ReplaceReference(MY_REFERENCE, remap->CloneRef(from->GetReference(MY_REFERENCE))); } };
This method should not be directly called by plug-ins. Instead, either RemapDir::CloneRef() or CloneRefHierachy() should be used to perform cloning. These methods ensure that the mapping from the original object to the clone is added to the RemapDir used for cloning, which may be used during backpatch operations
remap | - A RemapDir instance used for remapping references during a Clone. |
Reimplemented from ReferenceTarget.
Reimplemented in MSAtmosXtnd.
AtmosParamDlg* CreateParamDialog | ( | IRendParams * | ip | ) | [virtual] |
Reimplemented from Atmospheric.
Reimplemented in MSAtmosXtnd.
BOOL SetDlgThing | ( | AtmosParamDlg * | dlg | ) | [virtual] |
Reimplemented from Atmospheric.
Reimplemented in MSAtmosXtnd.
void Shade | ( | ShadeContext & | sc, |
const Point3 & | p0, | ||
const Point3 & | p1, | ||
Color & | color, | ||
Color & | trans, | ||
BOOL | isBG = FALSE |
||
) | [inline, virtual] |
Implements Atmospheric.
Reimplemented in MSAtmosXtnd.
{ };
Atmospheric* to_atmospheric | ( | ) | [inline, virtual] |