Public Member Functions

IDXShaderManagerInterface Class Reference

Search for all occurrences

Detailed Description

An Interface that provides access to the actual manager.

The manager is responsible for displaying the Viewport Manager which is implemented as a Cust Attribute on the material

Class IDXShaderManagerInterface

See also:
Class IViewportShaderManager

Description:
This class is only available in release 5 or later.

The class provides access to the Viewport Manager feature in release 5. The viewport manager controls the loading of Viewport Shaders in 3ds Max and is displayed on each material. The class provides methods to query the manager to find out whether it is visible or active, and also to retrieve the active shader.

The viewport manager ONLY works in DirectX mode. It can however be visible in Heidi and OpenGL, so as to provide the artist feedback when loading someone else's file.

There is a global method you can call to get access to the DX manager.

IDXShaderManagerInterface* GetDXShaderManager()

#include <IViewportManager.h>

Inheritance diagram for IDXShaderManagerInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual CustAttrib FindViewportShaderManager (MtlBase *mtl)=0
virtual CustAttrib AddViewportShaderManager (MtlBase *mtl)=0
virtual void  SetVisible (BOOL show=TRUE)=0
virtual BOOL  IsVisible ()=0

Member Function Documentation

virtual CustAttrib* FindViewportShaderManager ( MtlBase mtl ) [pure virtual]
Remarks:
This method will check the Material passed into find out whether it contains the ViewportManager Custom Attribute. If it does it will return its pointer, otherwise it will be NULL. This pointer can safely be cast to IViewportShaderManager.

Parameters:
MtlBase* mtl

The material to search for the Viewport Manager.

virtual CustAttrib* AddViewportShaderManager ( MtlBase mtl ) [pure virtual]
Remarks:
This method will add the ViewportManager custom atrribute to the material supplied. If successful it will return the newly created custom attribute. This pointer can safely be cast to IViewportShaderManager.

Parameters:
MtlBase* mtl

The material to add the Viewport Manager to

virtual void SetVisible ( BOOL  show = TRUE ) [pure virtual]
Remarks:
This method allows the system to either show or hide the ViewportManager. This will physically remove it from the Material Editor, whoever the manager will still exist on the material

Parameters:
BOOL show

The value to set the visible state of the manager.

virtual BOOL IsVisible ( ) [pure virtual]
Remarks:
This method will return the actual visible state of the manager

IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface
IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface IDXShaderManagerInterface