blob: 77f99ced476e7c51fcff48e23f5b10a62727023f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef shaveBrushCtx_h
#define shaveBrushCtx_h
// Shave and a Haircut
// (c) 2019 Epic Games
// US Patent 6720962
#include <maya/MString.h>
#include "shaveCursorCtx.h"
#include "shaveSDKTYPES.h"
class shaveBrushCtx : public shaveCursorCtx
{
public:
shaveBrushCtx();
virtual ~shaveBrushCtx();
virtual void getClassName(MString& name) const { name = mCtxTypeName; }
BRUSH_MODE getBrushMode() const { return mBrushMode; }
void setBrushMode(BRUSH_MODE mode) { mBrushMode = mode; }
virtual MStatus strokeBegin(
VERT& eyePoint,
VERT& viewDir,
VERT& upDir,
VERT& screenPos,
VERT& worldPos
);
virtual MStatus strokeDrag(
VERT& screenPos,
VERT& worldPos,
VERT& screenDelta,
VERT& worldDelta
);
virtual MStatus strokeEnd();
static const MString mCtxTypeName;
protected:
BRUSH_MODE mBrushMode;
};
#endif
|