-
Notifications
You must be signed in to change notification settings - Fork 30
/
FabricSpliceMayaDeformer.h
45 lines (32 loc) · 1.2 KB
/
FabricSpliceMayaDeformer.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
#ifndef _CREATIONSPLICEMAYADEFORMER_H_
#define _CREATIONSPLICEMAYADEFORMER_H_
#include "FabricSpliceBaseInterface.h"
#include <maya/MPxDeformerNode.h>
#include <maya/MTypeId.h>
#include <maya/MItGeometry.h>
class FabricSpliceMayaDeformer: public MPxDeformerNode, public FabricSpliceBaseInterface{
public:
static void* creator();
static MStatus initialize();
FabricSpliceMayaDeformer();
void postConstructor();
~FabricSpliceMayaDeformer();
// implement pure virtual functions
virtual MObject getThisMObject() { return thisMObject(); }
virtual MPlug getSaveDataPlug() { return MPlug(thisMObject(), saveData); }
MStatus deform(MDataBlock& block, MItGeometry& iter, const MMatrix&, unsigned int multiIndex);
MStatus setDependentsDirty(MPlug const &inPlug, MPlugArray &affectedPlugs);
MStatus shouldSave(const MPlug &plug, bool &isSaving);
void copyInternalData(MPxNode *node);
// node attributes
static MTypeId id;
static MObject saveData;
static MObject evalID;
protected:
virtual void invalidateNode();
private:
int initializePolygonMeshPorts(MString &meshId, MPlug &meshPlug, MDataBlock &data);
// void initializeGeometry(MObject &meshObj);
int mGeometryInitialized;
};
#endif