#include <IViewPanelManager.h>
In 3ds Max 2013, 3ds Max introduces the tabbed view panels.
Previously 3ds Max can have only one view panel(One view panel contains at most 4 viewports). Now 3ds Max users can create additional view panels other than the default view panel by using the tabbed view panel toolbar or MaxScript. Users can switch between those view panels. At one time, there can only be one view panel visible which we usually call it current view panel or active view panel. Each view panel can have one active viewport. Users can also destroy those additional view panels (NOTE: The default view panel can't be destroyed). Tabbed view panels will be saved & loaded during FileIO. When saving as previous, only the current active view panel will be saved. This interface is used to manage the multiple tabbed view panels. To acquire this interface, simply use the codes below.
#include "IViewPanelManager.h" ... IViewPanelManager* pViewPanelMgr = GetViewPanelManager(); ...
Public Member Functions |
|
virtual bool | CanCreateMoreViewPanels () const =0 |
Check if we can create any more tabbed view
panels. |
|
virtual int | CreateViewPanel (const MCHAR *tabName, int layout, bool bActive)=0 |
Create a new tabbed view panel. |
|
virtual int | CreateViewPanel (int layout, bool bActive)=0 |
Create a new tabbed view panel. |
|
virtual bool | DestroyViewPanel (int index)=0 |
Destroy the specified tabbed view panel.
|
|
virtual IViewPanel * | GetActiveViewPanel () const =0 |
Get the
IViewPanel interface of the active tabbed view panel. |
|
virtual bool | SetActiveViewPanel (int index)=0 |
Set a tabbed view panel as the current
active view panel. |
|
virtual int | GetActiveViewPanelIndex () const =0 |
Get the index of the active view panel.
|
|
virtual int | GetViewPanelCount () const =0 |
Get the count of current existing view
panels. |
|
virtual IViewPanel * | GetViewPanel (int index) const =0 |
Get the
IViewPanel interface of the specified tabbed view panel.
|
|
virtual const MCHAR * | GetViewPanelName (int index) const =0 |
Get the name of the specified view panel.
|
|
virtual bool | SetViewPanelName (int index, const MCHAR *newName)=0 |
Set the name of the specified view panel.
|
|
virtual bool | IsViewPanelLocked (int index) const =0 |
A locked view panel is one that cannot be
deleted by the user. |
|
virtual int | GetHighlightViewPanelIndex () const =0 |
Returns the index of the currently
highlighted ViewPanel. |
|
virtual void | CycleHighlightedViewPanels ()=0 |
Cycle the highlight through available view
panels. |
|
virtual void | CycleHighlightedViewPanelsBack ()=0 |
Cycle back through the highlight through
available view panels. |
|
virtual bool | SelectHighlightedViewPanel ()=0 |
Select the currently highlighted view panel.
|
virtual bool CanCreateMoreViewPanels | ( | ) | const [pure virtual] |
Check if we can create any more tabbed view panels.
virtual int CreateViewPanel | ( | const MCHAR * | tabName, |
int | layout, | ||
bool | bActive | ||
) | [pure virtual] |
Create a new tabbed view panel.
[in] | tabName | the name of the new tabbed view panel. If NULL, a default name will be assigned to the new tabbed view panel automatically. |
[in] | layout | the initial layout of the new tabbed view panel. Use VP_LAYOUT_XXX macro in maxapi.h. |
[in] | bActive | if true, the new tabbed view panel will be set as active view panel after creation. |
virtual int CreateViewPanel | ( | int | layout, |
bool | bActive | ||
) | [pure virtual] |
Create a new tabbed view panel.
The panel is given a default name based on its layout.
[in] | layout | the initial layout of the new tabbed view panel. Use VP_LAYOUT_XXX macro in maxapi.h. |
[in] | bActive | if true, the new tabbed view panel will be set as active view panel after creation. |
virtual bool DestroyViewPanel | ( | int | index | ) | [pure virtual] |
Destroy the specified tabbed view panel.
[in] | index | the index of the tabbed view panel to be destroyed. An valid index should be from 1(0 is the default view panel) to GetViewPanelCount() - 1. Also, the panel specified cannot be 'locked'. Locked panels cannot be destroyed. |
virtual IViewPanel* GetActiveViewPanel | ( | ) | const [pure virtual] |
Get the IViewPanel interface of the active tabbed view panel.
virtual bool SetActiveViewPanel | ( | int | index | ) | [pure virtual] |
Set a tabbed view panel as the current active view panel.
[in] | the | index of the view panel to be activated. |
virtual int GetActiveViewPanelIndex | ( | ) | const [pure virtual] |
Get the index of the active view panel.
virtual int GetViewPanelCount | ( | ) | const [pure virtual] |
Get the count of current existing view panels.
virtual IViewPanel* GetViewPanel | ( | int | index | ) | const [pure virtual] |
Get the IViewPanel interface of the specified tabbed view panel.
[in] | the | index of the tabbed view panel |
virtual const MCHAR* GetViewPanelName | ( | int | index | ) | const [pure virtual] |
Get the name of the specified view panel.
[in] | index | the index of the view panel whose name to be returned |
virtual bool SetViewPanelName | ( | int | index, |
const MCHAR * | newName | ||
) | [pure virtual] |
Set the name of the specified view panel.
[in] | index | the index of the view panel whose name to be set |
[in] | newName | the new name of the specified view panel |
virtual bool IsViewPanelLocked | ( | int | index | ) | const [pure virtual] |
A locked view panel is one that cannot be deleted by the user.
[in] | index | of the panel to check |
virtual int GetHighlightViewPanelIndex | ( | ) | const [pure virtual] |
Returns the index of the currently highlighted ViewPanel.
This is the index of the tabs as iterated through via Ctrl-Tab
virtual void CycleHighlightedViewPanels | ( | ) | [pure virtual] |
Cycle the highlight through available view panels.
This is the equivalent of the ctrl-tab functionality
virtual void CycleHighlightedViewPanelsBack | ( | ) | [pure virtual] |
Cycle back through the highlight through available view panels.
This is the equivalent of the shift-ctrl-tab functionality
virtual bool SelectHighlightedViewPanel | ( | ) | [pure virtual] |
Select the currently highlighted view panel.