forked from kattkieru/grim_IK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grim_vik.h
64 lines (47 loc) · 1.56 KB
/
grim_vik.h
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
#ifndef __GRIM_VIK_H
#define __GRIM_VIK_H
// ----------------------------------------------------------------------
typedef struct {
MPoint position[3];
MQuaternion orientation[3];
} Pose;
class Grim_VIK : public MPxNode
{
public:
Grim_VIK();
virtual ~Grim_VIK();
virtual void postConstructor();
// virtual MStatus setDependentsDirty( const MPlug &plugBeingDirtied, MPlugArray &affectedPlugs );
virtual MStatus compute( const MPlug& plug, MDataBlock& data );
inline void calculate_orientations( Pose &pose, const MPoint &pole_point, const bool flip );
static void* creator();
static MStatus initialize();
static void aeTemplate();
virtual SchedulingType schedulingType() const;
static MTypeId id;
// inputs
static MObject iRootMatrix;
static MObject iGoalMatrix;
static MObject iPoleMatrix;
static MObject iFkMatrix;
static MObject iStretchBlend;
static MObject iFkIkBlend;
static MObject iPinBlend;
static MObject iReverseBlend;
static MObject iOrientTipBlend;
static MObject iFlipOrientation;
static MObject iUpperLength;
static MObject iLowerLength;
static MObject iUpperLengthBoost;
static MObject iLowerLengthBoost;
static MObject iLengthBoost;
static MObject iSoftness;
static MObject iTwist;
// outputs
static MObject oOutTranslate;
static MObject oOutRotateX;
static MObject oOutRotateY;
static MObject oOutRotateZ;
static MObject oOutRotate;
};
#endif // __GRIM_VIK_H