-
Notifications
You must be signed in to change notification settings - Fork 60
/
SyncOutputObject.h
44 lines (32 loc) · 971 Bytes
/
SyncOutputObject.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 __SyncOutputObject_h__
#define __SyncOutputObject_h__
#include <vector>
#include <maya/MDagModifier.h>
#include <maya/MPlug.h>
#include "SubCommand.h"
class SyncOutputGeometryPart;
class SyncOutputObject : public SubCommand
{
public:
SyncOutputObject(const MPlug &outputPlug,
const MObject &assetNodeObj,
const bool visible,
const bool syncTemplatedGeos);
virtual ~SyncOutputObject();
virtual MStatus doIt();
virtual MStatus undoIt();
virtual MStatus redoIt();
virtual bool isUndoable() const;
protected:
#if MAYA_API_VERSION >= 201400
MStatus createFluidShape(const MObject &objectTransform);
#endif
const MPlug myOutputPlug;
const MObject myAssetNodeObj;
const bool myVisible;
const bool mySyncTemplatedGeos;
MDagModifier myDagModifier;
typedef std::vector<SyncOutputGeometryPart *> AssetSyncs;
AssetSyncs myAssetSyncs;
};
#endif