Public Member Functions | |
| HRESULT | GetMaterialEditorRoot ([out] IRsNode **pMaterialEditorNode) |
| HRESULT | GetActiveMaterial ([out] IRsNode **pMaterialNode) |
| HRESULT | GetMaterialEditorHandler ([out] IRsNode **ppMaterialEditorHandler) |
| HRESULT | SetActiveMaterial ([in] IRsNode *pMaterialNode,[in] IRcUndoRedoGroup *spUndoRedo,[in] RtBool bForceCopy) |
| HRESULT | ForceMaterialEditorsRefresh () |
| HRESULT | AddMaterial (ReMaterialInstancingMode dwMode, IRsNode *pNode, RtDWORD *pdwOutMatIndex, IRsNode **ppNewMaterial) |
| HRESULT | SetMaterial (ReMaterialInstancingMode dwMode, IRsNode *pNode, RtDWORD dwOutMatIndex, IRsNode **ppNewMaterial) |
| HRESULT | CreateActiveMaterialCopy (RtUlong dwMaterialIndex, IRsNode **ppNewMaterial) |
| HRESULT | OpenMaterialEditor () |
| HRESULT | GetActiveMaterialEditor ([out, retval] IRsNode **ppActiveMaterialEditor) |
| HRESULT | GetActiveMasterMaterial ([out] IRsMaterialGeneric **ppGeneric) |
| HRESULT | GetMaterialEditor ([in] GUID gId,[out] IRsNode **ppEditor) |
| HRESULT | RemoveAllMaterialFlavors () |
| HRESULT | GetActiveMaterialFlavorManager (IRsMaterialFlavorManager **pChunkManager) |
| HRESULT | SetNewMaterialFlavor (IRsNode *spMaterialNode, CONID gMaterialConId) |
| HRESULT | OpenMaterialEditorPanels () |
| HRESULT | RemoveDependentMaterialFlavors () |
| HRESULT | SetMaterialFlavorMaster (GUID clsId) |
| HRESULT | GetMaterialConversionMode (ReMaterialConversionMode *pdwMode) |
| HRESULT | OpenContextMaterialEditor (IRcUndoRedoGroup *spUndoRedo) |
| HRESULT | GetContextMaterialEditor (RtMatClsId clsMatId, IRsMaterialEditor **ppEditor) |
| HRESULT | CreateRealTimeMaterial (IRsMaterialGeneric *pMaterial, IRsNode **ppD3dmaterial) |
| HRESULT | GetMaterialNode (RtMatClsId clsMatId, IRsNode **ppMaterial) |
| HRESULT | AddRealTimeMaterial (IRsNode *spMaterial) |
| HRESULT | PaintObject (IRsNode *pNode, IRsNode *pMaterial) |
| HRESULT | GetMaterialLiveStatus (RtBool *pLiveMaterial) |
| HRESULT | GetMaterialInstancingMode (ReMaterialInstancingMode *pdwInstancingMode) |
| HRESULT | GetMaterialInstancingStatus (ReMaterialInstancingMode *pdwInstancingMode) |
| HRESULT | LocateActiveMaterial (IRnEncapsulator *pEnc, IRsNode **ppMaterialNode) |
| HRESULT | GetMaterialActiveInfo (IRdMaterialActiveInfo **ppActiveInfo) |
| HRESULT | GetActiveMaterialFlavor (RtMatClsId clsMatId, IRsMaterialGeneric **ppMaterial) |
| HRESULT IRfMaterialEditor::GetMaterialEditorRoot | ( | [out] IRsNode ** | pMaterialEditorNode | ) |
Get material editor node.
| pNode | [out] Pointer to material editor. |
| HRESULT IRfMaterialEditor::GetActiveMaterial | ( | [out] IRsNode ** | pMaterialNode | ) |
Get active material.
| pNode | [out] Pointer to active material node. |
| HRESULT IRfMaterialEditor::GetMaterialEditorHandler | ( | [out] IRsNode ** | ppMaterialEditorHandler | ) |
Get material editor handler.
| ppMaterialEditorHandler | [out] Pointer to material editor handler (if found). |
| HRESULT IRfMaterialEditor::SetActiveMaterial | ( | [in] IRsNode * | pMaterialNode, | |
| [in] IRcUndoRedoGroup * | spUndoRedo, | |||
| [in] RtBool | bForceCopy | |||
| ) |
Set active material.
| pNode | [in] Pointer to material node to set. | |
| spUndoRedo | [in] Undo/Redo container to collect setting active material events. | |
| bForceCopy | [in] Set to true if material editor should create copy. |
| HRESULT IRfMaterialEditor::ForceMaterialEditorsRefresh | ( | ) |
Refresh material editors, regenerate all previews.
| HRESULT IRfMaterialEditor::AddMaterial | ( | ReMaterialInstancingMode | dwMode, | |
| IRsNode * | pNode, | |||
| RtDWORD * | pdwOutMatIndex, | |||
| IRsNode ** | ppNewMaterial | |||
| ) |
Add active material to node and return it's index.
| dwMode | [in] Material instancing mode override. | |
| pNode | [in] Node to add material to. | |
| dwOutMatIndex | [out] Index of added material. | |
| ppNewMaterial | [out] Material node with new material. |
| HRESULT IRfMaterialEditor::SetMaterial | ( | ReMaterialInstancingMode | dwMode, | |
| IRsNode * | pNode, | |||
| RtDWORD | dwOutMatIndex, | |||
| IRsNode ** | ppNewMaterial | |||
| ) |
Set active material with specified index to node.
| dwMode | [in] Material instancing mode override. | |
| pNode | [in] Node to add material to. | |
| dwMatIndex | [in] Material index. | |
| ppNewMaterial | [out] Material node with new material. |
| HRESULT IRfMaterialEditor::CreateActiveMaterialCopy | ( | RtUlong | dwMaterialIndex, | |
| IRsNode ** | ppNewMaterial | |||
| ) |
Create node containing active material copy with D3D material and material specified by active material's chunk active class info.
| dwMaterialIndex | [in] Index for new material. | |
| ppNewMaterial | [out] Filled with new material if succeeded. |
| HRESULT IRfMaterialEditor::OpenMaterialEditor | ( | ) |
Open active material editor.
| HRESULT IRfMaterialEditor::GetActiveMaterialEditor | ( | [out, retval] IRsNode ** | ppActiveMaterialEditor | ) |
S_OK if succeeded.
| HRESULT IRfMaterialEditor::GetActiveMasterMaterial | ( | [out] IRsMaterialGeneric ** | ppGeneric | ) |
Get active material master class flavor.
| ppGeneric | [out] Chunk manager connector. |
| HRESULT IRfMaterialEditor::GetMaterialEditor | ( | [in] GUID | gId, | |
| [out] IRsNode ** | ppEditor | |||
| ) |
Get material editor node defines by GUID.
| gId | [in] Material editor class ID. | |
| ppEditor | [out] Material editor in material editor handler encapsulator. |
| HRESULT IRfMaterialEditor::RemoveAllMaterialFlavors | ( | ) |
Remove all material flavors from active material.
| HRESULT IRfMaterialEditor::GetActiveMaterialFlavorManager | ( | IRsMaterialFlavorManager ** | pChunkManager | ) |
Get active material chunk manager.
Set new material flavor to active material.
| spMaterialNode | [in] Material node to add to active material. |
| gMaterialConId | [in] Material output connector ID. |
| HRESULT IRfMaterialEditor::OpenMaterialEditorPanels | ( | ) |
Open panels associated with active material editor. (eg. shaders for LW ME or material node for D3D...)
| HRESULT IRfMaterialEditor::RemoveDependentMaterialFlavors | ( | ) |
Remove material flavors that are not master.
| HRESULT IRfMaterialEditor::SetMaterialFlavorMaster | ( | GUID | clsId | ) |
Set provided material class as master (original).
| clsId | [in] Material class ID to set as master. | |
| S_OK | if material found and is successfully set as master. |
| HRESULT IRfMaterialEditor::GetMaterialConversionMode | ( | ReMaterialConversionMode * | pdwMode | ) |
Get material conversion mode defined by Material editor settings.
| pdwMode | [out, retval] Filled with current material editor material conversion mode. | |
| S_OK | if succeeded. |
| HRESULT IRfMaterialEditor::OpenContextMaterialEditor | ( | IRcUndoRedoGroup * | spUndoRedo | ) |
Open material editor depending on material editor context settings and set material to use with it.
| spUndoRedo | [in] Undo/Redo container for collecting undo/redo commands. | |
| S_OK | if succeeded. |
| HRESULT IRfMaterialEditor::GetContextMaterialEditor | ( | RtMatClsId | clsMatId, | |
| IRsMaterialEditor ** | ppEditor | |||
| ) |
Get best material editor for provided material class.
| clsMatId | [in] Material class. |
S_OK if succeeded.
| HRESULT IRfMaterialEditor::CreateRealTimeMaterial | ( | IRsMaterialGeneric * | pMaterial, | |
| IRsNode ** | ppD3dmaterial | |||
| ) |
Create real time (d3d) material using material editor conversion routines or internal conversion if there is no available material editor to convert provided material.
| pMaterial | ]in] Input material. |
S_OK if succeeded.
| HRESULT IRfMaterialEditor::GetMaterialNode | ( | RtMatClsId | clsMatId, | |
| IRsNode ** | ppMaterial | |||
| ) |
Return specified material node inside active material.
| clsMatId | [in] Material cls ID. |
S_OK if succeeded.
| HRESULT IRfMaterialEditor::AddRealTimeMaterial | ( | IRsNode * | spMaterial | ) |
Add real time material to material node if it is missing.
| pMaterial | [in] Material to update. |
Paint object by provided material. If material is NULL, default material is used.
| pNode | [in] Node to paint. | |
| pMaterial | [in] Material to paint, NULL if default material is desired. |
| HRESULT IRfMaterialEditor::GetMaterialLiveStatus | ( | RtBool * | pLiveMaterial | ) |
Check if current active material is directly edited or material editor is using local material copy.
S_OK if succeeded.
| HRESULT IRfMaterialEditor::GetMaterialInstancingMode | ( | ReMaterialInstancingMode * | pdwInstancingMode | ) |
Get material default instancing mode.
S_OK if succeeded.
| HRESULT IRfMaterialEditor::GetMaterialInstancingStatus | ( | ReMaterialInstancingMode * | pdwInstancingMode | ) |
Get current material instancing mode.
| S_OK | if succeeded. |
| HRESULT IRfMaterialEditor::LocateActiveMaterial | ( | IRnEncapsulator * | pEnc, | |
| IRsNode ** | ppMaterialNode | |||
| ) |
Locate material equivalent to currently edited material within provided encapsulator.
| pEnc | [in] Encapsulator to search. |
S_OK if material found.
| HRESULT IRfMaterialEditor::GetMaterialActiveInfo | ( | IRdMaterialActiveInfo ** | ppActiveInfo | ) |
Get current material active info.
S_OK if succeeded.
| HRESULT IRfMaterialEditor::GetActiveMaterialFlavor | ( | RtMatClsId | clsMatId, | |
| IRsMaterialGeneric ** | ppMaterial | |||
| ) |
Return specified material flavor from active material.
| clsMatId | [in] Material cls ID. |
S_OK if succeeded.
1.5.5