-
Notifications
You must be signed in to change notification settings - Fork 30
/
FabricSpliceMayaNode.h
39 lines (29 loc) · 1.09 KB
/
FabricSpliceMayaNode.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
#ifndef _CREATIONSPLICEMAYANODE_H_
#define _CREATIONSPLICEMAYANODE_H_
#include "FabricSpliceBaseInterface.h"
#include <maya/MPxNode.h>
#include <maya/MTypeId.h>
#include <maya/MNodeMessage.h>
#include <maya/MStringArray.h>
class FabricSpliceMayaNode: public MPxNode, public FabricSpliceBaseInterface{
//temporarely disabled
// friend void onAttributeChanged(MNodeMessage::AttributeMessage msg, MPlug &plug, MPlug &otherPlug, void* userData);
public:
static void* creator();
static MStatus initialize();
FabricSpliceMayaNode();
void postConstructor();
~FabricSpliceMayaNode();
// implement pure virtual functions
virtual MObject getThisMObject() { return thisMObject(); }
virtual MPlug getSaveDataPlug() { return MPlug(thisMObject(), saveData); }
MStatus compute(const MPlug& plug, MDataBlock& data);
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;
};
#endif