diff options
Diffstat (limited to '')
-rw-r--r-- | tools/objectsnapper/code/commands/snapselected.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tools/objectsnapper/code/commands/snapselected.h b/tools/objectsnapper/code/commands/snapselected.h new file mode 100644 index 0000000..55e0f0d --- /dev/null +++ b/tools/objectsnapper/code/commands/snapselected.h @@ -0,0 +1,59 @@ +//============================================================================= +// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved. +// +// File: snapselectedcmd.h +// +// Description: Blahblahblah +// +// History: 18/03/2002 + Created -- Cary Brisebois +// +//============================================================================= + +#ifndef SNAPSELECTEDCMD_H +#define SNAPSELECTEDCMD_H + +//======================================== +// Nested Includes +//======================================== +#include "main/mayaincludes.h" +#include "precompiled/PCH.h" + +//======================================== +// Forward References +//======================================== + +//============================================================================= +// +// Synopsis: Blahblahblah +// +//============================================================================= + +class SnapSelectedCmd : public MPxCommand +{ +public: + SnapSelectedCmd(); + virtual ~SnapSelectedCmd(); + + static void* creator(); + virtual MStatus doIt( const MArgList& args ); + virtual MStatus undoIt(); + virtual MStatus redoIt(); + virtual bool isUndoable() const; + + static const char* stringId; + +private: + + MDagPathArray mObjDagPaths; + MVectorArray mOldPositions; + MVectorArray mNewPositions; + + void GetChildMeshNames( MDagPath objDagPath, MStringArray& names ); + + //Prevent wasteful constructor creation. +SnapSelectedCmd( const SnapSelectedCmd& snapselectedcmd ); +SnapSelectedCmd& operator=( const SnapSelectedCmd& snapselectedcmd ); +}; + +#endif //SNAPSELECTEDCMD_H + |