blob: 23ee5d6a56ed9fff52ecb6e8658e66e8955d7284 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#ifndef isSharedCmd_h
#define isSharedCmd_h
// Shave and a Haircut
// (c) 2019 Epic Games
// US Patent 6720962
#include <maya/MArgList.h>
#include <maya/MPxCommand.h>
#include <maya/MSyntax.h>
#include <maya/MString.h>
class isSharedCmd : public MPxCommand
{
public:
isSharedCmd();
virtual ~isSharedCmd();
MStatus doIt( const MArgList& args );
bool isUndoable() const;
static void* createCmd();
static MSyntax createSyntax();
static const MString commandName;
private:
};
inline bool isSharedCmd::isUndoable() const
{ return false; }
class shaveRepair : public MPxCommand
{
public:
shaveRepair(){}
virtual ~shaveRepair(){}
MStatus doIt( const MArgList& args )
{
MGlobal::executeCommand("shave_Repair");
return MStatus::kSuccess;
}
bool isUndoable() const {return false;}
static void* createCmd() {return new shaveRepair();}
static MSyntax createSyntax() {return MSyntax();}
static const MString commandName;
private:
};
class shavePurge : public MPxCommand
{
public:
shavePurge(){}
virtual ~shavePurge(){}
MStatus doIt( const MArgList& args )
{
MGlobal::executeCommand("shave_Purge");
return MStatus::kSuccess;
}
bool isUndoable() const {return false;}
static void* createCmd() {return new shavePurge();}
static MSyntax createSyntax() {return MSyntax();}
static const MString commandName;
private:
};
#endif
|