MaxSDK::CUI Namespace Reference

MaxSDK::CUI Namespace Reference

Classes

class  IMouseConfigManager
 A core interface for accessing properties of the customized mode introduced in 3ds Max 2013. More...
 

Enumerations

enum  OperationMode {
  EOperationMode_None = 0, EOperationMode_Pan, EOperationMode_Zoom, EOperationMode_Rotate,
  EOperationMode_Count
}
 
enum  KeyOption {
  EKey_Null = 0, EKey_Shift = (1<<0), EKey_Ctrl = (1<<1), EKey_Alt = (1<<2),
  EKey_ShiftCtrl = EKey_Shift|EKey_Ctrl, EKey_CtrlAlt = EKey_Ctrl|EKey_Alt, EKey_AltShift = EKey_Alt|EKey_Shift, EKey_ShiftCtrlAlt = EKey_Shift|EKey_Ctrl|EKey_Alt
}
 
enum  MouseButtonOption { EMouseButton_Null = 0, EMouseButton_Left = (1<<3), EMouseButton_Middle = (1<<4), EMouseButton_Right = (1<<5) }
 
enum  OperationParameter { EOperationParameter_Null = 0, EOperationParameter_ZoomInDirection, EOperationParameter_Count }
 
enum  ZoomInDirectionOption {
  EZoomInDirection_North = 1, EZoomInDirection_East = 2, EZoomInDirection_South = 4, EZoomInDirection_West = 8,
  EZoomInDirection_NorthEast = EZoomInDirection_North|EZoomInDirection_East, EZoomInDirection_SouthEast = EZoomInDirection_South|EZoomInDirection_East, EZoomInDirection_SouthWest = EZoomInDirection_South|EZoomInDirection_West, EZoomInDirection_NorthWest = EZoomInDirection_North|EZoomInDirection_West
}
 

Functions

IMouseConfigManagerGetIMouseConfigManager ()
 Helper function to access the IMouseConfigManager core interface. More...
 
bool GetOperationShortcut (OperationMode eOperation, KeyOption &eKey, MouseButtonOption &eButton)
 Helper function to get shortcuts of customized mode. More...
 
bool GetValueOfOperationParameter (OperationParameter eParmeter, int &iValue)
 Helper function to get the value of an operation parameter such as zoom in direction of customized zoom mode. More...
 

Function Documentation

IMouseConfigManager* MaxSDK::CUI::GetIMouseConfigManager ( )
inline

Helper function to access the IMouseConfigManager core interface.

Returns
A pointer to IMouseConfigManager
284 {
285  return dynamic_cast<IMouseConfigManager*>(GetCOREInterface(IID_CUI_MOUSE_CONFIGURE_MANAGER));
286 };
#define IID_CUI_MOUSE_CONFIGURE_MANAGER
Interface ID of class IMouseConfigManager.
Definition: ICUIMouseConfigManager.h:16
CoreExport Interface * GetCOREInterface()
bool MaxSDK::CUI::GetOperationShortcut ( OperationMode  eOperation,
KeyOption &  eKey,
MouseButtonOption &  eButton 
)
inline

Helper function to get shortcuts of customized mode.

The output parameters are the shortcuts. Returns true if the shortcuts can be obtained, otherwise false.

292 {
293  IMouseConfigManager* pMouseConfigManager = GetIMouseConfigManager();
294  if(pMouseConfigManager != NULL)
295  {
296  return pMouseConfigManager->GetOperationShortcut(eOperation,eKey,eButton);
297  }
298  return false;
299 };
#define NULL
Definition: autoptr.h:20
IMouseConfigManager * GetIMouseConfigManager()
Helper function to access the IMouseConfigManager core interface.
Definition: ICUIMouseConfigManager.h:283
bool MaxSDK::CUI::GetValueOfOperationParameter ( OperationParameter  eParmeter,
int iValue 
)
inline

Helper function to get the value of an operation parameter such as zoom in direction of customized zoom mode.

Returns
true if value can be obtained, otherwise false.
305 {
306  IMouseConfigManager* pMouseConfigManager = GetIMouseConfigManager();
307  if(pMouseConfigManager != NULL)
308  {
309  return pMouseConfigManager->GetValueOfOperationParameter(eParmeter, iValue);
310  }
311 
312  return false;
313 };
#define NULL
Definition: autoptr.h:20
IMouseConfigManager * GetIMouseConfigManager()
Helper function to access the IMouseConfigManager core interface.
Definition: ICUIMouseConfigManager.h:283