IViewportShaderManager3 Class Reference
 
 
 
IViewportShaderManager3 Class Reference

#include <IViewportManager.h>

Inheritance diagram for IViewportShaderManager3:
IViewportShaderManager2 IViewportShaderManager FPMixinInterface FPInterface BaseInterface InterfaceServer MaxHeapOperators

Class Description

A new interface for 3dsmax 10.

Extends IViewportShaderManager2 This interface is implemented by 3ds Max, more specifically by the DirectX Manager and Mental Ray custom attributes of materials. Client code can get this interface from a material with the following code:

Material* pMaterial = // initialize material pointer
ICustAttribContainer* pCAContainer = pMaterial->GetCustAttribContainer();
BaseInterface* pBaseIfc = pCAContainer->FindCustAttribInterface(VIEWPORT_SHADER_MANAGER_INTERFACE3);
IViewportShaderManager3* pViewportShaderMgr = static_cast<IViewportShaderManager3*>(pBaseIfc);

Public Member Functions

virtual bool  IsCurrentEffectEnabled ()=0
  GetActiveEffect and GetActiveEffectName returns information of currently selected effect, however, the effect may still not be "enabled".
virtual bool  SetCurrentEffectEnabled (bool enabled)=0
  Access to set the enable/disable state of the current selected effect.
virtual bool  IsDxStdMtlSupported ()=0
  Is the DX Display of the Material is supported at this moment.
virtual bool  IsSaveFxSupported ()=0
  Is saving Standard Material as .fx file is supported at this moment.
virtual bool  IsCurrentEffectSupported ()=0
  Is current selected effect is supported.
virtual MtlBase FindOwnerMaterial ()=0

Member Function Documentation

virtual bool IsCurrentEffectEnabled ( ) [pure virtual]

GetActiveEffect and GetActiveEffectName returns information of currently selected effect, however, the effect may still not be "enabled".

To get the enable/disable state of the effect, use this function.

Returns:
The enable/disable state of the effect
virtual bool SetCurrentEffectEnabled ( bool  enabled ) [pure virtual]

Access to set the enable/disable state of the current selected effect.

Parameters:
enabled The state of the flag - TRUE to set
Returns:
if current effect is enabled successfully, return true, otherwise return false.
virtual bool IsDxStdMtlSupported ( ) [pure virtual]

Is the DX Display of the Material is supported at this moment.

Returns:
true means that we could turn directX rendering of the material on. otherwise return false.
virtual bool IsSaveFxSupported ( ) [pure virtual]

Is saving Standard Material as .fx file is supported at this moment.

Returns:
true means that we could save current material as a .fx file. otherwise return false.
virtual bool IsCurrentEffectSupported ( ) [pure virtual]

Is current selected effect is supported.

Returns:
true means that we could enable current effect. otherwise if current effect can not be enabled, return false.
virtual MtlBase* FindOwnerMaterial ( ) [pure virtual]
Returns:
owner material of this interface