squareScaleManipContext/squareScaleManipContext.h
#include <maya/MTypeId.h>
#include <maya/MTypes.h>
#include <maya/MPxManipulatorNode.h>
#include <maya/MFnPlugin.h>
#include <maya/MObjectHandle.h>
#include <maya/MPxCommand.h>
#include <maya/MSyntax.h>
#include <maya/MDagModifier.h>
#include <maya/MVector.h>
#include <maya/M3dView.h>
#include <maya/MGLFunctionTable.h>
#include "manipulatorMath.h"
{
public:
squareScaleManipulator();
~squareScaleManipulator();
void setDrawTransformInfo(
double rotation[3],
MVector translation );
static void* creator();
private:
MGLuint topName, rightName, bottomName, leftName;
int topIndex, rightIndex, bottomIndex, leftIndex;
planeMath plane;
MGLfloat rotateX,rotateY,rotateZ;
MGLfloat translateX,translateY,translateZ;
};