15 #ifndef __MUDBOXSDK_INTERFACE_H__
16 #define __MUDBOXSDK_INTERFACE_H__
62 buttonNone = 0x00000000,
63 buttonOk = 0x00000400,
64 buttonCancel = 0x00400000,
65 buttonClose = 0x00200000,
66 buttonYes = 0x00004000,
67 buttonYesToAll = 0x00008000,
68 buttonNo = 0x00010000,
69 buttonNoToAll = 0x00020000,
70 buttonAbort = 0x00040000,
71 buttonRetry = 0x00080000,
72 buttonIgnore = 0x00100000,
73 buttonHelp = 0x01000000
93 HotkeySetSoftimage = 3
143 virtual MenuType Type(
void )
const;
147 virtual QMenu *Menu(
void )
const;
149 virtual Node *Object(
void )
const;
151 virtual QString MarkingMenuID(
void )
const;
155 void (*pCallback)(
void ),
157 bool bDisabled =
false
160 virtual void AddClassMenuItem(
164 const int &
index = -1,
165 bool bDisable =
false,
169 virtual void AddHotboxItem(
177 virtual void AddMarkingMenuItem(
180 void (*pCallback)(
void),
186 virtual void ClearMarkingMenu(
const QString &sNewMarkingMenuID );
206 QWidget *MainWindow(
void )
const;
208 void ShowNewPaintLayerDialog(
void );
211 void ShowBrushRing(
bool bShow );
214 bool RestorePreviousBrush(
void );
217 void SetSelectedBrush(
const QString &sBrushName );
224 void ActivateLayerSystem(
245 void ClearProperties();
252 int iButtons = buttonNone,
253 int iDefaultButton = buttonNone
259 int OneTimeMessageBox (
281 void HUDMessageHide();
304 void AddClassMenuItem(
309 const int &
index = -1,
310 const int &subindex = -1,
311 const bool addSeparator =
false,
321 void AddCallbackMenuItem(
327 const int &
index = -1,
328 const int &subindex = -1,
329 const bool addSeparator =
false,
339 void AddWelcomeWindowButton(
347 void RemoveWelcomeWindowButton(
352 void SelectHotkeySet(
354 bool forceSetHotkey =
false
361 void AddToCreateMeshMenu(
QFileInfo fileInfo);
364 void AddObjectListContextMenuItem(
369 bool addSeparator =
false,
374 void AddLayerCallbackMenuItem(
382 QAction* CreateHighlightableMenuItem(
391 unsigned int iMaxValue,
392 float fWeight = 1.0
f,
399 void ProgressStartGroup(
411 bool ProgressAdd(
void );
414 void ProgressEnd(
void );
421 bool ProgressIsCancelRequested(
void );
424 void ProgressRequestCancel(
void );
443 bool bAskForOverwrite =
true,
465 void WaitCursorStart(
void );
468 void WaitCursorEnd(
void );
471 void RefreshUI(
void )
const;
474 void AddView(
QString className,
QString windowTitle,
const bool select =
false)
const;
478 float currentTabletPressure()
const;
495 float LastPatchXPosition(
void );
497 float LastPatchYPosition(
void );
510 bool IsInStroke()
const;
513 bool IsInTumble()
const;
517 void SetInTumble(
bool b );
520 bool IsInDoubleClick()
const;
529 bool IsInCameraNavigation()
const;
531 void SetInCameraNavigation(
bool bInCameraNavigation =
false );
546 keyShift = 0x00020000,
547 keyCtrl = 0x00040000,
548 keyMeta = 0x00080000,
552 keyWheel = 0x00000800,
553 keyLeft = 0x01000012,
555 keyRight = 0x01000014,
565 virtual int DefaultHotkey(
void )
const;
567 virtual bool IsSticky(
void )
const;
569 virtual bool IsHidden(
void )
const;
572 virtual bool IsEnabled(
void )
const;
575 virtual void SetEnabled(
bool bEnabled );
578 virtual void OnActivate(
582 virtual void OnDeactivate(
void );
584 virtual void OnCursorMove(
591 virtual void OnOptions(
void );
This class represents an action which can be triggered by the user.
For rendering related functions.
keep the HUD message up until specifically cancelled
static QString menuCreate
aptr< BrushOperation > SelectedBrush
This pointer contains the address of the currently selected brush.
For curve related functions.
For I/O related functions.
This is the base class for most classes in the Mudbox SDK.
static QString menuRender
static QString menuPlugins
aevent PostUIInitializationEvent
This event is triggered after the Mudbox main UI window is created.
This structure represents and describes a class.
For help related functions.
This class represents an event receiver/triggerer point.
For the object context menu, which the user activates by right clicking on an object in the object li...
aptr< MenuManipulator > CurrentMenu
This attribute contains the address of the current menu creator object.
For functions related to windows.
static QString menuCurves
static QString menuScripts
Class: ConvolutionKernel.
For functions related to the 3d viewport.
For editing related functions.
Data structure to hold file import/load options, and diagnostic data.
#define DECLARE_CLASS
This macro should be used in declaration of classes which are inherited from the Node class (or any d...
aptr< KeyboardEventNotifier > KeyboardEvent
This is a pointer to the latest keyboard event.
The Interface class provides access to user interface related functions and events.
static QString menuDisplay
For the layer context menu, which the user activates by right clicking on a layer in the layer list...
For functions which create new objects in the scene.
static QString menuWindows
For functions related to textures.