manipOverride/rockingTransform2.h
#include <maya/MMatrix.h>
#include <maya/MPxTransform.h>
#include <maya/MPxTransformationMatrix.h>
#define kRockingTransformNodeID 0x8101B
#define kRockingTransformMatrixID 0x8101C
#define ReturnOnError(status) \
if (MS::kSuccess != status) { \
return status; \
}
{
public:
rockingTransformMatrix();
double getRockInX() const;
void setRockInX( double rock );
protected:
double rockXValue;
};
{
public:
rockingTransformNode();
virtual ~rockingTransformNode();
rockingTransformMatrix *getRockingTransformMatrix();
static void * creator();
protected:
double rockXValue;
};
class DegreeRadianConverter
{
public:
double degreesToRadians( double degrees );
double radiansToDegrees( double radians );
};