#include <mxsPlugin.h>
Public Member Functions |
|
MSPluginMtl () | |
MSPluginMtl (MSPluginClass *pc, BOOL loading) | |
~MSPluginMtl () | |
HWND | AddRollupPage (HINSTANCE hInst, MCHAR *dlgTemplate, DLGPROC dlgProc, MCHAR *title, LPARAM param=0, DWORD flags=0, int category=ROLLUP_CAT_STANDARD) |
void | DeleteRollupPage (HWND hRollup) |
IRollupWindow * | GetRollupWindow () |
ReferenceTarget * | get_delegate () |
void | DeleteThis () |
void | GetClassName (MSTR &s) |
Retrieves the name of the plugin class.
|
|
Class_ID | ClassID () |
Retrieves a constant that uniquely
identifies the plugin class. |
|
void | FreeCaches () |
int | NumSubs () |
Animatable * | SubAnim (int i) |
MSTR | SubAnimName (int i) |
int | NumParamBlocks () |
IParamBlock2 * | GetParamBlock (int i) |
IParamBlock2 * | GetParamBlockByID (BlockID id) |
void * | GetInterface (ULONG id) |
Inherited from Animatable. |
|
RefResult | NotifyRefChanged (Interval changeInt, RefTargetHandle hTarget, PartID &partID, RefMessage message) |
int | NumRefs () |
Returns the total number of references this
ReferenceMaker can hold. |
|
RefTargetHandle | GetReference (int i) |
Returns the 'i-th' reference. |
|
RefTargetHandle | Clone (RemapDir &remap) |
This method is used by 3ds Max to clone an
object. |
|
MSTR | GetFullName () |
int | BuildMaps (TimeValue t, RenderMapsContext &rmc) |
ULONG | Requirements (int subMtlNum) |
ULONG | LocalRequirements (int subMtlNum) |
void | MappingsRequired (int subMtlNum, BitArray &mapreq, BitArray &bumpreq) |
void | LocalMappingsRequired (int subMtlNum, BitArray &mapreq, BitArray &bumpreq) |
BOOL | IsMultiMtl () |
int | NumSubTexmaps () |
Texmap * | GetSubTexmap (int i) |
void | SetSubTexmap (int i, Texmap *m) |
MSTR | GetSubTexmapSlotName (int i) |
MSTR | GetSubTexmapTVName (int i) |
void | Update (TimeValue t, Interval &valid) |
void | Reset () |
Interval | Validity (TimeValue t) |
ParamDlg * | CreateParamDlg (HWND hwMtlEdit, IMtlParams *imp) |
IOResult | Save (ISave *isave) |
IOResult | Load (ILoad *iload) |
ULONG | GetGBufID () |
void | SetGBufID (ULONG id) |
void | EnumAuxFiles (AssetEnumCallback &assetEnum, DWORD flags) |
PStamp * | GetPStamp (int sz) |
PStamp * | CreatePStamp (int sz) |
void | DiscardPStamp (int sz) |
BOOL | SupportTexDisplay () |
DWORD_PTR | GetActiveTexHandle (TimeValue t, TexHandleMaker &thmaker) |
void | ActivateTexDisplay (BOOL onoff) |
BOOL | SupportsMultiMapsInViewport () |
void | SetupGfxMultiMaps (TimeValue t, Material *mtl, MtlMakerCallback &cb) |
ReferenceTarget * | GetRefTarget () |
MtlBase * | GetActiveTexmap () |
void | SetActiveTexmap (MtlBase *txm) |
void | RefDeleted () |
Called after a references to this is
deleted. |
|
void | RefAdded (RefMakerHandle rm) |
Called after a reference is made to a
target. |
|
Color | GetAmbient (int mtlNum=0, BOOL backFace=FALSE) |
Color | GetDiffuse (int mtlNum=0, BOOL backFace=FALSE) |
Color | GetSpecular (int mtlNum=0, BOOL backFace=FALSE) |
float | GetShininess (int mtlNum=0, BOOL backFace=FALSE) |
float | GetShinStr (int mtlNum=0, BOOL backFace=FALSE) |
float | GetXParency (int mtlNum=0, BOOL backFace=FALSE) |
BOOL | GetSelfIllumColorOn (int mtlNum=0, BOOL backFace=FALSE) |
float | GetSelfIllum (int mtlNum=0, BOOL backFace=FALSE) |
Color | GetSelfIllumColor (int mtlNum=0, BOOL backFace=FALSE) |
float | WireSize (int mtlNum=0, BOOL backFace=FALSE) |
void | SetAmbient (Color c, TimeValue t) |
void | SetDiffuse (Color c, TimeValue t) |
void | SetSpecular (Color c, TimeValue t) |
void | SetShininess (float v, TimeValue t) |
void | Shade (ShadeContext &sc) |
int | NumSubMtls () |
Mtl * | GetSubMtl (int i) |
void | SetSubMtl (int i, Mtl *m) |
MSTR | GetSubMtlSlotName (int i) |
MSTR | GetSubMtlTVName (int i) |
float | GetDynamicsProperty (TimeValue t, int mtlNum, int propID) |
void | SetDynamicsProperty (TimeValue t, int mtlNum, int propID, float value) |
float | EvalDisplacement (ShadeContext &sc) |
Interval | DisplacementValidity (TimeValue t) |
bool | IsOutputConst (ShadeContext &sc, int stdID) |
bool | EvalColorStdChannel (ShadeContext &sc, int stdID, Color &outClr) |
bool | EvalMonoStdChannel (ShadeContext &sc, int stdID, float &outVal) |
Static Public Member Functions |
|
static RefTargetHandle | create (MSPluginClass *pc, BOOL loading) |
Static Public Attributes |
|
static MSAutoMParamDlg * | masterMDlg |
static IMtlParams * | ip |
Protected Member Functions |
|
virtual void | SetReference (int i, RefTargetHandle rtarg) |
Stores a
ReferenceTarget as its 'i-th' reference`. |
MSPluginMtl | ( | ) | [inline] |
{ }
MSPluginMtl | ( | MSPluginClass * | pc, |
BOOL | loading | ||
) |
~MSPluginMtl | ( | ) | [inline] |
{ DeleteAllRefsFromMe(); }
static RefTargetHandle create | ( | MSPluginClass * | pc, |
BOOL | loading | ||
) | [static] |
HWND AddRollupPage | ( | HINSTANCE | hInst, |
MCHAR * | dlgTemplate, | ||
DLGPROC | dlgProc, | ||
MCHAR * | title, | ||
LPARAM | param = 0 , |
||
DWORD | flags = 0 , |
||
int | category =
ROLLUP_CAT_STANDARD |
||
) | [virtual] |
Implements MSPlugin.
void DeleteRollupPage | ( | HWND | hRollup | ) | [virtual] |
Implements MSPlugin.
IRollupWindow* GetRollupWindow | ( | ) | [virtual] |
Implements MSPlugin.
ReferenceTarget* get_delegate | ( | ) | [inline, virtual] |
void DeleteThis | ( | ) |
void GetClassName | ( | MSTR & | s | ) | [inline, virtual] |
Retrieves the name of the plugin class.
This name is usually used internally for debugging purposes. For Material plug-ins this method is used to put up the material "type" name in the Material Editor.
s | Reference to a string filled in with the name of the plugin class |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
Class_ID ClassID | ( | ) | [inline, virtual] |
Retrieves a constant that uniquely identifies the plugin class.
This method must return the unique ID for the plugin class. If two ClassIDs conflict, the system will only load the first conflicting one it finds. A program (gencid.exe) is provided to generate unique class id values.
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return pc->class_id; }
void FreeCaches | ( | ) | [inline, virtual] |
Reimplemented from Animatable.
Reimplemented in MSMtlXtnd.
{ }
int NumSubs | ( | ) | [inline, virtual] |
Reimplemented from Animatable.
Reimplemented in MSMtlXtnd.
Animatable* SubAnim | ( | int | i | ) | [inline, virtual] |
i | This is the index of the sub-anim to return. |
Reimplemented from Animatable.
Reimplemented in MSMtlXtnd.
{ return pblocks[i]; }
MSTR SubAnimName | ( | int | i | ) | [inline, virtual] |
i | The index of the parameter name to return |
Reimplemented from Animatable.
Reimplemented in MSMtlXtnd.
{ return pblocks[i]->GetLocalName(); }
int NumParamBlocks | ( | ) | [inline, virtual] |
Reimplemented from Animatable.
Reimplemented in MSMtlXtnd.
IParamBlock2* GetParamBlock | ( | int | i | ) | [inline, virtual] |
i | The zero based index of the ParamBlock2 to return. |
Reimplemented from Animatable.
Reimplemented in MSMtlXtnd.
{ return pblocks[i]; }
IParamBlock2* GetParamBlockByID | ( | BlockID | id | ) | [inline] |
Reimplemented from MSPlugin.
Reimplemented in MSMtlXtnd.
{ return MSPlugin::GetParamBlockByID(id); }
void* GetInterface | ( | ULONG | id | ) | [inline, virtual] |
Inherited from Animatable.
Returns a pointer to the interface.
id | - The id of the interface. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ if (id == I_MAXSCRIPTPLUGIN) return (MSPlugin*)this; else return Mtl::GetInterface(id); }
RefResult NotifyRefChanged | ( | Interval | changeInt, |
RefTargetHandle | hTarget, | ||
PartID & | partID, | ||
RefMessage | message | ||
) | [inline] |
int NumRefs | ( | ) | [virtual] |
Returns the total number of references this ReferenceMaker can hold.
The plugin implements this method to indicate the total number of of references it can make. This includes all references whether they are NULL (inactive) or non-NULL (active) at the time when this method is called. A plugin can hold a variable number of references, thus the return value of this method is not to be cached and reused by client code.
Reimplemented from ReferenceMaker.
Reimplemented in MSMtlXtnd.
RefTargetHandle GetReference | ( | int | i | ) | [virtual] |
Returns the 'i-th' reference.
The plugin implements this method to return its 'i-th' reference. The plug-in simply keeps track of its references using an integer index for each one. This method is normally called by the system.
i | - The index of the reference to retrieve. Valid values are from 0 to NumRefs()-1. |
Reimplemented from ReferenceMaker.
Reimplemented in MSMtlXtnd.
virtual void SetReference | ( | int | i, |
RefTargetHandle | rtarg | ||
) | [protected, virtual] |
Stores a ReferenceTarget as its 'i-th' reference`.
The plugin implements this method to store the reference handle passed to it as its 'i-th' reference. In its implementation of this method, the plugin should simply assign the reference handle passed in as a parameter to the member variable that holds the 'i-th' reference. Other reference handling methods such as ReferenceMaker::DeleteReference(), or ReferenceMaker::ReplaceReference() should not be called from within this method. The plugin itself or other plugins should not call this method directly. The system will call this method when a new reference is created or an existing one is replaced by calling ReferenceMaker::ReplaceReference().
i | - The index of the reference to store. Valid values are from 0 to NumRefs()-1. |
rtarg | - The reference handle to store. |
Reimplemented from ReferenceMaker.
Reimplemented in MSMtlXtnd.
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 MSMtlXtnd.
MSTR GetFullName | ( | ) | [inline, virtual] |
Reimplemented from MtlBase.
{ return MtlBase::GetFullName(); }
int BuildMaps | ( | TimeValue | t, |
RenderMapsContext & | rmc | ||
) | [inline, virtual] |
t | The current time. |
rmc | Provides information about the view being rendered and can provide access to the global rendering environment information via RenderGlobalContext *gc = rmc.GetGlobalContext(). See Class RenderMapsContext and Class RenderGlobalContext. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::BuildMaps(t, rmc); }
ULONG Requirements | ( | int | subMtlNum | ) | [inline, virtual] |
subMtlNum | Specifies the number of the sub-material whose requirements should be returned. -1 may be used to return a value generated by looping over all the sub-materials and ORing together the requirements. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::Requirements(subMtlNum); }
ULONG LocalRequirements | ( | int | subMtlNum | ) | [inline, virtual] |
subMtlNum | Specifies the number of the sub-material whose requirements should be returned. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::LocalRequirements(subMtlNum); }
subMtlNum | Specifies the number of the sub-material whose mapping information is retrieved. |
mapreq | This array of bits is initialized to an empty set with MAX_MESHMAPS elements. Each bit corresponds to a mapping channel. Set a bit to one to indicate the material requires the corresponding UVW channel. |
bumpreq | This array of bits is initialized to an empty set with MAX_MESHMAPS elements. Each bit corresponds to a mapping channel. Set a bit to one to indicate the material requires the corresponding bump mapping channel. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ MtlBase::MappingsRequired(subMtlNum, mapreq, bumpreq); }
void LocalMappingsRequired | ( | int | subMtlNum, |
BitArray & | mapreq, | ||
BitArray & | bumpreq | ||
) | [inline, virtual] |
subMtlNum | Specifies the number of the sub-material whose mapping information is retrieved. |
mapreq | This array of bits is initialized to an empty set with MAX_MESHMAPS elements. Each bit corresponds to a mapping channel. Set a bit to one to indicate the material requires the corresponding UVW channel. |
bumpreq | This array of bits is initialized to an empty set with MAX_MESHMAPS elements. Each bit corresponds to a mapping channel. Set a bit to one to indicate the material requires the corresponding bump mapping channel. |
void LocalMappingsRequired(int subMtlNum, BitArray & mapreq, BitArray &bumpreq) { uvGen->MappingsRequired(subMtlNum,mapreq,bumpreq); }
void LocalMappingsRequired(int subMtlNum, BitArray & mapreq,BitArray &bumpreq) { xyzGen->MappingsRequired(subMtlNum,mapreq,bumpreq); }
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ MtlBase::LocalMappingsRequired(subMtlNum, mapreq, bumpreq); }
BOOL IsMultiMtl | ( | ) | [inline, virtual] |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::IsMultiMtl(); }
int NumSubTexmaps | ( | ) | [virtual] |
Texmap* GetSubTexmap | ( | int | i | ) | [virtual] |
Reimplemented from ISubMap.
Reimplemented in MSMtlXtnd.
void SetSubTexmap | ( | int | i, |
Texmap * | m | ||
) | [virtual] |
Reimplemented from ISubMap.
Reimplemented in MSMtlXtnd.
MSTR GetSubTexmapSlotName | ( | int | i | ) | [virtual] |
Reimplemented from ISubMap.
Reimplemented in MSMtlXtnd.
MSTR GetSubTexmapTVName | ( | int | i | ) | [inline] |
Reimplemented from ISubMap.
{ return GetSubTexmapSlotName(i); }
void Update | ( | TimeValue | t, |
Interval & | valid | ||
) | [inline, virtual] |
t | The current time. |
valid | The validity interval to update to reflect the validity interval of the material or texture at the time passed. |
Implements MtlBase.
Reimplemented in MSMtlXtnd.
{ }
void Reset | ( | ) | [inline, virtual] |
void DoubleSided::Reset() { dblsidedCD.Reset(this, TRUE); // Resets all pb2's Init(); }
Implements MtlBase.
Reimplemented in MSMtlXtnd.
{ pc->cd2->Reset(this, TRUE); }
Interval Validity | ( | TimeValue | t | ) | [virtual] |
ParamDlg* CreateParamDlg | ( | HWND | hwMtlEdit, |
IMtlParams * | imp | ||
) | [virtual] |
hwMtlEdit | The window handle of the materials editor. |
imp | The interface pointer for calling methods in 3ds Max. |
Implements MtlBase.
Reimplemented in MSMtlXtnd.
Reimplemented from MSPlugin.
Reimplemented in MSMtlXtnd.
{ MSPlugin::Save(isave); return MtlBase::Save(isave); }
Reimplemented from MSPlugin.
Reimplemented in MSMtlXtnd.
{ MSPlugin::Load(iload); return MtlBase::Load(iload); }
ULONG GetGBufID | ( | ) | [inline] |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::GetGBufID(); }
void SetGBufID | ( | ULONG | id | ) | [inline] |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ MtlBase::SetGBufID(id); }
void EnumAuxFiles | ( | AssetEnumCallback & | nameEnum, |
DWORD | flags | ||
) | [inline, virtual] |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ if ((flags&FILE_ENUM_CHECK_AWORK1)&&TestAFlag(A_WORK1)) return; // LAM - 4/21/03 ReferenceTarget::EnumAuxFiles(assetEnum, flags); }
PStamp* GetPStamp | ( | int | sz | ) | [inline, virtual] |
sz | One of the following values: PS_SMALL for small (32x32) images. PS_LARGE for large (88x88) images. PS_TINY for tiny (24x24) images. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::GetPStamp(sz); }
PStamp* CreatePStamp | ( | int | sz | ) | [inline] |
void DiscardPStamp | ( | int | sz | ) | [inline, virtual] |
sz | One of the following values: PS_SMALL for small (32x32) images. PS_LARGE for large (88x88) images. PS_TINY for tiny (24x24) images. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ MtlBase::DiscardPStamp(sz); }
BOOL SupportTexDisplay | ( | ) | [inline, virtual] |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::SupportTexDisplay(); }
DWORD_PTR GetActiveTexHandle | ( | TimeValue | t, |
TexHandleMaker & | thmaker | ||
) | [inline, virtual] |
t | The time to return the texture handle. |
thmaker | This class provides methods for creating a texture handle from a 3ds Max bitmap and a Windows DIB. It also has a method to retrieve the required size of the texture map. See Class TexHandleMaker. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::GetActiveTexHandle(t, thmaker); }
void ActivateTexDisplay | ( | BOOL | onoff | ) | [inline, virtual] |
onoff | TRUE if the texture is being used; FALSE if it is no longer being used. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ MtlBase::ActivateTexDisplay(onoff); }
BOOL SupportsMultiMapsInViewport | ( | ) | [inline, virtual] |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::SupportsMultiMapsInViewport(); }
void SetupGfxMultiMaps | ( | TimeValue | t, |
Material * | mtl, | ||
MtlMakerCallback & | cb | ||
) | [inline, virtual] |
t | The time at which to evaluate the material. |
mtl | Points to the interactive renderer material to update. |
cb | This callback object is provided as a helper to fill in the Material properties above. See Class MtlMakerCallback. |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ MtlBase::SetupGfxMultiMaps(t, mtl, cb); }
ReferenceTarget* GetRefTarget | ( | ) | [inline, virtual] |
Reimplemented from MtlBase.
Reimplemented in MSMtlXtnd.
{ return MtlBase::GetRefTarget(); }
MtlBase* GetActiveTexmap | ( | ) | [inline] |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::GetActiveTexmap(); }
void SetActiveTexmap | ( | MtlBase * | txm | ) | [inline] |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ Mtl::SetActiveTexmap(txm); }
void RefDeleted | ( | ) | [inline, virtual] |
Called after a references to this is deleted.
This is called after deleting a reference to a reference target, in the case that the target was not deleted. When the last strong reference to a ReferenceTarget is removed, the ReferenceTarget is deleted, the destructor is called, and the memory cleared.
Reimplemented from Mtl.
{ Mtl::RefDeleted(); MSPlugin::RefDeleted(); }
void RefAdded | ( | RefMakerHandle | rm | ) | [virtual] |
Called after a reference is made to a target.
This is called after a reference is made to this. If the target (this) needs to know that a reference to made to it, the target (this) can override this function.
rm | - The ReferenceMaker creating the reference. |
Reimplemented from Mtl.
Color GetAmbient | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Implements Mtl.
Reimplemented in MSMtlXtnd.
{ return Color(0,0,0); }
Color GetDiffuse | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Implements Mtl.
Reimplemented in MSMtlXtnd.
{ return Color(0,0,0); }
Color GetSpecular | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Implements Mtl.
Reimplemented in MSMtlXtnd.
{ return Color(0,0,0); }
float GetShininess | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Implements Mtl.
Reimplemented in MSMtlXtnd.
{ return 0.0f; }
float GetShinStr | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Implements Mtl.
Reimplemented in MSMtlXtnd.
{ return 0.0f; }
float GetXParency | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Implements Mtl.
Reimplemented in MSMtlXtnd.
{ return 0.0f; }
BOOL GetSelfIllumColorOn | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::GetSelfIllumColorOn(mtlNum, backFace); }
float GetSelfIllum | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::GetSelfIllum(mtlNum, backFace); }
Color GetSelfIllumColor | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::GetSelfIllumColor(mtlNum, backFace); }
float WireSize | ( | int | mtlNum = 0 , |
BOOL | backFace =
FALSE |
||
) | [inline, virtual] |
mtlNum | This is the material index for mult-materials. |
backFace | If the surface normal of the face is pointing away from the viewer this will be TRUE; otherwise FALSE. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::WireSize(mtlNum, backFace); }
void SetAmbient | ( | Color | c, |
TimeValue | t | ||
) | [inline, virtual] |
void SetDiffuse | ( | Color | c, |
TimeValue | t | ||
) | [inline, virtual] |
void SetSpecular | ( | Color | c, |
TimeValue | t | ||
) | [inline, virtual] |
void SetShininess | ( | float | v, |
TimeValue | t | ||
) | [inline, virtual] |
void Shade | ( | ShadeContext & | sc | ) | [inline, virtual] |
sc | Describes properties of the pixel to be shaded. The result of this method is returned in the ShadeOutput data member of sc. |
Implements Mtl.
Reimplemented in MSMtlXtnd.
{ }
int NumSubMtls | ( | ) | [virtual] |
Mtl* GetSubMtl | ( | int | i | ) | [virtual] |
void SetSubMtl | ( | int | i, |
Mtl * | m | ||
) | [virtual] |
MSTR GetSubMtlSlotName | ( | int | i | ) | [virtual] |
i | The index of the sub-materials whose slot name should be returned. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
MSTR GetSubMtlTVName | ( | int | i | ) | [inline] |
i | The index of the sub-materials whose track view name should be returned. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return GetSubMtlSlotName(i); }
float GetDynamicsProperty | ( | TimeValue | t, |
int | mtlNum, | ||
int | propID | ||
) | [inline, virtual] |
t | The time to return the dynamics property. |
mtlNum | The index of the sub-material or zero if this is a base material. |
propID | Specifies the type of property. One of the following
values: DYN_BOUNCE The bounce coefficient. Values in the range 0.0 to 1.0. DYN_STATIC_FRICTION The static friction property. Values in the range 0.0 to 1.0. DYN_SLIDING_FRICTION The sliding friction property. Values in the range 0.0 to 1.0. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::GetDynamicsProperty(t, mtlNum, propID); }
void SetDynamicsProperty | ( | TimeValue | t, |
int | mtlNum, | ||
int | propID, | ||
float | value | ||
) | [inline, virtual] |
t | The time at which to set the value. |
mtlNum | The sub-material number for a multi-material. |
propID | Specifies the type of property. One of the following
values: DYN_BOUNCE The bounce coefficient. Values in the range 0.0 to 1.0. DYN_STATIC_FRICTION The static friction property. Values in the range 0.0 to 1.0. DYN_SLIDING_FRICTION The sliding friction property. Values in the range 0.0 to 1.0. |
value | The value to set. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ Mtl::SetDynamicsProperty(t, mtlNum, propID, value); }
float EvalDisplacement | ( | ShadeContext & | sc | ) | [inline, virtual] |
sc | This contains the details of the point being displaced. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::EvalDisplacement(sc); }
Interval DisplacementValidity | ( | TimeValue | t | ) | [inline, virtual] |
t | The Interval returned reflects the validity around this time. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::DisplacementValidity(t); }
bool IsOutputConst | ( | ShadeContext & | sc, |
int | stdID | ||
) | [inline, virtual] |
sc | This describes the context of the question. |
stdID | The ID of the channel in question. See Texture Map Indices. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::IsOutputConst( sc, stdID ); }
bool EvalColorStdChannel | ( | ShadeContext & | sc, |
int | stdID, | ||
Color & | outClr | ||
) | [inline, virtual] |
sc | This describes the context in which the material should be evaluated. |
stdID | The ID of the channel to perform evaluation on. See Texture Map Indices. |
outClr | The result of the evaluation. |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::EvalColorStdChannel( sc, stdID, outClr ); }
bool EvalMonoStdChannel | ( | ShadeContext & | sc, |
int | stdID, | ||
float & | outVal | ||
) | [inline, virtual] |
Reimplemented from Mtl.
Reimplemented in MSMtlXtnd.
{ return Mtl::EvalMonoStdChannel( sc, stdID, outVal ); }
IMtlParams* ip
[static] |