7 #ifndef __maya_MayaBrush_h__ 8 #define __maya_MayaBrush_h__ 17 class MayaBrushManip:
public MPxManipContainer
21 virtual ~MayaBrushManip(
void);
23 static void* creator(
void);
24 static MStatus initialize(
void);
26 virtual MStatus connectToDependNode(
const MObject &node)
override;
27 virtual MStatus createChildren(
void)
override;
29 virtual void preDrawUI(
const M3dView &mayaView);
31 virtual void draw(M3dView &mayaView,
const MDagPath &path,
32 M3dView::DisplayStyle style,
33 M3dView::DisplayStatus status)
override;
35 virtual void drawUI(MHWRender::MUIDrawManager& drawManager,
36 const MHWRender::MFrameContext& frameContext)
const 56 class Command:
public MPxContextCommand
60 virtual MPxContext* makeObj(
void) {
return new MayaBrush(); }
61 static void* creator(
void) {
return new MayaBrush::Command(); }
67 using MPxContext::doPress;
68 using MPxContext::doRelease;
69 using MPxContext::doDrag;
71 virtual void toolOnSetup(MEvent &mayaEvent)
override;
72 virtual void toolOffCleanup(
void)
override;
73 virtual MStatus doEnterRegion(MEvent &mayaEvent)
override;
74 virtual MStatus doPress(MEvent &mayaEvent,
75 MHWRender::MUIDrawManager& drawManager,
76 const MHWRender::MFrameContext& frameContext)
78 virtual MStatus doRelease(MEvent &mayaEvent,
79 MHWRender::MUIDrawManager& drawManager,
80 const MHWRender::MFrameContext& frameContext)
82 virtual MStatus doDrag(MEvent &mayaEvent,
83 MHWRender::MUIDrawManager& drawManager,
84 const MHWRender::MFrameContext& frameContext)
86 virtual MStatus doHold(MEvent &mayaEvent,
87 MHWRender::MUIDrawManager& drawManager,
88 const MHWRender::MFrameContext& frameContext)
90 virtual MStatus doPtrMoved(MEvent &mayaEvent,
91 MHWRender::MUIDrawManager& drawManager,
92 const MHWRender::MFrameContext& frameContext)
94 virtual MStatus drawFeedback(
95 MHWRender::MUIDrawManager& drawManager,
96 const MHWRender::MFrameContext& frameContext)
98 virtual void deleteAction(
void)
override;
99 virtual void completeAction(
void)
override;
100 virtual void abortAction(
void)
override;
101 virtual bool processNumericalInput(
const MDoubleArray& rValues,
102 const MIntArray& rFlags,
103 bool isAbsolute)
override;
105 void doMove(I32 a_mouseX,I32 a_mouseY);
107 static void staticSetup(
void);
108 static void idleAdjust(
void);
110 static MHWRender::MUIDrawManager* ms_pMUIDrawManager;
113 static BWORD ms_mayaBrushCurrent;
114 static MCallbackId ms_commandCallback;
115 static MCallbackId ms_idleCallback;
116 MCallbackId m_updateCallback;
118 static void updateManipulators(
void* a_pData);
119 static void provokeRedraw(
void);
125 void interpretMouse(MEvent& mayaEvent,
Maya Tool.
Definition: MayaBrush.h:50
kernel
Definition: namespace.dox:3
State
Effect of change in a window event.
Definition: WindowEvent.h:194
Maya node.
Definition: MayaNode.h:20