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 &view);
31 virtual void draw(M3dView &view,
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(); }
65 virtual ~MayaBrush(
void);
67 using MPxContext::doPress;
68 using MPxContext::doRelease;
69 using MPxContext::doDrag;
71 virtual void toolOnSetup(MEvent &event)
override;
72 virtual void toolOffCleanup(
void)
override;
73 virtual MStatus doEnterRegion(MEvent &event)
override;
74 virtual MStatus doPress(MEvent &event)
override;
75 virtual MStatus doRelease(MEvent &event)
override;
76 virtual MStatus doDrag(MEvent &event)
override;
77 virtual void deleteAction(
void)
override;
78 virtual void completeAction(
void)
override;
79 virtual void abortAction(
void)
override;
80 virtual bool processNumericalInput(
const MDoubleArray& rValues,
81 const MIntArray& rFlags,
82 bool isAbsolute)
override;
84 void doMove(I32 a_mouseX,I32 a_mouseY);
86 static void staticSetup(
void);
87 static void idleAdjust(
void);
89 static MayaBrush* ms_pMayaBrush;
90 static MayaNode* ms_pCurrentNode;
91 static BWORD ms_mayaBrushCurrent;
92 static MCallbackId ms_commandCallback;
93 static MCallbackId ms_idleCallback;
94 MCallbackId m_updateCallback;
96 static void updateManipulators(
void* a_pData);
97 static void provokeRedraw(
void);
103 void interpretMouse(MEvent& mayaEvent,
106 Matrix<4,4,Real> m_projection;
kernel
Definition: namespace.dox:3
State
Effect of change in a window event.
Definition: WindowEvent.h:194