#include <mxsPlugin.h>
Public Member Functions |
|
MSMtlXtnd (MSPluginClass *pc, BOOL loading) | |
~MSMtlXtnd () | |
void | DeleteThis () |
ReferenceTarget * | get_delegate () |
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. |
|
BaseInterface * | GetInterface (Interface_ID id) |
Inherited from Animatable. |
|
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. |
|
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) |
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 () |
BOOL | DontKeepOldMtl () |
MtlBase * | GetActiveTexmap () |
void | SetActiveTexmap (MtlBase *txm) |
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) |
Sampler * | GetPixelSampler (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) |
BOOL | SupportsShaders () |
BOOL | SupportsRenderElements () |
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) |
int | SetProperty (ULONG id, void *data) |
void * | GetProperty (ULONG id) |
Public Attributes |
|
Mtl * | delegate |
Protected Member Functions |
|
virtual void | SetReference (int i, RefTargetHandle rtarg) |
Stores a
ReferenceTarget as its 'i-th' reference`. |
MSMtlXtnd | ( | MSPluginClass * | pc, |
BOOL | loading | ||
) |
~MSMtlXtnd | ( | ) | [inline] |
{ DeleteAllRefsFromMe(); }
void DeleteThis | ( | ) |
Reimplemented from MSPluginMtl.
ReferenceTarget* get_delegate | ( | ) | [inline, virtual] |
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 MSPluginMtl.
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 MSPluginMtl.
{ return pc->class_id; }
void FreeCaches | ( | ) | [inline, virtual] |
Reimplemented from MSPluginMtl.
{ if (delegate) delegate->FreeCaches(); }
int NumSubs | ( | ) | [virtual] |
Reimplemented from MSPluginMtl.
Animatable* SubAnim | ( | int | i | ) | [virtual] |
i | This is the index of the sub-anim to return. |
Reimplemented from MSPluginMtl.
MSTR SubAnimName | ( | int | i | ) | [virtual] |
i | The index of the parameter name to return |
Reimplemented from MSPluginMtl.
int NumParamBlocks | ( | ) | [inline, virtual] |
Reimplemented from MSPluginMtl.
IParamBlock2* GetParamBlock | ( | int | i | ) | [inline, virtual] |
i | The zero based index of the ParamBlock2 to return. |
Reimplemented from MSPluginMtl.
{ return pblocks[i]; }
IParamBlock2* GetParamBlockByID | ( | BlockID | id | ) | [inline] |
Reimplemented from MSPluginMtl.
{ 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 MSPluginMtl.
{ if (id == I_MAXSCRIPTPLUGIN) return (MSPlugin*)this; else if (id == IID_IReshading) return delegate->GetInterface(id); else return MSPluginMtl::GetInterface(id); }
BaseInterface* GetInterface | ( | Interface_ID | id | ) | [inline, virtual] |
Inherited from Animatable.
Returns a pointer to the Base Interface for the interface ID passed.
id | - The unique ID of the interface to get |
Reimplemented from MtlBase.
{ return delegate ? delegate->GetInterface(id) : NULL; }
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 MSPluginMtl.
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 MSPluginMtl.
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 MSPluginMtl.
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 MSPluginMtl.
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 MSPluginMtl.
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 MSPluginMtl.
{ return delegate->Requirements(subMtlNum); }
ULONG LocalRequirements | ( | int | subMtlNum | ) | [inline, virtual] |
subMtlNum | Specifies the number of the sub-material whose requirements should be returned. |
Reimplemented from MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ delegate->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 MSPluginMtl.
{ delegate->LocalMappingsRequired(subMtlNum, mapreq, bumpreq); }
BOOL IsMultiMtl | ( | ) | [inline, virtual] |
Reimplemented from MSPluginMtl.
{ return delegate->IsMultiMtl(); }
int NumSubTexmaps | ( | ) | [virtual] |
Reimplemented from MSPluginMtl.
Texmap* GetSubTexmap | ( | int | i | ) | [virtual] |
Reimplemented from MSPluginMtl.
void SetSubTexmap | ( | int | i, |
Texmap * | m | ||
) | [virtual] |
Reimplemented from MSPluginMtl.
MSTR GetSubTexmapSlotName | ( | int | i | ) | [virtual] |
Reimplemented from MSPluginMtl.
void Update | ( | TimeValue | t, |
Interval & | valid | ||
) | [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. |
Reimplemented from MSPluginMtl.
void Reset | ( | ) | [inline, virtual] |
void DoubleSided::Reset() { dblsidedCD.Reset(this, TRUE); // Resets all pb2's Init(); }
Reimplemented from MSPluginMtl.
Interval Validity | ( | TimeValue | t | ) | [virtual] |
t | Specifies the time about which to compute the validity interval. |
Reimplemented from MSPluginMtl.
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. |
Reimplemented from MSPluginMtl.
Reimplemented from MSPluginMtl.
{ return MSPluginMtl::Save(isave); } // return delegate->Save(isave); }
Reimplemented from MSPluginMtl.
{ return MSPluginMtl::Load(iload); } // return delegate->Load(iload); }
ULONG GetGBufID | ( | ) | [inline] |
Reimplemented from MSPluginMtl.
void SetGBufID | ( | ULONG | id | ) | [inline] |
Reimplemented from MSPluginMtl.
void EnumAuxFiles | ( | AssetEnumCallback & | nameEnum, |
DWORD | flags | ||
) | [inline, virtual] |
Reimplemented from MSPluginMtl.
{ 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 MSPluginMtl.
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 MSPluginMtl.
{ delegate->DiscardPStamp(sz); }
BOOL SupportTexDisplay | ( | ) | [inline, virtual] |
Reimplemented from MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ delegate->ActivateTexDisplay(onoff); }
BOOL SupportsMultiMapsInViewport | ( | ) | [inline, virtual] |
Reimplemented from MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ delegate->SetupGfxMultiMaps(t, mtl, cb); }
ReferenceTarget* GetRefTarget | ( | ) | [inline, virtual] |
Reimplemented from MSPluginMtl.
{ return delegate->GetRefTarget(); }
BOOL DontKeepOldMtl | ( | ) | [inline, virtual] |
Reimplemented from Mtl.
{ return TRUE; }
MtlBase* GetActiveTexmap | ( | ) | [inline] |
Reimplemented from MSPluginMtl.
{ return delegate->GetActiveTexmap(); }
void SetActiveTexmap | ( | MtlBase * | txm | ) | [inline] |
Reimplemented from MSPluginMtl.
{ delegate->SetActiveTexmap(txm); }
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. |
Reimplemented from MSPluginMtl.
{ return delegate->GetAmbient(mtlNum, backFace); }
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. |
Reimplemented from MSPluginMtl.
{ return delegate->GetDiffuse(mtlNum, backFace); }
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. |
Reimplemented from MSPluginMtl.
{ return delegate->GetSpecular(mtlNum, backFace); }
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. |
Reimplemented from MSPluginMtl.
{ return delegate->GetShininess(mtlNum=0, backFace); }
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. |
Reimplemented from MSPluginMtl.
{ return delegate->GetShinStr(mtlNum=0, backFace); }
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. |
Reimplemented from MSPluginMtl.
{ return delegate->GetXParency(mtlNum=0, backFace); }
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 MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ return delegate->GetSelfIllumColor(mtlNum, backFace); }
Sampler* GetPixelSampler | ( | 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.
{ return delegate->GetPixelSampler(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 MSPluginMtl.
void SetAmbient | ( | Color | c, |
TimeValue | t | ||
) | [inline, virtual] |
c | The color to store. |
t | The time to set this color. |
Reimplemented from MSPluginMtl.
{ delegate->SetAmbient(c, t); }
void SetDiffuse | ( | Color | c, |
TimeValue | t | ||
) | [inline, virtual] |
c | The color to store. |
t | The time to set this color. |
Reimplemented from MSPluginMtl.
{ delegate->SetDiffuse(c, t); }
void SetSpecular | ( | Color | c, |
TimeValue | t | ||
) | [inline, virtual] |
c | The color to store. |
t | The time to set this color. |
Reimplemented from MSPluginMtl.
{ delegate->SetSpecular(c, t); }
void SetShininess | ( | float | v, |
TimeValue | t | ||
) | [inline, virtual] |
v | The shininess value to store. |
t | The time to set this color. |
Reimplemented from MSPluginMtl.
{ delegate->SetShininess(v, t); }
BOOL SupportsShaders | ( | ) | [inline, virtual] |
Reimplemented from Mtl.
{ return delegate->SupportsShaders(); }
BOOL SupportsRenderElements | ( | ) | [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. |
Reimplemented from MSPluginMtl.
int NumSubMtls | ( | ) | [virtual] |
Reimplemented from MSPluginMtl.
Mtl* GetSubMtl | ( | int | i | ) | [virtual] |
i | The index of the material to return. |
Reimplemented from MSPluginMtl.
void SetSubMtl | ( | int | i, |
Mtl * | m | ||
) | [virtual] |
i | The index of the material to store. |
m | The material pointer to store. |
Reimplemented from MSPluginMtl.
MSTR GetSubMtlSlotName | ( | int | i | ) | [virtual] |
i | The index of the sub-materials whose slot name should be returned. |
Reimplemented from MSPluginMtl.
MSTR GetSubMtlTVName | ( | int | i | ) | [inline] |
i | The index of the sub-materials whose track view name should be returned. |
Reimplemented from MSPluginMtl.
{ 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 MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ delegate->SetDynamicsProperty(t, mtlNum, propID, value); }
float EvalDisplacement | ( | ShadeContext & | sc | ) | [inline, virtual] |
sc | This contains the details of the point being displaced. |
Reimplemented from MSPluginMtl.
{ return delegate->EvalDisplacement(sc); }
Interval DisplacementValidity | ( | TimeValue | t | ) | [inline, virtual] |
t | The Interval returned reflects the validity around this time. |
Reimplemented from MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ return delegate->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 MSPluginMtl.
{ return delegate->EvalColorStdChannel( sc, stdID, outClr ); }
bool EvalMonoStdChannel | ( | ShadeContext & | sc, |
int | stdID, | ||
float & | outVal | ||
) | [inline, virtual] |
Reimplemented from MSPluginMtl.
{ return delegate->EvalMonoStdChannel( sc, stdID, outVal ); }
int SetProperty | ( | ULONG | id, |
void * | data | ||
) | [inline, virtual] |
id | The id for the property. |
data | A pointer to the data to store. |
int PathPosition::SetProperty(ULONG id, void *data) { if (id==PROPID_JOINTPARAMS) { if (!data) { int index = aprops.FindProperty(id); if (index>=0) { aprops.Delete(index,1); } } else { JointParamsPath *jp = (JointParamsPath*)GetProperty(id); if (jp) { *jp = *((JointParamsPath*)data); delete (JointParamsPath*)data; } else { aprops.Append(1,(AnimProperty**)&data); } } return 1; } else if (id==PROPID_INTERPUI) { if (!data) { int index = aprops.FindProperty(id); if (index>=0) { aprops.Delete(index,1); } } else { InterpCtrlUI *ui = (InterpCtrlUI*)GetProperty(id); if (ui) { *ui = *((InterpCtrlUI*)data); } else { aprops.Append(1,(AnimProperty**)&data); } } return 1; } else { return Animatable::SetProperty(id,data); } }
Reimplemented from MtlBase.
{ return delegate->SetProperty( id, data ); }
void* GetProperty | ( | ULONG | id | ) | [inline, virtual] |
id | The id of the property to retrieve. |
void* PathPosition::GetProperty(ULONG id) { if (id==PROPID_INTERPUI || id==PROPID_JOINTPARAMS) { int index = aprops.FindProperty(id); if (index>=0) { return aprops[index]; } else { return NULL; } } else { return Animatable::GetProperty(id); } }
Reimplemented from MtlBase.
{ return delegate->GetProperty( id ); }