forked from sideeffects/HoudiniEngineForMaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOutputObject.h
67 lines (51 loc) · 1.44 KB
/
OutputObject.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
64
65
66
67
#ifndef __OutputObject_h__
#define __OutputObject_h__
#include <maya/MStatus.h>
#include <maya/MFloatArray.h>
#include <maya/MFloatPointArray.h>
#include <maya/MVectorArray.h>
#include <maya/MStringArray.h>
#include <maya/MIntArray.h>
#include <maya/MObject.h>
#include <maya/MPlug.h>
#include <maya/MDataBlock.h>
#include <HAPI/HAPI.h>
class Asset;
class OutputObject {
public:
enum ObjectType {
OBJECT_TYPE_GEOMETRY,
OBJECT_TYPE_INSTANCER
};
// static creator
static OutputObject* createObject(
int assetId,
int objectId,
const HAPI_ObjectInfo &objectInfo
);
OutputObject(
int assetId,
int objectId
);
virtual ~OutputObject();
int getId();
MString getName();
void setObjectInfo(const HAPI_ObjectInfo &objectInfo);
//virtual MStatus compute(const MPlug& plug, MDataBlock& data);
virtual MStatus compute(
const MTime &time,
MDataHandle& handle,
bool &needToSyncOutputs
) = 0;
virtual ObjectType type() = 0;
bool isVisible() const;
bool isInstanced() const;
public:
bool myIsInstanced;
protected:
HAPI_ObjectInfo myObjectInfo;
int myAssetId;
int myObjectId;
bool myNeverBuilt;
};
#endif