aboutsummaryrefslogtreecommitdiff
path: root/mayaPlug/isSharedCmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'mayaPlug/isSharedCmd.h')
-rw-r--r--mayaPlug/isSharedCmd.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/mayaPlug/isSharedCmd.h b/mayaPlug/isSharedCmd.h
new file mode 100644
index 0000000..23ee5d6
--- /dev/null
+++ b/mayaPlug/isSharedCmd.h
@@ -0,0 +1,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
+