-
Notifications
You must be signed in to change notification settings - Fork 7
/
brushContextCommand.h
executable file
·38 lines (31 loc) · 1.07 KB
/
brushContextCommand.h
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
#ifndef brushContextCommand__
#define brushContextCommand__
#include <maya/MPxContext.h>
#include <maya/MPxContextCommand.h>
#include <maya/MArgDatabase.h>
#include "brushContext.h"
static const char *radiusFlag = "-r";
static const char *radiusLongFlag = "-radius";
static const char *lockBaseFlag = "-lb";
static const char *lockBaseLongFlag = "-lockBase";
static const char *resizeBrushFlag = "-rsb";
static const char *resizeBrushLongFlag = "-resizeBrush";
static const char *intensityFlag = "-ity";
static const char *intensityLongFlag = "-intensity";
static const char *brushModeFlag = "-bm";
static const char *brushModeLongFlag = "-brushMode";
class brushContextCommand : public MPxContextCommand
{
public:
brushContextCommand() {};
virtual MPxContext * makeObj();
virtual MStatus appendSyntax();
public:
static void* creator();
static MSyntax newSyntax();
virtual MStatus doEditFlags();
virtual MStatus doQueryFlags();
protected:
brushContext* nBrushContext;
};
#endif